/*
Theme Name: Kornetti
Theme URI: https://kornetti.com.ve
Description: Tema oficial de Kornetti — landing de la app de pizza en Kono. Textos editables desde Apariencia → Personalizar.
Author: Inversiones Inngenio
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kornetti
*/

/* ── Variables de marca (tokens reales de la app, ver landing/brand-guidelines.md) ── */
:root {
  --rojo: #D2202F;
  --rojo-osc: #A8121F;
  --amarillo: #F7C900;
  --verde: #259033;
  --dark: #22211F;
  --crema: #FFF7EE;
  --fondo: #FAF4EC;
  --card: #FFFFFF;
  --texto: #1F2937;
  --muted: #6B7280;
  --linea: #EEE2D6;
  --radio: 16px;
  --radio-sm: 12px;
  --sombra: 0 8px 24px rgba(210,32,47,.12);
  --sombra-suave: 0 2px 8px rgba(0,0,0,.06);
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--fondo);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }
.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rojo);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: .01em;
  text-wrap: balance;
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 700; font-family: var(--font-body); }
p { line-height: 1.6; color: var(--texto); }
.lead { font-size: 1.0625rem; color: var(--muted); line-height: 1.6; }
section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.75rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--rojo); color: #fff; box-shadow: var(--sombra); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(210,32,47,.22); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--linea); }
.btn-outline:hover { border-color: var(--rojo); color: var(--rojo); }
.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.0625rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250,244,236,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.site-header .logo img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--dark); }
.site-nav a:hover { color: var(--rojo); }
.nav-links { display: flex; gap: 1.75rem; }
@media (max-width: 780px) { .nav-links { display: none; } }

/* ── Hero ── */
.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; text-align: center; } }
.hero-badges { display: flex; gap: .85rem; margin-top: 1.75rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-badges { justify-content: center; } }
.store-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem; border-radius: 14px;
  background: var(--dark); color: #fff; text-decoration: none; box-shadow: var(--sombra-suave);
  transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .txt { text-align: left; line-height: 1.1; }
.store-badge .txt small { display: block; font-size: .65rem; opacity: .75; font-weight: 500; }
.store-badge .txt b { font-size: 1rem; font-weight: 800; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .ring {
  position: absolute; inset: -6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,201,0,.35), transparent 70%);
  filter: blur(10px); z-index: 0;
}
.hero-visual img {
  position: relative; z-index: 1; border-radius: 28px; box-shadow: 0 30px 60px rgba(34,33,31,.25);
  max-height: 480px; width: auto; object-fit: cover;
}

/* ── Chips de valor ── */
.value-chips { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; padding: 2.5rem 0; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--card); border: 1.5px solid var(--linea);
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .9375rem;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }

/* ── Sección Kono ── */
.kono-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .kono-section .container { grid-template-columns: 1fr; } }
.kono-section img { border-radius: var(--radio); box-shadow: var(--sombra); }
.kono-section .kono-text { order: 2; }
@media (max-width: 900px) { .kono-section .kono-text { order: unset; } }

/* ── Menú destacado ── */
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; margin-top: 2.5rem;
}
.menu-card {
  background: var(--card); border-radius: var(--radio); padding: 1.25rem; text-align: center;
  box-shadow: var(--sombra-suave); border: 1px solid var(--linea); transition: transform .15s ease, box-shadow .15s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.menu-card .img-wrap {
  background: var(--crema); border-radius: var(--radio-sm); aspect-ratio: 1/1; display: flex;
  align-items: center; justify-content: center; overflow: hidden; margin-bottom: .85rem;
}
.menu-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.menu-card .nombre { font-weight: 800; font-size: .95rem; }
.menu-cta { text-align: center; margin-top: 2.5rem; }

/* ── Sección app (features) ── */
.app-section { background: var(--dark); color: #fff; }
.app-section .eyebrow { color: var(--amarillo); }
.app-section h2 { color: #fff; }
.app-section .lead { color: rgba(255,255,255,.72); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.feature { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radio); padding: 1.5rem; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--rojo); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.35rem; }
.feature h3 { color: #fff; font-size: 1.05rem; }
.feature p { color: rgba(255,255,255,.68); font-size: .9rem; margin: 0; }
.app-cta { text-align: center; margin-top: 1rem; }
.app-cta .hero-badges { justify-content: center; margin-top: 1.5rem; }

/* ── Sedes ── */
.sedes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.sede-card { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-suave); background: var(--card); border: 1px solid var(--linea); }
.sede-card img { height: 200px; width: 100%; object-fit: cover; }
.sede-card .info { padding: 1.1rem 1.25rem; }
.sede-card .info h3 { margin-bottom: .2rem; }
.sede-card .info span { color: var(--muted); font-size: .875rem; }

/* ── Franquicia ── */
.franquicia-section {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-osc)); color: #fff; border-radius: 32px;
  margin: 0 clamp(1.25rem,5vw,4rem); padding: clamp(3rem,6vw,5rem) clamp(2rem,5vw,4rem); text-align: center;
}
.franquicia-section .eyebrow { color: var(--amarillo); }
.franquicia-section h2 { color: #fff; }
.franquicia-section p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 2rem; }
.franquicia-section .btn-primary { background: #fff; color: var(--rojo); }
.territorios { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
.territorios span { background: rgba(255,255,255,.15); padding: .4rem .9rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; }

/* ── Footer ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 3.5rem 0 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top .logo img { height: 40px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer-links a { display: block; text-decoration: none; color: rgba(255,255,255,.62); font-size: .9rem; margin-bottom: .55rem; }
.footer-links a:hover { color: var(--amarillo); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; font-size: .8125rem; }
.footer-bottom .cred b { color: var(--rojo); }
.social-links { display: flex; gap: .9rem; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social-links a:hover { background: var(--rojo); }

/* ── Generic page (legal / franquicia landing pages) ── */
.page-content { max-width: 780px; margin: 0 auto; padding: 4rem clamp(1.25rem,5vw,4rem) 6rem; }
.page-content h1 { font-size: clamp(2rem,4vw,3rem); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
