/* ===============================
   VARIABLES Y BASE
================================ */
:root {
    --api-yellow: #f5c400;
    --api-dark: #212529;
    --api-light: #f8f9fa;
    --api-gray: #495057;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ESLOGAN FIJO */
.eslogan-fijo {
    background-color: #f5c400;   /* amarillo API */
    color: #212529;
    font-size: 0.85rem;          /* tamaño pequeño pero legible */
    font-weight: 200;            /* delgado */
    padding: 4px 0;              /* hace la franja más fina */
    text-align: center;

    position: sticky;
    top: 65px;                   /* debajo del navbar */
    z-index: 800;

    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}


/* ===============================
   HERO GRATUITO
================================ */
.gratuito-hero {
    /*min-height: 60vh;*/
    height: 400px; /* altura del banner */ 
    padding: 140px 0 80px;
    background: linear-gradient(
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.65)
    ),
    url("../images/gratuito/gratuito-bg.webp") center / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
}

.gratuito-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.gratuito-hero p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 25px;
    color: #eaeaea;
}

.gratuito-hero .badge {
    font-size: 1rem;
    padding: 8px 16px;
}

/* ===============================
   SECCIÓN RECURSOS
================================ */
.recurso-card {
    background: #fff;
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.recurso-card i {
    font-size: 3rem;
    color: var(--api-yellow);
    margin-bottom: 20px;
}

.recurso-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--api-dark);
}

.recurso-card p {
    color: var(--api-gray);
    font-size: 1rem;
}

.recurso-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}


.recurso-link {
    text-decoration: none;
    color: inherit;
}

.video-card iframe {
    width: 100%;
    height: 180px;
    border-radius: 12px;
}

.video-card h6,
.pdf-card h6,
.ejercicio-card h6 {
    margin-top: 10px;
    font-weight: 700;
    text-align: center;
}

.pdf-card,
.ejercicio-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.pdf-card:hover,
.ejercicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(245,196,0,0.35);
}


/* ===============================
   MÉTRICAS / CONTADORES
================================ */
.valores {
    background-color: #FFF8E1;
    color: var(--api-dark);
}

.valor-card {
    padding: 25px;
}

.valor-card h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #FFC107;
}

.valor-card p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--api-dark);
}


/* ===============================
   CONFIGURACION DE VIDEOS SECCIONES
================================ */

.subseccion-titulo h4 {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--api-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.subseccion-titulo h4::after {
    content: '';
    width: 60%;
    height: 3px;
    background: var(--api-yellow);
    position: absolute;
    left: 20%;
    bottom: 0;
    border-radius: 10px;
}

.subseccion-titulo p {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--api-gray);
}


/* ===============================
  PDFS
================================ */
.pdf-img {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.pdf-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ===============================
   CTA FINAL
================================ */
.cta-gratuito {
    background: linear-gradient(
        135deg,
        #f5c400,
        #ffdd57
    );
    color: var(--api-dark);
}

.cta-gratuito h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-gratuito p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.cta-gratuito .btn {
    font-size: 1.2rem;
    padding: 12px 30px;
    border-radius: 30px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .gratuito-hero h1 {
        font-size: 2.2rem;
    }

    .gratuito-hero p {
        font-size: 1.1rem;
    }

    .recurso-card {
        padding: 25px 20px;
    }
}

/* ===== SIMULADORES APIGAME ===== */
.recurso-card.destacada { border: 2px solid var(--api-yellow); }

.simuladores-apigame {
    background: linear-gradient(135deg, #0b1c2d 0%, #16365a 100%);
    color: #fff;
}
.simuladores-apigame h2 { font-weight: 800; color: #fff; }
.simuladores-apigame h2 i { color: var(--api-yellow); }
.sim-sello {
    display: inline-block;
    background: var(--api-yellow);
    color: #0b1c2d;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 30px;
}
.sim-subtitulo { max-width: 680px; margin: .75rem auto 0; opacity: .9; }

.sim-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .3s ease, background .3s ease;
}
.sim-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .1); }
.sim-card h4 { font-weight: 700; color: #fff; }
.sim-card p { color: rgba(255, 255, 255, .8); }
.sim-icono {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: var(--api-yellow);
    color: #0b1c2d;
    display: grid; place-items: center;
    font-size: 1.6rem;
}
.sim-badge {
    display: inline-block;
    border: 1px solid var(--api-yellow);
    color: var(--api-yellow);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .85rem;
    font-weight: 600;
}
.sim-modos { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.sim-modos span {
    background: rgba(255, 255, 255, .1);
    border-radius: 30px;
    padding: .5rem 1rem;
    font-weight: 600;
}
.sim-modos i { color: var(--api-yellow); margin-right: .5rem; }
