/**
 * SIMULADOR SUNAT - Estilos de sol.php
 * Página inicial estilo gob.pe
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
*::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    min-height: 100vh;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* ========== HEADER GOB.PE ========== */
.header-gob {
    background: #bf0909;
    padding: 12px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gob-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.gob-logo img {
    height: 40px;
}

.gob-text {
    font-size: 24px;
    font-weight: 700;
}

.gob-separator {
    font-size: 24px;
    opacity: 0.5;
    margin: 0 5px;
}

.gob-title {
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.9;
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    width: 280px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.search-btn {
    background: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #666;
}

.search-btn:hover {
    background: #f0f0f0;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 450px;
    background: #fff;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 290px;
    padding: 30px 20px;
    
}

.back-link {
        display: flex;
    align-items: start;
    gap: 8px;
    color: #235188;
    text-decoration: none;
    font-size: 24px;
    margin-bottom: 30px;
    flex-direction: column;
}

.back-link i{
    color:#222;
}

.back-link:hover {
    text-decoration: underline;
}

.sidebar-text {
    font-size: 24px;
    line-height: 1.6;
    color: #235188;
    font-weight: 400;
    margin-left: 100px;
}

.clave-sol {
    color: #235188;
    font-weight: 700;
}

/* ========== CONTENT AREA ========== */
.content-area {
    flex: 1;
    padding: 30px 40px;
    margin: 20px 0px;
    background: #f4f5f6;
}

.sunat-logo-area {
    margin-bottom: 25px;
}

.sunat-logo {
    height: 45px;
}

.logo-text-sunat {
    font-size: 28px;
    font-weight: 700;
    color: #d32f2f;
}

/* ========== SECTIONS ========== */
.sections-container {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.section-group {
    flex: 1;
}

.section-group.main-section {
    flex: 2;
}

.section-group.side-section {
    flex: 1;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
   
}

.section-card {
    padding: 20px;
   
    border-radius: 4px;
    background: #fff;
    max-width: 545px;
}

.card-description {
    font-size: 14px;
    color: #000;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-ingresar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: 2px solid #0b4f9f;
    border-radius: 4px;
    color: #0b4f9f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fff;
}

.btn-ingresar:hover {
    background: #eaeff3;
   
}

/* ========== RENTA ANUAL SECTION ========== */
.renta-anual-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.renta-anual-banner {
    background: #f5f5f5;
    padding: 20px 25px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    position: relative;
    min-width: 200px;
}

.renta-text {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.renta-years {
    font-size: 18px;
    font-weight: 700;

}

.renta-anual-banner i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
}

.renta-cards {
    display: flex;
  
    flex: 1;
}

.renta-card {
    flex: 1;
    padding: 20px;
   
    border-radius: 4px;
    background: #fff;
}

.renta-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.renta-card p {
    font-size: 14px;
    color: #000;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* ========== SIN CLAVE SOL SECTION ========== */
.sin-clave-section {
   
    padding: 40px 0;
}

.sin-clave-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.sidebar-sin-clave {
    width: 200px;
}

.sin-clave-sol {
    color: #1976d2;
    font-weight: 700;
}

.sin-clave-card {
    flex: 1;
    max-width: 500px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.sin-clave-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.sin-clave-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* ========== FOOTER CATEGORÍAS ========== */
.footer-categorias {
    background: #0e2b6d;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-categorias h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.categoria-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.categoria-col a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.9;
}

.categoria-col a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* ========== FOOTER FINAL ========== */
.footer-final {
    background: #0e2b6d;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 20px 0;
}

.footer-final-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.footer-left p,
.footer-right p {
    font-size: 16px;
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 16px;
}

/* ========== ASISTENTE VIRTUAL ========== */
.assistant-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    z-index: 1000;
}

.assistant-bubble:hover {
    transform: scale(1.05);
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 18px;
    overflow: hidden;
}

.assistant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.assistant-text {
    font-size: 14px;
    font-weight: 600;
}

/* ========== RESPONSIVE ========== */
/* Large Laptops & Desktops (1200px and above) */
@media (min-width: 1200px) {
    .main-content {
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
}

/* Small Laptops (992px to 1199px) */
@media (max-width: 1199px) {
    .main-content {
        max-width: 100%;
        margin: 0 15px;
    }
    .sidebar {
        width: 250px;
        padding: 20px 15px;
    }
    .sidebar-text {
        margin-left: 20px;
        font-size: 20px;
    }
    .sections-container {
        gap: 20px;
    }
    .content-area {
        padding: 30px 20px;
    }
}

/* Tablets & Small Laptops Portrait (768px to 991px) */
@media (max-width: 991px) {
    .main-content {
        flex-direction: column;
        margin: 15px;
        border-radius: 8px;
    }
    .sidebar {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        border-bottom: 1px solid #ddd;
    }
    .back-link {
        margin-bottom: 0;
        flex-direction: row;
        font-size: 16px;
    }
    .sidebar-text {
        margin-left: 0;
        font-size: 18px;
        text-align: right;
    }
    .sidebar-text br {
        display: none;
    }
    .sections-container {
        flex-direction: column;
    }
    .renta-anual-section {
        flex-direction: column;
        gap: 20px;
    }
    .renta-cards {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sin-clave-content {
        flex-direction: column;
    }
    .sidebar-sin-clave {
        width: 100%;
    }
}

/* Mobile Devices (Max 767px) */
@media (max-width: 767px) {
    .header-gob {
        padding: 8px 0;
    }
    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }
    .gob-logo img {
        height: 28px;
    }
    .gob-text {
        font-size: 18px;
    }
    .gob-title {
        font-size: 9px;
    }
    .search-box {
        width: 100%;
    }
    .main-content {
        margin: 5px;
        flex-direction: column;
    }
    .sidebar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
        width: 100%;
    }
    .back-link {
        font-size: 13px;
        margin-bottom: 0;
    }
    .sidebar-text {
        text-align: left;
        font-size: 14px;
        margin-left: 0;
    }
    .sidebar-text br {
        display: none;
    }
    .content-area {
        padding: 12px 10px;
    }
    .sunat-logo-area {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    .sunat-logo-area > span {
        display: none;
    }
    .sunat-logo-area img {
        height: 30px;
    }
    .section-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .section-card {
        padding: 12px;
    }
    .card-description {
        font-size: 12px;
    }
    .sections-container {
        flex-direction: column;
        gap: 15px;
    }
    .renta-anual-section {
        flex-direction: column;
        gap: 12px;
    }
    .renta-cards {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .renta-card {
        padding: 12px;
    }
    .renta-card h3 {
        font-size: 14px;
    }
    .renta-card p {
        font-size: 11px;
    }
    .categorias-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sin-clave-content {
        flex-direction: column;
    }
    .sidebar-sin-clave {
        width: 100%;
    }
    .btn-ingresar {
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 8px 12px;
    }
    .footer-final {
        padding: 15px 10px;
    }
    .footer-final-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .assistant-bubble {
        padding: 6px 12px;
        font-size: 11px;
        bottom: 10px;
        right: 10px;
    }
    .assistant-avatar {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Extra small screens (max 480px) - iframe embed size */
@media (max-width: 480px) {
    body {
        font-size: 11px;
    }
    .header-gob {
        padding: 5px 0;
    }
    .gob-logo img {
        height: 22px;
    }
    .gob-text {
        font-size: 15px;
    }
    .gob-separator {
        font-size: 15px;
    }
    .search-box {
        display: none;
    }
    .main-content {
        margin: 3px;
        border-radius: 4px;
    }
    .sidebar {
        padding: 8px;
        gap: 6px;
    }
    .sidebar-text {
        font-size: 12px;
    }
    .content-area {
        padding: 8px 6px;
    }
    .section-title {
        font-size: 13px;
    }
    .card-description {
        font-size: 11px;
    }
    .btn-ingresar {
        font-size: 11px;
        padding: 6px 10px;
    }
}