/*
Theme Name:         Cuponaccess
Theme URI:          https://cuponaccess.com
Author:             Cuponaccess
Author URI:         https://cuponaccess.com
Description:        Tema oficial de Cuponaccess. Landing corporativo + demo embebida del app Cupon Go con catálogo real de Bonda (1.716 beneficios).
Version:            3.1.2
Requires at least:  6.0
Tested up to:       6.9
Requires PHP:       7.4
License:            GPL-2.0-or-later
License URI:        https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        cuponaccess-theme
Tags:               landing, marketing, loyalty, business
*/

/*
Theme Name: Cupon Access
Theme URI: https://cuponaccess.com
Author: Cupon Access
Author URI: https://cuponaccess.com
Description: Tema institucional para Cupon Access — single-page con scroll. Hero con brand card estático (ambos logos siempre visibles). Sección Cupon Go con prototipo del app embebido (cupones con código, sin QR ni niveles). Editable desde Apariencia > Personalizar.
Version: 3.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cuponaccess
Tags: business, one-page, custom-logo, custom-menu, responsive
*/

:root {
  --cyan-light: #3FCFE8;
  --cyan: #1FB5D6;
  --blue-mid: #1A6FE0;
  --blue-deep: #1A4FCC;
  --navy: #0F1F8F;
  --navy-deep: #08144A;
  --ink: #0E1726;
  --ink-soft: #3A4254;
  --muted: #6B7280;
  --line: #E6EAF0;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --container: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 6px rgba(15, 31, 143, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 31, 143, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 31, 143, 0.12);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* TYPE */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }
p { color: var(--ink-soft); }
.lead { font-size: 1.125rem; color: var(--ink-soft); line-height: 1.65; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(31, 181, 214, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.grad {
  background: linear-gradient(90deg, var(--cyan-light) 0%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 31, 143, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 31, 143, 0.35);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s var(--ease);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(15, 31, 143, 0.06);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 80px; width: auto; transition: height 0.3s var(--ease); }
.navbar.scrolled .nav-logo img { height: 60px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
  color: #fff;
}
.nav-links .nav-cta:hover {
  background: linear-gradient(135deg, var(--cyan-light) 0%, var(--blue-deep) 100%);
  color: #fff;
  transform: translateY(-1px);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(63, 207, 232, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(15, 31, 143, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 31, 143, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero h1 { margin-bottom: 24px; }
.hero-sub { font-size: 1.15rem; margin-bottom: 32px; color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 38px;
  border: 2px solid var(--ink-soft);
  border-radius: 12px;
  opacity: 0.5;
}
.hero-scroll span {
  display: block;
  width: 3px; height: 8px;
  background: var(--ink);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scroll 1.6s ease-in-out infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* BRAND CARD (hero right side) */
.hero-motion { position: relative; display: grid; place-items: center; }
.brand-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: 0 40px 100px rgba(15, 31, 143, 0.18);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.bc-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(63, 207, 232, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(15, 31, 143, 0.08), transparent 60%);
  pointer-events: none;
}
.brand-card > * { position: relative; z-index: 1; }
.bc-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(31, 181, 214, 0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.bc-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.bc-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.bc-logo { display: block; width: auto; max-width: 100%; height: auto; }
.bc-logo-access { max-height: 64px; max-width: 80%; }
.bc-logo-go { max-height: 100px; max-width: 70%; filter: drop-shadow(0 8px 24px rgba(15, 31, 143, 0.18)); }
.bc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}
.bc-divider::before, .bc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.bc-plus {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 14px;
  box-shadow: 0 6px 14px rgba(15, 31, 143, 0.30);
}
.bc-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.bc-tagline .grad { font-weight: 700; }
.bc-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.bc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.bc-pill b { color: var(--cyan); font-weight: 800; }

/* SECTIONS */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-soft); }
.section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-header h2 { margin-bottom: 16px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}
.two-col h2 { margin-bottom: 0; }
.two-col p + p { margin-top: 16px; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: all 0.3s var(--ease);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 181, 214, 0.3);
}
.value-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(63,207,232,0.15) 0%, rgba(15,31,143,0.12) 100%);
  color: var(--navy);
  margin-bottom: 18px;
}
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.95rem; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-light), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.service-card > p { margin-bottom: 18px; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-card li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 0.95rem; }
.service-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

/* CUPON GO SECTION */
.cupongo-section {
  background:
    radial-gradient(ellipse 50% 40% at 95% -10%, rgba(63, 207, 232, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 50% at -5% 110%, rgba(15, 31, 143, 0.10), transparent 60%),
    linear-gradient(180deg, #FAF7F2 0%, #F3ECDF 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.cupongo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 31, 143, 0.07) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, #000 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, #000 90%);
  pointer-events: none;
  z-index: 0;
}
.cupongo-section .container { position: relative; z-index: 1; }
.cupongo-section h2 { color: var(--ink); margin-bottom: 16px; }
.cupongo-section .lead { color: var(--ink-soft); }
.cupongo-section .grad {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cupongo-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cupongo-logo {
  height: auto;
  width: auto;
  max-height: 130px;
  max-width: 100%;
  margin: 0 0 24px;
  filter: drop-shadow(0 8px 24px rgba(15, 31, 143, 0.18));
}
.cupongo-features {
  list-style: none;
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cupongo-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.cupongo-features span {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 31, 143, 0.22);
}
.cupongo-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Iframe del prototipo embebido */
.cupongo-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cupongo-iframe {
  width: 100%;
  max-width: 460px;
  height: 900px;
  max-height: 86vh;
  border: 0;
  border-radius: 28px;
  background: transparent;
  display: block;
  filter: drop-shadow(0 40px 80px rgba(15, 31, 143, 0.18));
}
.demo-hint { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* CONTACTO */
.section-contact { background: var(--bg-soft); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-email {
  display: inline-block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 12px;
  border-bottom: 2px dashed var(--cyan);
  padding-bottom: 4px;
  transition: all 0.2s var(--ease);
}
.contact-email:hover { color: var(--cyan); border-bottom-style: solid; }
.contact-note { font-size: 0.9rem; color: var(--muted); }
.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form span { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: all 0.2s var(--ease);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31,181,214,0.12);
}
.form-status { font-size: 0.9rem; color: var(--cyan); min-height: 20px; }

/* FOOTER */
.footer { background: var(--ink); color: #fff; padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  margin-bottom: 50px;
}
.footer-logo { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-cols a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.footer-cols a:hover { color: var(--cyan-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* REVEAL ANIMATIONS — visible by default, JS opts in to the fade-in */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}
html.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 12px; right: 12px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-motion { order: 2; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .cupongo-inner { grid-template-columns: 1fr; gap: 60px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 80px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-stats > div { flex-direction: row; gap: 8px; align-items: baseline; }
  .brand-card { padding: 28px 20px; }
  .bc-logo-access { max-height: 48px; }
  .bc-logo-go { max-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
