/* ===================================================
   BASE STYLES
   =================================================== */
:root {
    --primary: #ff1100ee;
    --primary-dark: #6a0404e3;
    --primary-light: #e0f2fe;
    --secondary: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --border-radius: 0.5rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center; /* ¡Añade esta línea! */
}

.section-description {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-family: 'FuentePrueba';
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
    font-family: 'FuentePrueba';
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.btn-icon:hover {
    background-color: var(--light-gray);
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--dark);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    font-family: 'FuentePrueba', sans-serif;
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 4rem;
    width: auto;
}

.main-nav {
    display: flex;
    font-family: 'FuentePrueba', sans-serif;
    font-size: 20px;
}

.nav-list {
    display: flex;
    gap: 1.1rem;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 550;
    transition: color 0.3s ease;
    font-family: 'FuentePrueba', sans-serif;
    position: relative;
    padding: 0.3rem 0.8rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* Estilos para los enlaces activos en la navegación */
.nav-link.active {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    width: calc(100% - 0.5rem);
    height: calc(100% - 0.5rem);
    background-color: var(--primary);
    border-radius: 20px;
    left: 0.25rem;
    top: 0.25rem;
    z-index: -1;
    animation: slideIn 0.3s ease-out forwards;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'FuentePrueba';
    font-size: 20px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
}
/* ===================================================
                        MENÚ MÓVIL
   =================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--dark);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem 1rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-list .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    color: #fff;
}

.mobile-nav-list .nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Estilos para el enlace activo en el menú móvil */
.mobile-nav-list .nav-link.active {
    background-color: var(--primary);
    color: var(--white);
}

.mobile-nav-list .nav-link.active::after {
    content: "";
    position: absolute;
    width: calc(100% - 1rem);
    height: calc(100% - 0.5rem);
    background-color: var(--primary);
    border-radius: 20px;
    left: 0.5rem;
    top: 0.25rem;
    z-index: -1;
    animation: slideIn 0.3s ease-out forwards;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-container {
    padding-top: 2rem;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    padding: 0.5rem;
    color: #fff;
}

.close-menu:hover {
    color: var(--primary);
}
/* ===================================================
   HERO SECTION
   =================================================== */
.contact-hero-section {
    position: relative;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 3rem 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'FuentePrueba', sans-serif;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'FuentePrueba', sans-serif;
    font-weight: 600;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 0.5rem;
    font-family: 'FuentePrueba', sans-serif;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    max-width: 32rem;
    font-weight: 500;
    margin: 0 auto;
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
.contact-section {
    padding: 4rem 0;
    background-color: var(--white);
    font-family: 'FuentePrueba', sans-serif;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    min-height: 50vh; /* Altura mínima para mejor visualización */
}

.contact-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-info-container {
    width: 100%;
    max-width: 800px; /* Ancho máximo deseado */
    padding: 0 1rem;
}

.contact-info-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin: 0 auto; /* Centrado adicional */
}

.contact-info-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.contact-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-section {
    padding: 4rem 0;
    background-color: var(--primary-light);
    font-family: 'FuentePrueba', sans-serif;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-icon {
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    font-family: 'FuentePrueba';
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    margin: 1rem 0;
    font-size: 1rem;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ===================================================
   MEDIA QUERIES
   =================================================== */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes slideIn {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: calc(100% - 0.5rem);
        opacity: 1;
    }
}

/* ===================================================
   FONTS
   =================================================== */
@font-face {
    font-family: 'FuentePrueba';
    src: url('../../fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
}