/* ================================
   SECCIÓN HERO - PÁGINA PRINCIPAL
   ================================ */

/* Sección Hero Base */
.hero {
    min-height: 65vh; /* Reducido de 75vh para mejor proporción */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0.5rem; /* Reducido el padding bottom */
    width: 100%;
    max-width: calc(100% - 4rem);
    position: relative;
    z-index: 2;
    min-width: 200px; /* Asegurar un ancho mínimo */
}

.hero-content {
    max-width: 600px;
    margin-bottom: 2rem;
    width: 100%; /* Asegurar que use todo el ancho disponible */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.2;
    word-wrap: break-word; /* Permitir quiebre de palabras en pantallas muy pequeñas */
}

.highlight {
    color: #3979ff;
}

.hero-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    word-wrap: break-word; /* Permitir quiebre de palabras */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: fit-content; /* Asegurar un tamaño mínimo */
}

.btn-primary {
    background: #3979ff;
    color: white;
    box-shadow: 0 4px 15px rgba(57, 121, 255, 0.3);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 121, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #3979ff;
}

.btn-secondary:hover {
    background: #3979ff;
    transform: translateY(-2px);
}

/* Estadísticas del Hero */
.hero-stats {
    position: absolute;
    top: 30%;
    left: 58%;
    transform: translateY(-50%);
    z-index: 4;
}

.stat-card {
    background: rgba(36, 42, 66, 0.85);
    border: 1px solid rgba(57, 121, 255, 0.3);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 1px 6px rgba(57, 121, 255, 0.15);
    min-width: 140px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Visualización de red */
.network-visualization {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
}

.network-visualization::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 121, 255, 0.03) 0%, rgba(57, 121, 255, 0.08) 40%, rgba(57, 121, 255, 0.15) 70%, rgba(57, 121, 255, 0.05) 100%);
    border: 1px solid rgba(57, 121, 255, 0.15);
    z-index: 1;
}

.network-visualization::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 121, 255, 0.05) 0%, rgba(57, 121, 255, 0.12) 60%, transparent 100%);
    border: 1px solid rgba(57, 121, 255, 0.2);
    z-index: 1;
}

.network-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.central-node {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4285f4 0%, #3979ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: pulse 2.5s infinite;
    box-shadow: 
        0 0 15px rgba(57, 121, 255, 0.4),
        0 0 30px rgba(57, 121, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.network-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: float 3.5s ease-in-out infinite;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(57, 121, 255, 0.2);
}

.node-1 { 
    top: 15%; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 0s; 
}

.node-2 { 
    top: 25%; 
    right: 15%; 
    animation-delay: 0.7s; 
}

.node-3 { 
    bottom: 25%; 
    right: 15%; 
    animation-delay: 1.4s; 
}

.node-4 { 
    bottom: 15%; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 2.1s; 
}

.node-5 { 
    bottom: 25%; 
    left: 15%; 
    animation-delay: 2.8s; 
}

.node-6 { 
    top: 25%; 
    left: 15%; 
    animation-delay: 3.5s; 
}

/* Badge de Soporte 24/7 */
.support-badge {
    position: absolute;
    top: 30%;
    right: 5%;
    background: rgba(36, 42, 66, 0.85);
    border: 1px solid rgba(57, 121, 255, 0.3);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 1px 6px rgba(57, 121, 255, 0.15);
    z-index: 4;
    min-width: 110px;
}

.support-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.support-text {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Iconos de características */
.features-icons {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: flex-start;
}

.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(57, 121, 255, 0.1);
    border: 1px solid rgba(57, 121, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-text {
    text-align: center;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.feature-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

.feature-icon:hover .feature-icon-circle {
    background: rgba(57, 121, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(57, 121, 255, 0.4);
}

/* ================================
   ANIMACIONES DEL HERO
   ================================ */

@keyframes pulse {
    0% {
        box-shadow: 
            0 0 15px rgba(57, 121, 255, 0.4),
            0 0 30px rgba(57, 121, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(57, 121, 255, 0.6),
            0 0 50px rgba(57, 121, 255, 0.4);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(57, 121, 255, 0.4),
            0 0 30px rgba(57, 121, 255, 0.2);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

/* ================================
   MEDIA QUERIES DEL HERO
   ================================ */

/* Media query específico para desktop (769px hacia arriba) */
@media (min-width: 769px) {
    /* Sección Hero - Diseño completo para desktop */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .hero-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 13rem 2rem 1rem;
        width: 100%;
        max-width: calc(100% - 4rem);
        position: relative;
        z-index: 2;
    }

    .hero-content {
        max-width: 600px;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        margin-top: 0;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.2rem;
        color: #b0b0b0;
        margin-bottom: 2.5rem;
        line-height: 1.6;
    }

    /* Estadísticas del hero - solo en desktop */
    .hero-stats {
        position: absolute;
        top: 30%;
        left: 58%;
        transform: translateY(-50%);
        z-index: 4;
        display: block;
    }

    /* Visualización de red - solo en desktop */
    .network-visualization {
        position: absolute;
        top: 50%;
        right: 10%;
        transform: translateY(-50%);
        width: 350px;
        height: 350px;
        display: block;
    }

    /* Soporte 24/7 badge - solo en desktop */
    .support-badge {
        position: absolute;
        top: 30%;
        right: 5%;
        background: rgba(36, 42, 66, 0.85);
        border: 1px solid rgba(57, 121, 255, 0.3);
        border-radius: 12px;
        padding: 1.2rem 1.5rem;
        text-align: center;
        backdrop-filter: blur(12px);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.25),
            0 1px 6px rgba(57, 121, 255, 0.15);
        z-index: 4;
        min-width: 110px;
        display: block;
    }

    /* Iconos de características - solo en desktop */
    .features-icons {
        display: flex;
        gap: 3rem;
        margin-top: 3rem;
        justify-content: flex-start;
    }
}

/* Media queries para tablets - ocultar elementos específicos de desktop */
@media (max-width: 768px) {
    /* Ocultar elementos decorativos del hero en tablets y móviles */
    .hero-stats,
    .network-visualization,
    .support-badge,
    .features-icons {
        display: none;
    }

    .hero {
        min-height: 50vh; 
        padding: 0.5rem 0; /* Padding vertical mínimo */
    }

    .hero-container {
        padding: 0.5rem 1rem 0.5rem; 
        max-width: 100%;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 0.5rem; 
    }

    .hero-title {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 0.8rem; 
    }

    .hero-description {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 1rem; 
    }

    .hero-buttons {
        justify-content: center;
        gap: 0.6rem;
    }
}

/* Media query específico para móviles pequeños */
@media (max-width: 480px) {
    .hero {
        min-height: 40vh; 
        padding: 0; 
    }

    .hero-container {
        padding: 0.3rem 0.8rem 0.2rem; 
        margin-top: 0.5rem; 
    }

    .hero-content {
        margin-bottom: 0.3rem; 
    }

    .hero-title {
        font-size: 1.6rem; 
        margin-bottom: 0.4rem; 
        line-height: 1.1;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 0.6rem; 
        line-height: 1.3;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 0.7rem 1.2rem; /* Botones más compactos */
        font-size: 0.9rem;
    }
    
    /* Reducir también las características */
    .features-icons {
        gap: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .feature-icon {
        align-items: center;
        text-align: center;
    }
    
    .feature-icon-circle {
        width: 35px;
        height: 35px;
        margin-bottom: 0.3rem;
    }
    
    .feature-text {
        gap: 0.1rem;
    }
    
    .feature-title {
        font-size: 0.8rem;
    }
    
    .feature-subtitle {
        font-size: 0.7rem;
    }
    
    /* Ocultar elementos decorativos para ahorrar espacio */
    .hero-stats,
    .network-visualization,
    .support-badge {
        display: none;
    }
}

/* Media query específico para tablets en orientación portrait */
@media (min-width: 641px) and (max-width: 768px) and (orientation: portrait) {
    .hero {
        min-height: 75vh;
    }

    .hero-container {
        padding: 3rem 1.5rem 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }
}

/* Media query específico para tablets en orientación landscape */
@media (min-width: 641px) and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
    }

    .hero-container {
        padding: 0.5rem 0.5rem 0.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

/* Desactivar animaciones en tablets para mejor performance */
@media (min-width: 641px) and (max-width: 768px) {
    .central-node {
        animation: none;
    }
    
    .node {
        animation: none;
    }
    
}

@media (max-width: 425px) {
    .hero {
        min-height: 38vh; /* Aún más compacto para pantallas muy pequeñas */
    }

    .hero-container {
        padding: 0.2rem 0.6rem 0.2rem; /* Padding ultra compacto */
        margin-top: 0.3rem;
    }

    .hero-title {
        font-size: 1.5rem; /* Título más pequeño */
        margin-bottom: 0.3rem;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        max-width: 240px;
    }
    
    .features-icons {
        gap: 0.6rem;
        margin-top: 0.4rem;
    }
    
    .feature-icon-circle {
        width: 30px;
        height: 30px;
    }
    
    .feature-title {
        font-size: 0.75rem;
    }
    
    .feature-subtitle {
        font-size: 0.65rem;
    }
    
    /* Ocultar elementos decorativos para maximizar espacio */
    .hero-stats,
    .network-visualization,
    .support-badge {
        display: none;
    }
}

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }


@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        min-height: 65vh;
    }

    .hero-container {
        padding: 7rem 1rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}


/* Media query específico para pantallas medianas-pequeñas (360px hacia arriba) */
@media (min-width: 360px) and (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }

    .hero-container {
        padding: 6rem 1rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Media query específico para pantallas muy pequeñas (220px - 359px) */
@media (min-width: 220px) and (max-width: 359px) {
    .hero {
        min-height: 40vh; /* Muy compacto para pantallas pequeñas */
        padding: 0.25rem 0; /* Padding mínimo */
    }

    .hero-container {
        padding: 5.5rem 1rem 0.25rem; /* Padding reducido */
    }

    .hero-title {
        font-size: 1.5rem; /* Ligeramente reducido */
        line-height: 1.1;
        margin-bottom: 0.5rem; /* Espacio mínimo */
    }

    .hero-description {
        font-size: 0.85rem; /* Ligeramente más pequeño */
        line-height: 1.3;
        margin-bottom: 0.8rem; /* Reducido */
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem; /* Gap reducido */
    }

    .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 0.7rem 1rem; /* Padding reducido */
        font-size: 0.85rem; /* Ligeramente más pequeño */
    }
}

/* Media query específico para pantallas extremadamente pequeñas (220px - 280px) */
@media (min-width: 220px) and (max-width: 280px) {
    .hero {
        min-height: 35vh; /* Muy compacto para pantallas extremadamente pequeñas */
        padding: 0.25rem 0; /* Padding mínimo */
    }

    .hero-container {
        padding: 5rem 0.4rem 0.25rem; /* Padding muy reducido */
    }

    .hero-title {
        font-size: 1.3rem; /* Más pequeño */
        line-height: 1;
        margin-bottom: 0.4rem; /* Espacio mínimo */
    }

    .hero-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.6rem; /* Muy reducido */
    }

    .hero-buttons {
        gap: 0.4rem; /* Gap mínimo */
    }

    .btn {
        max-width: 180px;
        padding: 0.6rem 0.8rem; /* Padding reducido */
        font-size: 0.8rem;
    }
}
