/* ==================================================
   PIEMPO
   Sistema para la Continuidad del Medio Rural
   Hoja de estilos principal
   ================================================== */


/* ==================================================
   RESET BÁSICO
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #243746;
    background: #ffffff;
}


/* ==================================================
   CABECERA
   ================================================== */

.cabecera {
    height: 120px;
    padding: 0 5.5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;
    border-bottom: 1px solid #e7eef3;

    position: relative;
    z-index: 20;
}

.logo-enlace {
    display: inline-flex;
    align-items: center;
}

.logo {
    width: 195px;
    height: auto;
    display: block;
}


/* ==================================================
   MENÚ HAMBURGUESA
   ================================================== */

.menu-hamburguesa {
    width: 44px;
    height: 44px;

    padding: 7px;

    border: 0;
    background: transparent;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 6px;

    position: relative;
    z-index: 10000;
}

.menu-hamburguesa span {
    display: block;

    width: 100%;
    height: 3px;

    background: #049cd8;

    border-radius: 10px;
}


/* ==================================================
   MENÚ LATERAL
   ================================================== */

.menu-lateral {
    position: fixed;

    top: 0;
    right: -430px;

    width: 390px;
    max-width: 90%;

    height: 100vh;

    background: #ffffff;

    z-index: 9999;

    padding: 80px 42px 40px;

    overflow-y: auto;

    box-shadow:
        -20px 0 50px rgba(0, 60, 100, 0.14);

    transition: right 0.35s ease;
}

.menu-lateral.activo {
    right: 0;
}

.menu-cerrar {
    position: absolute;

    top: 22px;
    right: 26px;

    border: 0;
    background: transparent;

    font-size: 40px;
    line-height: 1;

    color: #08649a;

    cursor: pointer;
}

.menu-contenido {
    display: flex;
    flex-direction: column;

    gap: 34px;
}

.menu-bloque {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.menu-titulo {
    margin: 0 0 7px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 4px;

    color: #0a9dd8;
}

.menu-bloque a {
    color: #243746;

    font-size: 17px;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.menu-bloque a:hover {
    color: #08649a;
    transform: translateX(4px);
}

.menu-contacto {
    margin-top: 10px;

    font-weight: 700;

    color: #08649a !important;
}


/* FONDO OSCURO DEL MENÚ */

.menu-fondo {
    position: fixed;

    inset: 0;

    background: rgba(15, 40, 55, 0.32);

    opacity: 0;
    visibility: hidden;

    z-index: 9998;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.menu-fondo.activo {
    opacity: 1;
    visibility: visible;
}

body.menu-abierto {
    overflow: hidden;
}


/* ==================================================
   HERO
   ================================================== */

.hero {
    min-height: calc(100vh - 120px);

    padding: 85px 7% 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            #eef9fe 0%,
            #e6f5fc 100%
        );
}

.hero-contenido {
    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    gap: 55px;

    align-items: center;
}

.hero-texto {
    text-align: left;
}

.marca {
    margin: 0 0 22px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: 30px;
    font-weight: 400;

    letter-spacing: 10px;

    color: #0a9dd8;
}

.hero h1 {
    margin: 0 0 28px;

    max-width: 650px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: clamp(48px, 5.4vw, 78px);

    font-weight: 400;

    line-height: 1.02;

    color: #08649a;
}

.definicion {
    margin: 0 0 20px;

    max-width: 620px;

    font-size: clamp(20px, 1.9vw, 27px);

    font-weight: 700;

    line-height: 1.35;

    color: #2b4a5b;
}

.texto-apoyo {
    max-width: 620px;

    margin: 0;

    font-size: clamp(18px, 1.4vw, 22px);

    line-height: 1.65;

    color: #465966;
}


/* ==================================================
   IMAGEN DEL HERO
   ================================================== */

.hero-imagen {
    width: 70%;

    max-width: 720px;

    justify-self: center;

    overflow: hidden;

    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(20, 70, 100, 0.15);
}

.hero-imagen img {
    display: block;

    width: 100%;

    height: auto;

    object-fit: cover;
    object-position: center;
}


/* ==================================================
   FLECHA
   ================================================== */

.flecha-bajar {
    width: 52px;
    height: 52px;

    margin: 48px 0 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #9fd8ef;

    border-radius: 50%;

    text-decoration: none;
}

.flecha-bajar span {
    width: 12px;
    height: 12px;

    border-right: 2px solid #0a9dd8;
    border-bottom: 2px solid #0a9dd8;

    transform:
        rotate(45deg)
        translate(-2px, -2px);
}


/* ==================================================
   ETIQUETAS DE SECCIÓN
   ================================================== */

.etiqueta-seccion {
    margin: 0 0 18px;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #0a9dd8;
}


/* ==================================================
   SOLUCIONES COMERCIALES
   ================================================== */

.seccion-soluciones {
    padding: 110px 7% 120px;

    background: #ffffff;
}

.soluciones-cabecera {
    max-width: 850px;

    margin: 0 auto 60px;

    text-align: center;
}

.soluciones-cabecera h2 {
    margin: 0 0 22px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: clamp(36px, 4vw, 58px);

    font-weight: 400;

    line-height: 1.1;

    color: #08649a;
}

.soluciones-cabecera > p:last-child {
    max-width: 700px;

    margin: 0 auto;

    font-size: 19px;

    line-height: 1.65;

    color: #536773;
}

.soluciones-grid {
    max-width: 1240px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 32px;
}

.solucion-tarjeta {
    padding: 12px 10px 28px;

    background: transparent;

    border: 0;

    display: flex;
    flex-direction: column;
}

.solucion-numero {
    margin-bottom: 20px;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 4px;

    color: #0a9dd8;
}

.solucion-tarjeta h3 {
    margin: 0 0 18px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: 30px;

    font-weight: 400;

    color: #08649a;
}

.solucion-tarjeta p {
    margin: 0 0 28px;

    font-size: 17px;

    line-height: 1.7;

    color: #50636f;
}

.enlace-solucion {
    margin-top: auto;

    font-size: 16px;

    font-weight: 700;

    text-decoration: none;

    color: #0a9dd8;
}

.enlace-solucion:hover {
    text-decoration: underline;
}


/* ==================================================
   GRANJAS AL RESCATE
   ================================================== */

.seccion-rescate {
    padding: 120px 7%;

    background: #f3f9fc;
}

.rescate-contenedor {
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    gap: 80px;

    align-items: start;
}

.rescate-texto h2 {
    margin: 0 0 28px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: clamp(42px, 4vw, 62px);

    font-weight: 400;

    color: #08649a;
}

.rescate-texto p {
    font-size: 18px;

    line-height: 1.7;

    color: #4c606d;
}

.rescate-destacado {
    font-size: 22px !important;

    font-weight: 700;

    color: #21495f !important;
}

.frase-legado {
    margin-top: 34px;

    font-size: 21px !important;

    font-weight: 700;

    color: #08649a !important;
}


/* ==================================================
   PANEL DE PASOS
   ================================================== */

.rescate-panel {
    display: flex;

    flex-direction: column;

    gap: 0;
}

.paso {
    padding: 26px 0;

    display: grid;

    grid-template-columns:
        60px 1fr;

    gap: 22px;

    border-bottom:
        1px solid #cadde7;
}

.paso:first-child {
    border-top:
        1px solid #cadde7;
}

.numero {
    font-size: 14px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #0a9dd8;
}

.paso h3 {
    margin: 0 0 8px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: 26px;

    font-weight: 400;

    color: #08649a;
}

.paso p {
    margin: 0;

    font-size: 16px;

    line-height: 1.55;

    color: #536773;
}


/* ==================================================
   QUIÉNES SOMOS
   ================================================== */

.seccion-institucional {
    padding: 120px 7%;

    background: #ffffff;
}

.institucional-contenedor {
    max-width: 1050px;

    margin: 0 auto;
}

.institucional-contenedor h2 {
    margin: 0 0 28px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: clamp(42px, 4vw, 62px);

    font-weight: 400;

    color: #08649a;
}

.institucional-contenedor p {
    max-width: 900px;

    font-size: 18px;

    line-height: 1.75;

    color: #4c606d;
}

.institucional-destacado {
    font-size: 23px !important;

    font-weight: 700;

    color: #21495f !important;
}


/* ==================================================
   SISTEMA PIEMPO
   ================================================== */

.seccion-sistema {
    padding: 120px 7%;

    background: #f3f9fc;
}

.sistema-contenedor {
    max-width: 1250px;

    margin: 0 auto;
}

.sistema-contenedor h2 {
    margin: 0 0 24px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: clamp(42px, 4vw, 62px);

    font-weight: 400;

    color: #08649a;
}

.sistema-introduccion {
    max-width: 760px;

    margin: 0 0 55px;

    font-size: 19px;

    line-height: 1.7;

    color: #536773;
}

.sistema-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 35px;
}

.sistema-item {
    padding-top: 24px;

    border-top:
        2px solid #b7ddea;
}

.sistema-item span {
    display: block;

    margin-bottom: 18px;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 4px;

    color: #0a9dd8;
}

.sistema-item h3 {
    margin: 0 0 15px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: 28px;

    font-weight: 400;

    color: #08649a;
}

.sistema-item p {
    margin: 0;

    font-size: 16px;

    line-height: 1.65;

    color: #536773;
}


/* ==================================================
   NOTICIAS PIEMPO
   ================================================== */

.seccion-prensa {
    padding: 120px 7%;
    background: #ffffff;
}

.prensa-contenedor {
    max-width: 1100px;
    margin: 0 auto;
}


/* TÍTULO DE LA SECCIÓN */

.prensa-contenedor h2 {
    margin: 0 0 55px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 400;
    line-height: 1.05;

    color: #08649a;
}


/* ENLACE DESDE QUIÉNES SOMOS */

.enlace-institucional {
    display: inline-block;

    margin-top: 24px;

    font-size: 16px;
    font-weight: 700;

    color: #0a9dd8;

    text-decoration: none;
}

.enlace-institucional:hover {
    text-decoration: underline;
}


/* CADA NOTICIA */

.noticia-item {
    padding: 34px 0 38px;

    border-top: 1px solid #d5e3ea;
}

.noticia-item:last-child {
    border-bottom: 1px solid #d5e3ea;
}


/* MEDIO Y FECHA */

.noticia-medio {
    margin: 0 0 14px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: #0a9dd8;
}


/* TITULAR */

.noticia-item h3 {
    max-width: 880px;

    margin: 0 0 18px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.3;

    color: #243746;
}


/* ENLACE A LA FUENTE */

.noticia-enlace {
    display: inline-block;

    font-size: 15px;
    font-weight: 700;

    color: #08649a;

    text-decoration: none;
}

.noticia-enlace:hover {
    color: #0a9dd8;
    text-decoration: underline;
}


/* ==================================================
   NOTICIAS PIEMPO - MÓVIL
   ================================================== */

@media (max-width: 600px) {

    .seccion-prensa {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .prensa-contenedor h2 {
        margin-bottom: 35px;
    }

    .noticia-item {
        padding: 28px 0 32px;
    }

    .noticia-medio {
        font-size: 12px;
        letter-spacing: 1.4px;
    }

    .noticia-item h3 {
        font-size: 21px;
        line-height: 1.35;
    }

}

/* ==================================================
   CONTACTO
   ================================================== */

.seccion-contacto {
    padding: 115px 7%;

    background: #ffffff;
}

.contacto-contenido {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

.contacto-contenido h2 {
    margin: 0 0 24px;

    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

    font-size: clamp(38px, 4vw, 58px);

    font-weight: 400;

    line-height: 1.1;

    color: #08649a;
}

.contacto-contenido > p {
    max-width: 700px;

    margin: 0 auto;

    font-size: 19px;

    line-height: 1.65;

    color: #526672;
}

.contacto-acciones {
    margin-top: 42px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.datos-contacto {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;
}

.dato-contacto {
    margin: 0 !important;

    font-size: 17px !important;

    line-height: 1.5;

    color: #526672;
}

.dato-contacto strong {
    color: #243746;
}

.dato-contacto a {
    color: #08649a;

    text-decoration: none;

    font-weight: 700;
}

.dato-contacto a:hover {
    text-decoration: underline;
}


/* ==================================================
   PIE
   ================================================== */

.pie {
    padding: 40px 7%;

    text-align: center;

    background: #075f98;

    color: #ffffff;
}

.pie p {
    margin: 6px 0;

    font-size: 14px;

    line-height: 1.5;
}


/* ==================================================
   RESPONSIVE TABLET
   ================================================== */

@media (max-width: 950px) {

    .cabecera {
        height: 100px;
    }

    .logo {
        width: 170px;
    }

    .hero {
        min-height: auto;

        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hero-contenido {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hero-texto {
        text-align: center;
    }

    .hero h1,
    .definicion,
    .texto-apoyo {
        margin-left: auto;
        margin-right: auto;
    }

    .flecha-bajar {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-imagen {
        width: 85%;

        max-width: 700px;

        margin: 0 auto;
    }

    .soluciones-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .solucion-tarjeta {
        max-width: 700px;

        margin: 0 auto;

        width: 100%;
    }

    .rescate-contenedor {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .sistema-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* ==================================================
   RESPONSIVE MÓVIL
   ================================================== */

@media (max-width: 600px) {

    .cabecera {
        padding: 0 6%;

        height: 90px;
    }

    .logo {
        width: 150px;
    }

    .menu-hamburguesa {
        width: 38px;
        height: 38px;
    }

    .menu-lateral {
        width: 88%;

        padding:
            75px 30px
            35px;
    }

    .menu-bloque a {
        font-size: 16px;
    }

    .hero {
        padding: 60px 6%;
    }

    .marca {
        font-size: 22px;

        letter-spacing: 7px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .definicion {
        font-size: 20px;
    }

    .texto-apoyo {
        font-size: 17px;
    }

    .hero-imagen {
        width: 100%;

        border-radius: 12px;
    }

    .hero-imagen img {
        width: 100%;

        height: auto;
    }

    .seccion-soluciones,
    .seccion-rescate,
    .seccion-institucional,
    .seccion-sistema,
    .seccion-prensa,
    .seccion-contacto {
        padding-left: 7%;
        padding-right: 7%;
    }

    .seccion-institucional,
    .seccion-sistema,
    .seccion-prensa {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .soluciones-cabecera {
        text-align: left;
    }

    .soluciones-cabecera > p:last-child {
        margin: 0;
    }

    .paso {
        grid-template-columns:
            48px 1fr;
    }

    .sistema-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .datos-contacto {
        width: 100%;
    }
}