/*
Theme Name: Setas con Sentido
Version: 3.0
Description: Tema editable para ECOMYKES SAS y su marca Setas con Sentido.
*/

:root {
    --ink: #17201b;
    --muted: #5a665f;
    --paper: #f8f4ec;
    --cream: #fffaf0;
    --moss: #426449;
    --leaf: #739b62;
    --clay: #b75f39;
    --gold: #d5a84c;
    --line: rgba(23, 32, 27, 0.12);
    --shadow: 0 24px 70px rgba(32, 45, 38, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 240, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.site-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.menu-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.menu-list a:hover,
.menu-list .current-menu-item a {
    background: rgba(115, 155, 98, 0.16);
    color: var(--moss);
}

.header-cta,
.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-cta,
.btn--primary {
    background: var(--clay);
    color: white;
}

.header-cta:hover,
.btn:hover {
    transform: translateY(-2px);
}

.btn--ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.08);
}

.btn--ghost-dark {
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--cream);
}

.hero,
.home-hero {
    display: block;
    line-height: 0;
}

.hero img,
.home-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 13px;
}

.section {
    padding: 94px 0;
}

.section__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section--intro {
    background: var(--cream);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.intro-copy {
    display: grid;
    gap: 20px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
}

.intro-copy p {
    margin: 0;
}

.section--benefits {
    background: #eef3e6;
}

.benefit-grid,
.format-grid,
.combo-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.benefit-card,
.format-card,
.combo-card,
.team-card {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.82);
    box-shadow: 0 14px 40px rgba(32, 45, 38, 0.08);
}

.benefit-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--moss);
    color: white;
    font-weight: 900;
}

.benefit-card h3,
.format-card h3,
.combo-card h3,
.team-card h3 {
    margin: 22px 0 12px;
    font-size: 24px;
}

.benefit-card p,
.format-card p,
.combo-card p,
.team-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.animar-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animar-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.products-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.product-stack-item {
    position: sticky;
    top: 100px;
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: center;
    min-height: 420px;
    padding: 40px;
    border-radius: 20px;
    background: var(--cream);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.product-stack-media {
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-stack-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: contain;
}

.product-stack-content h3 {
    margin: 0 0 10px;
    font-size: 30px;
}

.product-stack-frase {
    margin: 0 0 18px;
    color: var(--clay);
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
}

.product-stack-beneficios {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.65;
}

.product-stack-beneficios p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

.product-stack-beneficios p:last-child {
    margin-bottom: 0;
}

.product-stack-content h3 a {
    text-decoration: none;
}

.product-stack-content h3 a:hover {
    color: var(--moss);
}

.product-stack-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.product-stack-vermas {
    color: var(--moss);
    font-weight: 800;
    text-decoration: none;
}

.product-stack-vermas:hover {
    text-decoration: underline;
}

.section--producto-detalle {
    background: var(--cream);
}

.producto-detalle__volver {
    margin: 0 0 28px;
}

.producto-detalle__volver a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.producto-detalle__volver a:hover {
    color: var(--moss);
}

.producto-detalle {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
}

.producto-detalle__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.producto-detalle__media img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
}

.producto-detalle__intro h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.02;
}

.producto-detalle__frase {
    margin: 0 0 26px;
    color: var(--clay);
    font-style: italic;
    font-size: 21px;
    line-height: 1.5;
}

.producto-detalle__contenido {
    max-width: 820px;
    margin-top: 56px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.producto-detalle__contenido h2,
.producto-detalle__contenido h3,
.producto-detalle__contenido h4 {
    color: var(--ink);
    margin: 38px 0 14px;
    line-height: 1.2;
}

.producto-detalle__contenido p {
    margin: 0 0 20px;
}

.producto-detalle__contenido img,
.producto-detalle__contenido iframe,
.producto-detalle__contenido video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

.producto-detalle__contenido iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.producto-detalle__contenido ul,
.producto-detalle__contenido ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.producto-detalle__contenido li {
    margin-bottom: 8px;
}

.producto-detalle__contenido .wp-block-gallery,
.producto-detalle__contenido .gallery {
    margin: 26px 0;
}

.section--formats {
    background: var(--cream);
}

.format-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.format-card {
    background: white;
}

.section--combos {
    background: var(--ink);
    color: white;
}

.section--combos .eyebrow,
.section--combos .section-heading h2 {
    color: white;
}

.combo-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.combo-card p {
    color: rgba(255, 255, 255, 0.78);
}

.combo-card strong {
    display: block;
    margin-top: 22px;
    color: var(--gold);
}

.team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card {
    background: white;
}

.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 22px;
}

.team-role {
    color: var(--clay) !important;
    font-weight: 800;
    margin-bottom: 14px !important;
}

.section--contact {
    padding-top: 0;
}

.contact-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e3ead5, #fffaf0);
    box-shadow: var(--shadow);
}

.contact-panel p {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.65;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer {
    padding: 42px 0 28px;
    background: #111713;
    color: white;
}

.footer-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr auto;
    gap: 28px;
    align-items: start;
}

.footer p,
.footer address {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    line-height: 1.55;
}

.footer address {
    display: grid;
    gap: 4px;
}

.footer a {
    text-decoration: none;
}

.footer-redes {
    display: flex;
    gap: 8px;
}

.footer-redes a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 900;
}

.footer-copy {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto 0 !important;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 920px) {
    .header-container {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .menu-list {
        width: max-content;
    }

    .intro-grid,
    .contact-panel,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .benefit-grid,
    .format-grid,
    .combo-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .product-stack-item {
        position: static;
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 26px;
    }

    .product-stack-media,
    .product-stack-media img {
        min-height: 260px;
    }

    .producto-detalle {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .producto-detalle__media {
        min-height: 240px;
    }

    .producto-detalle__contenido {
        margin-top: 36px;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-container,
    .section__inner,
    .footer-container,
    .footer-copy {
        width: min(100% - 28px, 1180px);
    }

    .brand span {
        font-size: 15px;
    }

    .site-logo {
        width: 52px;
        height: 52px;
    }

    .header-cta {
        padding: 11px 16px;
    }

    .section {
        padding: 68px 0;
    }

    .contact-panel {
        padding: 28px;
    }
}

/* ---------- Entradas y paginas simples ---------- */

.contenido-general {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 90px;
}

.entrada-general {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 54px;
    box-shadow: 0 14px 40px rgba(32, 45, 38, 0.08);
}

.entrada-general h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.08;
}

.fecha-entrada {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.entrada-general > div {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.entrada-general h2,
.entrada-general h3,
.entrada-general h4 {
    color: var(--ink);
    margin: 36px 0 14px;
    line-height: 1.22;
}

.entrada-general p {
    margin: 0 0 20px;
}

.entrada-general a {
    color: var(--moss);
}

.entrada-general ul,
.entrada-general ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.entrada-general li {
    margin-bottom: 8px;
}

.entrada-general img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.entrada-general iframe,
.entrada-general video {
    max-width: 100%;
    border-radius: 12px;
}

.entrada-general iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.entrada-general figure {
    margin: 26px 0;
}

.entrada-general figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- Galerias ---------- */

/* Se respeta el numero de columnas elegido en el bloque Galeria de WordPress */
.wp-block-gallery.has-nested-images {
    margin: 32px 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img,
.entrada-general .gallery img {
    border: none;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img:hover,
.entrada-general .gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(32, 45, 38, 0.18);
}

/* Galeria clasica (shortcode antiguo) */
.entrada-general .gallery {
    display: grid;
    gap: 14px;
    margin: 32px 0;
}

.entrada-general .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entrada-general .gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entrada-general .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.entrada-general .gallery .gallery-item {
    margin: 0;
    width: auto;
    float: none;
}

.entrada-general .gallery img {
    width: 100%;
    height: auto;
}

/* Bloques anchos: permiten sacar galerias e imagenes fuera del ancho de lectura */
.entrada-general .alignwide,
.producto-detalle__contenido .alignwide {
    width: min(1180px, calc(100vw - 40px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.entrada-general .alignfull,
.producto-detalle__contenido .alignfull {
    width: calc(100vw - 20px);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.entrada-general .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Visor de imagenes (lightbox) ---------- */

.em-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 84px;
    background: rgba(12, 16, 13, 0.92);
}

.em-lightbox.activo {
    display: flex;
}

.em-lightbox__marco {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.em-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.em-lightbox__pie {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    text-align: center;
    max-width: 720px;
}

.em-lightbox__cerrar,
.em-lightbox__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.em-lightbox__cerrar:hover,
.em-lightbox__nav:hover {
    background: var(--clay);
    transform: scale(1.06);
}

.em-lightbox__cerrar {
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    font-size: 30px;
    line-height: 1;
}

.em-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 24px;
}

.em-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.06);
}

.em-lightbox__nav--prev {
    left: 20px;
}

.em-lightbox__nav--next {
    right: 20px;
}

@media (max-width: 920px) {
    .entrada-general {
        padding: 34px 24px;
    }

    .contenido-general {
        padding: 40px 0 64px;
    }

    .entrada-general .gallery-columns-3,
    .entrada-general .gallery-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .entrada-general .alignwide,
    .entrada-general .alignfull,
    .producto-detalle__contenido .alignwide,
    .producto-detalle__contenido .alignfull {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .em-lightbox {
        padding: 64px 14px;
    }

    .em-lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .em-lightbox__nav--prev {
        left: 8px;
    }

    .em-lightbox__nav--next {
        right: 8px;
    }

    .em-lightbox__img {
        max-height: calc(100vh - 170px);
    }
}
