/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ─── VARIABLES · Soft Modern Canario ───────────────────── */
:root {
  --bg:          #fbf7ec;
  --card:        #ffffff;
  --card-soft:   #ebe6dc;
  --ink:         #1f1c18;
  --ink-soft:    rgba(31,28,24,.62);
  --ink-faint:   rgba(31,28,24,.36);
  --rule:        rgba(31,28,24,.08);
  --accent:      #f5c518;
  --accent2:     #c2410c;
  --accent-soft: #fef9e0;
  --accent-ink:  #1f1c18;
  --font-display:'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body:   'Inter', -apple-system, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --pad:  40px;
}

/* ─── BASE ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── CONTAINER ──────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── NAV ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px;
  background: var(--bg);
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all .15s;
  white-space: nowrap;
}

.nav-links a:hover { background: rgba(31,28,24,.06); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: #fff; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: .9; background: var(--accent) !important; }
.nav-cta.active { background: var(--accent) !important; color: var(--accent-ink) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .2s;
}

/* ─── WHATSAPP BUBBLE ────────────────────────────────────── */
.wa-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  z-index: 99;
  transition: transform .2s;
}
.wa-bubble:hover { transform: scale(1.08); }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section     { padding: var(--pad); }
.section-lg  { padding: calc(var(--pad) * 1.5) var(--pad); }
.section-sm  { padding: calc(var(--pad) * .5) var(--pad); }

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-label::before { content: '✦'; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.d1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 600;
  letter-spacing: -2.5px;
  line-height: .97;
}
.d2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
}
.d3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.05;
}
.d4 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.lead-lg {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
em.accent { color: var(--accent2); font-style: italic; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-body);
  text-decoration: none;
  line-height: 1;
}
.btn-dark   { background: var(--ink); color: #fff; }
.btn-dark:hover  { opacity: .88; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { opacity: .88; }
.btn-white  { background: #fff; color: var(--ink); }
.btn-white:hover { opacity: .92; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card        { background: var(--card);      border-radius: var(--r-lg); padding: var(--pad); }
.card-soft   { background: var(--card-soft); border-radius: var(--r-lg); padding: var(--pad); }

/* ─── GRIDS ──────────────────────────────────────────────── */
.g-2   { display: grid; grid-template-columns: 1fr 1fr;           gap: 16px; }
.g-3   { display: grid; grid-template-columns: repeat(3,1fr);     gap: 16px; }
.g-4   { display: grid; grid-template-columns: repeat(4,1fr);     gap: 12px; }
.g-1-1 { display: grid; grid-template-columns: 1fr 1fr;           gap: var(--pad); align-items: center; }
.g-1-2 { display: grid; grid-template-columns: 1fr 1.1fr;         gap: var(--pad); align-items: center; }
.g-2-1 { display: grid; grid-template-columns: 1.2fr 1fr;         gap: var(--pad); align-items: center; }

/* ─── PAGE HEADER ────────────────────────────────────────── */
.page-hero { padding: var(--pad) var(--pad) calc(var(--pad)*.5); }
.page-hero .card { min-height: 220px; }

/* ─── HERO HOME ──────────────────────────────────────────── */
.hero { padding: 28px 24px 20px; }

.hero-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.hero-images {
  position: relative;
  height: 440px;
}
.hero-img-a {
  position: absolute;
  top: 0; right: 10px;
  width: 440px; height: 340px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-soft);
  padding: 14px;
  transform: rotate(-3deg);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.hero-img-b {
  position: absolute;
  bottom: 10px; left: 0;
  width: 390px; height: 370px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--accent);
  padding: 14px;
  transform: rotate(4deg);
  box-shadow: 0 8px 30px rgba(245,197,24,.3);
}
/* notebook PNG con fondo transparente → contain para que se vea completo */
.hero-img-a img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.hero-img-b img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}
.hero-badge {
  position: absolute;
  top: 110px; right: 0;
  padding: 10px 14px;
  background: var(--accent2);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(-2deg);
  box-shadow: 0 4px 16px rgba(194,65,12,.3);
}

/* ─── SERVICES ───────────────────────────────────────────── */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--pad);
}

.svc-card {
  background: var(--card);
  padding: 28px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.svc-card.featured { background: var(--accent); color: var(--accent-ink); }

.svc-kicker {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  color: var(--accent2);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.svc-card.featured .svc-kicker { background: rgba(31,28,24,.1); color: var(--accent-ink); }

.svc-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: -.5px; line-height: 1.15;
  margin-bottom: 12px;
}
.svc-blurb { font-size: 14px; line-height: 1.6; opacity: .7; flex: 1; }

.svc-foot {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: flex-start;
  align-items: center; font-size: 13px; font-weight: 500;
}
.svc-card.featured .svc-foot { border-top-color: rgba(31,28,24,.15); }

/* ─── SHOWCASE BLOCK ─────────────────────────────────────── */
.showcase {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad);
  align-items: center;
  overflow: hidden;
}
.showcase-mock {
  background: var(--card-soft);
  border-radius: 16px;
  padding: 16px;
  transform: rotate(2deg);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}
.showcase-mock img {
  border-radius: 8px;
  width: 100%; height: 220px;
  object-fit: cover; object-position: top;
}

/* ─── VALUE CARDS ────────────────────────────────────────── */
.value-card { background: var(--card); border-radius: 24px; padding: var(--pad); }
.value-title {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 600;
  color: var(--accent2); letter-spacing: -.6px;
  margin-bottom: 12px;
}
.value-body { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ─── SERVICES PAGE ROWS ─────────────────────────────────── */
.svc-row {
  background: var(--card);
  border-radius: 24px;
  padding: var(--pad);
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: var(--pad);
  align-items: start;
}
.svc-row .svc-kicker { width: 80px; height: 80px; border-radius: 20px; font-size: 28px; }

.bullets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.bullet {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bullet .ck { color: var(--accent2); margin-top: 1px; flex-shrink: 0; }

/* ─── SOFTWARE TABS ──────────────────────────────────────── */
.product-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--pad); }

.ptab {
  background: var(--card);
  color: var(--ink);
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-body);
  text-align: left;
}
.ptab.active { background: var(--ink); color: #fff; }
.ptab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); }
.ptab.inactive .ptab-dot { background: var(--ink-faint); }
.ptab.active   .ptab-dot { background: var(--accent); }
.ptab-tag  { font-size: 11px; opacity: .7; font-weight: 500; }
.ptab-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; }

.panel { display: none; }
.panel.active { display: block; }

.product-detail {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad);
  align-items: start;
}

.product-summary {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500; line-height: 1.4;
  margin-bottom: 24px;
}

.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.feat-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent2); font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}

.product-shot {
  background: var(--card-soft);
  border-radius: 20px;
  padding: 16px;
  position: relative;
}
.product-shot img {
  width: 100%; height: 300px;
  object-fit: cover; object-position: top;
  border-radius: 12px;
}
.live-badge {
  position: absolute; bottom: 28px; left: 28px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 6px 12px;
  font-size: 11px; font-weight: 600;
}

/* ─── PRICING ────────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.plan-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-card.featured { background: var(--ink); color: #fff; }

.plan-badge {
  position: absolute; top: -10px; right: 20px;
  background: var(--accent2); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
}
.plan-name  { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.plan-price { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -1px; margin-top: 14px; }
.plan-period { font-size: 12px; opacity: .6; margin-bottom: 20px; }

.plan-perks { display: flex; flex-direction: column; gap: 8px; flex: 1; margin-bottom: 24px; }
.plan-perk  { font-size: 13px; opacity: .85; display: flex; gap: 8px; }
.plan-perk::before { content: '·'; color: var(--accent2); flex-shrink: 0; }
.plan-card.featured .plan-perk::before { color: var(--accent); }

/* ─── PRODUCT CARDS ─────────────────────────────────────── */
.prod-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.prod-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.prod-card-img {
  width: 100%; height: 210px;
  object-fit: cover; object-position: center;
  display: block;
}
.prod-card-img-ph {
  width: 100%; height: 210px;
  background: var(--card-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 12px; letter-spacing: .5px;
  text-transform: uppercase; font-family: var(--font-display);
}
.prod-card-body {
  padding: 22px 24px 0;
  flex: 1; display: flex; flex-direction: column;
}
.prod-card-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; line-height: 1.2;
  margin-bottom: 8px; color: var(--ink);
}
.prod-card-text {
  font-size: 13px; line-height: 1.6;
  color: var(--ink-soft); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.prod-card-foot {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}

/* ─── NOSOTROS ───────────────────────────────────────────── */
.about-photos { position: relative; height: 460px; }
.about-photo-a {
  position: absolute; top: 0; right: 0;
  width: 390px; height: 300px;
  border-radius: 20px;
  background: var(--card-soft);
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
  overflow: hidden;
}
.about-photo-b {
  position: absolute; bottom: 0; left: 0;
  width: 300px; height: 235px;
  border-radius: 20px;
  background: var(--card-soft);
  padding: 12px;
  transform: rotate(-3deg);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  overflow: hidden;
}
.about-photo-a img,
.about-photo-b img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; border-radius: 10px;
}

.stat-card { border-radius: 20px; padding: 24px; background: var(--card); }
.stat-card.featured { background: var(--accent2); color: #fff; }
.stat-val { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.stat-lbl { font-size: 13px; opacity: .7; margin-top: 8px; }

/* ─── CONTACTO ───────────────────────────────────────────── */
.contact-item {
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  margin-bottom: 10px;
  transition: box-shadow .15s;
}
.contact-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }

.ci-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.ci-icon.green { background: #25d366; color: #fff; }
.ci-lbl   { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.ci-val   { font-size: 15px; font-weight: 500; margin-top: 2px; white-space: pre-line; }
.ci-cta   {
  background: #25d366; color: #fff;
  border: none; padding: 8px 14px;
  font-size: 12px; font-weight: 600; border-radius: 999px;
  margin-left: auto; flex-shrink: 0; white-space: nowrap;
  font-family: var(--font-body); cursor: pointer;
  text-decoration: none; display: inline-block;
}

/* ─── FORM ───────────────────────────────────────────────── */
.form-wrap { background: var(--bg); border-radius: 20px; padding: var(--pad); }
.form-wrap h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-bottom: 6px; }
.field input,
.field textarea,
.field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--rule);
  background: #fff; font-size: 14px;
  font-family: var(--font-body); color: var(--ink);
  outline: none; border-radius: 12px;
  transition: border-color .15s;
  box-sizing: border-box;
  resize: vertical;
  appearance: none;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent2); }

.map-block { border-radius: 20px; overflow: hidden; position: relative; margin-top: 16px; border: 1px solid var(--rule); }
.map-label {
  position: absolute; left: 16px; bottom: 16px;
  background: #fff; border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  font-size: 13px; font-weight: 500; pointer-events: none;
  color: var(--ink);
}

.alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.alert-ok  { background: #d1fae5; color: #065f46; }
.alert-err { background: #fee2e2; color: #991b1b; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { padding: 0 var(--pad) var(--pad); }
.footer-inner { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: var(--pad); }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--pad); }

.footer-tagline { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 12px; line-height: 1.5; max-width: 280px; }
.footer-col-ttl { font-size: 11px; color: var(--accent); font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul  { display: flex; flex-direction: column; gap: 8px; }
.footer-col li  { font-size: 13px; color: rgba(255,255,255,.7); }
.footer-col a   { color: rgba(255,255,255,.7); transition: color .15s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: var(--pad); padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; color: rgba(255,255,255,.4);
  display: flex; justify-content: space-between;
}

/* ─── MISC ───────────────────────────────────────────────── */
.kicker-pill {
  display: inline-flex; align-items: center;
  background: var(--accent-soft); color: var(--accent2);
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.mt-auto { margin-top: auto; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 920px) {
  :root { --pad: 24px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--card);
    border-radius: var(--r-md);
    padding: 12px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-links.open a { padding: 12px 16px; border-radius: 12px; }

  .hero-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; min-height: unset; }
  .hero-images { display: none; }

  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-1-1, .g-1-2, .g-2-1 { grid-template-columns: 1fr; gap: 24px; }
  .showcase, .product-detail { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .services-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .about-photos { display: none; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .bullets-grid { grid-template-columns: 1fr; }
  .d1 { font-size: 38px; letter-spacing: -1.5px; }
  .d2 { font-size: 32px; }
}
