:root{
  --bg:#ffffff; --fg:#0b0c0f; --muted:#4b5563; --card:#ffffff; --border:#e5e7eb; --brand:#0ea5e9;
}
*{box-sizing:border-box}
html{font-size:19px}
@media (max-width:920px){html{font-size:18px}}
@media (max-width:560px){html{font-size:17px}}
body{margin:0;background:#fff;color:var(--fg);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* Header */
header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:10}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0}
.brand img{width:178px;height:auto}
#site-nav{display:flex;flex-wrap:wrap;gap:12px 18px}
#site-nav a{margin:0;color:#111;padding:10px 14px;border:2px solid transparent;border-radius:10px;transition:border .2s;line-height:1}
#site-nav a:hover{border-color:var(--brand)}

/* Mobile nav (MENÚ button) */
.nav-toggle{display:none;border:1px solid var(--border);background:#fff;padding:10px 14px;border-radius:10px;font-weight:700;cursor:pointer}
@media(max-width:820px){
  .nav-toggle{display:inline-block}
  #site-nav{position:absolute;right:16px;top:64px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.06);display:none;flex-direction:column;gap:0;z-index:20}
  body.nav-open #site-nav{display:flex}
  #site-nav a{display:block;padding:14px 16px;margin:0}
}

/* Hero */
#hero{padding:26px 0}
.hero-img{border-radius:14px;border:1px solid var(--border);max-height:560px;object-fit:cover;width:100%}
#hero h1{font-size:2.15rem;margin:14px 0 6px;text-align:center}

/* Sections */
section{padding:30px 0}
section h2{font-size:1.85rem;margin:0 0 12px}
p{color:var(--muted);line-height:1.78;font-size:1.12rem}

/* Cards */
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px}
.card img{border-radius:10px;border:1px solid var(--border);margin-bottom:10px}
.card h3{margin:8px 0 6px;font-size:1.1rem}

/* Figure captions */
figure{margin:0}
figcaption{font-size:1.1rem;color:var(--muted);text-align:center;margin-top:10px}

/* Gallery grid */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:12px}
@media(max-width:900px){.gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.gallery{grid-template-columns:1fr}}
.gallery img{border:1px solid var(--border);border-radius:12px}

/* Single centered figure */
figure.solo img{margin:0 auto;max-width:560px}

/* Footer */
footer{border-top:1px solid var(--border);padding:28px 0;margin-top:28px;text-align:center;color:var(--muted)}
footer .brand img{width:132px;margin:0 auto 8px}

/* ====== PTV: ajustes seguros ====== */
html { scroll-behavior: smooth; }
:root { scroll-padding-top: 120px; }
:target::before { content:""; display:block; height:120px; margin-top:-120px; }
@media (max-width:768px){
  :root { scroll-padding-top: 90px; }
  :target::before { height:90px; margin-top:-90px; }
}

/* Más aire entre hero y primera sección */
.hero { margin-bottom: 120px; }
@media (min-width:768px){ #que-es { margin-top: 200px; } }

/* Ecominuto imagen control en escritorio y móvil */
.ecominuto-img{max-width:520px;max-height:360px;width:100%;height:auto;margin:0 auto}
@media (max-width:768px){ .ecominuto-img{max-width:100%;max-height:45vh;object-fit:contain} }
