
/* ==========================================================================
   PÁGINA DE INICIO — PARQUE NACIONAL SANGAY
   Diseño institucional moderno / responsive
   ========================================================================== */

:root {
    /* =========================================================
       PALETA PRINCIPAL - BASADA EN EL DISEÑO DEL LOGIN
       ========================================================= */

    /* Azul del fondo del login */
    --bg-gradient: linear-gradient(135deg, #1d3df3 0%, #0f81ec 50%, #63a9eb 100%);
    --azul-principal: #2145F3;
    --azul-secundario: #2F95DF;
    --azul-medio: #1678E8;
    --azul-suave: #EAF3FF;

    /* Verde institucional / botón del login */
    --verde-oscuro: #287A32;
    --verde: #55C554;
    --verde-medio: #43B94A;
    --verde-claro: #EAF7EA;
    --verde-suave: #F4FAF4;

    /* Color complementario presente en la identidad visual */
    --dorado: #A8793A;
    --dorado-claro: #F6EEDC;

    /* Textos */
    --texto: #172331;
    --texto-suave: #667085;

    /* Fondos */
    --blanco: #FFFFFF;
    --fondo: #F5F8FC;

    /* Bordes */
    --borde: #E2E8F0;

    /* Sombras */
    --sombra: 0 24px 70px rgba(25, 70, 120, 0.16);
    --sombra-suave: 0 12px 35px rgba(25, 70, 120, 0.10);

    /* Bordes */
    --radio: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--texto);
    background: var(--bg-gradient);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 680px;
    padding: 32px 0 60px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(199, 168, 90, 0.18), transparent 25%),
        linear-gradient(135deg, #edf5f0 0%, #ffffff 52%, #e8f1ed 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -260px;
    top: -260px;
    border-radius: 50%;
    background: rgba(23, 107, 77, 0.08);
}

.hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    left: -150px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(199, 168, 90, 0.12);
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 48px));
    min-height: 570px;
    margin: 0 auto;
    padding: 72px 55% 70px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 30px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.96) 49%, rgba(255,255,255,0.06) 76%),
        url("../img/login_bg.jpeg") right center / 58% 100% no-repeat;
    box-shadow: var(--sombra);
    border: 1px solid rgba(255,255,255,0.9);
}

/* Capa decorativa que ayuda a integrar la fotografía */
.hero-content::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 46%, rgba(255,255,255,0.18) 62%, rgba(23,107,77,0.08) 100%);
    pointer-events: none;
}

.hero-badge,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--verde);
    background: var(--verde-claro);
    border: 1px solid #d4e9dd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 20px 0 18px;
    max-width: 560px;
    color: var(--verde-oscuro);
    font-size: clamp(3rem, 5vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: var(--verde);
}

.hero-description {
    max-width: 500px;
    margin: 0 0 30px;
    color: var(--texto-suave);
    font-size: 1.08rem;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: fit-content;
    min-width: 245px;
    padding: 14px 18px 14px 22px;
    color: var(--blanco);
    background: var(--verde);
    border: 1px solid var(--verde);
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(23, 107, 77, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-admin:hover {
    transform: translateY(-3px);
    background: var(--verde-oscuro);
    box-shadow: 0 15px 32px rgba(23, 107, 77, 0.28);
}

.btn-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,0.15);
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.btn-admin:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */

.section {
    padding: 100px 0;
}

.section-about {
    background: var(--blanco);
}

.section-system {
    background: var(--verde-suave);
}

.section-access {
    background: var(--blanco);
}

.section-admin {
    padding-top: 40px;
    padding-bottom: 100px;
    background: #f8faf9;
}

.section-heading {
    margin-bottom: 46px;
}

.section-heading.centered {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 14px 0 14px;
    color: var(--verde-oscuro);
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 0;
    color: var(--texto-suave);
    font-size: 1rem;
}

/* ==========================================================================
   PRESENTACIÓN DEL PARQUE
   ========================================================================== */

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.75fr);
    gap: 70px;
    align-items: center;
}

.about-text p {
    margin: 0 0 18px;
    color: #4e5d57;
    font-size: 1.02rem;
}

.about-highlight {
    display: grid;
    gap: 14px;
}

.highlight-item {
    position: relative;
    padding: 22px 24px;
    border: 1px solid var(--borde);
    border-radius: 16px;
    background: var(--blanco);
    box-shadow: var(--sombra-suave);
}

.highlight-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 4px;
    background: var(--dorado);
}

.highlight-item strong,
.highlight-item span {
    display: block;
}

.highlight-item strong {
    color: var(--verde);
    font-size: 1.7rem;
    line-height: 1.1;
}

.highlight-item span {
    margin-top: 4px;
    color: var(--texto-suave);
    font-size: 0.86rem;
}

/* ==========================================================================
   PROCESO DEL SISTEMA
   ========================================================================== */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.process-card {
    position: relative;
    min-height: 285px;
    padding: 30px 25px;
    overflow: hidden;
    border: 1px solid var(--borde);
    border-radius: 20px;
    background: var(--blanco);
    box-shadow: var(--sombra-suave);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra);
}

.process-number {
    position: absolute;
    right: 20px;
    top: 12px;
    color: rgba(23, 107, 77, 0.08);
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 900;
}

.process-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border-radius: 15px;
    color: var(--verde);
    background: var(--verde-claro);
    font-size: 1.35rem;
}

.process-card h3 {
    margin: 0 0 10px;
    color: var(--verde-oscuro);
    font-size: 1.2rem;
}

.process-card p {
    margin: 0;
    color: var(--texto-suave);
    font-size: 0.92rem;
}

/* Línea visual del proceso */
.process-grid .process-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -16px;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--verde);
    background: var(--verde-claro);
    border: 5px solid var(--verde-suave);
    transform: translateY(-50%);
    font-weight: 800;
}

/* ==========================================================================
   ACCESO CONTROLADO
   ========================================================================== */

.access-box {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    min-height: 330px;
    overflow: hidden;
    border-radius: var(--radio);
    background: var(--verde-oscuro);
    box-shadow: var(--sombra);
}

.access-content {
    padding: 60px;
    color: var(--blanco);
}

.access-content .section-label {
    color: #e8d99d;
    background: rgba(199,168,90,0.13);
    border-color: rgba(199,168,90,0.25);
}

.access-content h2 {
    margin: 18px 0 18px;
    max-width: 650px;
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.access-content p {
    max-width: 680px;
    margin: 0 0 14px;
    color: rgba(255,255,255,0.72);
}

.access-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 45%),
        linear-gradient(145deg, #1c7354, #0d3b30);
}

.access-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
    border-radius: 50%;
    color: #f4e8b7;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.17);
    font-size: 2.1rem;
}

.access-visual strong {
    color: var(--blanco);
    font-size: 1.15rem;
}

.access-visual span {
    margin-top: 5px;
    color: rgba(255,255,255,0.64);
    font-size: 0.86rem;
}

/* ==========================================================================
   BLOQUE ADMINISTRATIVO
   ========================================================================== */

.admin-content {
    position: relative;
    overflow: hidden;
    padding: 65px;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    background:
        radial-gradient(circle at 95% 20%, rgba(199,168,90,0.13), transparent 25%),
        var(--blanco);
    box-shadow: var(--sombra-suave);
}

.admin-content::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(23,107,77,0.06);
}

.admin-content h2 {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 14px 0;
    color: var(--verde-oscuro);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.1;
}

.admin-content p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--texto-suave);
}

.btn-admin-dark {
    position: relative;
    z-index: 2;
    background: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    color: rgba(255,255,255,0.7);
    background: var(--bg-gradient);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    color: var(--blanco);
    font-size: 1rem;
}

.footer-brand span {
    margin-top: 3px;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
}

.footer-info {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 980px) {

    .hero-content {
        min-height: 560px;
        padding: 60px 50% 60px 55px;
        background-size: 62% 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-highlight {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid .process-card:not(:last-child)::after {
        display: none;
    }

    .access-box {
        grid-template-columns: 1fr;
    }

    .access-visual {
        min-height: 230px;
    }
}

/* ==========================================================================
   RESPONSIVE — MÓVIL
   ========================================================================== */

@media (max-width: 680px) {

    .container,
    .hero-content {
        width: min(100% - 28px, 1160px);
    }

    .hero {
        min-height: auto;
        padding: 14px 0 28px;
    }

    .hero-content {
        min-height: 650px;
        padding: 45px 28px 35px;
        justify-content: flex-end;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.25) 32%, rgba(255,255,255,0.97) 62%, #fff 100%),
            url("../img/login_bg.jpeg") center top / auto 52% no-repeat;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .btn-admin {
        width: 100%;
    }

    .section {
        padding: 70px 0;
    }

    .about-highlight {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        min-height: auto;
    }

    .access-content,
    .admin-content {
        padding: 35px 28px;
    }

    .access-visual {
        min-height: 210px;
        padding: 30px;
    }

    .footer-content {
        min-height: 140px;
        padding: 25px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

/* ==========================================================================
   ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
