/* ============================================
   🌿 INDEX PREMIUM OPTIMIZADO
============================================ */

*{

    margin:0;
    padding:0;

    box-sizing:border-box;

}


/* ============================================
   🌎 BODY
============================================ */

body{

    font-family:'Averia Libre', cursive;

    overflow-x:hidden;

    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;

}


/* ============================================
   🎨 FONDO GENERAL
============================================ */

.index-body{

    min-height:100vh;

    display:flex;

    justify-content:center;
    align-items:center;

    position:relative;

    overflow:hidden;

}


/* ============================================
   🖼️ FONDO
============================================ */

.index-body::before{

    content:"";

    position:fixed;

    inset:0;

    background:
        url('../img/Fondo.webp')
        center/cover no-repeat;

    /* 🔥 REDUCIR BLUR PESADO */
    filter:blur(4px);

    transform:scale(1.03);

    z-index:-2;

}


/* ============================================
   🌈 CAPA COLOR
============================================ */

.index-body::after{

    content:"";

    position:fixed;

    inset:0;

    background:
        linear-gradient(
            120deg,
            rgba(34,197,94,0.15),
            rgba(37,99,235,0.15)
        );

    z-index:-1;

    /* 🔥 MÁS LIVIANO */
    animation:
        moverFondo 12s infinite alternate ease-in-out;

}


/* ANIMACIÓN */

@keyframes moverFondo{

    0%{

        opacity:.35;

    }

    100%{

        opacity:.55;

    }

}


/* ============================================
   📦 CONTENEDOR
============================================ */

.index-container{

    width:100%;

    padding:18px;

    display:flex;

    justify-content:center;
    align-items:center;

}


/* ============================================
   🧾 CARD
============================================ */

.index-card{

    width:100%;

    max-width:450px;

    padding:38px 28px;

    border-radius:24px;

    background:rgba(255,255,255,0.94);

    /* 🔥 QUITAR BLUR PESADO */
    backdrop-filter:none;

    text-align:center;

    position:relative;

    overflow:hidden;

    /* 🔥 SOMBRA MÁS LIVIANA */
    box-shadow:
        0 10px 24px
        rgba(0,0,0,0.14);

}


/* ============================================
   🌈 BORDE
============================================ */

.index-card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:24px;

    padding:2px;

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #2563eb
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;

    mask-composite:exclude;

}


/* ============================================
   🏢 LOGO
============================================ */

.logo{

    width:120px;

    margin-bottom:18px;

    object-fit:contain;

    /* 🔥 ANIMACIÓN MÁS SUAVE */
    animation:
        flotar 4s ease-in-out infinite;

}


/* ANIMACIÓN */

@keyframes flotar{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-5px);

    }

}


/* ============================================
   🏷️ TITULO
============================================ */

.index-card h1{

    color:#198754;

    font-weight:bold;

    margin-bottom:10px;

    font-size:32px;

    line-height:1.2;

}


/* ============================================
   📝 TEXTO
============================================ */

.index-card p{

    color:#6c757d;

    font-size:14px;

    margin-bottom:26px;

    line-height:1.5;

}


/* ============================================
   🔘 BOTÓN
============================================ */

.btn-index{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:10px;

    padding:14px 28px;

    border-radius:30px;

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #2563eb
        );

    color:white;

    text-decoration:none;

    font-weight:600;

    font-size:15px;

    transition:
        transform .2s ease,
        opacity .2s ease;

    position:relative;

    overflow:hidden;

    min-height:48px;

}


/* ============================================
   🔥 HOVER
============================================ */

.btn-index:hover{

    transform:translateY(-2px);

    opacity:.95;

}


/* ============================================
   ✨ BRILLO
============================================ */

.btn-index::after{

    content:"";

    position:absolute;

    top:0;
    left:-100%;

    width:100%;
    height:100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.35),
            transparent
        );

    transition:.45s;

}


/* HOVER */

.btn-index:hover::after{

    left:100%;

}


/* ============================================
   ✨ ENTRADA
============================================ */

.fade-in{

    animation:
        entrada .6s ease;

}


/* ANIMACIÓN */

@keyframes entrada{

    from{

        opacity:0;

        transform:
            translateY(14px);

    }

    to{

        opacity:1;

        transform:
            translateY(0);

    }

}


/* ============================================
   📱 TABLET
============================================ */

@media (max-width:768px){

    .index-container{

        padding:12px;

    }

    .index-card{

        padding:28px 18px;

        border-radius:18px;

        box-shadow:
            0 6px 16px
            rgba(0,0,0,0.10);

    }

    .logo{

        width:95px;

    }

    .index-card h1{

        font-size:24px;

    }

    .index-card p{

        font-size:13px;

    }

    .btn-index{

        width:100%;

        border-radius:16px;

    }

}


/* ============================================
   📱 MÓVILES PEQUEÑOS
============================================ */

@media (max-width:480px){

    .index-card{

        padding:22px 14px;

    }

    .logo{

        width:85px;

    }

    .index-card h1{

        font-size:20px;

    }

    .btn-index{

        font-size:14px;

        padding:12px;

    }

}


/* ============================================
   🔥 OPTIMIZACIÓN MÓVIL
============================================ */

@media(max-width:768px){

    *{

        -webkit-tap-highlight-color:transparent;

    }

    /* 🔥 MENOS COSTO GPU EN MÓVIL */

    .index-body::before{

        filter:blur(2px);

    }

}