/*
Theme Name: Sinergia Energía Solar
Theme URI: https://www.sinergiaenergy.com
Author: Sinergia Energy
Description: Tema de Sinergia Energía Solar: páginas de servicios, plataforma SinergIA, blog, foro con inscripciones y ediciones anteriores.
Version: 1.5.9
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: sinergia
*/
/* =====================================================================
   Sinergia Energía Solar — estilo limpio inspirado en las páginas de Apple
   Tipografía del sistema (SF Pro en Apple, Inter en el resto), fondos
   blancos y gris claro, títulos grandes y apretados, botones tipo píldora.
   Los colores se cambian aquí arriba.
   ===================================================================== */
:root {
  --texto: #1d1d1f;          /* texto principal */
  --texto-2: #6e6e73;        /* texto secundario */
  --texto-3: #6e6e73;        /* notas y etiquetas */
  --fondo: #ffffff;
  --fondo-2: #f5f5f7;        /* secciones alternas */
  --linea: #d2d2d7;
  --acento: #00788a;         /* turquesa de Sinergia, oscurecido para que se lea bien */
  --acento-hover: #00687a;
  --navy: #022456;           /* azul de la marca */
  --oscuro: #000000;
  --radio: 18px;
  --radio-grande: 28px;
  --max: 1320px;
  --ancho-texto: 760px;
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --suave: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: light;
}

/* ───── Base ───── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; color: var(--texto); background: var(--fondo); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--texto); }
p, dl, dd, figure { margin: 0; }
em, i { font-style: normal; }
.wrap { width: min(var(--max), 100% - 44px); margin-inline: auto; }
.angosto { width: min(var(--ancho-texto), 100% - 44px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--texto); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
.progreso, .ripple { display: none; }

/* ───── Tipos de texto ───── */
h1, .h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
h2, .h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; }
h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.14; letter-spacing: -0.02em; }
.kicker { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--acento); letter-spacing: -0.01em; margin-bottom: 10px; display: block; }
.kicker span { font: inherit; color: var(--texto-3); margin-right: 6px; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--texto-2); margin-top: 18px; max-width: 34ch; letter-spacing: -0.015em; font-weight: 500; }
.sub { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--texto-2); margin-top: 14px; max-width: 56ch; }
.sub-t { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; font-weight: 700; margin-bottom: 24px; }
.nota { font-size: 13px; color: var(--texto-3); line-height: 1.45; letter-spacing: -0.005em; }
strong, b { font-weight: 600; }

/* ───── Botones y enlaces ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 17px/1 var(--fuente); letter-spacing: -0.02em; padding: 12px 22px; border-radius: 980px; border: 0; background: var(--acento); color: #fff; text-decoration: none; cursor: pointer; transition: background 0.2s var(--suave), transform 0.12s var(--suave); white-space: nowrap; }
.btn:hover { background: var(--acento-hover); }
.btn:active { transform: scale(0.97); }
.btn.grande { padding: 14px 26px; font-size: 17px; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.bloque { width: 100%; }
.btn.ghost { background: transparent; color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento); }
.btn.ghost:hover { background: var(--acento); color: #fff; }
.btn.claro { background: #fff; color: var(--texto); }
.btn.claro:hover { background: #e8e8ed; }
.btn.ghost-claro { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.btn.ghost-claro:hover { background: rgba(255, 255, 255, 0.12); }
.btn svg { flex: none; }
.enlace { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; color: var(--acento); text-decoration: none; font-weight: 400; }
.enlace::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }
.enlace:hover { text-decoration: underline; }
.enlace span[aria-hidden] { display: none; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

/* ───── Barra de navegación (translúcida) ───── */
.top { position: sticky; top: 0; z-index: 70; background: rgba(255, 255, 255, 0.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.bar { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--texto); flex: none; }
.brand img { width: 30px; height: auto; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brand small { font-size: 11px; color: var(--texto-2); letter-spacing: 0; }
.menu { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.menu a:not(.btn) { text-decoration: none; font-size: 14px; color: rgba(0, 0, 0, 0.8); letter-spacing: -0.01em; transition: color 0.2s; }
.menu a:not(.btn):hover, .menu a.activo { color: var(--texto); }
.menu a.activo { font-weight: 600; }
.bar > .btn { flex: none; }
.solo-movil { display: none !important; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; margin-left: auto; place-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--texto); border-radius: 2px; transition: transform 0.3s var(--suave), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Submenú de Servicios */
.desp { position: relative; display: flex; align-items: center; gap: 2px; }
.desp-btn { display: grid; place-items: center; width: 22px; height: 22px; border: 0; background: transparent; color: rgba(0, 0, 0, 0.6); border-radius: 6px; cursor: pointer; transition: transform 0.3s var(--suave); }
.desp:hover .desp-btn, .desp.abierto .desp-btn { transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + 18px); left: -16px; width: 290px; padding: 8px; display: grid; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: 30px 0; transition: opacity 0.22s var(--suave), transform 0.22s var(--suave), visibility 0.22s; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.desp:hover .submenu, .desp:focus-within .submenu, .desp.abierto .submenu { opacity: 1; visibility: visible; transform: none; }
.menu .submenu a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; }
.menu .submenu a:hover { background: rgba(0, 0, 0, 0.04); }
.submenu b { font-size: 14px; font-weight: 600; color: var(--texto); }
.submenu span { font-size: 12px; color: var(--texto-2); }
.menu .submenu .sub-todos { display: flex; gap: 4px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, 0.08); border-radius: 0 0 12px 12px; font-size: 13px; color: var(--acento); }
.menu .submenu .sub-todos span { font-size: inherit; color: inherit; }

/* ───── Secciones ───── */
.seccion { padding: clamp(72px, 10vw, 128px) 0; }
.seccion.alterna { background: var(--fondo-2); }
.enc { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.enc .sub { margin-inline: auto; }
.fila-enc { text-align: left; max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.fila-enc h2 { max-width: 16ch; }
.fila-enc .enlace { margin-bottom: 8px; }

/* ───── Inicio: portada ───── */
.hero { text-align: center; padding: clamp(64px, 10vw, 120px) 0 0; overflow: hidden; }
.hero-txt { display: grid; justify-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-inline: auto; max-width: 36ch; }
.hero .acciones { justify-content: center; }
.hero-foto { margin-top: clamp(48px, 7vw, 80px); }
.hero-foto img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radio-grande); }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--texto-2); }
.chips li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; margin: 0 14px 0 0; vertical-align: middle; }

/* Manifiesto: una frase grande, sin efectos */
.manifiesto { padding: clamp(80px, 12vw, 150px) 0; background: var(--fondo-2); }
.manifiesto .wrap { max-width: 900px; }
.revela { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.2; letter-spacing: -0.028em; font-weight: 600; color: var(--texto); }
.revela .w { color: inherit; }
.revela b { color: var(--acento); font-weight: 600; }
.firma { margin-top: 28px; color: var(--texto-2); font-size: 19px; }

/* Tarjetas de servicios del inicio */
.serv-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.serv-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radio-grande); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: #000; }
.serv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--suave); }
.serv-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.25); }
.serv-card:hover img { transform: scale(1.04); }
.serv-card .n { display: none; }
.serv-card .t { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 2px; }
.serv-card .t b { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.serv-card .t small { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.serv-card .ir { display: none; }

/* ───── Plataforma ───── */
.plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.plat-grid .enc { text-align: left; margin: 0; }
.plat-grid .enc .sub { margin-inline: 0; }
.lista-check { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.lista-check li { position: relative; padding-left: 28px; color: var(--texto); }
.lista-check li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--cian, #179cc1); }
.mock { background: #fff; border-radius: var(--radio-grande); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12); overflow: hidden; position: relative; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #e3e3e8; }
.mock-top b { margin-left: 8px; font-size: 13px; }
.mock-body { padding: 20px; display: grid; gap: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: var(--fondo-2); border-radius: 14px; padding: 12px 14px; }
.mock-kpis small { display: block; font-size: 11px; color: var(--texto-2); }
.mock-kpis b { font-size: 19px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mock-kpis i { font-size: 12px; color: var(--texto-2); font-weight: 400; }
.mock-kpis .ok { color: #248a3d; font-size: 17px; }
.mock-curva { width: 100%; height: auto; max-height: 150px; }
.mock-ia { font-size: 14px; color: var(--texto); background: var(--fondo-2); border-radius: 14px; padding: 12px 14px; }
.mock-ia b { color: var(--acento); margin-right: 6px; }
.mock-nota { position: absolute; top: 14px; right: 18px; font-size: 11px; color: var(--texto-3); }
.funciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 7vw, 80px); }
.funcion { background: var(--fondo-2); border-radius: var(--radio-grande); padding: 32px; }
.funcion h3 { font-size: 21px; margin: 18px 0 8px; }
.funcion p { color: var(--texto-2); font-size: 17px; }
.f-ico { width: 40px; height: 40px; display: grid; place-items: center; color: var(--acento); }
.f-ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pasos-h { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pasos-h li { background: var(--fondo-2); border-radius: var(--radio-grande); padding: 32px; }
.pasos-h b { font-size: 15px; font-weight: 600; color: var(--acento); }
.pasos-h h3 { font-size: 21px; margin: 10px 0 8px; }
.pasos-h p { color: var(--texto-2); }

/* Tres ideas (antes franjas desplegables): tarjetas simples */
.triptico { padding: clamp(72px, 10vw, 128px) 0; background: var(--fondo-2); }
.triptico h2 { text-align: center; max-width: 18ch; margin: 0 auto; }
.vtrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.vx { background: #fff; border-radius: var(--radio-grande); padding: 32px; }
.vx h3 { font-size: 24px; margin-bottom: 12px; }
.vx p { color: var(--texto-2); }
.vx p a { color: var(--acento); text-decoration: none; }
.vx p a:hover { text-decoration: underline; }

/* ───── Servicios ───── */
.serv-det { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.serv-det.inv > img { order: 2; }
.serv-det > img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 600px; object-fit: cover; border-radius: var(--radio-grande); }
.serv-det .btn { margin-top: 32px; }
.selector { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.sel-lista { display: grid; gap: 4px; }
.sel-tab { display: flex; gap: 10px; text-align: left; font: 600 19px/1.3 var(--fuente); letter-spacing: -0.02em; color: var(--texto-3); background: none; border: 0; padding: 12px 16px; border-radius: 14px; cursor: pointer; }
.sel-tab span { display: none; }
.sel-tab:hover { color: var(--texto); }
.sel-tab[aria-selected="true"] { color: var(--texto); background: var(--fondo-2); }
.sel-panel { display: none; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
.sel-panel.on { display: grid; }
.sel-panel img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); }
.sel-panel p { color: var(--texto-2); margin: 12px 0 20px; }

/* Proceso */
.proceso-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.proceso-lado { position: sticky; top: 100px; }
.proceso-lado .sub { margin-bottom: 20px; }
.pasos2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pasos2 li { background: #fff; border-radius: var(--radio-grande); padding: 28px 32px; }
.seccion:not(.alterna) .pasos2 li { background: var(--fondo-2); }
.pasos2 b { font-size: 15px; font-weight: 600; color: var(--acento); }
.pasos2 h3 { font-size: 21px; margin: 8px 0 6px; }
.pasos2 p { color: var(--texto-2); }

/* ───── Cómo funciona (gráfica del día) y calculadora ───── */
.dia-grid, .calc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.calc-grid { align-items: start; }
.dia svg { width: 100%; height: auto; border-radius: var(--radio-grande); }
.ctl { display: block; margin-top: 28px; font-weight: 600; font-size: 17px; }
.ctl strong { color: var(--acento); font-variant-numeric: tabular-nums; }
.fila-ctl { margin-top: 18px; }
.info-dia { margin-top: 18px; padding: 16px 18px; background: var(--fondo-2); border-radius: 14px; color: var(--texto); min-height: 56px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: #d2d2d7; margin-top: 16px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); }
label { font-weight: 600; font-size: 14px; color: var(--texto); }
input:not([type="range"]):not([type="checkbox"]), textarea { width: 100%; font: 17px/1.3 var(--fuente); letter-spacing: -0.02em; color: var(--texto); padding: 14px 16px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
input:not([type="range"]):focus, textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px rgba(0, 120, 138, 0.15); }
textarea { resize: vertical; }
.calc { background: var(--fondo-2); border-radius: var(--radio-grande); padding: clamp(24px, 4vw, 40px); display: grid; gap: 12px; }
.ajustes summary { cursor: pointer; color: var(--acento); font-size: 15px; }
.ajustes[open] { display: grid; gap: 8px; }
.ajustes small { color: var(--texto-2); font-size: 13px; }
.resultado { background: #fff; border-radius: var(--radio); padding: 22px; min-height: 120px; display: grid; gap: 14px; }
.resultado .vacio { color: var(--texto-2); align-self: center; text-align: center; }
.ahorro { text-align: center; color: var(--texto-2); }
.ahorro strong { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; color: var(--texto); font-variant-numeric: tabular-nums; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.res-grid div { background: var(--fondo-2); border-radius: 14px; padding: 12px; text-align: center; }
.res-grid b { display: block; font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.res-grid span { font-size: 12px; color: var(--texto-2); }
.comparar { display: grid; gap: 10px; }
.comparar > div { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.barra { display: block; height: 8px; border-radius: 8px; background: #e3e3e8; overflow: hidden; }
.barra b { display: block; height: 100%; border-radius: 8px; transition: width 0.6s var(--suave); }
.barra.hoy b { background: var(--texto-3); }
.barra.solar b { background: var(--acento); }
.comparar em { font-style: normal; font-variant-numeric: tabular-nums; min-width: 7ch; text-align: right; color: var(--texto-2); }

/* ───── Proyectos ───── */
.proy { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.ampliar { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radio-grande); overflow: hidden; }
.ampliar img { width: 100%; height: auto; transition: transform 0.6s var(--suave); }
.ampliar:hover img { transform: scale(1.03); }
.proy-img { max-width: 440px; justify-self: center; }
.etq { font-size: 17px; font-weight: 600; color: var(--acento); margin-bottom: 8px; display: block; }
.proy-txt h3 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 700; margin-bottom: 14px; }
.proy-txt > p:not(.etq) { color: var(--texto-2); font-size: 19px; max-width: 46ch; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 32px 0; }
.specs > div { background: var(--fondo-2); border-radius: var(--radio); padding: 16px 18px; }
.seccion.alterna .specs > div { background: #fff; }
.specs dt { font-size: 13px; color: var(--texto-2); margin-bottom: 4px; }
.specs dd { font-size: 17px; font-weight: 600; }
.specs b { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.obras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.obra figcaption { margin-top: 10px; font-size: 14px; color: var(--texto-2); }
.obra img { aspect-ratio: 4 / 3; object-fit: cover; }
.obra .ampliar { border-radius: var(--radio); }

/* Fichas de Aprende */
.carrusel { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.ficha { flex: 0 0 min(260px, 72vw); scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.fichas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 16px; }
.fichas-grid.tres { grid-template-columns: repeat(3, 1fr); }
.fichas-grid .ficha { flex: none; }
.ficha .ampliar { border-radius: var(--radio); cursor: pointer; position: relative; }
.ficha .ampliar::after { content: "Ver más"; position: absolute; right: 12px; bottom: 12px; padding: 7px 14px; border-radius: 980px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--texto); font: 500 13px/1 var(--fuente); letter-spacing: -0.01em; transition: background 0.2s; }
.ficha .ampliar:hover::after { background: #fff; }
.ficha figcaption { display: grid; gap: 2px; }
.ficha strong { font-size: 17px; line-height: 1.25; }
.ficha span { font-size: 14px; color: var(--texto-2); }

/* ───── Nosotros ───── */
.carta { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: clamp(40px, 6vw, 80px); }
.carta > header, .carta > .bloque { grid-column: 1; }
.carta > header { text-align: left; margin: 0 0 24px; }
.nos-fotos { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 90px; align-self: start; display: grid; gap: 12px; }
.nos-fotos img { width: 100%; height: 26vh; min-height: 180px; object-fit: cover; border-radius: var(--radio); }
.nos-fotos figcaption { margin-top: 6px; font-size: 13px; color: var(--texto-2); }
.carta .bloque { display: grid; grid-template-columns: 140px 1fr; gap: 12px 32px; padding: 32px 0; border-top: 1px solid var(--linea); }
.carta .bloque h3 { font-size: 17px; color: var(--texto-2); padding-top: 4px; }
.carta .grande { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -0.022em; font-weight: 600; margin-bottom: 12px; }
.carta .bloque p:not(.grande) { color: var(--texto-2); }
.lemas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.lemas dt { font-weight: 600; }
.lemas dd { color: var(--texto-2); font-size: 15px; margin-top: 2px; }

/* Presencia (foro) */
.presencia { padding: clamp(72px, 10vw, 128px) 0; background: var(--fondo); }
.presencia-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.presencia .ampliar { max-width: 420px; justify-self: center; }
.presencia h2 { margin-bottom: 18px; }
.presencia p { color: var(--texto-2); font-size: 19px; margin-bottom: 14px; max-width: 48ch; }
.presencia p strong { color: var(--texto); }
.presencia .btn.claro { background: var(--acento); color: #fff; margin-top: 10px; }
.presencia .btn.claro:hover { background: var(--acento-hover); }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--texto-2); transition: transform 0.3s var(--suave); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--texto-2); padding-bottom: 22px; max-width: 62ch; }

/* ───── Contacto ───── */
.contacto { padding: clamp(72px, 10vw, 128px) 0; background: var(--fondo-2); }
.ola { display: none; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.lead-c { font-size: 19px; color: var(--texto-2); margin: 14px 0 28px; }
.contacto .btn.claro { background: #25d366; color: #fff; }
.contacto .btn.claro:hover { background: #1fb457; }
.datos { margin-top: 40px; display: grid; gap: 22px; }
.datos dt { font-size: 13px; color: var(--texto-2); margin-bottom: 4px; }
.datos dd { font-size: 17px; }
.datos a { color: var(--acento); text-decoration: none; }
.datos a:hover { text-decoration: underline; }
.formulario { background: #fff; border-radius: var(--radio-grande); padding: clamp(24px, 4vw, 40px); display: grid; gap: 10px; }
.formulario h3 { font-size: 24px; margin-bottom: 8px; }
.formulario .btn { margin-top: 10px; }

/* ───── Banda de llamada a la acción (oscura) ───── */
.banda-cta { background: var(--oscuro); color: #fff; padding: clamp(72px, 10vw, 112px) 0; text-align: center; }
.banda-cta-grid { display: grid; justify-items: center; gap: 28px; }
.banda-cta h2 { color: #f5f5f7; max-width: 20ch; margin: 0 auto; }
.banda-cta p { color: #a1a1a6; margin-top: 14px; font-size: 19px; }
.banda-cta .acciones { justify-content: center; margin-top: 0; }

/* ───── Cabecera de páginas internas ───── */
.pagina-hero { text-align: center; padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); background: var(--fondo); }
.pagina-hero .wrap { display: grid; justify-items: center; }
.pagina-hero h1 { max-width: 16ch; }
.pagina-hero .lead { margin-inline: auto; max-width: 40ch; }
.pagina-hero .acciones { justify-content: center; }
.migas { display: flex; gap: 8px; font-size: 13px; color: var(--texto-3); margin-bottom: 18px; }
.migas a { color: var(--texto-2); text-decoration: none; }
.migas a:hover { color: var(--acento); }
.chip-link { display: inline-flex; padding: 8px 18px; border-radius: 980px; background: var(--fondo-2); color: var(--texto); text-decoration: none; font-size: 15px; transition: background 0.2s; }
.chip-link:hover { background: #e8e8ed; }

/* ───── Pie de página ───── */
.pie { background: var(--fondo-2); color: var(--texto-2); font-size: 12px; padding: 48px 0 0; letter-spacing: -0.01em; }
.pie-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr; gap: 32px; padding-bottom: 32px; }
.pie .brand { color: var(--texto); }
.pie-marca p { margin-top: 14px; font-size: 13px; line-height: 1.5; max-width: 32ch; }
.pie h4 { font-size: 12px; font-weight: 600; color: var(--texto); margin-bottom: 12px; }
.pie-cols nav { display: grid; gap: 10px; align-content: start; }
.pie a { text-decoration: none; color: var(--texto-2); }
.pie a:hover { color: var(--texto); text-decoration: underline; }
.pie-contacto p { font-size: 12px; margin-bottom: 8px; line-height: 1.5; }
.pie-redes { display: flex; gap: 16px; }
.pie-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--linea); padding: 18px 0 22px; }

/* ───── WhatsApp flotante ───── */
.wa-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); transition: transform 0.2s var(--suave); }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; }
.wa-burbuja { position: relative; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-radius: 18px; padding: 14px 36px 14px 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14); max-width: 250px; display: grid; gap: 4px; font-size: 14px; }
.wa-burbuja[hidden] { display: none; }
.wa-burbuja a { color: var(--acento); text-decoration: none; }
.wa-burbuja .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; background: transparent; font-size: 18px; color: var(--texto-2); cursor: pointer; border-radius: 50%; }
.wa-burbuja .x:hover { background: rgba(0, 0, 0, 0.05); }

/* ───── Ventanas: imagen ampliada y ficha ───── */
.lightbox, .info-modal { border: 0; padding: 0; overflow: visible; }
.lightbox { background: transparent; max-width: min(94vw, 1000px); }
.lightbox::backdrop, .info-modal::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox img { max-width: min(94vw, 1000px); max-height: 88vh; border-radius: var(--radio); }
.cerrar { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--texto); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.info-modal { background: #fff; border-radius: var(--radio-grande); width: min(920px, 94vw); max-height: 90vh; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.info-modal[open], .lightbox[open] { animation: aparece 0.32s var(--suave); }
@keyframes aparece { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.im-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; max-height: 90vh; overflow: hidden; border-radius: var(--radio-grande); }
.im-grid img { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; background: var(--fondo-2); }
.im-txt { padding: clamp(24px, 4vw, 40px); overflow-y: auto; max-height: 90vh; }
.im-txt h3 { font-size: 28px; letter-spacing: -0.025em; margin-bottom: 16px; }
.im-txt p { color: var(--texto-2); margin-bottom: 14px; }
.im-txt ul { margin: 0 0 16px; padding-left: 20px; color: var(--texto-2); }
.im-txt li { margin-bottom: 6px; }
.im-txt .btn { margin-top: 8px; }

/* ───── Aparición suave al hacer scroll ───── */
/* Solo se ocultan si el script de animación está corriendo (clase "anima" en <html>). */
.anima .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--suave), transform 0.8s var(--suave); }
.anima .reveal.visto { opacity: 1; transform: none; }

/* ───── Pantallas medianas y celulares ───── */
@media (max-width: 1100px) {
  .solo-escritorio { display: none !important; }
  .burger { display: grid; }
  .menu { position: fixed; inset: 56px 0 auto 0; max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; background: rgba(255, 255, 255, 0.97); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 28px; margin: 0; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.25s var(--suave), transform 0.25s var(--suave); }
  .menu.abierto { opacity: 1; pointer-events: auto; transform: none; }
  .menu a:not(.btn) { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; padding: 12px 0; color: var(--texto); }
  .menu a.activo { color: var(--acento); }
  .solo-movil { display: inline-flex !important; margin-top: 14px; }
  .desp { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .desp-btn { width: 44px; height: 44px; }
  .desp:hover .desp-btn { transform: none; }
  .desp.abierto .desp-btn { transform: rotate(180deg); }
  .submenu { position: static; grid-column: 1 / -1; width: auto; padding: 0 0 8px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .submenu::before { display: none; }
  .desp:hover .submenu, .desp:focus-within .submenu { display: none; }
  .desp.abierto .submenu { display: grid; }
  .menu .submenu a { padding: 8px 0; font-size: 17px; }
  .menu .submenu a b { font-size: 17px; font-weight: 500; }
}
@media (max-width: 980px) {
  .serv-cards { grid-template-columns: 1fr 1fr; }
  .serv-card { aspect-ratio: 4 / 3; }
  .plat-grid, .serv-det, .proy, .presencia-grid, .contacto-grid, .dia-grid, .calc-grid, .proceso-grid, .selector { grid-template-columns: 1fr; }
  .serv-det.inv > img { order: 0; }
  .serv-det > img { aspect-ratio: 16 / 10; max-height: 420px; }
  .mock { max-width: 560px; }
  .proceso-lado { position: static; }
  .funciones, .vtrip { grid-template-columns: 1fr 1fr; }
  .obras { grid-template-columns: 1fr 1fr; }
  .carta { grid-template-columns: 1fr; }
  .nos-fotos { grid-column: 1; grid-row: auto; position: static; grid-template-columns: repeat(3, 1fr); order: -1; margin-bottom: 24px; }
  .carta > header { order: -2; }
  .pie-cols { grid-template-columns: 1fr 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .serv-cards, .funciones, .vtrip, .pasos-h, .fichas-grid.tres, .obras, .lemas { grid-template-columns: 1fr; }
  .serv-card { aspect-ratio: 16 / 11; }
  .hero-foto img { aspect-ratio: 4 / 3; border-radius: var(--radio); }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .res-grid, .specs { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .specs b { font-size: 26px; }
  .carta .bloque { grid-template-columns: 1fr; }
  .nos-fotos figcaption { display: none; }
  .nos-fotos img { height: 120px; min-height: 0; }
  .sel-panel { grid-template-columns: 1fr; }
  .im-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .im-grid img { max-height: 36vh; }
  .im-txt { max-height: none; }
  .pie-cols { grid-template-columns: 1fr 1fr; }
  .acciones .btn.grande { flex: 1 1 auto; }
  .wa-burbuja { max-width: 220px; }
}

/* ───── Accesibilidad ───── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anima .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .submenu, .wa-burbuja, .menu { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* =====================================================================
   Capa de color: colores sólidos de la paleta de Sinergia (azul, cian y
   turquesa del logo) y superficies de vidrio esmerilado. Sin degradados.
   ===================================================================== */
:root {
  --azul: #0e356c;           /* azul profundo del logo */
  --azul-2: #0a2a57;
  --cian: #179cc1;           /* cian de los paneles */
  --turquesa: #17949d;
  --acento: #0f7a85;         /* turquesa un poco más oscuro para que textos y botones se lean bien */
  --acento-hover: #0e356c;
  --acento-claro: #8fdcec;   /* acento sobre fondos azules */
  --navy: #0e356c;
  --fondo-2: #f1f6f8;
  --sombra-suave: 0 18px 50px rgba(14, 53, 108, 0.10);
  --grad: var(--acento);     /* nombre antiguo: ahora es un color sólido */
}

/* Botones sólidos */
.btn { background: var(--acento); box-shadow: 0 8px 22px rgba(15, 122, 133, 0.22); }
.btn:hover { background: var(--azul); box-shadow: 0 12px 30px rgba(14, 53, 108, 0.28); transform: translateY(-1px); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--acento); }
.btn.ghost:hover { background: var(--acento); color: #fff; }
.btn.claro { background: #fff; color: var(--azul); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.btn.claro:hover { background: var(--acento-claro); color: var(--azul); }
.btn.ghost-claro { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.ghost-claro:hover { background: rgba(255, 255, 255, 0.18); }

.kicker { color: var(--acento); }

/* Bandas en el azul sólido de la marca */
.banda-cta, .triptico, .manifiesto, .orbes { position: relative; isolation: isolate; overflow: hidden; background: var(--azul); }

/* Vidrio sobre fondos oscuros o fotos */
.vidrio { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }

/* Portada del inicio: foto a lo ancho y el texto en una tarjeta de vidrio */
.hero.hero-fondo { position: relative; isolation: isolate; color: #fff; padding: 0; min-height: calc(100svh - 56px); display: grid; align-items: end; overflow: hidden; background: var(--azul); }
.hero-fondo::before { content: ""; position: absolute; inset: -2%; z-index: -2; background: var(--foto) center / cover no-repeat; animation: acercar 22s ease-out forwards; }
.hero-fondo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 30, 60, 0.32); }
@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-fondo .hero-txt { justify-items: start; text-align: left; margin: 140px max(16px, calc((100% - var(--max)) / 2)) clamp(40px, 6vw, 72px); width: auto; padding: clamp(24px, 3.5vw, 40px); max-width: 640px; border-radius: var(--radio-grande); background: rgba(14, 53, 108, 0.42); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 30px 80px rgba(4, 20, 45, 0.3); }
.hero-fondo h1 { color: #fff; max-width: 14ch; font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; }
.hero-fondo .lead { color: rgba(255, 255, 255, 0.9); margin-inline: 0; }
.hero-fondo .kicker { color: var(--acento-claro); }
.hero-fondo .acciones { justify-content: flex-start; }
.hero-fondo .enlace { color: #fff; }
.hero-fondo .chips { justify-content: flex-start; color: rgba(255, 255, 255, 0.88); }
.hero-fondo .chips li + li::before { background: var(--acento-claro); opacity: 0.8; }

/* Cabeceras de páginas internas: fondo gris azulado de la marca */
.pagina-hero { background: var(--fondo-2); }

/* Secciones alternas */
.seccion.alterna { background: var(--fondo-2); }
.manifiesto .revela { color: #fff; }
.manifiesto .revela b { color: var(--acento-claro); }
.manifiesto .firma { color: rgba(255, 255, 255, 0.75); }

/* Tarjetas: se levantan un poco al pasar el mouse */
.funcion, .pasos-h li, .vx, .pasos2 li, .eje, .specs > div { transition: transform 0.35s var(--suave), box-shadow 0.35s var(--suave); }
.funcion:hover, .pasos-h li:hover, .vx:hover, .pasos2 li:hover, .eje:hover { transform: translateY(-4px); box-shadow: var(--sombra-suave); }
.funcion { background: #fff; box-shadow: 0 1px 0 rgba(14, 53, 108, 0.04), 0 10px 30px rgba(14, 53, 108, 0.06); }
.f-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--acento); color: #fff; }
.f-ico svg { width: 26px; height: 26px; }
.pasos-h b, .pasos2 b, .eje span { color: var(--cian); font-size: 22px; font-weight: 700; }

/* Tarjetas de servicios: el título en una franja de vidrio sobre la foto */
.serv-card { background: var(--azul); }
.serv-card::after { display: none; }
.serv-card .t { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(14, 53, 108, 0.45); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); transition: background 0.35s var(--suave); }
.serv-card:hover .t { background: rgba(15, 122, 133, 0.6); }
.serv-card .ir { display: grid; position: absolute; right: 22px; bottom: 22px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #fff; color: var(--azul); font-weight: 700; transition: transform 0.35s var(--suave); z-index: 1; }
.serv-card:hover .ir { transform: translateX(4px); }
.serv-card .t { padding-right: 54px; }

/* Bandas azules */
.triptico h2 { color: #fff; }
.vx { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.vx h3 { color: #fff; }
.vx p { color: rgba(255, 255, 255, 0.8); }
.vx p a { color: var(--acento-claro); }
.banda-cta p { color: rgba(255, 255, 255, 0.78); }
.banda-cta .kicker { color: var(--acento-claro); }

/* Panel de ejemplo de la plataforma */
.mock { box-shadow: 0 40px 90px rgba(2, 36, 86, 0.22); }
.mock-top { background: var(--azul); }
.mock-top b { color: #fff; }
.mock-nota { color: rgba(255, 255, 255, 0.6); }

/* Pie de página oscuro */
.pie { background: var(--azul-2); color: rgba(255, 255, 255, 0.7); }
.pie .brand, .pie h4 { color: #fff; }
.pie .brand small { color: var(--acento-claro); }
.pie a { color: rgba(255, 255, 255, 0.72); }
.pie a:hover { color: #fff; }
.pie-base { border-top-color: rgba(255, 255, 255, 0.12); }

@media (max-width: 700px) {
  .hero.hero-fondo { min-height: calc(100svh - 56px); }
  .hero-fondo .hero-txt { margin-top: 110px; }
}
@media (prefers-reduced-motion: reduce) { .hero-fondo::before { animation: none; } }

/* Tira de fotos de instalaciones (inicio) */
.obras-tira { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(22px, calc((100vw - var(--max)) / 2)) 16px; scrollbar-width: none; }
.obras-tira::-webkit-scrollbar { display: none; }
.obras-tira figure { flex: 0 0 min(440px, 80vw); scroll-snap-align: start; }
.obras-tira .ampliar { border-radius: var(--radio-grande); aspect-ratio: 4 / 3; box-shadow: var(--sombra-suave); }
.obras-tira img { width: 100%; height: 100%; object-fit: cover; }
.obras-tira figcaption { margin-top: 10px; font-size: 15px; color: var(--texto-2); }
.obra .ampliar, .proy-img { box-shadow: var(--sombra-suave); }
.pie-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Logo oficial (imagen con el nombre) */
.brand img.logo-marca { width: auto; height: 38px; }
.pie .brand img.logo-marca { height: 44px; }
.pie .lema { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 700px) { .brand img.logo-marca { height: 32px; } }

/* Botón de WhatsApp: el logo oficial y sin tapar el contenido en el celular */
.wa svg { width: 30px; height: 30px; }
@media (max-width: 700px) {
  .wa-wrap { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .wa { width: 50px; height: 50px; }
  .wa svg { width: 27px; height: 27px; }
}

/* Banda final: foto aérea de una instalación que se funde a negro */
.banda-cta { background: #000 url("assets/obras/banda-campo.jpg") center 35% / cover no-repeat; padding: clamp(96px, 13vw, 168px) 0 clamp(88px, 11vw, 140px); }
.banda-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.88) 78%, #000 100%); }
.banda-cta h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.banda-cta p { color: rgba(255, 255, 255, 0.82); }
.banda-cta .btn.claro { background: #fff; color: #000; box-shadow: none; }
.banda-cta .btn.claro:hover { background: rgba(255, 255, 255, 0.86); color: #000; }
.pie { background: #000; }
.pie-base { border-top-color: rgba(255, 255, 255, 0.14); }

/* Fichas de información: todas del mismo tamaño (4:5) y con el título a la misma altura */
.ficha .ampliar { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; background: var(--fondo-2); }
.ficha .ampliar img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--suave); }
.ficha .ampliar:hover img { transform: scale(1.03); }
.ficha strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.ficha span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Portada del inicio: la foto ocupa toda la primera vista y el texto va sobre un degradado negro */
.hero.hero-fondo { min-height: calc(100svh - 56px); background: #000; }
.hero-fondo::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 32%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0) 80%), linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0) 55%); }
.hero-fondo .hero-txt { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: 680px; margin-bottom: clamp(56px, 9vh, 104px); }
.hero-fondo h1 { font-size: clamp(44px, 6.4vw, 92px); text-shadow: none; }
.hero-fondo .lead { color: rgba(255, 255, 255, 0.82); max-width: 34ch; }
.hero-fondo .chips { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 700px) {
  .hero-fondo::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.05) 100%); }
  .hero-fondo .hero-txt { margin-bottom: 40px; }
}

/* ===== Portada estilo cine: foto oscurecida a pantalla completa, texto centrado y menú transparente encima ===== */
.logo-claro { display: none; }
.hero.hero-fondo { min-height: 100svh; margin-top: -56px; align-items: center; text-align: center; }
.hero-fondo::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.6) 75%, #000 100%); }
.hero-fondo .hero-txt { justify-items: center; text-align: center; margin: 0 auto; max-width: 980px; padding: 120px 0 140px; }
.hero-fondo h1 { max-width: 16ch; margin-inline: auto; font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.035em; }
.hero-fondo .lead { margin-inline: auto; max-width: 44ch; font-size: clamp(18px, 2vw, 23px); color: rgba(255, 255, 255, 0.85); }
.hero-fondo .kicker { color: #fff; opacity: 0.9; letter-spacing: 0.02em; }
.hero-fondo .acciones, .hero-fondo .chips { justify-content: center; }
.btn.blanco { background: #fff; color: #000; box-shadow: none; }
.btn.blanco:hover { background: rgba(255, 255, 255, 0.86); color: #000; }
.btn.blanco svg, .btn.blanco span { color: inherit; }
.deslizar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; color: rgba(255, 255, 255, 0.85); font-size: 13px; text-decoration: none; }
.deslizar svg { width: 26px; height: 26px; }
.deslizar path { animation: rueda 1.8s ease-in-out infinite; }
@keyframes rueda { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(4px); opacity: 0; } 100% { opacity: 0; } }

/* Menú sobre la portada: oscuro translúcido con letras blancas; al bajar vuelve a ser blanco */
.top.sobre-portada { background: rgba(10, 10, 10, 0.32); border-bottom-color: rgba(255, 255, 255, 0.08); }
.top.sobre-portada .logo-claro { display: block; }
.top.sobre-portada .logo-marca:not(.logo-claro) { display: none; }
@media (min-width: 1101px) { .top.sobre-portada .menu > a:not(.btn), .top.sobre-portada .desp > a, .top.sobre-portada .desp-btn { color: #fff; } }
.top.sobre-portada .burger { color: #fff; }
.top.sobre-portada .burger span { background: #fff; }
.top.sobre-portada .btn.ingreso { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); background: transparent; }
.top.sobre-portada .btn.solo-escritorio:not(.ingreso) { background: #fff; color: #000; box-shadow: none; }
@media (max-width: 700px) {
  .hero-fondo .hero-txt { padding: 100px 0 120px; }
}
@media (prefers-reduced-motion: reduce) { .deslizar path { animation: none; } }
@media (prefers-reduced-transparency: reduce) {
  .top.sobre-portada { background: #0b0b0b; }
}
@media (prefers-reduced-transparency: reduce) and (min-width: 1101px) {
  .top.sobre-portada .menu { background: transparent; }
}
/* Etiquetas de la portada sin puntos: píldoras de vidrio */
.hero-fondo .chips { gap: 8px; flex-wrap: wrap; }
.hero-fondo .chips li + li::before { display: none; }
.hero-fondo .chips li { padding: 6px 14px; border-radius: 980px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.88); }

/* Portada del inicio con foto de paneles en alta resolución: degradado más suave para que la foto se vea */
.hero-fondo::before { background-position: center 40%; image-rendering: auto; }
.hero-fondo::after { background: linear-gradient(180deg, rgba(0, 10, 25, 0.5) 0%, rgba(0, 10, 25, 0.32) 38%, rgba(0, 10, 25, 0.5) 72%, #000 100%); }
.hero-fondo h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }

/* Menú con «Inicio»: en pantallas de computador medianas se juntan un poco los enlaces para que todo quepa */
@media (min-width: 1101px) and (max-width: 1320px) {
  .bar { gap: 14px; }
  .menu { gap: 18px; }
}
