/*
Theme Name: MAQUÎT
Theme URI: https://simage-gq.com
Author: QUQOS TECH
Author URI: https://simage-gq.com
Description: Tema WordPress oficial de MAQUÎT — Sistema / Centro de Inteligencia de Mercados de Guinea Ecuatorial. Portada: publica o encuentra productos de mercado en un mismo sitio, sin WhatsApp. Adaptado a móvil, tablet y escritorio.
Version: 2.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: simage
*/

/* =========================================================
   0. TOKENS
   ========================================================= */
:root{
  /* Verde bosque/tierra oscura — antes azul marino corporativo */
  --navy: #1d3b2c;
  --navy-deep: #12271b;
  --navy-line: #2c4c3a;
  --paper: #f6f3ea;
  --paper-dim: #ede8da;
  --ink: #10182b;
  --ink-soft: #4b5468;
  --white: #ffffff;

  /* Verde cultivo (VENDER) */
  --green: #1f8f4e;
  --green-dim: #e6f3ea;
  /* Ámbar de cosecha (COMPRAR) — antes azul técnico */
  --blue: #c2811f;
  --blue-dim: #f7ecd6;
  --purple: #6b3fa0;
  --purple-dim: #efe7f6;
  /* Terracota (acentos, CTA) */
  --orange: #c1571c;
  --orange-dim: #f7e6da;

  --flag-blue: #0072ce;
  --flag-red: #d21034;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px -14px rgba(18,39,27,.4);
  --shadow-sm: 0 6px 16px -10px rgba(18,39,27,.3);

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --maxw: 1180px;
  --header-h: 76px;
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.15;margin:0 0 .5em;color:var(--navy);}
p{margin:0 0 1em;}
button,input,textarea,select{font-family:inherit;font-size:1rem;}
button{cursor:pointer;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
:focus-visible{outline:3px solid var(--flag-blue);outline-offset:2px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important;}
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.eyebrow::before{content:"";width:18px;height:2px;background:currentColor;display:inline-block;flex:none;}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--font-display);font-weight:600;font-size:.95rem;
  padding:14px 26px;border-radius:999px;border:2px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn--primary{background:var(--orange);color:var(--white);box-shadow:var(--shadow-sm);}
.btn--primary:hover{box-shadow:var(--shadow);}
.btn--ghost{border-color:rgba(255,255,255,.35);color:var(--white);}
.btn--ghost:hover{border-color:#fff;}
.btn--dark{border-color:var(--navy);color:var(--navy);}
.btn--dark:hover{background:var(--navy);color:#fff;}

/* =========================================================
   2. HEADER — identidad MAQUÎT
   ========================================================= */
.site-header{
  position:sticky;top:0;z-index:200;
  background:#061a3a;
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.site-header .site-header__inner{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  min-height:0;
  padding:12px 24px 10px;
  display:block;
}

/* El logotipo cuadrado anterior queda fuera del header. */
.brand--text{display:none;}

.brand-showcase{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  overflow:hidden;
}
.brand-showcase img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.brand-showcase__wordmark{
  width:min(440px, 48vw);
  max-height:84px;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.28));
}
.brand-showcase__illustrations{
  width:min(820px, 82vw);
  max-height:105px;
  object-fit:contain;
  object-position:center;
}
.brand-showcase__slogan{
  width:min(720px, 72vw);
  max-height:26px;
  object-fit:contain;
  object-position:center;
}

.main-nav{margin-top:4px;}
.main-nav ul{display:flex;gap:30px;align-items:center;justify-content:center;}
.main-nav a{
  font-size:.92rem;color:#cfe0cf;font-weight:500;
  padding:6px 2px;border-bottom:2px solid transparent;transition:.2s;
}
.main-nav a:hover{color:#fff;border-color:var(--orange);}
.nav-toggle{
  display:none;background:none;border:0;color:#fff;font-size:1.6rem;
  line-height:1;padding:4px 6px;flex:none;
}

/* Tablet */
@media (max-width:900px){
  .site-header .site-header__inner{padding:10px 16px 9px;}
  .brand-showcase{gap:6px;}
  .brand-showcase__wordmark{width:min(360px,68vw);max-height:68px;}
  .brand-showcase__illustrations{width:min(700px,92vw);max-height:82px;}
  .brand-showcase__slogan{width:min(610px,88vw);max-height:22px;}
  .main-nav{display:none;}
}

/* Móvil: nada se corta ni se superpone */
@media (max-width:520px){
  .site-header .site-header__inner{
    padding:8px 8px 9px;
  }
  .brand-showcase{
    gap:5px;
    width:100%;
  }
  .brand-showcase__wordmark{
    width:clamp(210px, 74vw, 300px);
    max-width:88vw;
    max-height:58px;
  }
  .brand-showcase__illustrations{
    width:96vw;
    max-width:430px;
    max-height:66px;
  }
  .brand-showcase__slogan{
    width:92vw;
    max-width:390px;
    max-height:19px;
  }
}

@media (max-width:360px){
  .site-header .site-header__inner{padding-left:5px;padding-right:5px;}
  .brand-showcase{gap:4px;}
  .brand-showcase__wordmark{width:76vw;max-height:50px;}
  .brand-showcase__illustrations{width:98vw;max-height:58px;}
  .brand-showcase__slogan{width:95vw;max-height:16px;}
}

/* =========================================================
   3. HERO / PORTADA — solo las tarjetas, centradas
   ========================================================= */
.hero{
  min-height:calc(100dvh - var(--header-h));
  display:flex;align-items:center;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(194,129,31,.28), transparent 60%),
    radial-gradient(760px 460px at -8% 108%, rgba(31,143,78,.24), transparent 55%),
    var(--navy);
  color:#fff;position:relative;overflow:hidden;
  padding:40px 0;
}
.hero::before{
  content:"";position:absolute;top:-120px;right:-120px;width:320px;height:320px;
  background:conic-gradient(from 90deg, var(--flag-blue), transparent 60%);
  opacity:.16;clip-path:polygon(0 0,100% 0,0 100%);
  pointer-events:none;
}
.hero__inner{position:relative;display:flex;justify-content:center;width:100%;}

.flow-note{
  max-width:640px;margin:0 auto;background:var(--blue-dim);border:1px dashed var(--blue);
  border-radius:var(--radius-sm);padding:18px 20px;font-size:.9rem;color:var(--navy);
}

@media (max-width:640px){
  .hero{padding:16px 0;}
  .hero .container{padding:0 14px;}
}

/* =========================================================
   4. FOOTER
   ========================================================= */
.site-footer{background:var(--navy-deep);color:#a3b8a5;padding:32px 0;font-size:.85rem;}
.site-footer .container{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;}
.site-footer a{color:#cfe0cf;}
.footer-flag{display:block;height:24px;width:36px;object-fit:cover;border-radius:2px;flex:none;box-shadow:0 1px 4px rgba(0,0,0,.25);}
@media (max-width:520px){
  .site-footer .container{flex-direction:column;text-align:center;}
}

/* =========================================================
   5. UTILIDADES / PÁGINAS INTERNAS
   ========================================================= */
[data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s ease;}
[data-reveal].is-visible{opacity:1;transform:translateY(0);}
.wp-block-quote{border-left:4px solid var(--orange);padding-left:20px;font-style:italic;}

.entry-content{max-width:820px;margin:0 auto;padding:56px 24px;}
.entry-content h1{font-size:clamp(1.6rem,5vw,2.2rem);}
@media (max-width:640px){
  .entry-content{padding:40px 20px;}
}
