/* ============================================
   HERO SECTION - DIAMANTES + LOGOS GRANDES
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Fondo azul sólido */
    background-color: #1a3a8f;

    /* Patrón de diamantes SVG sobre el fondo */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpolygon points='36,4 68,36 36,68 4,36' fill='none' stroke='rgba(255,255,255,0.10)' stroke-width='1.2'/%3E%3C/svg%3E");
    background-size: 72px 72px;
}

/* ============================================
   LOGOS - Posicionados a los lados (PC)
   ============================================ */

.background-glass-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    pointer-events: none;
    z-index: 0;
}

/* Logos macizos - sin glass, con brillo y buena opacidad */
.background-glass-logo {
    width: 500px;
    height: 500px;
    object-fit: contain;

    /* Sin efectos glass */
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(255,255,255,0.25));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    background: transparent;
    border: none;

    /* Opacidad maciza - claramente visible */
    opacity: 0.45;

    /* Animación flotante suave */
    animation: hero-float 9s ease-in-out infinite;
}

.background-glass-logo:nth-child(1) {
    animation-delay: 0s;
}

.background-glass-logo:nth-child(2) {
    animation-delay: -4.5s;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

/* ============================================
   CONTENIDO CENTRAL - Glass effect
   ============================================ */

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    color: white;

    /* Glass sobre el texto */
    background: rgba(15, 30, 100, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 48px 40px;

    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TABLET (ambos logos, más pequeños)
   ============================================ */
@media (max-width: 1100px) {
    .background-glass-logo {
        width: 300px;
        height: 300px;
        opacity: 0.35;
    }

    .hero .container {
        max-width: 580px;
    }
}

/* ============================================
   MÓVIL PORTRAIT: solo logo UAS centrado
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 480px;
        padding: 60px 0;
    }

    /* Ocultar logo FCA */
    .background-glass-logo:nth-child(1) {
        display: none;
    }

    /* UAS centrado y grande detrás del texto */
    .background-glass-container {
        justify-content: center;
    }

    .background-glass-logo:nth-child(2) {
        width: 260px;
        height: 260px;
        opacity: 0.18;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        animation: mobile-float 10s ease-in-out infinite;
    }

    @keyframes mobile-float {
        0%, 100% { transform: translate(-50%, -50%) scale(1); }
        50%       { transform: translate(-50%, -53%) scale(1.04); }
    }

    .hero .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .hero-content {
        padding: 32px 20px;
        border-radius: 16px;
    }
}

/* ============================================
   MÓVIL LANDSCAPE: ambos logos pequeños
   ============================================ */
@media (max-width: 900px) and (orientation: landscape) {
    .background-glass-logo:nth-child(1) {
        display: block;
    }

    .background-glass-logo {
        width: 160px !important;
        height: 160px !important;
        opacity: 0.3;
    }

    .hero {
        min-height: 320px;
        padding: 40px 0;
    }
}

/* ============================================
   MÓVILES MUY PEQUEÑOS (<380px)
   ============================================ */
@media (max-width: 380px) {
    .background-glass-logo:nth-child(2) {
        width: 200px;
        height: 200px;
    }

    .hero-content {
        padding: 24px 16px;
    }
}
