
/* Estilos Generales / Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-principal);
    text-decoration: none;
    letter-spacing: 8px;
}

.logo img {
    width: auto;
    height: 70px;
}

.nav {
    display: flex;
    gap: 40px;
    margin-left: 40px;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-principal);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-principal);
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* Sección de Preguntas Frecuentes (FAQ)  */

.faq-section {
    background: white;
    padding: 80px 40px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    position: relative;
}

.faq-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-principal);
    border-radius: 2px;
}

.faq-header p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: 250px;
    max-width: 1000px;
    justify-content: center;
}

.faq-item {
    background: #f4f8fc;
    border-radius: 16px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-item.active {
    border-color: #04518C;
    background: white;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(4, 81, 140, 0.05);
}

.faq-item.active .faq-question {
    background: rgba(4, 81, 140, 0.08);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: #04518C;
    line-height: 1.4;
    flex: 1;
    margin-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #04518C;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-item.active .faq-icon {
    background: #003a6e;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    border-top: 1px solid rgba(4, 81, 140, 0.2);
}

.answer-content {
    padding: 32px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.answer-content p {
    margin-bottom: 16px;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

.answer-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.answer-content li {
    margin-bottom: 8px;
}

.answer-content strong {
    color: #04518C;
    font-weight: 600;
}


/* Footer*/
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4fd1c7, #3a9bc1, #4fd1c7);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 15px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #4fd1c7;
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: #4fd1c7;
    padding-left: 8px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #4fd1c7;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 4px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bdc3c7;
    font-size: 14px;
}

.contact-item i {
    width: 20px;
    color: #4fd1c7;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #4fd1c7;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 209, 199, 0.4);
}

.footer-bottom {
    margin-top: 40px;
    padding: 25px 40px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #95a5a6;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #4fd1c7;
}


/* == Animaciones == */

.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
.faq-item:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(2) { animation-delay: 0.1s; }
.footer-section:nth-child(3) { animation-delay: 0.2s; }
.footer-section:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================== */
/* == Media Queries == */
/* ============================== */
@media (max-width: 992px) {
    .header {
        padding: 20px 40px;
    }
    
    .faq-container {
        margin-left: 0; 
        max-width: 800px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

   .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        gap: 20px;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .faq-section {
        padding: 60px 30px;
        margin: 20px;
        border-radius: 16px;
    }

    .faq-header h2 {
        font-size: 32px;
    }

    .faq-header p {
        font-size: 16px;
    }

    .faq-question {
        padding: 24px 24px;
    }

    .question-text {
        font-size: 16px;
        margin-right: 16px;
    }

    .answer-content {
        padding: 24px;
        font-size: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 30px;
    }

    .footer-bottom {
        padding: 20px 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 0 0;
    }

    .footer-content {
        padding: 0 20px;
    }

    .footer-bottom {
        padding: 20px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    body {
        padding: 20px 10px;
    }

    .faq-section {
        padding: 40px 20px;
    }

    .faq-header h2 {
        font-size: 28px;
    }

    .faq-question {
        padding: 20px;
    }

    .question-text {
        font-size: 15px;
    }

    .answer-content {
        padding: 20px;
        font-size: 14px;
    }
}