/* General Styles and Modern Reset */
:root {
    --primary-dark: #164982;
    --primary-light: #16a0d7;
    --accent: #2eb8c0;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --text-dark: #164982;
    --transition-slow: 0.5s ease;
    --transition-medium: 0.3s ease;
    --transition-fast: 0.2s ease;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 15px 35px rgba(0,0,0,0.15);
    --header-bg-transparent: rgba(255, 255, 255, 0);
    --header-bg-solid: rgba(255, 255, 255, 1);
    --header-shadow-light: 0 2px 5px rgba(0, 0, 0, 0.05);
    --header-shadow-solid: 0 4px 15px rgba(0, 0, 0, 0.1);
    --hero-bg-gradient: linear-gradient(135deg, #0a103d 0%, #202b5d 100%);
    --tech-circle-color: rgba(30, 136, 229, 0.15);
    --tech-grid-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

section {
    padding: 100px 5%; /* Percentage-based padding for better responsiveness */
    text-align: center;
    position: relative; /* For animated elements */
}

h1, h2, h3 {
    color: var(--primary-dark);
    font-weight: 700; /* Bold headlines */
    letter-spacing: -0.5px; /* Tighter letter spacing for modern look */
}

h2 {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Responsive font size */
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-button {
    background-color: var(--accent);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-medium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Para contener las partículas y efectos de onda */
    z-index: 5;
    box-shadow: 0 4px 15px rgba(46, 184, 192, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-light);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.cta-button:hover {
    box-shadow: 0 6px 20px rgba(22, 160, 215, 0.4);
    transform: translateY(-3px);
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button i {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.cta-button:hover i {
    transform: translateX(5px) rotate(360deg);
}

/* Estilos para las partículas */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(10, 16, 61, 0.9);
    box-shadow: none;
    transition: all 0.4s ease-in-out;
}

.main-header.scrolled {
    background-color: var(--header-bg-solid);
    box-shadow: var(--header-shadow-solid);
}

.main-header.scrolled .nav-links a {
    color: var(--text-dark);
}

.main-header.scrolled .logo-image {
    height: 50px; /* Smaller logo when scrolled */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    z-index: 1001;
}

.logo-image {
    height: 60px;
    transition: height 0.3s ease;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
    width: 30px;
    height: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 65vh; /* Reducido de 80vh para que quepa en la pantalla sin scroll */
    padding: 100px 0 50px; /* Padding reducido */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a103d;
    color: var(--white);
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Aseguramos que el fondo esté por debajo del contenido */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(10, 16, 61, 0.8), rgba(10, 16, 61, 0.85)), url('images/background-heroe.png'); /* Recuperamos el fondo de redes neuronales */
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

.tech-circles, .tech-grid {
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 10; /* Número más alto para asegurar que esté por encima del fondo */
    max-width: 1200px;
    margin: 0 auto;
}

/* Añadimos una clase para el contenido centrado */
.centered-hero {
    max-width: 800px !important; /* Reducido de 900px */
    margin: 0 auto;
    text-align: center;
    background-color: rgba(10, 16, 61, 0.7); /* Fondo más oscuro para mejor contraste */
    padding: 30px; /* Padding más compacto */
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 20; /* Número más alto que el contenedor */
}

.hero-title {
    font-size: 3.5rem; /* Tamaño reducido de 4rem */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px; /* Reducido de 25px */
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: var(--accent); /* Color destacado para la segunda parte */
    position: relative;
    display: inline-block; /* Para que funcione bien en varias líneas */
}

.hero-subtitle {
    font-size: 1.3rem; /* Reducido de 1.5rem */
    font-weight: 400;
    margin-bottom: 25px; /* Reducido de 40px */
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-buttons {
    margin-top: 25px; /* Reducido de 40px */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-button {
    /* Mantenemos estilos existentes */
    font-size: 1.1rem; /* Reducido de 1.2rem */
    padding: 15px 30px; /* Reducido de 18px 36px */
}

.cta-description {
    margin-top: 12px; /* Reducido de 20px */
    font-size: 0.9rem; /* Reducido de 1rem */
    opacity: 0.85;
    max-width: 90%;
    line-height: 1.5;
    color: var(--white);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .centered-hero {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .centered-hero {
        padding: 25px 20px;
    }
}

/* Story Section */
#synergia-story {
    background-color: var(--light-gray);
}

.story-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.story-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
}

.story-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.rounded-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.rounded-image:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.story-content h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.story-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 1.5px;
}

.story-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Why SynergIA Section */
#why-synergia {
    background-color: var(--white);
    position: relative;
}

#why-synergia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 73, 130, 0.03) 0%, rgba(46, 184, 192, 0.03) 100%);
    z-index: 0;
}

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Estilos para la sección "¿Por qué confiar en nosotros?" - Versión más ligera y limpia */
.trust-zigzag-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

.trust-zigzag-row {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 10px;
}

.trust-zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

.trust-zigzag-image {
    width: 40%;
    position: relative;
}

.trust-zigzag-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.trust-zigzag-content {
    width: 60%;
    padding: 25px;
}

.trust-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.trust-zigzag-row:nth-child(even) .trust-number {
    left: auto;
    right: 10px;
}

.trust-zigzag-content h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.trust-icon-inline {
    color: var(--primary-light);
    margin-right: 8px;
}

.trust-zigzag-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.trust-quote {
    font-style: italic;
    font-size: 0.9rem;
    padding: 10px 15px;
    background-color: rgba(22, 160, 215, 0.08);
    border-left: 3px solid var(--primary-light);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .trust-zigzag-row, 
    .trust-zigzag-row:nth-child(even) {
        flex-direction: column;
    }
    
    .trust-zigzag-image, 
    .trust-zigzag-content {
        width: 100%;
    }
    
    .trust-zigzag-image img {
        height: 200px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 16, 61, 0.95);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}


/* SECCIÓN Cómo trabajamos - versión compacta con las 4 tarjetas visibles */
#how-we-work {
    background-color: #0a103d; /* Dark fallback background if image fails */
    padding: 80px 0; /* Adjusted padding for better spacing with a background image */
    position: relative;
    overflow: hidden;
}
/* Container for the background image of any section */
.section-background-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind the content */
    overflow: hidden;
}

.section-background-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, may crop */
    object-position: center; /* Center the image */
    opacity: 0.3; /* Adjust opacity as needed to blend with content */
}

/* Ensure the main content of the section is above the background image */
#how-we-work .container {
    position: relative;
    z-index: 1;
}
#how-we-work > .container > .section-title {
    color: var(--white);
}

.process-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85); /* Light color for subtitle */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
#how-we-work .process-conclusion p {
    /* color: var(--primary-dark); */ /* Original color */
    color: rgba(255, 255, 255, 0.9); /* New light color */
    margin-bottom: 10px;
}

#how-we-work .process-conclusion strong {
    color: var(--accent); /* Accent color should be bright enough */
}

.journey-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px 0 50px; /* Aumentar el padding izquierdo */
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 25px;
    z-index: 2;
}

/* Línea horizontal que conecta las tarjetas - más gruesa */
.journey-path {
    position: absolute;
    left: 5%;
    top: 120px;
    width: 90%;
    height: 20px; /* Línea aún más gruesa */
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary-light));
    border-radius: 10px;
    z-index: 1;
    box-shadow: 0 5px 25px rgba(22, 160, 215, 0.6); /* Sombra más pronunciada */
}

/* Efecto de línea punteada sobre el camino principal */
.journey-path::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 8px; /* Línea punteada más gruesa */
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9) 12px, transparent 12px, transparent 24px);
    transform: translateY(-50%);
}

/* Configuración inicial para las tarjetas - ajuste para asegurar visibilidad */
.journey-step {
    position: relative;
    flex: 0 0 auto;
    width: 250px;
    z-index: 2;
    /* Configuración inicial para la animación - visible pero transparente */
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado activo cuando aparece la tarjeta */
.journey-step.active {
    opacity: 1;
    transform: translateX(0);
}

/* Conectores entre tarjetas */
.journey-step::before {
    content: '';
    position: absolute;
    top: 120px;
    right: -18px;
    width: 14px; /* Conectores más grandes */
    height: 14px;
    background-color: var(--accent);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 15px rgba(46, 184, 192, 0.7); /* Brillo más intenso */
    border: 2px solid white;
    transition: transform 0.5s ease, box-shadow 0.5s ease; /* Añadir transición */
}

/* Journey step hover effect */
.journey-step:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(46, 184, 192, 0.9);
}

/* Retraso escalonado para la aparición secuencial */
.journey-step:nth-child(1).active {
    transition-delay: 0.1s;
}

.journey-step:nth-child(2).active {
    transition-delay: 0.6s; /* Mayor retraso entre elementos */
}

.journey-step:nth-child(3).active {
    transition-delay: 1.1s;
}

.journey-step:nth-child(4).active {
    transition-delay: 1.6s;
}

/* Efecto hover mejorado */
.journey-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(22, 160, 215, 0.3);
}

.journey-step:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(46, 184, 192, 0.9);
}

/* Reposicionar el número a la izquierda de cada tarjeta */
.step-number {
    position: absolute;
    top: 50%;
    left: -25px; /* Posicionado a la izquierda de la tarjeta */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-dark), #0a3c6e);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    z-index: 4;
    border: 3px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-step:hover .step-number {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Ajustando el contenido para que comience más arriba */
.step-content {
    background-color: white;
    padding: 25px 20px 20px; /* Reducir el padding superior */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0;
    border: 1px solid rgba(22, 160, 215, 0.1);
    height: 100%;
    min-height: 220px;
    z-index: 3; /* Asegurarse que el contenido esté siempre por encima de la línea */
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.step-icon i {
    font-size: 1.6rem;
    color: white;
}

.journey-step:hover .step-icon {
    transform: rotate(10deg) scale(1.1);
}

.step-content h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.step-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: center;
}

.step-connector {
    display: none; /* Ya no necesitamos conectores individuales */
}

.process-conclusion {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    font-size: 1.2rem;
    color: var(--primary-dark);
    line-height: 1.6;
}

.process-conclusion p {
    margin-bottom: 10px;
}

.process-conclusion strong {
    color: var(--accent);
}

.process-cta {
    text-align: center;
    margin-top: 20px;
}

/* Animación para que los elementos aparezcan de forma escalonada */
.journey-step:nth-child(1).active {
    transition-delay: 0.1s;
}

.journey-step:nth-child(2).active {
    transition-delay: 0.6s;
}

.journey-step:nth-child(3).active {
    transition-delay: 1.1s;
}

.journey-step:nth-child(4).active {
    transition-delay: 1.6s;
}

/* Ocultar elementos de navegación que ya no necesitamos */
.journey-nav,
.scroll-indicator {
    display: none;
}

/* Media queries para responsive */
@media (max-width: 1024px) {
    .journey-container {
        gap: 15px;
        justify-content: center;
    }
    
    .journey-step {
        width: 220px;
    }
}

@media (max-width: 900px) {
    .journey-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 20px 0 40px;
    }
    
    .journey-step {
        width: 45%;
        margin-bottom: 30px;
    }
    
    .journey-path {
        top: 140px; /* Ajuste para asegurar que esté centrada en móviles */
        height: 15px; /* Línea ligeramente menos gruesa en móviles */
    }
    
    .journey-step::before {
        top: 140px;
    }
    
    .journey-path::after {
        height: 6px;
    }
    
    .journey-step::before {
        display: none; /* Ocultar conectores en vista móvil */
    }
    
    .step-number {
        left: -20px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .journey-step {
        width: 100%;
        max-width: 300px;
    }
}

/* SECCIÓN DE TESTIMONIOS - Diseño moderno 2025 */
#testimonials {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo */
.testimonial-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
}

.testimonial-shape.shape1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(22, 160, 215, 0.1), rgba(22, 160, 215, 0.05));
}

.testimonial-shape.shape2 {
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 184, 192, 0.08), rgba(46, 184, 192, 0.03));
}

.testimonial-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(22, 73, 130, 0.03) 3px, transparent 3px);
    background-size: 30px 30px;
    z-index: 1;
}

/* Contenedor principal con posición relativa */
#testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonial-subtitle {
    text-align: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Wrapper de testimonios con diseño moderno */
.testimonials-wrapper {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Tarjetas de testimonios con efecto de cristal (glassmorphism) */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    width: 320px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(22, 160, 215, 0.3);
}

/* Tarjeta destacada */
.testimonial-card.featured {
    width: 360px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 250, 255, 0.95));
    border-color: rgba(46, 184, 192, 0.4);
    box-shadow: 0 15px 40px rgba(46, 184, 192, 0.15);
    transform: translateY(-15px);
}

.testimonial-card.featured:hover {
    transform: translateY(-20px);
    box-shadow: 0 20px 50px rgba(46, 184, 192, 0.2);
}

/* Cabecera del testimonio */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quote-icon {
    color: var(--accent);
    font-size: 1.8rem;
    opacity: 0.8;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
}

.testimonial-rating i {
    color: #FFD700;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
}

/* Contenido del testimonio */
.testimonial-content {
    margin-bottom: 25px;
    position: relative;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    opacity: 0.1;
    background-size: contain;
    background-repeat: no-repeat;
}

.testimonial-content p::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23164982' d='M9.983 3v7.391C9.983 16.095 5.07 16 5.07 16l.014 2s12.001.5 12.001-8V3h-7.102zm9 0v7.391C18.983 16.095 14.07 16 14.07 16l.014 2S26.085 18.5 26.085-10V3h-7.102z'/%3E%3C/svg%3E");
    top: -5px;
    left: -20px;
}

.testimonial-content p::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23164982' d='M14.017 21v-7.391C14.017 7.905 18.93 8 18.93 8l-.014-2s-12.001-.5-12.001 8V21h7.102zM5.017 21v-7.391C5.017 7.905 9.93 8 9.93 8l-.014-2s-12.001-.5-12.001 8V21h7.102z'/%3E%3C/svg%3E");
    bottom: -5px;
    right: -20px;
}

/* Sección del autor */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-light);
    position: relative;
    box-shadow: 0 5px 15px rgba(22, 160, 215, 0.2);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-card:hover .author-image img {
    transform: scale(1.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Elemento decorativo */
.testimonial-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), rgba(255, 255, 255, 0));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .testimonial-decoration {
    opacity: 1;
}

/* Sección de marcas que confían */
.testimonial-brands {
    margin-top: 40px;
    padding: 40px 20px 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.testimonial-brands::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(22, 160, 215, 0.03) 25%, 
        rgba(46, 184, 192, 0.03) 50%, 
        rgba(22, 160, 215, 0.03) 75%, 
        rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.brands-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.brands-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 1.5px;
}

.brands-slider {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-weight: 700;
    color: #555;
    font-size: 1.1rem;
    padding: 0 10px;
    opacity: 0.75;
    transition: all 0.3s ease;
}

.brand-logo img {
    max-height: 100%;
    filter: grayscale(0.7);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.brand-logo:hover img {
    filter: grayscale(0);
}

/* Responsive para la sección de testimonios */
@media (max-width: 992px) {
    .testimonials-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        width: 90%;
        max-width: 400px;
    }
    
    .testimonial-card.featured {
        width: 90%;
        max-width: 450px;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    #testimonials {
        padding: 60px 0;
    }
    
    .testimonial-card, 
    .testimonial-card.featured {
        width: 100%;
        padding: 25px 20px;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
    
    .brands-slider {
        gap: 20px;
    }
    
    .brand-logo {
        height: 40px;
        font-size: 1rem;
    }
}

/* Animaciones para los testimonios */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.5s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.7s;
}

/* Slider de testimonios móvil */
@media (max-width: 992px) {
    .testimonial-slider-nav {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 25px;
    }
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(22, 160, 215, 0.2);
        color: var(--primary-dark);
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .slider-nav-btn:hover {
        background: var(--primary-light);
        color: white;
        box-shadow: 0 5px 15px rgba(22, 160, 215, 0.3);
    }
}

/* Estilos para la sección 5: Impacto real en cifras */
#impact-stats {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8fe 100%);
    overflow: hidden;
    padding: 100px 0 120px;
}

.impact-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: var(--primary-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.impact-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .impact-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .impact-container {
        grid-template-columns: 1fr;
    }
    
    .stat-card-inner {
        padding: 30px 20px 25px;
    }
}

.stat-card {
    position: relative;
    perspective: 1000px;
    height: 100%;
}

.stat-card-inner {
    position: relative;
    height: 100%;
    border-radius: 12px;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 45px 25px 30px;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(22, 160, 215, 0.1);
    overflow: hidden;
    z-index: 2;
}

.stat-card:hover .stat-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(22, 160, 215, 0.3);
}

.stat-icon-container {
    position: relative;
    width: 85px;
    height: 85px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transform: rotate(10deg);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(22, 160, 215, 0.4);
}

.stat-card:hover .stat-icon-container {
    transform: rotate(-5deg) scale(1.1);
}

.stat-icon-container i {
    font-size: 2.5rem;
    color: white;
}

.stat-icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(22, 160, 215, 0.8);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.stat-card:hover .stat-icon-glow {
    opacity: 1;
    animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 30px rgba(22, 160, 215, 0.4);
    }
    100% {
        box-shadow: 0 0 50px rgba(22, 160, 215, 0.8);
    }
}

.stat-value-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.stat-unit {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
}

.stat-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-top: auto;
}

/* Contenedor de resumen destacado */
.impact-highlight {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.impact-highlight-content {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a3c6e 100%);
    color: white;
    padding: 35px 40px;
    border-radius: 12px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 35px rgba(10, 16, 61, 0.3);
    overflow: hidden;
    z-index: 2;
}

.impact-highlight-content p {
    margin-bottom: 10px;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.impact-highlight-content p:last-child {
    margin-bottom: 0;
}

.impact-highlight-icon {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    z-index: 1;
}

.impact-highlight-icon i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.impact-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

/* Elementos decorativos */
.impact-decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22, 160, 215, 0.2) 0%, rgba(22, 160, 215, 0) 70%);
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 184, 192, 0.15) 0%, rgba(46, 184, 192, 0) 70%);
    bottom: -150px;
    right: -150px;
}

.impact-decorative-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(rgba(22, 160, 215, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(22, 160, 215, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    opacity: 0.5;
}

/* Animación para los números (contadores) */
@keyframes count-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .impact-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #impact-stats {
        padding: 70px 0 90px;
    }
    
    .stat-value {
        font-size: 3rem;
    }
    
    .stat-unit {
        font-size: 1.1rem;
    }
    
    .impact-highlight-content {
        padding: 30px 25px;
    }
    
    .impact-highlight-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .impact-container {
        grid-template-columns: 1fr;
    }
    
    .stat-card-inner {
        padding: 30px 20px 25px;
    }
}

/* Estilos para la sección About Us (Sección 7) */
#about-us {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8fe 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.about-us-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.floating-shape.shape1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22, 160, 215, 0.08) 0%, rgba(22, 160, 215, 0) 70%);
    top: 10%;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.floating-shape.shape2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(46, 184, 192, 0.05) 0%, rgba(46, 184, 192, 0) 70%);
    bottom: 15%;
    left: -50px;
    animation: float 12s ease-in-out infinite reverse;
}

.floating-shape.shape3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(22, 73, 130, 0.06) 0%, rgba(22, 73, 130, 0) 70%);
    top: 60%;
    right: 15%;
    animation: float 10s ease-in-out infinite;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(22, 73, 130, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 73, 130, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

#about-us .container {
    position: relative;
    z-index: 5;
}

.about-us-subtitle {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenedor principal para el layout de dos columnas */
.about-us-container {
    display: flex;
    gap: 50px;
    margin: 50px 0 70px;
    flex-wrap: wrap;
}

/* Columna izquierda - Imagen */
.about-us-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-us-image-wrapper {
    position: relative;
    padding-bottom: 30px;
    padding-right: 30px;
}

.image-decoration {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 3px solid var(--primary-light);
    border-radius: 20px;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.team-image-container {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.about-us-visual:hover .team-image {
    transform: scale(1.1);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    color: white;
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(22, 160, 215, 0.3);
}

.experience-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-text {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Columna derecha - Historia y valores */
.about-us-content {
    flex: 1.2;
    min-width: 300px;
}

.about-us-story {
    text-align: left;
    margin-bottom: 40px;
}

.story-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
    text-align: left;
}

.story-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 1.5px;
}

.about-us-story p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
}

.about-us-story strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.team-highlight {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.team-stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.team-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.team-stat .stat-label {
    color: #555;
    font-size: 0.9rem;
}

/* Valores de la empresa - Grid */
.values-section {
    margin: 70px 0;
}

.values-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.values-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 1.5px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(22, 73, 130, 0.08);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(22, 160, 215, 0.1);
    border-color: rgba(22, 160, 215, 0.2);
}

.value-icon-container {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(22, 160, 215, 0.1) 0%, rgba(46, 184, 192, 0.1) 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    opacity: 0.2;
    filter: blur(10px);
    z-index: 0;
}

.value-icon-container i {
    font-size: 1.8rem;
    color: var(--primary-light);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.value-card:hover .value-icon-container i {
    transform: scale(1.2);
    color: var(--accent);
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.value-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Team section - Slider */
.team-section {
    margin: 70px 0;
}

.team-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
}

.team-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.team-members-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 10px;
}

.members-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 10px 30px;
    margin: -20px -10px -30px;
}

.members-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.member-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(22, 73, 130, 0.08);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(22, 160, 215, 0.15);
    border-color: rgba(22, 160, 215, 0.2);
}

.member-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-image {
    transform: scale(1.1);
}

.member-social {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.member-card:hover .member-social {
    opacity: 1;
    transform: translateY(0);
}

.member-social .social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-social .social-icon:hover {
    background: var(--primary-light);
    color: white;
}

.member-info {
    padding: 25px 20px;
    text-align: center;
}

.member-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.member-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.member-bio {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.team-slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-control {
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.slider-control:hover {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 8px 20px rgba(22, 160, 215, 0.3);
}

.about-us-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive styles for About Us */
@media (max-width: 992px) {
    .about-us-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .about-us-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .story-title, 
    .about-us-story p {
        text-align: center;
    }
    
    .story-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .team-stat {
        flex: 1 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    #about-us {
        padding: 70px 0;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .member-card {
        flex: 0 0 240px;
    }
    
    .member-image-container {
        height: 180px;
    }
    
    .about-us-subtitle, 
    .team-description {
        font-size: 1.1rem;
    }
    
    .story-title {
        font-size: 1.6rem;
    }
    
    .about-us-story p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .team-stat {
        flex: 1 0 calc(50% - 15px);
    }
    
    .value-card {
        padding: 25px 20px;
    }
    
    .value-icon-container {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .value-icon-container i {
        font-size: 1.5rem;
    }
    
    .value-card h4 {
        font-size: 1.2rem;
    }
    
    .values-grid {
        gap: 20px;
    }
    
    .member-card {
        flex: 0 0 85%;
    }
    
    .team-stat .stat-number {
        font-size: 2rem;
    }
}

/* ESTILOS PARA LA SECCIÓN DE CONTACTO - Diseño 2025 */
#contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f8fe 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.contact-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.contact-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.contact-shape.shape1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(22, 160, 215, 0.08) 0%, rgba(22, 160, 215, 0) 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.contact-shape.shape2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 184, 192, 0.06) 0%, rgba(46, 184, 192, 0) 70%);
    bottom: -50px;
    left: -50px;
    animation: float 9s ease-in-out infinite reverse;
}

.contact-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(22, 73, 130, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 73, 130, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

#contact-form .container {
    position: relative;
    z-index: 10;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Columna izquierda - Información de contacto */
.contact-info {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.contact-info-content {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a3c6e 100%);
    color: white;
    border-radius: 16px;
    padding: 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(10, 16, 61, 0.25);
    display: flex;
    flex-direction: column;
}

.contact-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-icon i {
    font-size: 1.8rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.contact-info-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.contact-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateX(8px);
}

.method-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover .method-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(5deg);
}

.method-icon i {
    font-size: 1.2rem;
    color: var(--accent);
}

.method-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: white;
}

.method-details p {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-social {
    margin-top: auto;
}

.contact-social h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.contact-social .social-icons {
    display: flex;
    gap: 12px;
}

.contact-social .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-social .social-icon:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.contact-social .social-icon i {
    font-size: 1rem;
}

/* Columna derecha - Formulario */
.contact-form-container {
    flex: 1.5;
    min-width: 300px;
}

.contact-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(22, 160, 215, 0.1);
    position: relative;
    overflow: hidden;
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 8px 15px rgba(22, 160, 215, 0.3);
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.contact-form:hover .form-icon {
    transform: rotate(5deg) scale(1.1);
}

.form-icon i {
    font-size: 1.3rem;
    color: white;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.input-container {
    position: relative;
    border-radius: 12px;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.input-container:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(22, 160, 215, 0.1);
    background-color: white;
}

.icon-left {
    font-size: 1rem;
    color: #aaa;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.input-container:focus-within .icon-left {
    color: var(--primary-light);
}

.input-container input,
.input-container textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 15px 15px 0;
    font-size: 1rem;
    color: #333;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.input-container input:focus,
.input-container textarea:focus {
    outline: none;
}

.textarea-container {
    min-height: 120px;
    align-items: flex-start;
    padding-top: 15px;
}

.textarea-container .icon-left {
    margin-top: 0;
}

.textarea-container textarea {
    min-height: 100px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--primary-light);
    cursor: pointer;
}

.form-check label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.form-check a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-check a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.form-response-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.form-response-message.success {
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.form-response-message.error {
    background-color: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.form-submit-btn {
    width: 100%;
    padding: 15px !important;
    margin-top: 10px;
    font-size: 1rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.form-submit-btn i {
    transition: all 0.3s ease;
}

.form-submit-btn:hover i {
    transform: translateX(5px) rotate(15deg);
}

/* Estilos responsivos para el formulario */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, 
    .contact-form-container {
        width: 100%;
    }
    
    .contact-info-content {
        height: auto;
    }
}

@media (max-width: 768px) {
    #contact-form {
        padding: 70px 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-info-content {
        padding: 30px 25px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .method-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-social .social-icons {
        justify-content: center;
    }
}

/* Efectos adicionales para formulario */
.input-container:hover {
    border-color: rgba(22, 160, 215, 0.3);
}

/* Animación de flotación para decoraciones */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Estilos para el footer */
.main-footer {
    background: linear-gradient(135deg, #0a103d 0%, #202b5d 100%);
    padding: 80px 0 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 1;
}

.main-footer .container {
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo-image {
    height: 60px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 80%;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 160px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 1.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.footer-column a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-column a:hover::before {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(46, 184, 192, 0.8);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social .social-icon:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos responsivos para el footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .main-footer {
        padding: 60px 0 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column a {
        padding-left: 0;
    }
    
    .footer-column a::before {
        display: none;
    }
}

/* Botón flotante de WhatsApp mejorado */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn i {
    font-size: 34px;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

.whatsapp-tooltip {
    position: absolute;
    right: 78px;
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    animation: fadeInTooltip 0.5s forwards;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes fadeInTooltip {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos mejorados para la sección de problemas - Versión moderna con fondo degradado */
#problems {
    background: linear-gradient(135deg, #f0f4f8 0%, #e6f0f7 100%);
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}
/* REMOVE or COMMENT OUT the old .problems-bg-image styles that made it a full background */
/*
.problems-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    overflow: hidden; 
}

.problems-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}
*/
/* Estilos para el contenedor de la imagen de la sección de problemas */
.problems-section-image {
    position: relative; /* Necesario para posicionar la imagen hija de forma absoluta */
    width: 100%; /* Ocupa el ancho disponible */
    max-width: 800px; /* Ancho máximo para la imagen, ajústalo según necesites */
    margin: 0 auto 40px auto; /* Centrado y con margen inferior */
    /* Proporción de aspecto 16:9 (alto = 9/16 * ancho = 56.25% del ancho) */
    padding-bottom: 56.25%; 
    border-radius: 12px; /* Bordes redondeados para el contenedor */
    overflow: hidden; /* Muy importante: recorta la imagen a los límites del contenedor */
    /* Sombra ajustada para una sensación más suave e integrada */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07), 0 3px 8px rgba(0, 0, 0, 0.04); 
    background-color: #e0e0e0; /* Color de fondo mientras carga la imagen o si falla */
}

.problems-section-image img {
    position: absolute; /* Se posiciona respecto al contenedor .problems-section-image */
    top: 0;
    left: 0;
    width: 100%; /* Llena el ancho del contenedor */
    height: 100%; /* Llena el alto del contenedor */
    object-fit: cover; /* Escala la imagen para mantener su aspect ratio mientras llena el contenedor. Se recortará si es necesario. */
    object-position: center; /* Centra la imagen dentro de su marco si se recorta */
    /* El border-radius y box-shadow ahora están en el contenedor .problems-section-image */
}

/* Elementos decorativos de fondo (can remain if they don't clash) */
.problems-bg-element {
    position: absolute;
    border-radius: 50%;
    z-index: 1; /* Ensure these are behind the .container's content */
}
/* Elementos decorativos de fondo */
.problems-bg-element {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.problems-bg-element.shape1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(22, 160, 215, 0.08) 0%, rgba(22, 160, 215, 0) 70%);
    top: -150px;
    right: -150px;
    animation: float 15s ease-in-out infinite;
}

.problems-bg-element.shape2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 184, 192, 0.06) 0%, rgba(46, 184, 192, 0) 70%);
    bottom: -200px;
    left: -200px;
    animation: float 18s ease-in-out infinite reverse;
}

.problems-bg-element.shape3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(106, 137, 204, 0.05) 0%, rgba(106, 137, 204, 0) 70%);
    top: 40%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

/* Patrón de puntos para dar textura */
.problems-bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(22, 160, 215, 0.1) 2px, transparent 2px),
        radial-gradient(rgba(46, 184, 192, 0.07) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 25px 25px;
    z-index: 1;
    opacity: 0.5;
}

.problems-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(240, 244, 248, 0.3) 100%);
    z-index: 1;
}

#problems .container {
    position: relative;
    z-index: 5;
}

.problems-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 60px;
    font-weight: 400;
}

/* Contenedor de tarjetas horizontales */
.problems-cards-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

/* Diseño de tarjeta horizontal con efecto de cristal */
.problem-card-horizontal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(22, 160, 215, 0.08);
    padding: 30px 25px;
    text-align: center;
}

.problem-card-horizontal:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(22, 160, 215, 0.15);
    border-color: rgba(22, 160, 215, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

/* Icono centrado en tarjeta */
.card-icon-horizontal {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(22, 160, 215, 0.3);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.problem-card-horizontal:hover .card-icon-horizontal {
    transform: rotate(10deg) scale(1.1);
}

/* Contenido de la tarjeta */
.card-content-horizontal {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content-horizontal h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.problem-card-horizontal:hover .card-content-horizontal h3 {
    color: var(--primary-light);
}

.card-content-horizontal p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Conclusión y CTA */
.problems-conclusion {
    text-align: center;
    margin-top: 60px;
}

.solution-text {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 30px;
    line-height: 1.4;
}

.highlight-elegant {
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.problems-cta {
    margin-top: 40px;
}

.secondary-cta {
    background-color: white;
    color: var(--primary-dark);
    border: 1px solid rgba(22, 160, 215, 0.3);
}

.secondary-cta:hover {
    background-color: var(--accent);
    color: white;
}

/* Animación para las tarjetas */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Aplicar retrasos escalonados para una aparición secuencial */
.reveal-card[data-delay="0.1s"] {
    transition-delay: 0.1s;
}

.reveal-card[data-delay="0.2s"] {
    transition-delay: 0.3s;
}

.reveal-card[data-delay="0.3s"] {
    transition-delay: 0.5s;
}

/* Estilos para botones de selección de plan */
.select-plan-btn {
  display: inline-block;
  position: relative;
  width: 80%;
  margin: 0 auto;
  cursor: pointer;
}

.plan-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.select-btn {
  display: block;
  width: 100%;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid #0d6efd;
  background-color: #fff;
  color: #0d6efd;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.select-btn.btn-primary {
  background-color: #0d6efd;
  color: white;
}

.select-btn.btn-dark {
  border-color: #343a40;
  color: #343a40;
}

/* Efectos de hover */
.select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Estilo cuando está seleccionado */
.plan-radio:checked + .select-btn {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.plan-radio:checked + .select-btn.btn-dark {
  background-color: #343a40;
  color: white;
  border-color: #343a40;
}

/* Efecto visual al hacer clic */
.select-btn:active {
  transform: scale(0.98);
}

/* Añadir un tick cuando está seleccionado */
.plan-radio:checked + .select-btn::before {
  content: "✓ ";
}