/* =========================================================
   APACIGUA
   Estilos generales de todo el sitio
   ========================================================= */

:root {
    --color-fondo: #f6f8f7;
    --color-superficie: #ffffff;
    --color-texto: #26332d;
    --color-texto-suave: #66736d;

    --color-principal: #29483a;
    --color-principal-hover: #20392e;

    --color-acento: #c97832;
    --color-acento-hover: #a96027;

    --color-borde: #dfe6e2;

    --radio: 16px;

    --sombra-suave:
        0 8px 30px rgba(30, 50, 40, 0.07);

    --ancho-contenido: 1180px;
}


/* =========================================================
   BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--color-fondo);
    color: var(--color-texto);

    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.contenedor {
    width:
        min(
            calc(100% - 40px),
            var(--ancho-contenido)
        );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.apacigua-header {
    width: 100%;

    background:
        rgba(255, 255, 255, 0.98);
}

.apacigua-header-contenido {
    min-height: 130px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 18px 0 12px;
}

.apacigua-header-logo-enlace {
    display: inline-block;

    text-decoration: none;
}

.apacigua-header-logo {
    width: 260px;
    max-width: 75vw;
    height: auto;

    margin: 0 auto;

    transition:
        transform .18s ease,
        opacity .18s ease;
}

.apacigua-header-logo-enlace:hover
.apacigua-header-logo {
    transform: scale(1.015);

    opacity: .94;
}

.apacigua-header-leyenda {
    margin-top: 5px;

    color: var(--color-texto-suave);

    font-size: 13px;
    font-weight: 500;

    letter-spacing: .7px;

    text-align: center;
}


/* =========================================================
   MENÚ MAESTRO
   ========================================================= */

.apacigua-menu {
    width: 100%;

    padding: 0 20px;

    background: #ffffff;
}

.apacigua-menu-contenido {
    position: relative;

    width: min(100%, var(--ancho-contenido));

    min-height: 48px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0;

    background: transparent;

    border-radius: 0;
    box-shadow: none;
}


/* LÍNEA INFERIOR */

.apacigua-menu-contenido::after {
    content: "";

    position: absolute;

    left: 4%;
    right: 4%;
    bottom: 0;

    height: 1px;

    background:
        rgba(41, 72, 58, 0.15);
}


/* ENLACES */

.apacigua-menu-enlace {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 47px;

    padding: 0 22px;

    color: #5e6964;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
    white-space: nowrap;

    cursor: default;

    transition:
        color .18s ease,
        background-color .18s ease;
}


/* SEPARADORES */

.apacigua-menu-enlace
+
.apacigua-menu-enlace::before {
    content: "";

    position: absolute;

    left: 0;

    width: 1px;
    height: 14px;

    background:
        rgba(41, 72, 58, 0.15);
}


/* HOVER */

.apacigua-menu-enlace:hover {
    color: var(--color-principal);

    background:
        rgba(41, 72, 58, 0.025);
}


/* APÓYANOS */

.apacigua-menu-apoyanos {
    color: var(--color-acento);

    font-weight: 700;
}

.apacigua-menu-apoyanos:hover {
    color: var(--color-acento-hover);
}


/* SALIR */

.apacigua-menu-salir {
    color: #909994;

    font-size: 12px;
}


/* =========================================================
   RECOMENDAR APACIGUA
   Segunda franja del menú maestro
   ========================================================= */

.apacigua-menu-recomendar {
    width: 100%;

    margin: 0 auto;

    padding: 4px 0 7px;

    text-align: center;
}

.apacigua-menu-recomendar a {
    display: inline-block;

    color: var(--color-texto-suave);

    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.3;

    text-align: center;
    text-decoration: none;

    transition:
        color .18s ease;
}

.apacigua-menu-recomendar a:hover {
    color: var(--color-principal);
}


/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

.apacigua-principal {
    flex: 1;

    width: 100%;

    padding: 42px 0 65px;
}


/* =========================================================
   PRESENTACIÓN DEL INICIO
   ========================================================= */

.inicio-presentacion {
    width: 100%;
    max-width: 850px;

    margin: 0 auto 34px;

    text-align: center;
}

.inicio-presentacion h1 {
    margin-bottom: 8px;

    font-size: 32px;
    font-weight: 500;

    color: var(--color-principal);
}

.inicio-presentacion p {
    margin: 0;

    font-size: 17px;

    color: var(--color-texto-suave);
}


/* =========================================================
   ÁREAS DEL INICIO
   ========================================================= */

.inicio-areas {
    width: 100%;
    max-width: 950px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.inicio-area {
    min-height: 72px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 12px;

    color: #ffffff;

    text-align: center;
    text-decoration: none;

    cursor: default;

    box-shadow:
        0 5px 14px rgba(35, 55, 45, 0.08);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        opacity .18s ease;
}

.inicio-area-titulo {
    display: block;

    width: 100%;

    color: #ffffff;

    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;

    text-align: center;
}

.inicio-area-descripcion {
    display: block;

    width: 100%;

    margin-top: 5px;

    color: #ffffff;

    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.25;

    text-align: center;

    opacity: .82;
}

.inicio-area:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(35, 55, 45, 0.13);
}


/* COLORES DE ÁREAS */

.inicio-area-1 {
    background: #3f9278;
}

.inicio-area-2 {
    background: #d58f31;
}

.inicio-area-3 {
    background: #5498a4;
}

.inicio-area-4 {
    background: #a96b91;
}

.inicio-area-5 {
    background: #557d65;
}

.inicio-area-6 {
    background: #cf7555;
}

.inicio-area-7 {
    background: #7288a8;
}

.inicio-area-8 {
    background: #927d55;
}

.inicio-area-9 {
    background: #557f89;
}


/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 12px 24px;

    border: 0;
    border-radius: 10px;

    background: var(--color-principal);
    color: #ffffff;

    font: inherit;
    font-weight: 500;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color .18s ease,
        transform .18s ease,
        opacity .18s ease;
}

.boton:hover {
    background:
        var(--color-principal-hover);

    transform: translateY(-1px);
}

.boton:focus-visible {
    outline:
        3px solid rgba(41, 72, 58, .25);

    outline-offset: 3px;
}

.boton-secundario {
    background: transparent;

    border:
        1px solid var(--color-principal);

    color: var(--color-principal);
}

.boton-secundario:hover {
    background: var(--color-principal);

    color: #ffffff;
}


/* =========================================================
   UTILIDADES
   ========================================================= */

.texto-centro {
    text-align: center;
}

.texto-suave {
    color: var(--color-texto-suave);
}


/* =========================================================
   FOOTER
   ========================================================= */

.apacigua-footer {
    position: relative;

    width: 100%;

    margin-top: auto;

    padding: 34px 0 30px;

    background:
        rgba(255, 255, 255, 0.92);

    border-top:
        1px solid rgba(41, 72, 58, 0.10);

    color: var(--color-texto);
}

.apacigua-footer-contenido {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 60px;
}

.apacigua-footer-izquierda {
    max-width: 520px;
}

.apacigua-footer-marca {
    margin-bottom: 2px;

    font-size: 21px;
    font-weight: 700;

    color: var(--color-principal);
}

.apacigua-footer-pilares {
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: var(--color-texto);
}

.apacigua-footer-descripcion {
    margin-bottom: 6px;

    font-size: 13px;

    color: var(--color-texto-suave);
}

.apacigua-footer-copyright {
    font-size: 12px;

    color: #7d8983;
}

.apacigua-footer-derecha {
    min-width: 190px;

    text-align: right;

    font-size: 13px;
    line-height: 1.7;

    color: var(--color-texto-suave);
}

.apacigua-footer-nombre {
    font-size: 15px;
    font-weight: 600;

    color: var(--color-texto);
}

.apacigua-footer-admin {
    margin-top: 5px;
}

.apacigua-footer-admin a {
    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.2px;

    color: var(--color-principal);

    text-decoration: none;
}

.apacigua-footer-admin a:hover {
    text-decoration: underline;
}


/* CONTADOR */

.apacigua-footer-contador {
    margin-top: 18px;

    color: #9aa39f;

    font-size: 11px;
    font-weight: 400;
    line-height: 1;

    letter-spacing: .3px;

    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .apacigua-menu-enlace {
        padding: 0 17px;

        font-size: 13px;
    }

    .inicio-areas {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .contenedor {
        width:
            min(
                calc(100% - 30px),
                var(--ancho-contenido)
            );
    }


    /* HEADER */

    .apacigua-header-contenido {
        min-height: 112px;

        padding: 14px 0 8px;
    }

    .apacigua-header-logo {
        width: 215px;

        max-width: 80vw;
    }

    .apacigua-header-leyenda {
        margin-top: 3px;

        font-size: 11px;

        letter-spacing: .4px;
    }


    /* MENÚ */

    .apacigua-menu {
        padding: 0 12px;
    }

    .apacigua-menu-contenido {
        width: 100%;
        min-width: 0;

        min-height: 44px;

        margin-left: auto;
        margin-right: auto;

        justify-content: center;
    }

    .apacigua-menu-contenido::after {
        left: 2%;
        right: 2%;
    }

    .apacigua-menu-enlace {
        min-width: 0;
        min-height: 43px;

        flex: 1 1 auto;

        padding: 0 7px;

        font-size: 11.5px;

        text-align: center;
    }

    .apacigua-menu-salir {
        font-size: 11px;
    }


    /* RECOMENDAR */

    .apacigua-menu-recomendar {
        padding: 3px 0 6px;
    }

    .apacigua-menu-recomendar a {
        font-size: 10.5px;
    }


    /* CONTENIDO */

    .apacigua-principal {
        padding: 30px 0 50px;
    }


    /* INICIO */

    .inicio-presentacion {
        margin-bottom: 27px;
    }

    .inicio-presentacion h1 {
        font-size: 27px;
    }

    .inicio-presentacion p {
        font-size: 15px;
    }

    .inicio-areas {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .inicio-area {
        min-height: 66px;

        flex-direction: column;

        padding: 9px 15px;
    }

    .inicio-area-titulo {
        display: block;

        width: 100%;

        font-size: 17px;
        line-height: 1.2;

        text-align: center;
    }

    .inicio-area-descripcion {
        display: block;

        width: 100%;

        margin-top: 4px;

        font-size: 11px;
        line-height: 1.25;

        text-align: center;
    }


    /* FOOTER */

    .apacigua-footer {
        padding: 28px 0 25px;
    }

    .apacigua-footer-contenido {
        flex-direction: column;

        gap: 22px;
    }

    .apacigua-footer-izquierda {
        max-width: none;
    }

    .apacigua-footer-derecha {
        min-width: 0;

        text-align: left;
    }

    .apacigua-footer-contador {
        margin-top: 17px;

        font-size: 10.5px;
    }

}