/* ========== BASE GENERAL ========== */

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111111;
    color: #ffffff;
    letter-spacing: 0.03rem;
    line-height: 1.6rem;
    scroll-behavior: smooth;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

/* ========== RESET & VARIABLES ========== */
:root {
    --negro: #0c0c0c;
    --gris: #bbbbbb;
    --blanco: #f5f5f5;
    --violeta: #B388EB;
    --azul: #6ECEDA;
    --degradado: linear-gradient(135deg, var(--violeta), var(--azul));
}

  
/* ========== HERO ========== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 3rem 5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 0 40px rgba(255, 199, 54, 0.05);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 10rem 2rem 5rem;
}

.btn-volver {
    display: inline-block;
    font-size: 1.2rem;
    color: #A8B2C1;
    margin-bottom: 5rem;
    transition: color 0.3s;
}

.btn-volver:hover {
    color: #FFC736;
}

.proyecto-titulo {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.empresa {
    font-size: 1.2rem;
    color: #A8B2C1;
    margin-bottom: 3rem;
}

.descripcion {
    font-size: 1.3rem;
    letter-spacing: 0.05rem;
    line-height: 2rem;
    margin-bottom: 5rem;
    color: #A8B2C1;
}

.botones .botones__1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
}

.botones__1__1, .botones__1__2 {
    width: 38%;
    text-align: center;
    padding: 1.4rem;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    color: #111111;
    background: #FFC736;
    box-shadow: 0 6px 18px rgba(255, 199, 54, 0.2);
}

.botones__1__1:hover,
.botones__1__2:hover {
    box-shadow: 0 10px 25px rgba(255, 199, 54, 0.3);
}

.btn-outline {
    background: transparent;
    color: #FFC736;
    border: 2px solid #FFC736;
}

.btn-outline:hover {
    background: #FFC736;
    color: #111111;
}

  
/* ========== GALERÍA SLIDER ========== */

.galeria {
    padding: 3rem 0;
}

.galeria .container h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 5rem;
}
  
.slider {
    display: flex;
    gap: 2rem;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    margin: 0 6rem;
}
  
.slider::-webkit-scrollbar {
    display: none;
}
  
.slider img {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}
  
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--blanco);
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 10%;
    margin: 0 2rem;
}
  
.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
  
.slider-btn.prev {
    left: 0.5rem;
}
  
.slider-btn.next {
    right: 0.5rem;
}
  
/* ========== SECCIONES GENERALES ========== */
  
.cta-final {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5rem 3rem;
    border-radius: 2rem 2rem 0 0;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 199, 54, 0.05);
    position: relative;
    overflow: hidden;
    isolation: isolate; /* ← importante para ::before */
}

/* 🎯 Glow decorativo animado */
.cta-final::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 199, 54, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: glowPulse 12s ease-in-out infinite alternate;
    pointer-events: none;
}

/* 🧱 Asegura que el contenido esté por encima */
.cta-final > * {
    position: relative;
    z-index: 1;
}

.cta-final .container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.cta-final .container p {
    font-size: 1.3rem;
    line-height: 1.4;
    color: #A8B2C1;
    margin-bottom: 4rem;
}

.btn.grande {
    font-size: 1.2rem;
    padding: 1.2rem 2.2rem;
    font-weight: 600;
    border-radius: 0.8rem;
    background: #FFC736;
    color: #111111;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(255, 199, 54, 0.2);
    letter-spacing: 0.05rem;
    text-decoration: none;
}

.btn.grande:hover {
    background-color: #E6AC00;
    box-shadow: 0 10px 30px rgba(255, 199, 54, 0.3);
}

/* ✨ Animación suave */
@keyframes glowPulse {
    0%   { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.1); }
}





/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */
/* ============================== RESPONSIVE ============================== */

@media (min-width: 1024px) {
    
    /* ========== HERO ========== */
    .hero {
        padding: 5rem 5rem 8rem;
        margin: 14rem 20rem 5rem;
    }
    
    .proyecto-titulo {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        color: #ffffff;
    }

    .empresa {
        font-size: 1.3rem;
    }

    .descripcion {
        font-size: 1.4rem;
    }
    
    .botones .botones__1 {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }
    
    .botones__1__1, .botones__1__2 {
        width: 16%;
        font-size: 1.3rem;
        border-radius: 0.8rem;
        box-shadow: 0 0 15px rgba(255, 199, 54, 0.2);
    }
    
    .botones__1__1:hover,
    .botones__1__2:hover {
        box-shadow: 0 0 25px rgba(255, 199, 54, 0.3);
    }

    
    /* ========== GALERÍA SLIDER ========== */
    .galeria {
        padding: 3rem 20rem;
    }
    
    .galeria .container h2 {
        margin-bottom: 4rem;
    }
      
    .slider img {
        flex: 0 0 auto;
        width: 40%;
        aspect-ratio: 1 / 1;
        scroll-snap-align: start;
        border-radius: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        object-fit: cover;
    }
      
    .slider-btn.prev {
        left: 0.2rem;
    }
      
    .slider-btn.next {
        right: 0.2rem;
    }

    
    /* ========== SECCIONES GENERALES ========== */
    .cta-final {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 5rem 3rem;
        border-radius: 2rem 2rem 0 0;
        text-align: center;
        box-shadow: 0 0 40px rgba(255, 199, 54, 0.05);
        position: relative;
        overflow: hidden;
        isolation: isolate; /* ← importante para ::before */
    }
    
    /* 🎯 Glow decorativo animado */
    .cta-final::before {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        top: -120px;
        left: 50%;
        transform: translateX(-50%);
        background: radial-gradient(circle, rgba(255, 199, 54, 0.15) 0%, transparent 70%);
        filter: blur(80px);
        z-index: 0;
        animation: glowPulse 12s ease-in-out infinite alternate;
        pointer-events: none;
    }
    
    /* 🧱 Asegura que el contenido esté por encima */
    .cta-final > * {
        position: relative;
        z-index: 1;
    }
    
    .cta-final .container h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: #ffffff;
    }
    
    .cta-final .container p {
        font-size: 1.4rem;
        color: #A8B2C1;
        margin-bottom: 4rem;
    }
    
    .btn.grande {
        font-size: 1.3rem;
        box-shadow: 0 0 15px rgba(255, 199, 54, 0.2);
    }
    
    .btn.grande:hover {
        box-shadow: 0 0 20px rgba(255, 199, 54, 0.25);
    }
}