/* ============================================================================
   #BanOctopusFarming — skin del Theme Octopus
   Se carga la última (después del core). Reproduce banoctopusfarming.org:
   medidas, colores y tipografías tomados de la web publicada.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Lato:ital,wght@0,400;0,700;1,400&family=Merriweather:wght@400;700&display=swap');

:root {
    /* Paleta original */
    --oct-paper:   #F4F3EE;   /* fondo de página y textos del zigzag        */
    --oct-dark:    #0E1015;   /* fondo del hero y pie                        */
    --oct-wine:    #5E1D3F;   /* tarjeta del formulario                      */
    --oct-slate:   #8E9797;   /* "El problema" y bloque de ciencia           */
    --oct-yellow:  #EACD27;   /* "Firma y difunde" y barra fija              */
    --oct-green:   #198754;   /* botón de firmar                             */
    --oct-ink:     #000814;   /* texto oscuro                                */
    --oct-cond:    'Roboto Condensed', 'Arial Narrow', sans-serif;

    --landing-primary:       var(--oct-wine);
    --landing-primary-hover: #4a1631;
    --landing-secondary:     var(--oct-slate);
    --landing-accent:        var(--oct-dark);
    --landing-bg:            var(--oct-paper);
    --landing-bg-light:      var(--oct-paper);
    --landing-bg-dark:       var(--oct-dark);
    --landing-form-bg:       var(--oct-wine);
    --landing-footer-bg:     var(--oct-dark);

    --font-family-headline: 'Merriweather', Georgia, serif;
    --font-family-body:     'Lato', system-ui, sans-serif;
}
/* Las variables --an-* se definen en .an (an.css): hay que pisarlas ahí */
.an, .landing .an {
    --an-font-display: 'Merriweather', Georgia, serif;
    --an-font-ui:      'Lato', system-ui, sans-serif;
    --an-action:       var(--oct-green);
    --an-action-h:     #157347;
}

/* ── Página ─────────────────────────────────────────────────────────────── */
body.landing,
body.landing #main-wrapper { background: var(--oct-paper); font-family: var(--font-family-body); color: var(--oct-ink); }

.landing h1, .landing h2, .landing h3, .landing h4, .landing h5,
.landing .form-post-title {
    font-family: var(--font-family-headline);
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

/* ── Cabecera: sólo el logo (la original no tenía menú) ─────────────────── */
@media (min-width: 992px) {
    .landing .is-landing-nav .navigation-menu { display: none; }
}

/* ── Hero + columnas: contenedor de 1320px como la original ─────────────── */
.landing .stage-content { max-width: 1320px; margin-left: auto; margin-right: auto; padding-bottom: 100px; }
.landing .stage-opp-blocks-zone { padding-top: 480px; }   /* "El problema" empieza en la mitad baja de la foto */
@media (max-width: 767.98px) { .landing .stage-opp-blocks-zone { padding-top: 0; } }

/* ── Formulario: tarjeta granate ────────────────────────────────────────── */
.landing .card-forms { border-radius: 6px; }
.landing .form-post-title { font-size: 2.5rem; line-height: 1.2; }
.landing { --form-progress-fill: #FF412B; }
.landing .card-forms .progress { background-color: #e9ecef; height: 8px; }
.landing .card-forms .progress-bar,
.landing .card-forms .progress-bar-branded { background-color: #FF412B; }
.landing .card-forms .form-control { border-radius: 0; }
.landing .btn-submit {
    --bs-btn-bg: var(--oct-green);
    --bs-btn-border-color: var(--oct-green);
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;
    background-color: var(--oct-green);
    border-color: var(--oct-green);
    border-radius: 3px;
    font-family: var(--oct-cond);
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
}
.landing .btn-submit::before, .landing .btn-submit::after,
.landing .btn-gem::before,    .landing .btn-gem::after { display: none; }   /* sin triángulo de esquina */

/* ── "El problema / Lo que sabemos": caja gris con flecha hacia abajo ───── */
/* Columna derecha del hero: un solo nivel. El bloque lleva su fondo en el JSON
   ("bg"), así el core no añade la tarjeta interior; aquí se quitan los
   rellenos de los envoltorios intermedios (inner, container, row, col). */
.landing .stage-opp-blocks-zone .opp-block .landing-block-inner,
.landing .stage-opp-blocks-zone .opp-block .landing-content-block > .container,
.landing .stage-opp-blocks-zone .opp-block .landing-content-col,
.landing .stage-opp-blocks-zone .opp-block .landing-content-inner {
    padding-left: 0; padding-right: 0; max-width: none; background: transparent;
}
.landing .stage-opp-blocks-zone .opp-block .landing-content-inner { padding-top: 0; padding-bottom: 0; }
.landing .stage-opp-blocks-zone .opp-block .landing-content-block > .container > .row { margin-left: 0; margin-right: 0; }
.landing .stage-opp-blocks-zone .opp-block .wysiwyg h1,
.landing .stage-opp-blocks-zone .opp-block .wysiwyg h2,
.landing .stage-opp-blocks-zone .opp-block .wysiwyg h3 { text-transform: none; letter-spacing: normal; }
.landing .stage-opp-blocks-zone #problema {
    position: relative;
    color: var(--oct-ink);
    padding: 4rem;
    margin-bottom: 50px;
    overflow: visible;
}
.landing .stage-opp-blocks-zone #problema::after {
    content: '';
    position: absolute; left: 50%; bottom: -50px; margin-left: -50px;
    border-style: solid; border-width: 50px 50px 0 50px;
    border-color: var(--oct-slate) transparent transparent transparent;
}
.landing .stage-opp-blocks-zone #problema h2 { font-size: 2rem; color: var(--oct-ink); margin-bottom: 1rem; }
.landing .stage-opp-blocks-zone #problema p,
.landing .stage-opp-blocks-zone #problema li { color: var(--oct-ink); font-size: 1rem; line-height: 1.5; }
.landing .stage-opp-blocks-zone #problema ul > li::before { background: var(--oct-ink); }
/* Listas: texto en línea normal aunque haya cursivas o negritas (el core ya lo
   corrige en _block-content.css; se repite aquí porque ese archivo va por
   @import y el navegador puede tenerlo en caché). */
.landing .landing-content-inner.wysiwyg ul > li,
.landing .landing-content-inner.wysiwyg ol > li { display: block; position: relative; }
.landing .landing-content-inner.wysiwyg ul > li { padding-left: 1.4rem; }
.landing .landing-content-inner.wysiwyg ol > li { padding-left: 2.6rem; }
.landing .landing-content-inner.wysiwyg ul > li::before,
.landing .landing-content-inner.wysiwyg ol > li::before { position: absolute; left: 0; top: 0; }
.landing .stage-opp-blocks-zone #problema hr { border-color: rgba(0,8,20,.35); opacity: 1; margin: 2rem 0; }
@media (max-width: 575.98px) { .landing .stage-opp-blocks-zone #problema { padding: 2rem 1.5rem; } }

/* ── Los 10 bloques: zigzag a sangre, foto 3:2, flecha color papel ──────── */
#info {
    --zigzag-strip: 0px; --zigzag-strip-neg: 0px;
    --landing-zigzag-strip: 0px; --landing-zigzag-strip-neg: 0px;
    background: var(--oct-paper);
    padding: 64px 0; margin: 0;
}
#info .landing-block-inner { padding-left: 24px; padding-right: 24px; max-width: none; }
#info .zigzag-pic,
#info .zigzag-section.even .zigzag-pic { border: 0 !important; }
#info .zigzag-pic::before { display: none; }
@media (min-width: 992px) { #info .zigzag-pic::after { padding-top: 66%; } }
#info .zigzag-section:hover .zigzag-img { transform: none; }
#info .zigzag-body { background: var(--oct-paper); padding: 48px 128px 48px 48px; }
#info .zigzag-section.even .zigzag-body { padding: 48px 48px 48px 128px; }
#info .zigzag-body::after { border-right-color: var(--oct-paper); }
#info .zigzag-section.even .zigzag-body::after { border-left-color: var(--oct-paper); border-right-color: transparent; }
#info .zigzag-text { margin-top: 0; max-width: 600px; text-align: left; }
#info .zigzag-text h3 {
    display: table; margin: 0 auto 1.5rem; padding-bottom: .5rem;
    border-bottom: 1px solid #fff;
    font-family: var(--font-family-headline); font-weight: 700; font-size: 2rem; line-height: 1.2;
    color: var(--oct-ink); text-align: center;
}
#info .zigzag-text p { color: var(--oct-ink); font-size: 1rem; line-height: 1.5; margin-bottom: 1rem; }
#info .zigzag-text small,
#info .zigzag-text small em { display: block; font-size: .8rem; font-style: italic; color: var(--oct-ink); line-height: 1.4; }
@media (max-width: 768px) {
    #info .landing-block-inner { padding-left: 0; padding-right: 0; }
    #info .zigzag-body,
    #info .zigzag-section.even .zigzag-body { padding: 32px 20px; }
    #info .zigzag-body::after,
    #info .zigzag-section.even .zigzag-body::after { border-color: transparent transparent var(--oct-paper) transparent; }
}

/* ── Botón blanco del bloque amarillo ───────────────────────────────────── */
.landing .cta-btn {
    --bs-btn-padding-y: 1.5rem;
    --bs-btn-padding-x: 2.5rem;
    --bs-btn-border-radius: .3rem;
    background: #fff;
    border: 1px solid #fff;
    color: var(--oct-ink);
    font-family: var(--oct-cond);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    border-radius: .3rem;
    padding: 1.5rem 2.5rem;
    box-shadow: none;
}
.landing .cta-btn:hover { background: #f1efea; color: var(--oct-ink); }
.landing .cta-btn::before, .landing .cta-btn::after { display: none; }

/* ── Firma y difunde: bloque amarillo centrado ──────────────────────────── */
#firma-y-difunde { text-align: center; color: var(--oct-ink); padding: 3rem 2rem; margin: 0; }
#firma-y-difunde .cta-title {
    font-family: var(--oct-cond); font-weight: 700; font-size: 2.5rem; line-height: .8;
    color: var(--oct-ink); margin: 0;
}
#firma-y-difunde .cta-subtitle {
    font-family: var(--oct-cond); font-weight: 700; font-size: 3.5rem; line-height: .9;
    color: var(--oct-ink); margin: 0 0 1.75rem;
}
#firma-y-difunde .cta-counter {
    font-family: var(--font-family-body); font-weight: 700; font-size: 1.5rem;
    color: var(--oct-ink); margin: 1.5rem 0 0;
}

/* ── ¿Qué dice la ciencia?: gris, rejilla de informes ───────────────────── */
#science { background: var(--oct-slate); padding: 4rem 0; margin: 0; }
#science h1 { font-size: 2.5rem; text-align: center; color: var(--oct-ink); margin-bottom: 2.5rem; }
#science .reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
    justify-content: center;
    gap: 1rem 1.5rem;
    max-width: 920px; margin: 0 auto;
}
#science .reports-grid a { display: block; color: var(--oct-ink); text-decoration: none; }
#science .reports-grid img { width: 100%; height: auto; display: block; }
#science .reports-grid h5 { font-size: 1rem; line-height: 1.3; margin: 1rem 0; color: var(--oct-ink); }
#science .reports-grid a:hover h5 { text-decoration: underline; }

/* ── Barra fija inferior amarilla (como la original) ────────────────────── */
.landing .sticky-bar { background: var(--oct-yellow) !important; color: var(--oct-ink); padding-top: 20px; padding-bottom: 20px; }
.landing .sticky-bar h5 {
    font-family: var(--oct-cond); font-weight: 700; font-size: 2.2rem; line-height: 1.1;
    text-transform: uppercase; color: var(--oct-ink); margin: 0;
}
.landing .sticky-bar h6 {
    font-family: var(--font-family-body); font-weight: 400; font-size: 2.2rem; line-height: 1.1;
    text-transform: none; color: var(--oct-ink); margin: 0;
}
.landing .sticky-bar .sticky-counter { display: none !important; }      /* la original no lo mostraba */
.landing .sticky-bar .btn-action {
    background: #fff !important; color: var(--oct-ink) !important;
    border: 1px solid #fff !important; border-radius: .3rem !important;
    clip-path: none !important; box-shadow: none !important;
    font-family: var(--oct-cond); font-weight: 700; font-size: 1.25rem; text-transform: uppercase;
    padding: 1.5rem 2.5rem; min-width: 22rem; text-align: center;
}
.landing .sticky-bar .btn-action:hover { background: #f1efea !important; }
.landing .sticky-bar .btn-action::before,
.landing .sticky-bar .btn-action::after { display: none !important; }
.landing .sticky-bar .btn-close-sticky {
    background: transparent !important; border: 0 !important; box-shadow: none !important; clip-path: none !important;
    width: auto !important; height: auto !important; min-width: 0 !important;
    padding: .25rem .5rem !important; top: .25rem !important; right: .5rem !important;
    font-family: var(--font-family-body); font-size: .9rem !important; font-weight: 400; line-height: 1;
    color: var(--oct-ink) !important; opacity: .55;
}
.landing .sticky-bar .btn-close-sticky:hover { opacity: 1; }
@media (max-width: 767.98px) {
    .landing .sticky-bar h5, .landing .sticky-bar h6 { font-size: 1.3rem; }
    .landing .sticky-bar .btn-action { min-width: 0; padding: 1rem 1.5rem; }
}

/* ── Pie: casi negro, logos en blanco ───────────────────────────────────── */
.landing .landing-footer,
.landing .landing-footer .footer-band-identity { background: var(--oct-dark); }
