/* Estilos para Portal Oficial - Sitio 3 */

/* Variables CSS */
:root {
    --primary-official: #1e3a8a;
    --secondary-official: #3b82f6;
    --accent-official: #60a5fa;
    --success-official: #10b981;
    --warning-official: #f59e0b;
    --danger-official: #ef4444;
    --dark-official: #1f2937;
    --light-official: #f8fafc;
    --gray-official: #6b7280;
    --white-official: #ffffff;
    --shadow-official: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg-official: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-official: #e5e7eb;
    --gradient-official: linear-gradient(135deg, var(--primary-official) 0%, var(--secondary-official) 100%);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-official);
    background-color: var(--white-official);
}

.container-official {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barra Superior */
.top-bar-official {
    background: var(--gradient-official);
    color: var(--white-official);
    padding: 8px 0;
    font-size: 14px;
}

.top-info-official {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.official-badge {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.separator-official {
    opacity: 0.7;
}

.top-info-official a {
    color: var(--white-official);
    text-decoration: none;
}

.top-info-official a:hover {
    text-decoration: underline;
}

/* Header Principal */
.main-header-official {
    background: var(--white-official);
    box-shadow: var(--shadow-official);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content-official {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.brand-official {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo-official {
    font-size: 40px;
}

.brand-text-official h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-official);
    margin-bottom: 5px;
}

.brand-text-official h1 span {
    color: var(--secondary-official);
}

.tagline-official {
    font-size: 14px;
    color: var(--gray-official);
    font-weight: 500;
}

.nav-official {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-official a {
    color: var(--dark-official);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-official a:hover {
    color: var(--secondary-official);
}

.btn-nav-official {
    background: var(--gradient-official);
    color: var(--white-official) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-nav-official:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg-official);
}

/* Hero Section */
.hero-official {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f1f5f9" width="1200" height="600"/><path fill="%23e2e8f0" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--white-official);
    padding: 100px 0;
    position: relative;
}

.hero-content-official {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-official {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description-official {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.disclaimer-official {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
}

.disclaimer-icon-official {
    font-size: 24px;
    margin-bottom: 10px;
}

.disclaimer-text-official strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.disclaimer-text-official p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.disclaimer-text-official a {
    color: var(--accent-official);
    text-decoration: none;
}

.disclaimer-text-official a:hover {
    text-decoration: underline;
}

.hero-actions-official {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-primary-official, .btn-secondary-official {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-official {
    background: var(--white-official);
    color: var(--primary-official);
}

.btn-primary-official:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg-official);
}

.btn-secondary-official {
    background: transparent;
    color: var(--white-official);
    border: 2px solid var(--white-official);
}

.btn-secondary-official:hover {
    background: var(--white-official);
    color: var(--primary-official);
}

/* Secciones Generales */
.information-section-official,
.procedures-section-official,
.resources-section-official,
.faq-official {
    padding: 80px 0;
}

.section-header-official {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-official h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-official);
    margin-bottom: 15px;
}

.section-header-official p {
    font-size: 18px;
    color: var(--gray-official);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Información */
.information-grid-official {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card-official {
    background: var(--white-official);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-official);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-official);
}

.info-card-official:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg-official);
}

.info-icon-official {
    font-size: 48px;
    margin-bottom: 20px;
}

.info-card-official h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-official);
    margin-bottom: 15px;
}

.info-card-official p {
    color: var(--gray-official);
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-features-official {
    list-style: none;
    text-align: left;
}

.info-features-official li {
    padding: 5px 0;
    color: var(--gray-official);
    position: relative;
    padding-left: 20px;
}

.info-features-official li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-official);
    font-weight: bold;
}

/* Timeline de Procedimientos */
.procedures-timeline-official {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.procedures-timeline-official::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-official);
}

.timeline-item-official {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker-official {
    width: 60px;
    height: 60px;
    background: var(--gradient-official);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-official);
    font-weight: bold;
    font-size: 20px;
    margin-right: 30px;
    flex-shrink: 0;
    box-shadow: var(--shadow-official);
}

.timeline-content-official {
    flex: 1;
    background: var(--white-official);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-official);
    border: 1px solid var(--border-official);
}

.timeline-content-official h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-official);
    margin-bottom: 10px;
}

.timeline-content-official p {
    color: var(--gray-official);
    margin-bottom: 15px;
    line-height: 1.6;
}

.timeline-note-official {
    background: var(--light-official);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-official);
}

.timeline-note-official strong {
    color: var(--primary-official);
}

/* Tabs de Recursos */
.resources-tabs-official {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-nav-official {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: var(--light-official);
    border-radius: 10px;
    padding: 5px;
}

.tab-btn-official {
    background: transparent;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--gray-official);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.tab-btn-official.active {
    background: var(--white-official);
    color: var(--primary-official);
    box-shadow: var(--shadow-official);
}

.tab-btn-official:hover {
    color: var(--primary-official);
}

.tabs-content-official {
    background: var(--white-official);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-official);
    border: 1px solid var(--border-official);
}

.tab-pane-official {
    display: none;
}

.tab-pane-official.active {
    display: block;
}

.tab-pane-official h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-official);
    margin-bottom: 30px;
    text-align: center;
}

/* Grid de Portales */
.portals-grid-official {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portal-card-official {
    background: var(--light-official);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-official);
    transition: transform 0.3s ease;
}

.portal-card-official:hover {
    transform: translateY(-3px);
}

.portal-card-official h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-official);
    margin-bottom: 10px;
}

.portal-card-official p {
    color: var(--gray-official);
    margin-bottom: 15px;
    font-size: 14px;
}

.portal-link-official {
    display: inline-block;
    background: var(--gradient-official);
    color: var(--white-official);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.portal-link-official:hover {
    transform: translateY(-2px);
}

/* Tabla de Documentos */
.documents-table-official {
    overflow-x: auto;
}

.official-table-official {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.official-table-official th,
.official-table-official td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-official);
}

.official-table-official th {
    background: var(--light-official);
    font-weight: 600;
    color: var(--primary-official);
}

.official-table-official tr:hover {
    background: var(--light-official);
}

/* Tarifas Detalladas */
.tariffs-detailed-official {
    display: grid;
    gap: 40px;
}

.tariff-category-official h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-official);
    margin-bottom: 20px;
    text-align: center;
}

.tariff-list-official {
    display: grid;
    gap: 15px;
}

.tariff-item-official {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light-official);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-official);
}

.tariff-icon-official {
    font-size: 24px;
    flex-shrink: 0;
}

.tariff-item-official strong {
    color: var(--primary-official);
    display: block;
    margin-bottom: 5px;
}

.tariff-item-official p {
    color: var(--gray-official);
    margin: 0;
    font-size: 14px;
}

/* Ubicaciones */
.locations-analysis-official {
    margin-top: 30px;
}

.location-cards-official {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.location-card-official {
    background: var(--light-official);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-official);
}

.location-card-official h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-official);
    margin-bottom: 15px;
}

.location-details-official p {
    margin-bottom: 8px;
    color: var(--gray-official);
    font-size: 14px;
}

/* FAQ */
.faq-container-official {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item-official {
    background: var(--white-official);
    border: 1px solid var(--border-official);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-official);
}

.faq-question-official {
    padding: 20px;
    background: var(--light-official);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-official);
    transition: background 0.3s ease;
}

.faq-question-official:hover {
    background: var(--accent-official);
    color: var(--white-official);
}

.faq-question-official.active {
    background: var(--secondary-official);
    color: var(--white-official);
}

.faq-icon-official {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-question-official.active .faq-icon-official {
    transform: rotate(180deg);
}

.faq-answer-official {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white-official);
}

.faq-answer-official.active {
    padding: 20px;
    max-height: 200px;
}

.faq-answer-official p {
    color: var(--gray-official);
    line-height: 1.6;
    margin: 0;
}

/* CTA */
.cta-official {
    background: var(--gradient-official);
    color: var(--white-official);
    padding: 80px 0;
    text-align: center;
}

.cta-content-official h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content-official p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons-official {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-cta-primary-official,
.btn-cta-secondary-official {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-cta-primary-official {
    background: var(--white-official);
    color: var(--primary-official);
}

.btn-cta-primary-official:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg-official);
}

.btn-cta-secondary-official {
    background: transparent;
    color: var(--white-official);
    border: 2px solid var(--white-official);
}

.btn-cta-secondary-official:hover {
    background: var(--white-official);
    color: var(--primary-official);
}

/* Footer */
.footer-official {
    background: var(--dark-official);
    color: var(--white-official);
    padding: 60px 0 20px;
}

.footer-main-official {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-official {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-brand-official .brand-logo-official {
    font-size: 32px;
}

.footer-brand-official h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-official);
}

.footer-column-official h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-official);
}

.footer-links-official {
    list-style: none;
}

.footer-links-official li {
    margin-bottom: 10px;
}

.footer-links-official a {
    color: var(--gray-official);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-official a:hover {
    color: var(--accent-official);
}

.disclaimer-footer-official {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.disclaimer-footer-official a {
    color: var(--accent-official);
    text-decoration: none;
}

.disclaimer-footer-official a:hover {
    text-decoration: underline;
}

.footer-bottom-official {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom-official p {
    color: var(--gray-official);
    margin-bottom: 10px;
}

.footer-disclaimer-official {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content-official {
        flex-direction: column;
        gap: 20px;
    }

    .nav-official {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-title-official {
        font-size: 36px;
    }

    .hero-description-official {
        font-size: 18px;
    }

    .hero-actions-official {
        flex-direction: column;
        align-items: center;
    }

    .tabs-nav-official {
        flex-direction: column;
    }

    .cta-buttons-official {
        flex-direction: column;
        align-items: center;
    }

    .procedures-timeline-official::before {
        left: 20px;
    }

    .timeline-marker-official {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 20px;
    }

    .timeline-content-official {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container-official {
        padding: 0 15px;
    }

    .hero-title-official {
        font-size: 28px;
    }

    .section-header-official h2 {
        font-size: 28px;
    }

    .tabs-content-official {
        padding: 20px;
    }

    .information-grid-official {
        grid-template-columns: 1fr;
    }
}
