/* ===== RESET ===== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===== BODY ===== */
body{
    font-family:'Poppins', sans-serif;
    background:#f5f5f5;
    color:#575757;

    margin:0;
}

/* ===== HEADER ===== */
header{
    text-align:center;

    padding-top:60px;
    margin-bottom:60px;
}
header h1{
    font-size:3rem;
    font-weight:700;
    margin-bottom:10px;
}

header p{
    color:#666;
    font-size:1.1rem;
}

/* ===== GRID ===== */
#contenedor{
    display:grid;

    /* RESPONSIVE AUTOMÁTICO */
    grid-template-columns:
    repeat(auto-fit, minmax(280px,1fr));

    gap:25px;
}

/* ===== CARD ===== */
.comando{
    background:white;
    padding:30px;
    border-radius:20px;
    position:relative;
    overflow:hidden;

    box-shadow:
    0 5px 20px rgba(0,0,0,0.05);

    transition:0.3s ease;
}

/* Línea verde */
.comando::before{
    content:"";
    position:absolute;

    left:0;
    top:25px;

    width:6px;
    height:70px;

    background:#39ff14;
    border-radius:20px;
}

/* Hover */
.comando:hover{
    transform:translateY(-8px);

    box-shadow:
    0 15px 30px rgba(0,0,0,0.12);
}

/* ===== ICONO ===== */
.icono{
    width:60px;
    height:60px;

    border-radius:18px;

    background:#f2fff0;

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

    font-size:1.6rem;

    margin-bottom:20px;
}

/* ===== TITULO ===== */
.comando h2{
    font-size:1.4rem;
    margin-bottom:15px;
}

/* ===== TEXTO ===== */
.comando p{
    color:#666;
    line-height:1.7;
}

/* ===== LINK ===== */
.comando a{
    display:inline-block;
    margin-top:20px;

    color:#39ff14;
    text-decoration:none;

    font-weight:600;
}

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

@media(max-width:992px){

    body{
        padding:30px;
    }

    header h1{
        font-size:2.5rem;
    }

    .comando{
        padding:25px;
    }
}

/* ========================= */
/* ===== CELULARES ===== */
/* ========================= */

@media(max-width:768px){

    body{
        padding:20px;
    }

    header{
        margin-bottom:40px;
    }

    header h1{
        font-size:2rem;
    }

    header p{
        font-size:1rem;
    }

    #contenedor{
        gap:20px;
    }

    .comando{
        padding:22px;
        border-radius:18px;
    }

    .icono{
        width:50px;
        height:50px;
        font-size:1.3rem;
    }

    .comando h2{
        font-size:1.2rem;
    }
}

/* ========================= */
/* ===== CELULAR PEQUEÑO ===== */
/* ========================= */

@media(max-width:480px){

    body{
        padding:15px;
    }

    header h1{
        font-size:1.7rem;
    }

    .comando{
        padding:20px;
    }

    .comando p{
        font-size:0.95rem;
    }
}
/* ========================= */
/* ===== BARRA INFINITA ===== */
/* ========================= */

.barra-infinita{

    width:70%;

    margin:20px auto 0 auto;

    overflow:hidden;

    background:#39ff14;

    padding:10px 0;

    border-radius:50px;

    box-shadow:
    0 5px 15px rgba(57,255,20,0.2);
}
/* TRACK */

.barra-track{

    display:flex;

    width:max-content;

    gap:60px;

    animation:mover 15s linear infinite;
}

/* TEXTO */

.barra-track{

    display:flex;

    width:max-content;

    gap:60px;

    padding-left:400px;

    animation:mover 15s linear infinite;
}

/* ANIMACION */
@media(max-width:768px){

    .barra-infinita{

        width:90%;
    }

}

@keyframes mover{

    from{
        transform:translateX(-20px);
    }

    to{
        transform:translateX(-50%);
    }
}

.contenido{
    padding:40px;
}


.subrayado-verde{

    position:relative;

    font-weight:600;

    display:inline-block;
}

/* Subrayado moderno */
.subrayado-verde{

    position:relative;

    display:inline-block;

    font-weight:600;

    z-index:1;
}

.subrayado-verde::after{

    content:"";

    position:absolute;

    left:-2px;
    bottom:4px;

    width:104%;
    height:18px;

    background:#39ff14;

    z-index:-1;

    border-radius:2px;

    opacity:0.9;

    transform:rotate(-1deg);
}