/* ==========================================================================
   Jofri - Estilos propios sobre Bulma
   Réplica fiel del tema original (verde #007F44)
   ========================================================================== */

/* Fuentes: se cargan desde Google Fonts en header.php
   - Títulos / navegación: 'Quicksand'  (aproximación a la fuente original "jofri-berlin")
   - Cuerpo de texto:      'Lato'
   Si consigues el archivo original belin.woff, puedes volver a declararlo aquí. */

@font-face {
    font-family: berlin-jofri;
    src: url("/css/berlin.woff");
}   

:root {
    --jofri-verde: #007F44;
    --jofri-verde-claro: #81AB40;
    --jofri-verde-suave: #E7EAE2;
    --jofri-gris-fondo: #F1F1F1;
}

/* Sobrescribir el color primario de Bulma con el verde Jofri */
:root {
    --bulma-primary-h: 154deg;
    --bulma-primary-s: 100%;
    --bulma-primary-l: 25%;
    --bulma-link-h: 154deg;
    --bulma-link-s: 100%;
    --bulma-link-l: 25%;
}

/* El sitio es siempre claro (como el original); evita que Bulma
   cambie a tema oscuro cuando el sistema está en dark mode. */
html { color-scheme: light; }

html, body {
    background: var(--jofri-gris-fondo);
}

body {
    display: flex;
    padding-top: 6rem;
    flex-direction: column;
    min-height: 100vh;
    color: #212529;
    font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
main { flex: 1 0 auto; }

.fuente-jofri {
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    color: var(--jofri-verde) !important;
    font-weight: 400 !important;
}

/* ------------------------- Barra de navegación ------------------------- */
.navbar.is-white {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    width: 100%;
    min-height: 5rem;
    position: fixed;
    top: 0;
    z-index: 40;
}
.logo-navbar { max-height: 5rem; }
.navbar-item img.logo-navbar { max-height: 5rem; }

#menu-top .navbar-item,
#menu-top .navbar-link {
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    color: var(--jofri-verde);
    font-size: 1.1rem;
    margin: 0 6px;
    /*max-height: 2rem;*/
}
#menu-top .navbar-item:hover,
#menu-top .navbar-link:hover { background-color: var(--jofri-verde-suave); color: var(--jofri-verde); }
#menu-top .item-activo { background-color: var(--jofri-verde-suave); border-radius: 6px; }
.navbar-dropdown .navbar-item { display: flex; align-items: center; font-size: .95rem; }
.icono-menu { width: 26px; height: 26px; object-fit: contain; margin-right: 10px; }
.navbar-link:not(.is-arrowless)::after { border-color: var(--jofri-verde); }

/* ------------------------------ Botones -------------------------------- */
.button.is-jofri,
a.btn {
    background-color: var(--jofri-verde);
    color: #fff;
    border: 1px solid var(--jofri-verde);
    border-radius: 6px;
    font-weight: 400;
}
.button.is-jofri:hover,
a.btn:hover { background-color: #006536; color: #fff; }

/* ------------------------------- Títulos ------------------------------- */
h1.titulo-jofri, h2.titulo-jofri, .title.is-jofri {
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    color: var(--jofri-verde);
    font-weight: 500;
}

/* --------------------------- Carrusel (home) --------------------------- */
#landing-carousel {
    background-image: url("/img/fondo-hos.png");
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    position: relative;
}
.carousel { position: relative; overflow: hidden; }
.carousel-slide {
    display: none;
    padding: 3rem 1rem;
    min-height: 420px;
    align-items: center;
}
.carousel-slide.is-active { display: flex; }
.izquierda-landing { text-align: right; }
.derecha-landing { text-align: left; }
.imagen-landing { max-width: 80%; }
.listado-landing { margin-bottom: 2rem; list-style: disc; padding-left: 1.2rem; }
.listado-landing > li {
    margin-top: 30px;
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
}
.carousel-control {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,127,68,.7); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    font-size: 1.4rem; z-index: 5;
}
.carousel-control.prev { left: 12px; }
.carousel-control.next { right: 12px; }
.carousel-indicators { text-align: center; padding: 14px 0; }
.carousel-indicators button {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    border: none; margin: 0 4px; background: #bbb; cursor: pointer;
}
.carousel-indicators button.is-active { background-color: var(--jofri-verde); }

/* -------------------- Tarjetas de presentación (home) ------------------ */
.cuadro-landing { margin-top: 40px; margin-bottom: 40px; }
.cuadro-presentacion {
    background-color: var(--jofri-verde-suave);
    border-radius: 12px;
    padding: 28px 24px;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.titulo-cuadro {
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    color: var(--jofri-verde);
    font-size: 1.7rem;
    /*font-weight: 600;*/
    margin-bottom: .6rem;
}
.desc-cuadro { font-weight: 700; color: #333; font-size: .9rem; margin-bottom: 1rem; }
.cuadro-presentacion img {
    max-height: 420px;
    width: auto;
    object-fit: contain;
    margin: 8px auto;
    flex: 1 1 auto;
    min-height: 0;
}
.boton-cuadro { margin-top: auto; padding-top: 1rem; }

/* Franja verde de dos tonos (debajo del carrusel, como el original) */
.franja-verde {
    height: 30px;
    background-color: var(--jofri-verde-claro);
    border-top: 20px solid var(--jofri-verde);
}

/* ----------- Banda de líneas de producto (full-width, verde) ----------- */
.banda-lineas {
    background-color: var(--jofri-verde);
    width: 100%;
}
.linea-inferior-banda {
    height: 10px;
    background-color: var(--jofri-verde-claro);
    width: 100%;
}
.fila-lineas {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 10px;
}
.item-linea {
    display: block;
    flex: 0 1 auto;
    text-align: center;
    text-decoration: none;
    color: #fff;
    padding: 10px 34px 8px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}
.item-linea:hover { color: #fff; background-color: var(--jofri-verde-claro); }
.item-linea.linea-activa { background-color: var(--jofri-verde-claro); }
.imagen-lineas { width: 36px; height: 36px; object-fit: contain; transition: transform .8s; }
.item-linea:hover .imagen-lineas { transform: scale(1.3); }
.contenedor-mini-lineas { margin-top: 4px; font-size: .8rem; }

/* --------------- Sub-líneas (tarjetas con imagen de producto) ---------- */
.menu-sublineas { margin-top: 25px; font-size: .9rem; text-align: center; }
.item-sublinea a { text-decoration: none; color: var(--jofri-verde); }
.caja-sublinea { padding: 14px 10px; border-radius: 10px; }
.caja-sublinea.sublinea-activa { background-color: var(--jofri-verde-suave); }
.imagen-sublinea { width: 40%; display: block; margin: 0 auto 8px; }
.nombre-sublinea { font-weight: 600; }

/*------------------------- Tarjetas Legal --------------------------------*/

.tarjeta-legal {
    background: #fff;
    border-radius: 14px;
    padding: 4rem 10rem;
    margin-top: 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* --------------------- Detalle de producto (tarjeta) ------------------- */
.detalle-producto { padding: 1.5rem 0 3rem; }
.tarjeta-producto {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 2.2rem;
    margin-top: 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.titulo-producto {
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    color: var(--jofri-verde);
    font-size: 1.9rem;
    /*font-weight: 600;*/
    text-align: center;
    margin-bottom: 1.6rem;
}
.subtitulo-producto {
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    color: var(--jofri-verde);
    font-size: 1.25rem;
    /*font-weight: 600;*/
    text-align: center;
    margin-bottom: 1rem;
}
.imagen-detalle-producto { width: 80%; margin: 0 auto; display: block; }

/* ------------------------------- Tablas -------------------------------- */
.table.table-striped { background: transparent; font-size: .9rem; }
.table.table-striped thead tr th {
    background-color: var(--jofri-verde) !important;
    color: #fff !important;
    border: none;
    text-align: center;
    vertical-align: middle;
}
.table.table-striped td { border: none; vertical-align: middle; }
.table.table-striped tbody tr:nth-of-type(odd) > * {
    background-color: var(--jofri-verde-suave);
}
.celda-codigo { font-weight: 700; white-space: nowrap; }

/* ----------- Cuadro de características (dos columnas, bordes) ---------- */
.contenedor-caracteristicas {
    margin-top: 25px;
    margin-bottom: 25px;
    background-color: var(--jofri-verde-suave);
    border-radius: 10px;
    font-size: .85rem;
    text-align: left;
    padding: 15px;
    color: var(--jofri-verde);
}
.renglon-caracteristicas {
    display: flex;
    border-bottom: #ccc 1px solid;
}
.renglon-caracteristicas.sin-borde { border-bottom: 0; }
.celda-izquierda-detalle {
    flex: 1;
    padding: 12px 10px;
    border-right: #ccc 1px solid;
}
.celda-derecha-detalle {
    flex: 1;
    padding: 12px 10px;
}
.contenedor-caracteristicas.lista-bullets { color: #333; font-size: .9rem; }
.contenedor-caracteristicas.lista-bullets ul { list-style: disc; padding-left: 1.2rem; }
.contenedor-caracteristicas.lista-bullets li { margin-bottom: .45rem; }

/* ------------------------------ Servicios ------------------------------ */
.lista-servicios { text-align: left; }
.lista-servicios li { padding: 7px; }
.breadcrumb li.is-active a { font-weight: var(--bulma-weight-semibold, 600); }
.breadcrumb a { color: var(--jofri-verde);}
.breadcrumb-jofri { margin: 1rem 0; }
.imagen-servicio-principal { width: 100%; object-fit: cover; }
.imagen-servicio { border-radius: 10px; width: 100%; object-fit: cover; }

/* Banners del índice de servicios (imagen de fondo + texto sobrepuesto) */
.banner-servicio {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.banner-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 18px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.banner-titulo {
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    color: #fff;
    font-size: 1.8rem;
    /*font-weight: 700;*/
    margin-bottom: .2rem;
}
.banner-subtitulo {
    font-family: berlin-jofri, Helvetica, Arial, sans-serif;
    color: var(--jofri-verde-claro);
    font-size: 1.05rem;
    /*font-weight: 600;*/
    margin-bottom: .6rem;
}
.banner-boton { margin-top: .3rem; }

/* -------------------------------- Footer ------------------------------- */
.footer-jofri {
    background-color: var(--jofri-verde);
    color: #f5f5f5;
    padding: 2.5rem 1.5rem 1.5rem;
    flex-shrink: 0;
}
.footer-jofri a { color: #f5f5f5; }
.footer-jofri a:hover { color: #fff; text-decoration: underline; }
.footer-jofri .footer-title { color: #fff; font-weight: 600; margin-bottom: .8rem; text-transform: none; }
.footer-list { list-style: none; }
.footer-list li { padding: 3px 0; }
.logo-footer img { max-width: 200px; }
.copyright { margin-top: 12px; font-size: .9rem; }



/* ===========   ENLACES        ============= */
.footer-jofri a { color: #f5f5f5; text-decoration: none; transition: color .2s ease; }
.footer-jofri a:hover { color: #fff; text-decoration: none; }
/* ===========   PARTE SUPERIOR  ============ */
.footer-top { margin-bottom: 0 !important; }
/* ===========   LOGO        ================ */
.logo-footer { padding-right: 2rem; }
.logo-footer img { max-width: 200px; height: auto; display: block; }
.copyright { margin-top: 12px; font-size: .85rem; line-height: 1.6; }
/* ===========   COLUMNAS DEL FOOTER ======== */
.footer-column { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 1.5rem !important; }
/* ===========   TÍTULOS      =============== */
.footer-jofri .footer-title { color: #fff; font-weight: 600;  font-size: .95rem;  margin-top: 0; margin-bottom: .8rem; }
/* ===========   LISTAS      ================ */
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 3px 0; }
.footer-list a { font-size: .85rem; }
/* ===========   BARRA INFERIOR     ========= */
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .18); }
/* ===========   INFORMACIÓN DE CONTACTO  === */
.footer-contact-item { padding-top: .5rem; padding-bottom: .5rem; }
.footer-contact { display: flex; align-items: center; gap: .65rem; font-size: .8rem; }

/* Icono circular */
.footer-contact-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: rgba(255, 255, 255, .08); font-size: .7rem; }

/* ===========   REDES SOCIALES  ============ */
.footer-social-column { padding-top: .5rem; padding-bottom: .5rem; }
.footer-social { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
.footer-social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    font-size: .7rem;
    transition:
        background-color .2s ease,
        border-color .2s ease;
}
.footer-social a:hover {
    background-color: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .30);
}
/* =====================================================
   RESPONSIVE
   ===================================================== */
@media screen and (max-width: 768px) {
    .footer-jofri {
        padding: 2rem 1.25rem 1rem;
    }
    /* Las columnas superiores pasan a bloques */
    .footer-column {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-left: .75rem !important;
        padding-top: 1.25rem !important;
        margin-top: 1rem;
    }
    .logo-footer {
        padding-right: .75rem;
    }
    /* Barra inferior */
    .footer-bottom {
        margin-top: 1.5rem;
    }
    .footer-contact-item {
        padding: .6rem 0;
    }
    .footer-social {
        justify-content: flex-start;
        margin-top: .5rem;
    }

}


/* ------------------------------ Contacto ------------------------------- */
.tarjeta-contacto { margin-top: 1.5rem; }
.contacto-info p { margin-bottom: .9rem; }
.separador-contacto { background-color: #ddd; height: 1px; margin: 1rem 3rem 1.6rem; }
.logo-contacto { max-width: 320px; margin: 2rem auto 0; }
.caja-formulario {
    background-color: var(--jofri-verde-suave);
    border-radius: 12px;
    padding: 22px 26px;
}
.caja-formulario .label { color: var(--jofri-verde); font-weight: 700; }
.caja-formulario .input,
.caja-formulario .textarea { border: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.jofri-checkbox { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 1rem; }
/* Checkbox */
.jofri-checkbox input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 29px; height: 29px; flex: 0 0 29px; margin: 0.1rem 0 0; background-color: #fff; border: 2px solid var(--jofri-verde); border-radius: 0; cursor: pointer; position: relative; }
/* Checkbox seleccionado */
.jofri-checkbox input[type="checkbox"]:checked { background-color: var(--jofri-verde); }
/* Palomita */
.jofri-checkbox input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Texto */
.jofri-checkbox label { color: #222; font-size: 1rem; line-height: 1.5; cursor: pointer; }
/* Enlaces */
.jofri-checkbox label a { color: var(--jofri-verde); font-weight: 500; text-decoration: underline; }
.jofri-checkbox label a:hover { color: #075f35; }

.privacy-notice { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 1rem; padding: 12px 15px; background-color: rgba(255, 255, 255, 0.15); border: 1px solid rgba(80, 100, 80, 0.18); border-radius: 12px; box-sizing: border-box; }
/* Icono */
.privacy-notice-icon { width: 42px; height: 48px; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; color: var(--jofri-verde); font-size: 1.7rem; }
/* Texto */
.privacy-notice-text { color: #222; font-size: .95rem; line-height: 1.5; }
/* Link */
.privacy-notice-text a { color: var(--jofri-verde); font-weight: 500; text-decoration: underline; }
.privacy-notice-text a:hover { color: #075f35; }


/* ---------------------------- Responsivo ------------------------------- */
@media only screen and (max-width: 800px) {
    .izquierda-landing, .derecha-landing { text-align: center; }
    .derecha-landing { margin-top: 30px; }
    .listado-landing > li { margin-top: 7px; font-size: 1rem; text-align: left; }
    .cuadro-landing { margin-top: 30px; margin-bottom: 50px; }
    .imagen-landing { width: 60%; }
    .logo-footer { text-align: center; margin-bottom: 20px; }
    .imagen-lineas { width: 25px; height: 25px; }
    .contenedor-mini-lineas { font-size: .6rem; margin-top: 7px; }
    .item-sublinea { font-size: .6rem; }
    .imagen-sublinea { width: 100%; }
    .imagen-detalle-producto { width: 100%; }
    .tarjeta-producto { padding: 1.2rem 1rem; }
    .renglon-caracteristicas { flex-direction: column; border-bottom: 0; }
    .celda-izquierda-detalle { border-right: 0; border-bottom: 1px #ccc solid; }
    .celda-derecha-detalle { border-bottom: 1px #ccc solid; }
    .contenedor-caracteristicas { font-size: .7rem; }
}
