@import url('/shared/tokens.css');

/* ========== RESET Y ESTILOS BASE ========== */
/* Reset básico para consistencia entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Scroll suave en todo el documento */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 15px; /* Base para unidades rem */
}

/* Estilos base del body con fondo suave */
body {
    background: #f9fafb; /* Gris cálido suave */
    color: #334155; /* Gris azulado oscuro (no negro puro) */
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Fondo con gradientes radiales superpuestos */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Tres gradientes en diferentes posiciones para profundidad */
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: -2; /* Detrás del contenido pero delante del body */
    opacity: 0.6; /* Visibilidad aumentada */
}

/* ========== CLASES DE CONTENEDOR ========== */
/* Contenedor principal para centrar contenido */
.contenedor {
    max-width: 1100px; /* Ancho máximo en desktop */
    margin: 0 auto;
    padding: 0 25px; /* Padding lateral */
}

/* Contenedor más estrecho para secciones específicas */
.contenedor-estrecho {
    max-width: 900px;
}

/* ========== ESTRUCTURA DE SECCIONES ========== */
/* Clase base para todas las secciones */
.seccion {
    padding: 70px 0; /* Espaciado vertical */
    position: relative;
}

/* Cabecera de sección (título + subtítulo) */
.cabecera-seccion {
    text-align: center;
    margin-bottom: 50px; /* Separación con el contenido */
}

/* Título de sección con subrayado decorativo */
.titulo-seccion {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1e293b; /* Azul oscuro profesional */
    position: relative;
    padding-bottom: 12px; /* Espacio para el subrayado */
}

/* Línea decorativa bajo el título */
.titulo-seccion::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981); /* Degradado azul-verde */
    border-radius: 2px;
}

/* Subtítulo de sección */
.subtitulo-seccion {
    font-size: 1.05rem;
    color: #64748b; /* Gris azulado medio */
    max-width: 550px;
    margin: 0 auto;
    font-weight: 400;
}

/* ========== EFECTO TEXTO DEGRADADO ========== */
/* Aplica degradado como color de texto */
.texto-degradado {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Soporte estándar */
}

/* ========== PANTALLA DE CARGA ========== */
/* Overlay que cubre toda la pantalla durante la carga */
.pantalla-carga {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9fafb; /* Mismo fondo que el body */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de todo */
    transition: opacity 0.8s ease, visibility 0.8s ease; /* Transición suave */
}

/* Estado oculto de la pantalla de carga */
.pantalla-carga.oculto {
    opacity: 0;
    visibility: hidden;
}

/* Contenedor del contenido de carga */
.contenido-carga {
    text-align: center;
    background: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px); /* Efecto de desenfoque del fondo */
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Logo en pantalla de carga */
.logo-carga {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #3b82f6; /* Azul primario */
}

/* Parte destacada del logo (verde) */
.logo-carga .logo-destacado {
    color: #10b981; /* Verde primario */
}

/* Barra de progreso animada */
.barra-progreso-carga {
    width: 250px;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden; /* Oculta el desbordamiento de la barra interior */
    margin: 0 auto 15px;
}

/* Barra interior que se anima */
.barra-carga {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    animation: animacionCarga 2s ease-in-out infinite; /* Animación infinita */
}

/* Animación de la barra de carga */
@keyframes animacionCarga {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Texto de la pantalla de carga */
.pantalla-carga p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ========== FONDO DE PARTÍCULAS ========== */
/* Contenedor para particles.js */
.contenedor-particulas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Detrás del contenido */
    opacity: 0.4; /* Suficientemente visible pero no molesto */
    pointer-events: none; /* Permite interacción con elementos debajo */
}

/* ========== BARRA DE NAVEGACIÓN ========== */
/* Barra fija en la parte superior */
.navegacion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 1000; /* Por encima del contenido */
    transition: all 0.4s ease;
    background: rgba(249, 250, 251, 0.95); /* Blanco semitransparente */
    backdrop-filter: blur(12px); /* Efecto de vidrio esmerilado */
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

/* Contenedor interno de la navegación */
.contenedor-navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Logo en la barra de navegación */
.logo-navegacion {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

/* Icono del logo */
.icono-logo {
    color: #3b82f6;
    font-size: 1.7rem;
}

/* Parte destacada del logo (verde) */
.logo-destacado {
    color: #10b981;
}

/* Menú de navegación */
.menu-navegacion {
    display: flex;
    gap: 35px;
    align-items: center;
}

/* Enlaces de navegación */
.enlace-navegacion {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 0;
}

/* Línea decorativa bajo enlaces (aparece en hover) */
.enlace-navegacion::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
}

/* Estados hover de enlaces */
.enlace-navegacion:hover {
    color: #1e293b;
}

.enlace-navegacion:hover::after {
    width: 100%;
}

/* CTA especial en navegación */
.cta-navegacion {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.cta-navegacion:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
    color: white;
}

/* Botón hamburguesa para móvil (oculto en desktop) */
.alternar-movil {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

/* Líneas del botón hamburguesa */
.alternar-movil span {
    width: 24px;
    height: 2px;
    background: #3b82f6;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ========== SECCIÓN HERO ========== */
/* Sección principal de la página */
.hero {
    min-height: 90vh; /* Ocupa al menos 90% de la altura de la ventana */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 90px; /* Compensa la barra de navegación fija */
    padding-bottom: 150px;
    background: transparent; /* Fondo transparente para ver partículas */
}

/* Contenedor del contenido hero */
.contenedor-hero {
    text-align: center;
    max-width: 800px;
    padding: 0 25px;
    position: relative;
    z-index: 2; /* Por encima del fondo de partículas */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge animado en hero */
.insignia-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 35px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    backdrop-filter: blur(8px);
    font-size: 0.95rem;
}

/* Clase para animación de latido (usada en varios elementos) */
.latido {
    animation: latido 2s infinite;
}

/* Animación de latido (pulso suave) */
@keyframes latido {
    0% { 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
        transform: scale(1.03);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        transform: scale(1);
    }
}

/* Título principal */
.titulo-hero {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.15;
    color: #1e293b;
}

/* Líneas individuales del título */
.linea-titulo-hero {
    display: block;
    margin-bottom: 8px;
}

/* Contenedor para el texto destacado con subrayado */
.contenedor-destacado {
    position: relative;
    display: inline-block;
    padding-bottom: 20px; /* Espacio para el subrayado */
}

/* Texto con degradado en hero */
.destacado-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    font-size: 3rem;
}

/* Subrayado decorativo bajo el texto destacado */
.subrayado-destacado {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(16, 185, 129, 0.25));
    border-radius: 4px;
    z-index: 0;
}

/* Subtítulo del hero */
.subtitulo-hero {
    font-size: 1.1rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Contenedor del CTA principal */
.cta-hero {
    margin-bottom: 60px;
}

/* ========== SISTEMA DE BOTONES ========== */
/* Clase base para botones */
.boton {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 45px; /* Extremadamente redondeado */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Para efectos internos */
    border: none;
    cursor: pointer;
    outline: none;
}

/* Variante principal (azul-verde) */
.boton-principal {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

/* Variante grande */
.boton-grande {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Botón que ocupa todo el ancho disponible */
.bloque-completo {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Efecto de brillo que se mueve en hover */
.brillo-boton {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

/* Animación de flotación suave */
.flotante {
    animation: flotante 3s ease-in-out infinite;
}

@keyframes flotante {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Estados hover de botones */
.boton:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.boton:hover .brillo-boton {
    left: 100%; /* Mueve el brillo de izquierda a derecha */
}

/* Iconos dentro de botones */
.boton i {
    font-size: 1.1rem;
}

/* Texto informativo bajo botones */
.nota-hero {
    margin-top: 20px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.nota-hero i {
    color: #10b981;
    margin-right: 8px;
}

/* ========== ESTADÍSTICAS DEL HERO ========== */
/* Contenedor de estadísticas */
.estadisticas-hero {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    order: 5; /* Orden en layout flex (hero) */
}

/* Caja individual de estadística */
.estadistica {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85); /* Blanco semitransparente */
    border-radius: 15px;
    min-width: 150px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.estadistica:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Número animado (incrementa con JS) */
.numero-estadistica {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

/* Unidad (ej: %) */
.unidad-estadistica {
    font-size: 1.4rem;
    margin-left: 3px;
    color: #3b82f6;
}

/* Etiqueta descriptiva */
.etiqueta-estadistica {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== INDICADOR DE SCROLL ========== */
/* Elemento que anima para indicar que hay más contenido abajo */
.indicador-scroll-hero {
    position: relative;
    margin-top: 60px;
    margin-bottom: 80px;
    text-align: center;
    z-index: 10;
    order: 6; /* Último elemento en layout flex del hero */
    width: 100%;
}

/* Representación de un ratón */
.raton {
    width: 28px;
    height: 48px;
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

/* Rueda del ratón (animada) */
.rueda {
    width: 5px;
    height: 10px;
    background: linear-gradient(180deg, #3b82f6, #10b981);
    border-radius: 2px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    animation: ruedaScroll 2s infinite; /* Animación continua */
}

/* Animación de la rueda del ratón */
@keyframes ruedaScroll {
    0% { top: 12px; opacity: 1; }
    100% { top: 32px; opacity: 0; }
}

/* Texto del indicador */
.indicador-scroll-hero p {
    color: #64748b;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

/* ========== TARJETAS (SECCIÓN PROBLEMA) ========== */
/* Grid de tarjetas responsivo */
.cuadricula-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Responsivo */
    gap: 25px;
}

/* Tarjeta individual */
.tarjeta {
    background: white;
    border-radius: 18px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Icono de tarjeta */
.icono-tarjeta {
    margin-bottom: 20px;
}

/* Círculo que contiene el icono */
.circulo-icono {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #3b82f6;
}

/* Título de tarjeta */
.titulo-tarjeta {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1e293b;
    font-weight: 700;
}

/* Texto de tarjeta */
.texto-tarjeta {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== SECCIONES OSCURAS ========== */
/* Para secciones con fondo ligeramente diferente */
.seccion-oscura {
    background: rgba(241, 245, 249, 0.7);
    border-top: 1px solid rgba(226, 232, 240, 0.3);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

/* Variante para sección de contacto */
.seccion-contacto {
    background: rgba(241, 245, 249, 0.5) !important;
}

/* ========== COMPARACIÓN ANTES/DESPUÉS ========== */
/* Contenedor flex para comparación lado a lado */
.comparacion {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

/* Columna individual (antes o después) */
.columna-comparacion {
    flex: 1;
    background: white;
    border-radius: 18px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

/* Cabecera de columna (título + icono) */
.cabecera-comparacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* Título de columna */
.titulo-comparacion {
    font-size: 1.6rem;
    font-weight: 700;
}

/* Columna "antes" (rojo) */
.titulo-comparacion-antes {
    color: #ef4444 !important;
}

/* Columna "después" (verde) */
.titulo-comparacion-despues {
    color: #10b981;
}

/* Icono de columna (✓ o ✗) */
.icono-comparacion {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Estilos específicos para columna "antes" */
.columna-comparacion:first-child .icono-comparacion {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Estilos específicos para columna "después" */
.columna-comparacion:last-child .icono-comparacion {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Lista de items de comparación */
.lista-comparacion {
    list-style: none;
}

.lista-comparacion li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Iconos de lista */
.lista-comparacion li i {
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Iconos rojos para columna "antes" */
.columna-comparacion:first-child .lista-comparacion li i {
    color: #ef4444 !important;
}

/* Iconos verdes para columna "después" */
.columna-comparacion:last-child .lista-comparacion li i {
    color: #10b981;
}

/* Divisor central entre columnas */
.divisor-comparacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
}

/* Línea vertical divisoria */
.linea-divisor {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #10b981);
    border-radius: 2px;
}

/* Icono en el divisor (flecha animada) */
.icono-divisor {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin: 15px 0;
    animation: flotante 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.25);
}

/* ========== PROCESO PASO A PASO ========== */
/* Contenedor del proceso con línea conectadora */
.proceso {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

/* Línea que conecta los pasos (solo visible en desktop) */
.linea-proceso {
    position: absolute;
    top: 50px;
    left: 40px;
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6); /* Degradado azul-púrpura */
    z-index: -1;
    border-radius: 2px;
}

/* Paso individual del proceso */
.paso-proceso {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 50px;
    position: relative;
    padding-right: 50px; /* Espacio para la flecha */
}

/* Número circular del paso */
.numero-paso {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    border: 4px solid white; /* Borde blanco para separar del fondo */
    position: relative;
    z-index: 2;
}

/* Glow exterior del número */
.numero-paso::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0.4;
    z-index: -1;
}

/* Contenido del paso (título + descripción) */
.contenido-paso {
    flex: 1;
    padding-top: 15px;
}

.contenido-paso h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #1e293b;
    font-weight: 700;
}

.contenido-paso p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Flecha conectadora entre pasos (solo desktop) */
.conector-paso {
    position: absolute;
    right: 0;
    top: 25px;
    color: #3b82f6;
    font-size: 1.4rem;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* ========== SECCIÓN DESTACADA ========== */
/* Para secciones con fondo especial (ej: Qué incluye) */
.seccion-destacada {
    background: transparent !important; /* Fondo transparente para ver partículas */
    border-top: 1px solid rgba(226, 232, 240, 0.3);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

/* ========== CARACTERÍSTICAS (QUÉ INCLUYE) ========== */
/* Grid de características responsivo */
.cuadricula-caracteristicas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Característica individual */
.caracteristica {
    background: transparent !important; /* Fondo transparente */
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
    min-height: 130px; /* Altura mínima consistente */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px); /* Efecto de vidrio esmerilado */
}

/* Fondo degradado semitransparente para todas las características */
.caracteristica::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15), 
        rgba(16, 185, 129, 0.15));
    opacity: 0.7; /* Opacidad por defecto */
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Estados hover */
.caracteristica:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.caracteristica:hover::before {
    opacity: 0.9; /* Intensifica el fondo en hover */
}

/* Asegura que el contenido esté por encima del fondo */
.caracteristica > * {
    position: relative;
    z-index: 1;
}

/* Icono de característica */
.icono-caracteristica {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 5px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Contenido de característica (texto) */
.contenido-caracteristica {
    flex: 1;
}

.titulo-caracteristica {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
}

.descripcion-caracteristica {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Característica especial (garantía) - hereda todos los estilos base */
.caracteristica-garantia {
    /* Sin estilos especiales - usa los mismos que las demás */
}

/* ========== SECCIÓN SOBRE MÍ ========== */
/* Layout de dos columnas (texto + imagen) */
.sobre-mi {
    display: flex;
    gap: 50px;
    align-items: center;
}

/* Columna de texto */
.contenido-sobre-mi {
    flex: 1;
}

/* Grupo de párrafos */
.grupo-texto-sobre-mi {
    margin: 25px 0;
}

/* Párrafos individuales */
.texto-sobre-mi {
    margin-bottom: 18px;
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

/* Texto en negrita con color especial */
.texto-sobre-mi strong {
    color: #3b82f6;
    font-weight: 600;
}

/* Firma al final */
.firma-sobre-mi {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    color: #475569;
    font-size: 1rem;
    font-style: italic;
}

/* Icono de la firma */
.icono-firma {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.3rem;
}

/* Columna de imagen */
.imagen-sobre-mi {
    flex: 0 0 280px; /* Ancho fijo */
}

/* Contenedor para foto de perfil */
.contenedor-perfil {
    position: relative;
    width: 280px;
    height: 280px;
}

/* Foto de perfil (si se añade) */
.foto-perfil {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Marcador de posición para foto (placeholder) */
.marcador-foto-perfil {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 4rem;
    position: relative;
    z-index: 1;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Decoración giratoria alrededor de la foto */
.decoracion-perfil {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    z-index: 0;
    animation: rotar 20s linear infinite; /* Rotación continua lenta */
}

/* Animación de rotación */
@keyframes rotar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== SECCIÓN DE CONTACTO ========== */
/* Grid de opciones de contacto */
.opciones-contacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Opción individual de contacto */
.opcion-contacto {
    background: white;
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.opcion-contacto:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
}

/* Icono grande de contacto */
.icono-contacto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #3b82f6;
}

.opcion-contacto h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1e293b;
    font-weight: 700;
}

.opcion-contacto p {
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enlace de contacto */
.enlace-contacto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.enlace-contacto:hover {
    gap: 12px; /* Aumenta espacio entre texto e icono */
    background: rgba(59, 130, 246, 0.15);
    color: #10b981; /* Cambia a verde en hover */
}

/* ========== PIE DE PÁGINA ========== */
.pie-pagina {
    background: #f1f5f9; /* Fondo gris muy claro */
    padding: 60px 0 30px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

/* Grid de 3 columnas en desktop */
.contenido-pie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

/* Logo en footer */
.contenedor-logo-pie {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icono-logo-pie {
    font-size: 2.2rem;
    color: #3b82f6;
}

.eslogan-pie {
    color: #475569;
    font-size: 1rem;
    margin-top: 8px;
}

.mision-pie {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Columna de enlaces rápidos */
.enlaces-pie {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enlaces-pie h4 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.enlaces-pie a {
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.enlaces-pie a:hover {
    color: #3b82f6;
}

/* CTA en footer */
.cta-pie h4 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Botón pequeño variante */
.boton-pequeno {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Copyright y texto legal */
.copyleft-pie {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    color: #64748b;
    font-size: 0.85rem;
}

.copyleft-pie p:first-child {
    margin-bottom: 10px;
}

/* ========== BOTÓN VOLVER ARRIBA ========== */
/* Botón fijo en esquina inferior derecha */
.volver-arriba {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Easing personalizado */
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Estado visible (aparece al hacer scroll) */
.volver-arriba.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.volver-arriba:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-5px) scale(1.1);
    border-color: #3b82f6;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* Efecto de pulso en hover */
@keyframes pulso-boton {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.volver-arriba.visible:hover {
    animation: pulso-boton 2s infinite;
}

/* ========== BOTÓN HOME (AÑADIDO) ========== */
/* Botón fijo para volver a zeroruido.es - AÑADIDO POR SOLICITUD */
.boton-home {
    position: fixed;
    bottom: 90px; /* Por encima del botón "volver arriba" */
    left: 30px; /* Esquina inferior izquierda */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #10b981; /* Verde en lugar de azul */
    border: 2px solid rgba(16, 185, 129, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999; /* Debajo del botón "volver arriba" */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.boton-home:hover {
    background: #10b981;
    color: white;
    transform: translateY(-3px) scale(1.1);
    border-color: #10b981;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* ========== ANIMACIONES DE REVELADO (SCROLL) ========== */
/* Clase base para elementos que se revelan al hacer scroll */
.revelar {
    opacity: 0;
    transform: translateY(30px); /* Desplazado hacia abajo inicialmente */
    transition: all 0.6s ease;
}

/* Clase que se añade cuando el elemento entra en vista */
.revelar.activo {
    opacity: 1;
    transform: translateY(0);
}

/* ========== PUNTOS DE NAVEGACIÓN LATERAL ========== */
/* Contenedor fijo a la derecha */
.puntos-navegacion {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* Punto individual */
.punto-navegacion {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.4); /* Azul semitransparente */
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
}

.punto-navegacion:hover {
    background: #3b82f6;
    transform: scale(1.3);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Punto activo (corresponde a sección visible) */
.punto-navegacion.activo {
    background: #10b981; /* Verde cuando está activo */
    border-color: rgba(16, 185, 129, 0.5);
    transform: scale(1.3);
}

/* Etiqueta que aparece al hacer hover */
.etiqueta-punto {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(10px);
}

/* Muestra la etiqueta en hover */
.punto-navegacion:hover .etiqueta-punto {
    opacity: 1;
    visibility: visible;
    right: 20px;
}

/* Color de etiqueta para punto activo */
.punto-navegacion.activo .etiqueta-punto {
    color: #10b981;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Breakpoint: Tablet (992px) */
@media (max-width: 992px) {
    .titulo-seccion {
        font-size: 1.9rem;
    }
    
    .titulo-hero {
        font-size: 2.3rem;
    }
    
    .destacado-hero {
        font-size: 2.5rem;
    }
    
    /* Cambia comparación a columna única */
    .comparacion {
        flex-direction: column;
        gap: 40px;
    }
    
    /* Reorienta el divisor */
    .divisor-comparacion {
        flex-direction: row;
        width: 100%;
        height: 80px;
        margin: 0;
    }
    
    .linea-divisor {
        width: 100%;
        height: 2px;
    }
    
    .icono-divisor {
        position: absolute;
        margin: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Oculta línea y flechas del proceso en tablet */
    .linea-proceso {
        display: none;
    }
    
    .conector-paso {
        display: none;
    }
    
    /* Cambia sobre mí a columna única */
    .sobre-mi {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .imagen-sobre-mi {
        order: -1; /* Imagen arriba en móvil */
    }
    
    .contenedor-perfil {
        width: 220px;
        height: 220px;
    }
    
    .decoracion-perfil {
        width: 250px;
        height: 250px;
    }
}

/* Breakpoint: Móvil grande (768px) */
@media (max-width: 768px) {
    .seccion {
        padding: 60px 0;
    }
    
    .contenedor {
        padding: 0 20px;
    }
    
    .titulo-seccion {
        font-size: 1.7rem;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 100px;
        min-height: auto; /* Elimina altura mínima fija */
    }
    
    .titulo-hero {
        font-size: 2rem;
    }
    
    .destacado-hero {
        font-size: 2.2rem;
    }
    
    .subrayado-destacado {
        bottom: 10px;
        height: 6px;
    }
    
    .subtitulo-hero {
        font-size: 1rem;
    }
    
    /* Estadísticas en columna */
    .estadisticas-hero {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .estadistica {
        min-width: 200px;
        padding: 15px;
    }
    
    .navegacion {
        padding: 15px 0;
    }
    
    /* Menú móvil (hamburguesa) */
    .menu-navegacion {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(248, 250, 252, 0.98);
        flex-direction: column;
        padding: 25px 20px;
        gap: 20px;
        transform: translateY(-100%); /* Oculto por defecto */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }
    
    /* Menú activo (visible) */
    .menu-navegacion.activo {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Muestra botón hamburguesa */
    .alternar-movil {
        display: flex;
        z-index: 1000;
    }
    
    /* Transforma hamburguesa en X */
    .alternar-movil.activo span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .alternar-movil.activo span:nth-child(2) {
        opacity: 0;
    }
    
    .alternar-movil.activo span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Ajustes de tarjetas de precio */
    .tarjeta-precio {
        padding: 30px 25px;
    }
    
    .numero-precio {
        font-size: 3.2rem;
    }
    
    /* Proceso en columna */
    .paso-proceso {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-right: 0;
    }
    
    .contenido-paso {
        padding-top: 0;
    }
    
    /* Características en columna única */
    .cuadricula-caracteristicas {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .caracteristica {
        padding: 20px;
        gap: 15px;
        min-height: 110px;
    }
    
    .icono-caracteristica {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .titulo-caracteristica {
        font-size: 1.1rem;
    }
    
    .descripcion-caracteristica {
        font-size: 0.85rem;
    }
    
    /* Tarjetas en columna única */
    .cuadricula-tarjetas {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tarjeta {
        padding: 25px 20px;
    }
    
    /* Opciones de contacto en columna */
    .opciones-contacto {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .opcion-contacto {
        padding: 25px 20px;
    }
    
    /* Botones flotantes más pequeños */
    .volver-arriba {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .boton-home {
        bottom: 75px; /* Ajustado para móvil */
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .indicador-scroll-hero {
        margin-top: 40px;
        margin-bottom: 60px;
    }
    
    /* Oculta puntos de navegación en móvil */
    .puntos-navegacion {
        display: none;
    }
}

/* Breakpoint: Móvil pequeño (480px) */
@media (max-width: 480px) {
    .titulo-seccion {
        font-size: 1.5rem;
    }
    
    .titulo-hero {
        font-size: 1.8rem;
    }
    
    .destacado-hero {
        font-size: 2rem;
    }
    
    .subtitulo-hero {
        font-size: 0.95rem;
    }
    
    /* Botones más pequeños */
    .boton {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .boton-grande {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .numero-estadistica {
        font-size: 2.2rem;
    }
    
    .numero-precio {
        font-size: 2.8rem;
    }
    
    /* Foto de perfil más pequeña */
    .contenedor-perfil {
        width: 180px;
        height: 180px;
    }
    
    .decoracion-perfil {
        width: 210px;
        height: 210px;
    }
    
    .indicador-scroll-hero {
        margin-top: 30px;
        margin-bottom: 50px;
    }
    
    /* Botones flotantes aún más pequeños */
    .volver-arriba {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .boton-home {
        bottom: 65px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========== EFECTO ONDA EN BOTONES ========== */
.onda {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: scale(0);
    animation: animacion-onda 0.6s linear;
    pointer-events: none;
}

@keyframes animacion-onda {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== ACCESIBILIDAD ========== */
/* Focus visible para navegación por teclado */
:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Respeta la preferencia del usuario de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; z-index:10000; padding:12px 20px; background:#6366f1; color:#fff; font-size:14px; font-weight:700; border-radius:0 0 8px 0; text-decoration:none; }
.skip-link:focus { position:fixed; left:0; top:0; width:auto; height:auto; overflow:visible; }