/* Variables de colores y fuentes */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 140px 0 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto;
    border-radius: 2px;
}

/* Header y Menú */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 5%;
    transition: all 0.4s ease; /* Transición más suave */
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    padding: 15px 5%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    flex-shrink: 0;
    transition: all 0.4s ease; /* Transición para el contenedor del logo */
}

.logo img {
    width: 400px; /* Cambiado de max-width a width fijo */
    height: auto;
    transition: all 0.4s ease; /* Transición suave para el logo */
}

.header.scrolled .logo img {
    width: 300px; /* Tamaño reducido al hacer scroll */
}

/* Navegación principal */
.nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 20px;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
    position: relative;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estilos para móvil */
@media (max-width: 992px) {
    .logo img {
        width: 300px; /* Tamaño para tablet */
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 120px 30px 30px; /* Más espacio arriba para el logo */
        transition: all 0.4s ease;
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
    
    .nav-cta {
        margin: 30px 0 0;
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header.scrolled .logo img {
        width: 250px; /* Tamaño reducido para móvil con scroll */
    }
}

/* Estilos para el submenú */
.nav-item.has-submenu {
    position: relative;
}

.dropdown-icon {
    margin-left: 6px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.has-submenu.active .dropdown-icon {
    transform: rotate(180deg);
}

.submenu-link {
    display: block;
    padding: 8px 20px;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Versión móvil */
@media (max-width: 992px) {
    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 0;
        margin-top: 5px;
    }
    
    .nav-item.has-submenu.active .submenu {
        max-height: 300px;
        opacity: 1;
        padding: 10px 0;
        visibility: visible;
    }
    
    .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .nav-item.has-submenu.active .dropdown-icon {
        transform: rotate(180deg);
    }
}

/* Evitar scroll cuando el menú está abierto */
.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .logo img {
        width: 250px; /* Tamaño para móvil */
    }
    
    .header.scrolled .logo img {
        width: 200px;
    }
}


/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.slide-title {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Sección Servicios */
.services-section {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding: 30px;
    text-align: center;
    position: relative;
    border: 1px solid var(--light-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.service-card.featured {
    border-top: 4px solid var(--secondary-color);
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

.service-card.featured .service-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--secondary-color);
}

.service-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-price span {
    font-size: 1rem;
    font-weight: 400;
}

.service-card.featured .service-price {
    color: var(--secondary-color);
}

.service-features {
    margin-bottom: 25px;
    text-align: left;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.service-features i {
    margin-right: 10px;
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: 3px;
}

.services-cta {
    text-align: center;
    margin-top: 50px;
    pointer-events: auto; /* Asegura que el contenedor sea interactivo */
}

.services-cta h3 {
    margin-bottom: 20px; /* Ajusta el margen inferior para dar más espacio entre el título y el párrafo */
}

.services-cta p {
    margin-bottom: 30px; /* Ajusta el margen inferior para dar más espacio entre el párrafo y los botones */
}

.services-cta a {
    pointer-events: auto; /* Asegura que los enlaces (botones) sean interactivos */
}


/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Clase para el efecto hover profesional */
.footer-logo {
    margin-bottom: 20px;
    width: 250px; /* Tamaño base */
    transition: all 0.4s ease-in-out; /* Transición suave */
    display: inline-block; /* Necesario para transformaciones */
}

.footer-logo:hover {
    transform: scale(1.05); /* Ligero zoom al pasar el mouse */
    filter: drop-shadow(0 2px 8px rgba(255, 102, 0, 0.3)); /* Sombra naranja (opcional) */
    opacity: 0.9; /* Ligera transparencia para elegancia */
}

.footer-about {
    color: var(--light-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-gray);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--light-gray);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-legal a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding: 80px 30px 30px;
        z-index: 1000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 0 0 20px;
    }
    
    .nav-cta {
        margin: 20px 0 0;
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .slide-title {
        font-size: 3rem;
    }

    .slide-text {
        font-size: 1.2rem;
        margin: 0 45px;
        margin-bottom: 30px;
    }
    
    .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
}

/* Estilo para mensaje de error del menú */
.nav-error {
    color: #fff;
    background: #ef4444;
    padding: 10px;
    border-radius: 4px;
    margin-left: 20px;
}

.nav-error a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

/* Asegura que el header tenga un z-index alto */
.header {
    z-index: 1000;
}

/* Estructura del contenedor del header */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-content {
        padding: 0 10px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-arrow-prev {
        left: 10px;
    }
    
    .slider-arrow-next {
        right: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}




/* Sección Contacto */
/* Sección Contacto - Versión corregida */
.contact-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    overflow: hidden;
    z-index: 1;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
    position: relative;
}

.contact-form-container {
    flex: 1;
    padding: 60px;
    z-index: 2;
}

.contact-image-container {
    flex: 1;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.contact-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.6);
}

.contact-image-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: white;
    text-align: center;
}

.contact-image-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-image-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-info {
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-info-text {
    text-align: left;
}

.contact-info-text h4 {
    font-family: var(--font-secondary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info-text p,
.contact-info-text a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-info-text a:hover {
    color: white;
    text-decoration: underline;
}

.contact-title {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-subtitle {
    color: var(--gray-color);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-group.full-width {
    grid-column: span 2;
}

.contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9fafc;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background-color: white;
}

.contact-form .form-control::placeholder {
    color: #94a3b8;
}

.contact-form .select-wrapper {
    position: relative;
}

.contact-form .select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: var(--gray-color);
    pointer-events: none;
}

.contact-form .form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .form-submit {
    grid-column: span 2;
    margin-top: 10px;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    border: 1px solid var(--success-color);
}

.contact-success-icon {
    font-size: 3.5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.contact-success-title {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.contact-success-text {
    color: var(--gray-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Validación de formulario */
.contact-form .form-group.error .form-control {
    border-color: var(--danger-color);
}

.contact-form .form-group.error .error-message {
    display: block;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 8px;
}

.contact-form .error-message {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form-container {
        padding: 40px;
    }
    
    .contact-image-container {
        padding: 60px 40px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-group.full-width,
    .contact-form .form-submit {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-container {
        border-radius: 10px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
    
    .contact-image-container {
        padding: 40px 30px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-image-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .contact-image-container {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
}

/* Preguntas y Respuestas */
.faq-section {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--light-gray);
    border-radius: 50%;
    z-index: 0;
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: var(--light-gray);
    border-radius: 50%;
    z-index: 0;
}

.faq-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.faq-image {
    flex: 1;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    display: none; /* Oculto por defecto en móviles */
}

.faq-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.faq-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: var(--transition);
}

.faq-image:hover img {
    transform: scale(1.05);
}

.faq-text {
    flex: 1.5;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.faq-container {
    position: relative;
    z-index: 1;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: white;
}

.faq-item:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.faq-question {
    padding: 20px 25px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--primary-dark);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.faq-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-dark));
}

@media (min-width: 992px) {
    .faq-image {
        display: block;
    }
    .section-header {
        text-align: left;
        margin-bottom: 40px;
    }
    .section-header h2::after {
        left: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}