/* GoResto · web (goresto.es). Estilo limpio de producto: blanco, aire, tarjetas suaves. Escala φ: 16 → 20 → 26 → 42;
   espacios Fibonacci 8 · 13 · 21 · 34 · 55 · 89. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.woff) format('woff'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.woff) format('woff'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/Inter-Bold.woff) format('woff'); }
@font-face { font-family: Mansalva; font-display: block; src: url(fonts/Mansalva-Logo.woff) format('woff'); }

:root {
  --primary: #1658EE;
  --primary-dark: #0F44C0;
  --red: #E91B1C;
  --green: #10B981;
  --ink: #1F2430;
  --muted: #5F6778;
  --line: #E3E6EB;
  --subtle: #F5F7FA;
  --tint: #EEF3FF;
  --bg: #FFFFFF;
  --dark: #141823;
  --radius: 13px;
  --shadow: 0 8px 34px rgba(20, 35, 80, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.618 Inter, system-ui, sans-serif; }
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 13px; line-height: 1.18; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 5.4vw, 55px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 13px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 21px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }

/* Logo (el SVG en línea: icono y «Go! Resto» en Mansalva) */
.logo { display: block; height: 48px; width: auto; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }

/* Botones */
.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; border: 1px solid var(--primary); background: var(--primary); color: #fff; font: 600 16px/1.2 Inter, sans-serif; cursor: pointer; text-align: center; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; box-shadow: 0 6px 21px rgba(22, 88, 238, .25); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); color: var(--primary-dark); border-color: var(--tint); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-light { background: #fff; border-color: #fff; color: var(--primary); }
.btn-light:hover { background: var(--tint); border-color: var(--tint); color: var(--primary-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 15px; margin-bottom: 8px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 21px; height: 72px; }
.nav { display: flex; gap: 26px; margin-left: 34px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav .nav-login { display: none; }
/* Menú «Productos»: desplegable al pasar o pulsar (en el móvil, abierto dentro del menú) */
.dd { position: relative; }
.dd-btn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); font: 600 15px/1.618 Inter, sans-serif; display: inline-flex; align-items: center; gap: 6px; }
.dd-btn::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dd-btn:hover, .dd.open .dd-btn { color: var(--primary); }
.dd.open .dd-btn::after { transform: translateY(1px) rotate(-135deg); }
.dd-menu { display: none; position: absolute; top: calc(100% + 13px); left: -21px; width: 380px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 13px 42px rgba(20, 35, 80, .14); }
.dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd.open .dd-menu { display: block; }
@media (hover: hover) and (min-width: 721px) { .dd:hover .dd-menu { display: block; } .dd:hover .dd-btn { color: var(--primary); } }
.nav .dd-menu a { display: flex; gap: 13px; align-items: center; padding: 10px 13px; border-radius: 8px; }
.nav .dd-menu a:hover, .nav .dd-menu a[aria-current] { background: var(--subtle); }
.dd-menu img { flex: none; border-radius: 8px; }
.dd-menu b { display: block; font-size: 15px; color: var(--ink); }
.dd-menu small { display: block; font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--muted); }
.top-login { margin-left: auto; color: var(--ink); font-weight: 600; font-size: 15px; }
.top-login:hover { color: var(--primary); text-decoration: none; }
.menu { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 0; }
.menu span, .menu span::before, .menu span::after { display: block; width: 21px; height: 2px; margin: 0 auto; background: var(--ink); position: relative; content: ''; }
.menu span::before { position: absolute; top: -7px; }
.menu span::after { position: absolute; top: 7px; }

/* Portada: texto a la izquierda, imagen a la derecha */
.hero { padding: 89px 0 55px; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 55px; align-items: center; }
/* Las columnas de las rejillas no crecen más que la pantalla (imágenes y pestañas) */
.hero-in > *, .row-in > *, .split > *, .facts-in > *, .cards > *, .foot-in > * { min-width: 0; }
body { overflow-x: hidden; }
.hero-text h1 { margin-bottom: 21px; }
.hero .cta { margin-top: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.center .cta { justify-content: center; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 21px; margin: 21px 0 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust li { position: relative; padding-left: 21px; }
.trust li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.hero-media img { display: block; width: 100%; height: auto; border-radius: 21px; box-shadow: 0 21px 55px rgba(20, 35, 80, .18); }

/* Lo esencial, en una franja */
.facts { border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-in > div { padding: 34px 21px; text-align: center; }
.facts-in > div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 20px; }
.facts span { color: var(--muted); font-size: 15px; }

/* Funciones: pestañas fijas bajo la cabecera y filas de imagen y texto, alternas */
.features { padding-top: 89px; }
.features > .wrap h2 { margin-bottom: 13px; }
.tabs { position: sticky; top: 72px; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 34px; }
.tabs-in { display: flex; gap: 8px; overflow-x: auto; padding-top: 13px; padding-bottom: 13px; scrollbar-width: none; justify-content: center; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 18px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; background: var(--subtle); }
.tabs a:hover, .tabs a.on { background: var(--primary); color: #fff; text-decoration: none; }
.row { padding: 55px 0; }
.row-in { display: grid; grid-template-columns: 1fr 1fr; gap: 89px; align-items: center; }
.row.flip .row-media { order: 2; }
.row-text h3 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 8px; }
.row-text .sub { font-size: 18px; font-weight: 400; color: var(--ink); margin-bottom: 13px; }
.row-text > p:not(.sub) { color: var(--muted); font-size: 16px; }
.row-text .checks { margin-top: 21px; }
.row-media > img { display: block; width: 100%; height: auto; border-radius: 21px; box-shadow: var(--shadow); }
/* Fotos recortadas (aparatos sin fondo): sombra con su forma, sin marco */
.row-media > img.cut, .hero-media img.cut { border-radius: 0; box-shadow: none; filter: drop-shadow(0 21px 21px rgba(20, 35, 80, .2)); }
.row-media > img.bare, .hero-media img.bare { border-radius: 0; box-shadow: none; }
.row-media > img.cut { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; }
/* Hueco de una imagen que aún no está (páginas de producto) */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 16 / 10; padding: 21px; border: 2px dashed var(--line); border-radius: 21px; background: var(--subtle); color: var(--muted); text-align: center; }
.ph span { font-weight: 600; }
.ph small { font-size: 13px; font-family: ui-monospace, monospace; }
.phones { display: flex; justify-content: center; gap: 21px; }
.phones img { width: 44%; height: auto; filter: drop-shadow(0 13px 21px rgba(20, 35, 80, .2)); }
.phones img:last-child { margin-top: 55px; }
.ticket { width: 260px; margin: 0 auto; padding: 21px; background: #fff; border-radius: 8px; box-shadow: 0 13px 34px rgba(20, 35, 80, .16); font: 13px/1.6 'Courier New', monospace; text-align: center; }
.ticket b { display: block; font-size: 15px; }
.ticket hr { border: 0; border-top: 1px dashed var(--line); margin: 13px 0; }
.ticket p { display: flex; justify-content: space-between; margin: 0; text-align: left; }
.ticket .t { font-weight: 700; font-size: 15px; }
.ticket .qr { display: block; width: 89px; height: 89px; margin: 21px auto 4px; background:
  conic-gradient(from 90deg at 30% 30%, var(--ink) 25%, transparent 0) 0 0 / 21px 21px,
  repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px),
  repeating-linear-gradient(0deg, transparent 0 6px, #fff 6px 11px); border: 6px solid var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding: 21px; background: var(--subtle); border-radius: 21px; }
.stats > div:not(.bars) { background: #fff; border-radius: var(--radius); padding: 13px; box-shadow: 0 4px 13px rgba(20, 35, 80, .06); }
.stats b { display: block; font-size: 20px; }
.stats span { font-size: 13px; color: var(--muted); }
.stats .bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 13px; height: 144px; padding: 13px; background: #fff; border-radius: var(--radius); }
.stats .bars i { flex: 1; height: 40%; background: var(--primary); border-radius: 6px 6px 0 0; opacity: .85; }
.stats .bars i:nth-child(2) { height: 62%; } .stats .bars i:nth-child(3) { height: 48%; } .stats .bars i:nth-child(4) { height: 80%; }
.stats .bars i:nth-child(5) { height: 100%; } .stats .bars i:nth-child(6) { height: 72%; } .stats .bars i:nth-child(7) { height: 55%; }

/* Bloques */
.block { padding: 89px 0; }
.block.alt { background: var(--subtle); }
.block h2 { margin-bottom: 13px; }
.block .lead { margin-bottom: 55px; }
.split { display: grid; grid-template-columns: 1fr 1.618fr; gap: 55px; align-items: start; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; }
.card p:last-child { margin-bottom: 0; }

/* Tarjetas de producto y de ayuda */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; }
.pcard { display: block; background: #fff; border-radius: var(--radius); padding: 34px 26px; box-shadow: var(--shadow); color: var(--ink); }
.pcard img { display: block; margin-bottom: 21px; }
.pcard p { color: var(--muted); margin: 0; }
.pcard.link { transition: transform .15s, box-shadow .15s; }
.pcard.link:hover { transform: translateY(-3px); box-shadow: 0 13px 42px rgba(20, 35, 80, .14); text-decoration: none; }
.cards4 { grid-template-columns: repeat(4, 1fr); }
.cards4 .pcard.link p { color: var(--muted); font-weight: 400; font-size: 15px; }
.pcard.link p { color: var(--primary); font-weight: 600; }

/* Para quién */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin: 0 auto; padding: 0; max-width: 900px; }
.chips li { padding: 10px 21px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; background: #fff; }

/* Listas con marca */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.checks li.plain { padding-left: 0; color: var(--muted); font-size: 14px; }
.checks li.plain::before { display: none; }

/* Módulos */
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 13px; }
.mod { display: flex; align-items: center; gap: 13px; padding: 13px; background: #fff; border-radius: var(--radius); font-weight: 600; font-size: 15px; box-shadow: 0 2px 8px rgba(20, 35, 80, .05); }
.mod img { flex: none; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 21px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 21px 21px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 21px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.plan .price { font-size: 42px; font-weight: 700; line-height: 1; margin: 8px 0 4px; }
.plan .checks { margin: 21px 0; flex: 1; font-size: 15px; }
.plan .btn { width: 100%; }
.addons { max-width: 890px; margin: 55px auto 21px; }
.addons h3 { font-size: 24px; margin: 0 0 13px; }
.addons h3 span { color: var(--muted); font-weight: 400; font-size: 18px; }
.addon { display: flex; align-items: center; gap: 21px; padding: 21px 0; border-top: 1px solid var(--line); }
.addon:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 13px; }
.addon img { flex: none; border-radius: 10px; }
.addon-text { flex: 1; min-width: 0; }
.addon-text b { font-size: 17px; }
.addon-text p { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.addon-price { flex: none; min-width: 120px; text-align: right; }
.addon-price b { display: block; font-size: 22px; white-space: nowrap; }
.addon-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.addon-price span { color: var(--muted); font-size: 14px; }

/* Preguntas */
.faq h2 { margin-bottom: 34px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 21px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 13px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 21px; color: var(--muted); margin: 0; }

/* Llamada final */
.band { padding: 89px 0; background: var(--primary); color: #fff; }
.band .lead { color: rgba(255, 255, 255, .85); }

/* Formulario */
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 13px; }
.form input, .form textarea, .form select { display: block; width: 100%; margin-top: 4px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; font: 400 16px Inter, sans-serif; color: var(--ink); background: var(--bg); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; }
.form-msg { margin: 13px 0 0; padding: 10px 13px; border-radius: 8px; font-weight: 600; }
.form-msg.ok { background: #A2E4B0; color: #0B3D1E; }
.form-msg.err { background: #FDE2E2; color: #8A1111; }

/* Legal */
.legal h1 { margin-bottom: 34px; }
.legal h2 { font-size: 20px; margin-top: 34px; }

/* Pie oscuro */
.foot { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 89px 0 34px; }
.foot-in { display: grid; grid-template-columns: 1.618fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 55px; }
.foot h4 { color: #fff; margin-bottom: 13px; }
.foot a:not(.btn) { color: rgba(255, 255, 255, .72); }
.foot a:not(.btn):hover { color: #fff; }
.foot p { line-height: 2; }
.foot-brand p { line-height: 1.618; max-width: 320px; margin: 21px 0; }
.foot .logo text { fill: #fff; }
.foot-end { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 21px; font-size: 13px; }

@media (max-width: 960px) {
  .hero-in, .split, .row-in { grid-template-columns: 1fr; }
  .hero-in { gap: 34px; }
  .row-in { gap: 34px; }
  .row.flip .row-media { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .facts-in > div:nth-child(3) { border-left: 0; }
  .facts-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
  .tabs-in { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .addon { gap: 13px; align-items: flex-start; }
  .addon img { width: 36px; height: 36px; }
  .addon-price { min-width: 0; }
  html { scroll-padding-top: 120px; }
  .wrap { padding: 0 16px; }
  .logo { height: 38px; }
  .menu { display: block; }
  .top-in { gap: 13px; height: 64px; }
  .top-login { display: none; }
  .top .btn-sm { margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 13px; }
  .nav.open { display: flex; }
  .nav a, .nav .nav-login { display: block; padding: 13px 0; }
  .dd-btn { padding: 13px 0; width: 100%; justify-content: space-between; }
  .dd-menu { position: static; width: auto; padding: 0 0 8px; border: 0; box-shadow: none; }
  .dd-menu::before { display: none; }
  .nav .dd-menu a { padding: 8px 0; }
  .tabs { top: 64px; }
  .hero { padding: 55px 0 34px; }
  .features { padding-top: 55px; }
  .row { padding: 34px 0; }
  .block, .band { padding: 55px 0; }
  .lead { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; gap: 0; }
}

/* Teléfonos dibujados (img/tel-*.svg): del color y tamaño del texto que los rodea */
.tel { color: inherit; text-decoration: none; white-space: nowrap; }
.tel svg { vertical-align: -0.14em; }
.tel:hover { opacity: .8; }

/* Pasos numerados (Partners › Cómo empezar) */
.steps { counter-reset: step; list-style: none; margin: 34px 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 21px 55px; min-height: 34px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
