/* =========================================================
   PÁGINA DE INICIO
   CÁTEDRA DE LA PACOREÑIDAD
========================================================= */


/* =========================================================
   BANNER / SLIDER PRINCIPAL
========================================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    border-radius: 22px;
    margin: 25px auto 60px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    background: #1f2f27;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(13, 27, 20, 0.78) 0%,
        rgba(13, 27, 20, 0.5) 42%,
        rgba(13, 27, 20, 0.08) 78%,
        transparent 100%
    );
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   TEXTO DEL BANNER
========================================================= */

.hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    z-index: 4;

    width: min(650px, 78%);

    transform: translateY(-50%);
    color: white;
}

.hero-kicker {
    margin: 0 0 12px;

    color: #f1d77b;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 18px;

    color: white;

    font-size: clamp(2.7rem, 5vw, 4.4rem);
    line-height: 1.08;

    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.32);
}

.hero-description {
    max-width: 600px;
    margin: 0 0 30px;

    color: white;

    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.5;

    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}


/* =========================================================
   BOTONES DEL BANNER
========================================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: max-content;

    padding: 15px 28px;

    border: 1px solid transparent;
    border-radius: 999px;

    background: #2f6f4e;
    color: white;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-btn:hover {
    background: #3f8b63;
    transform: translateY(-2px);

    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    border-color: rgba(255, 255, 255, 0.7);

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

    backdrop-filter: blur(5px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* =========================================================
   FLECHAS DEL SLIDER
========================================================= */

.prev,
.next {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 52px;
    height: 52px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.78);
    color: #235437;

    cursor: pointer;

    font-size: 26px;

    transform: translateY(-50%);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.prev {
    left: 18px;
}

.next {
    right: 18px;
}

.prev:hover,
.next:hover {
    background: white;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

main {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   INTRODUCCIONES DE SECCIÓN
========================================================= */

.section-intro {
    max-width: 760px;

    margin: 0 auto 36px;

    text-align: center;
}

.section-kicker {
    margin: 0 0 8px;

    color: #2f6f4e;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.section-intro h2 {
    margin: 0 0 14px;

    color: #3b2e28;

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.section-intro p {
    margin: 0;

    color: #666;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   ACCESOS RÁPIDOS
========================================================= */

.quick-access {
    margin: 70px 0;
}

.quick-access-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.quick-card {
    display: flex;

    gap: 18px;

    min-height: 235px;

    padding: 28px;

    border: 1px solid rgba(47, 111, 78, 0.12);
    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 10px 30px rgba(22, 28, 20, 0.08);

    color: inherit;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.quick-card:hover {
    transform: translateY(-7px);

    border-color: rgba(47, 111, 78, 0.32);

    box-shadow: 0 18px 42px rgba(22, 28, 20, 0.14);
}

.quick-icon {
    display: grid;

    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    place-items: center;

    border-radius: 16px;

    background: rgba(157, 191, 131, 0.18);

    font-size: 28px;
}

.quick-card h3 {
    margin: 0 0 10px;

    color: #235437;

    font-size: 1.25rem;
}

.quick-card p {
    margin: 0 0 18px;

    color: #666;

    line-height: 1.6;
}

.quick-link {
    color: #70501d;

    font-size: 0.95rem;
    font-weight: 700;
}

.quick-card:hover .quick-link {
    color: #2f6f4e;
}


/* =========================================================
   NOVEDADES DE LA CÁTEDRA
========================================================= */

.novedades-inicio {
    margin: 80px 0;
    padding: 55px 0;

    border-top: 1px solid rgba(47, 111, 78, 0.12);
}

.novedades-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.novedad-card {
    position: relative;

    min-height: 300px;

    padding: 30px;

    border: 1px solid rgba(47, 111, 78, 0.14);
    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 10px 30px rgba(22, 28, 20, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.novedad-card:hover {
    transform: translateY(-6px);

    border-color: rgba(201, 162, 39, 0.45);

    box-shadow: 0 18px 42px rgba(22, 28, 20, 0.14);
}

.novedad-icono {
    display: grid;

    width: 58px;
    height: 58px;

    margin-bottom: 22px;

    place-items: center;

    border-radius: 16px;

    background: #f4f0df;

    font-size: 28px;
}

.novedad-tipo {
    display: inline-block;

    margin-bottom: 10px;

    padding: 6px 11px;

    border-radius: 999px;

    background: #edf3ef;

    color: #235437;

    font-size: 0.78rem;
    font-weight: 700;
}

.novedad-card h3 {
    margin: 0 0 12px;

    color: #235437;

    font-size: 1.3rem;
    line-height: 1.3;
}

.novedad-card p {
    margin: 0 0 22px;

    color: #666;

    line-height: 1.65;
}

.novedad-card a {
    color: #235437;

    font-weight: 700;

    text-decoration: none;
}

.novedad-card a:hover {
    text-decoration: underline;
}


/* =========================================================
   PIE DE PÁGINA
========================================================= */

footer {
    margin-top: 70px;

    padding: 30px 20px;

    border-top: 1px solid rgba(47, 111, 78, 0.12);

    background: #f5f3ed;

    color: #666;

    text-align: center;
}

footer p {
    margin: 5px 0;
}

.contador-visitas {
    font-size: 0.95rem;
}

.contador-visitas strong {
    color: #235437;
}


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

@media (max-width: 960px) {

    .quick-access-grid,
    .novedades-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 700px) {

    .hero-slider {
        height: 560px;

        border-radius: 16px;

        margin-top: 16px;
        margin-bottom: 45px;
    }

    .hero-slider::after {
        background: linear-gradient(
            180deg,
            rgba(13, 27, 20, 0.28) 0%,
            rgba(13, 27, 20, 0.78) 100%
        );
    }

    .hero-content {
        top: auto;
        bottom: 72px;
        left: 24px;

        width: calc(100% - 48px);

        transform: none;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }

    .prev,
    .next {
        width: 44px;
        height: 44px;

        font-size: 22px;
    }
}


@media (max-width: 620px) {

    main {
        width: min(94%, 1180px);
    }

    .quick-access {
        margin: 45px 0;
    }

    .novedades-inicio {
        margin: 50px 0;
        padding: 40px 0;
    }

    .quick-access-grid,
    .novedades-grid {
        grid-template-columns: 1fr;
    }

    .quick-card,
    .novedad-card {
        min-height: auto;

        padding: 22px;
    }

    .quick-card {
        gap: 14px;
    }

    .quick-icon,
    .novedad-icono {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        font-size: 24px;
    }

    .section-intro {
        margin-bottom: 28px;
    }

    .section-intro h2 {
        font-size: 2rem;
    }
}