/* ==========================================================================
   ESTILOS PARA ENCABEZADO (HERO SECTION) REUTILIZABLE
   ========================================================================== */

/* Variables específicas para hero sections - USANDO COLORES DE BODY.CSS */
:root {
    --hero-overlay: linear-gradient(135deg, rgba(0, 168, 255, 0.4), rgba(76, 209, 55, 0.3));
    --hero-text-light: white;
    --hero-text-light-secondary: rgba(255, 255, 255, 0.9);
    --hero-text-dark: #2c3e50;
    --hero-text-dark-secondary: #7f8c8d;
    --hero-stats-bg: rgba(0, 0, 0, 0.4);
    --hero-stats-border: rgba(255, 255, 255, 0.25);
    --hero-stats-bg-hover: rgba(0, 0, 0, 0.6);
    --hero-stats-shadow: rgba(0, 0, 0, 0.3);
    /* Variables actualizadas para coincidir con body.css */
    --cloud-primary: #00a8ff;
    --cloud-secondary: #4cd137;
    --cloud-accent: #9c88ff;
    --saas-color: #9c27b0;
    --hardware-color: #ff9800;
    --managed-color: #4caf50;
    --light-bg: #f8f9fa;
    --light-border: #dfe6e9;
    --light-shadow: rgba(108, 117, 125, 0.1);
    --light-hover-shadow: rgba(108, 117, 125, 0.2);
}

/* Hero Section Base - Clase reutilizable */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--hero-text-light);
    background-color: #0a1f44; /* Color de respaldo para .index-theme */
}

/* Variante con imagen de fondo */
.hero-section.with-bg-image {
    background: center/cover no-repeat fixed;
    position: relative;
}

/* Efecto parallax para hero */
.hero-section.with-parallax {
    background-attachment: fixed;
    background-position: center center !important;
}

/* Contenido del Hero */
.hero-content {
    max-width: 1200px;
    padding: 4rem 2rem;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    font-weight: 800;
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
    position: relative;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

/* Estadísticas del Hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 3rem 0;
    position: relative;
    z-index: 3;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    padding: 1.2rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a8ff, #fafafc);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: translateX(0);
}

.stat-item:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 10px 20px rgba(0, 168, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-item i {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    /* Color blanco para todos los iconos sin sombras */
    color: #ffffff;
}

.stat-item:hover i {
    transform: scale(1.2) rotate(5deg);
    /* Sin efectos de sombra o brillo en hover */
}

.stat-item span {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Eliminamos todas las sombras y efectos de brillo de los iconos */
.stat-item:nth-child(1) i,
.stat-item:nth-child(2) i,
.stat-item:nth-child(3) i,
.stat-item:nth-child(4) i {
    color: #ffffff;
    /* Sin text-shadow ni otros efectos */
}

/* Botones de acción en Hero */
.hero-actions {
    margin-top: 3.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.hero-button {
    padding: 1.2rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    min-width: 220px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-button:hover::before {
    opacity: 1;
}

.hero-button.primary {
    background: linear-gradient(135deg, #00a8ff, #0097e6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-button.primary:hover {
    background: linear-gradient(135deg, #0097e6, #00a8ff);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.5), 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.hero-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.05);
    border-color: white;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.hero-button i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.hero-button:hover i {
    transform: translateX(8px);
}

/* Animación para el contenido del hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elementos decorativos tecnológicos */
.index-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.2;
}

.floating-tech-element {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.15;
    animation: floatElement 25s infinite linear;
    filter: blur(0.5px);
}

.floating-tech-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-tech-element:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: -7s;
}

.floating-tech-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -14s;
}

.floating-tech-element:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: -21s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(0) translateX(40px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(30px) translateX(20px) rotate(270deg);
        opacity: 0.1;
    }
}

/* Efecto de brillo sutil en bordes */
.hero-section.index-theme::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 168, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(76, 209, 55, 0.1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Clases utilitarias para textos */
.text-primary { color: #00a8ff !important; }
.text-secondary { color: #4cd137 !important; }
.text-accent { color: #9c88ff !important; }
.text-saas { color: #9c27b0 !important; }
.text-hardware { color: #ff9800 !important; }
.text-managed { color: #4caf50 !important; }

/* Responsive Design para Hero Section */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-section.index-theme.with-bg-image {
        background-attachment: scroll;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .hero-section {
        min-height: 80vh;
        background-attachment: scroll !important;
    }

    .stat-item {
        min-width: 160px;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-content {
        padding: 3rem 1.5rem;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .stat-item {
        width: calc(50% - 1rem);
        min-width: auto;
        max-width: 180px;
        padding: 0.8rem 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
    }

    .floating-tech-element {
        opacity: 0.1;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        padding: 0.3rem 0.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0.6rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .stat-item {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem;
    }

    .stat-item span {
        font-size: 0.95rem;
    }

    .hero-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-width: auto;
    }

    .floating-tech-element {
        display: none;
    }
}
