/* Estilos Sección Hero General */
.hero {
    position: relative;
    min-height: 85vh; /* Altura mínima flexible */
    max-height: 950px; /* Límite superior */
    height: 90vh; /* Altura preferida */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.8) 0%, rgba(var(--accent-rgb),0.8) 100%); /* Fondo fallback/base */
    color: white; /* Color de texto por defecto */
    z-index: 1;
    margin-bottom: 0; /* Quitar margen si hero-simple lo añadía */
}

/* Hero con Slider */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.95);
    transform: scale(1);
    transition: transform 6s ease-out;
    background-color: #333; /* Fallback si la imagen no carga */
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content { /* Contenedor del texto en el slider */
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.8s ease, opacity 0.8s ease;
    transform: translateY(10px);
    opacity: 0;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

/* Elementos dentro de .hero-content (slider) */
.hero-content .hero-label { /* Badge/Label */
    /* Estilos base de typography.css */
    transform: translateY(-30px);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-content h2 { /* Título */
    /* Estilos base de typography.css */
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-content p { /* Descripción */
    /* Estilos base de typography.css */
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-buttons { /* Contenedor de botones */
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

/* Controles del Slider */
.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.hero-prev, .hero-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.hero-prev:hover, .hero-next:hover {
    background-color: white;
    color: var(--primary-color);
}

.hero-dots {
    display: flex;
    margin: 0 20px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: white;
    transform: scale(1.2);
}


/* Hero Simple (con imagen lateral y formas flotantes) */
.hero-simple {
    position: relative;
    min-height: 100vh; /* Mantener altura mínima de pantalla completa */
    height: auto; /* Cambiado de 100vh a auto para permitir expansión */
    display: flex;
    align-items: center;
    width: 100%;
    /* Hereda estilos base de .hero pero sobreescribe el fondo */
    background: linear-gradient(145deg, #08192b 0%, #0d2d4a 100%);
    /* margin-bottom: 80px; */ /* Quitado, puede ser global para secciones */
    overflow: visible; /* Cambiado de hidden a visible para evitar cortes */
}

.hero-bg { /* Fondo con patrones y gradientes para hero-simple */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cambiado de 100vh a 100% para adaptarse a la altura del padre */
    z-index: 0; /* Cambiar de -1 a 0 para estar detrás del hero pero visible */
    /* background-image: 
        url('data:image/svg+xml;...'), /* SVG Pattern */
        /* radial-gradient(...), */
        /* radial-gradient(...); */
    /* El SVG es muy largo, considerar ponerlo en un archivo o quitarlo si no es esencial */
    background: radial-gradient(circle at 30% 40%, rgba(0, 86, 179, 0.15) 0%, transparent 70%),
                radial-gradient(circle at 70% 60%, rgba(0, 166, 81, 0.12) 0%, transparent 70%);
    opacity: 0.9;
    animation: pulseBg 15s infinite alternate ease-in-out;
}

.hero-content-simple { /* Grid para texto e imagen */
    position: relative;
    z-index: 5; /* Aumentado para asegurar que esté por encima del fondo */
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding: 80px 0; /* Aumentado de 60px a 80px para más espacio vertical */
    align-items: center;
    width: 100%; /* O usar .container */
    max-width: 1200px; /* Limitar ancho si no usa container */
    margin: 0 auto; /* Centrar si no usa container */
    overflow: visible;
}

.hero-text { /* Columna de texto */
    animation: fadeSlideIn 1.2s ease forwards;
    width: 100%;
    overflow: visible;
}

.hero-visual { /* Columna de imagen */
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeSlideUp 1.2s 0.5s ease forwards;
}

.hero-visual-container { /* Contenedor 3D */
    position: relative;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateY(-12deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image { /* La imagen principal */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease;
    filter: brightness(1.05) contrast(1.05);
    transform: translateZ(50px);
}

.hero-shape { /* Formas abstractas de fondo */
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.15));
    pointer-events: none;
    z-index: -1; /* Detrás de la imagen */
}

.shape-1 {
    width: 280px; height: 280px;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    top: -80px; left: -100px; opacity: 0.5;
    animation: floatShape 12s infinite alternate ease-in-out;
}

.shape-2 {
    width: 220px; height: 220px;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    bottom: -70px; right: -80px; opacity: 0.5;
    animation: floatShape 10s infinite alternate-reverse ease-in-out;
}

.shape-3 {
    width: 180px; height: 180px;
    background: linear-gradient(45deg, #00d2ff, transparent); /* Color específico */
    top: 35%; right: -50px; opacity: 0.5;
    animation: floatShape 14s infinite alternate ease-in-out;
}

.floating-icon { /* Iconos flotantes sobre la imagen */
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    transform: translateZ(30px);
}

.floating-icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.icon-1 { top: 15%; left: -30px; animation: floatIcon 6s ease-in-out infinite; }
.icon-2 { bottom: 20%; left: 10%; animation: floatIcon 8s ease-in-out infinite 1s; }
.icon-3 { top: 25%; right: -20px; animation: floatIcon 7s ease-in-out infinite 0.5s; }

.hero-visual-container:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}
.hero-visual-container:hover .floating-icon {
    transform: translateZ(30px) scale(1.2);
}
.hero-visual-container:hover .floating-icon i {
    color: var(--accent-color);
    transform: rotateY(360deg);
    transition: all 0.8s ease;
}
.hero-visual-container:hover .hero-image {
    transform: translateZ(80px);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.3);
}


/* Hero Fullscreen (Sin imagen lateral, solo texto y fondo) */
.hero-content-full { /* Modificador para .hero */
    /* Hereda de .hero */
    /* Sobreescribir grid si se aplica a .hero-content-simple */
    grid-template-columns: 1fr !important; /* Forzar una columna */
    text-align: center; /* Centrar contenido */
    padding: 100px 0; /* Más padding vertical */
}

.hero-content-full .hero-text { /* Contenedor texto centrado */
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-content-full .hero-title {
    /* Hereda de typography.css */
    color: var(--white); /* Añadido para texto blanco */
    font-size: 5rem; /* Más grande */
    margin-bottom: 35px;
}

.hero-content-full .hero-description {
    /* Hereda de typography.css */
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.4rem; /* Más grande */
}

.hero-features { /* Iconos/características debajo del texto */
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
    flex-wrap: wrap; /* Permitir que pasen a la siguiente línea */
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* min-width: 180px; */ /* Comentado o eliminado ya que flex: 1 lo manejará */
    flex: 1; /* Añadido para igualar ancho */
    text-align: center;
}

.hero-feature:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hero-feature i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 12px;
    transition: all 0.4s ease;
}

.hero-feature:hover i {
    transform: rotateY(180deg);
}

.hero-feature span {
    font-weight: 600;
    color: white;
    font-size: 1.05rem;
}

.hero-content-full .hero-cta { /* Botones en hero full */
    display: flex; /* Usa flexbox */
    justify-content: center; /* Centra los botones */
    gap: 20px; /* Espacio entre botones */
    margin-top: 60px;
    flex-wrap: wrap; /* Permite que los botones bajen en pantallas pequeñas */
}

/* Asegurar que los botones en .hero-cta siempre tengan estilo de botón */
.hero-cta a.btn-primary:not(.btn),
.hero-cta a.btn-outline:not(.btn) {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    text-align: center;
    text-decoration: none;
}

.hero-cta a.btn-primary:not(.btn) {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.hero-cta a.btn-primary:not(.btn):hover {
    background-color: var(--primary-color-dark, #004a99);
    border-color: var(--primary-color-dark, #004a99);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-cta a.btn-outline:not(.btn) {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.hero-cta a.btn-outline:not(.btn):hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Decoraciones de fondo para Hero Full */
.hero-decoration {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shape { /* Formas abstractas */
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatShapeSlow 20s infinite alternate ease-in-out;
}

.shape-4 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4), transparent 70%);
    top: -100px; left: -100px;
}

.shape-5 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4), transparent 70%);
    bottom: -50px; right: -100px;
    animation-delay: 5s;
}

/* Nota: Las animaciones base están en base.css */
/* Nota: Los estilos responsive irán a responsive.css */ 