/* ═══════════════════════════════════════════════════════════
   Actas y más MX — Customer Interface
   Palette: cobalt blue / clean white / tangerine
   Fonts: Fraunces (headings) + Outfit (body)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Design tokens ─────────────────────────────────────── */
:root {
  /* Page surfaces */
  --bg:           #F7F9FF;
  --bg-subtle:    #EEF3FF;
  --bg-surface:   #E6EDFF;

  /* Cards */
  --card:         #FFFFFF;
  --card-alt:     #F7F9FF;
  --card-border:  #E0E7FF;

  /* Typography */
  --fg:           #0F1629;
  --fg-muted:     #5B6A8E;
  --fg-on-accent: #FFFFFF;

  /* Cobalt primary */
  --blue:         #1B4FD8;
  --blue-dk:      #1340B8;
  --blue-mid:     #2563EB;
  --blue-pale:    rgba(27,79,216,.07);
  --blue-glow:    0 0 32px rgba(27,79,216,.18);

  /* Tangerine accent (CTAs, highlights) */
  --orange:       #F97316;
  --orange-dk:    #EA6C00;
  --orange-pale:  rgba(249,115,22,.09);

  /* Success green */
  --green:        #059669;
  --green-bg:     rgba(5,150,105,.07);
  --green-border: rgba(5,150,105,.22);
  --green-text:   #047857;

  /* Neutral borders & shadows */
  --border:       #E2E8F0;
  --border-mid:   #C7D2FE;
  --shadow-sm:    0 1px 3px rgba(15,22,55,.07), 0 1px 2px rgba(15,22,55,.05);
  --shadow-md:    0 4px 16px rgba(15,22,55,.10), 0 2px 4px rgba(15,22,55,.05);
  --shadow-lg:    0 12px 40px rgba(15,22,55,.13), 0 4px 8px rgba(15,22,55,.05);

  --r:    14px;
  --r-sm: 8px;
}

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
}

/* ── Dot-grid texture (hero backdrop) ─────────────────── */
.bg-dotgrid {
  background-image: radial-gradient(rgba(27,79,216,.10) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

/* ── Site nav ──────────────────────────────────────────── */
.site-nav {
  background: #fff;
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(27,79,216,.05);
}
.site-nav .brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: -.01em;
}
.site-nav .brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--blue-pale);
  border: 1.5px solid var(--border-mid);
  color: var(--blue);
  border-radius: 8px;
  font-size: .95rem;
  flex-shrink: 0;
}
.site-nav .brand-mx {
  font-style: normal;
  color: var(--orange);
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: .05em;
  margin-left: .05em;
}

/* ── Page shell ────────────────────────────────────────── */
.page-wrap {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
}
main.site-main { flex: 1; padding-bottom: 5rem; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .73rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.site-footer a {
  color: var(--blue);
  text-decoration: none;
  opacity: .75;
}
.site-footer a:hover { opacity: 1; }

/* ── Hero section ──────────────────────────────────────── */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 5% 20%,  rgba(27,79,216,.08)  0%, transparent 55%),
    radial-gradient(ellipse at 95% 80%, rgba(249,115,22,.06)  0%, transparent 50%),
    var(--bg);
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8rem;
  opacity: .9;
}
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 6.5vw, 3.9rem);
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "opsz" 72;
  line-height: 1.06;
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: .05em; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  opacity: .3;
  border-radius: 2px;
}
.hero-sub {
  font-size: 1.02rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.75;
  font-weight: 400;
}
.hero-ornament {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  color: var(--blue);
  opacity: .035;
  pointer-events: none;
}

/* ── Section label ─────────────────────────────────────── */
.section-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Service cards ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.service-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

/* Blue-to-orange left-edge accent that reveals on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--orange) 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .25s cubic-bezier(.22,.68,0,1.2);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-mid);
  color: var(--fg);
}
.service-card:hover::before { transform: scaleY(1); }

.service-card-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
}
.service-card-desc {
  font-size: .855rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
}
.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: .75rem;
}
.service-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.btn-solicitar {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: .45rem 1rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .01em;
}
.btn-solicitar:hover {
  background: var(--blue-dk);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(27,79,216,.35);
}

/* Staggered card entry */
.services-grid .service-card { animation: fade-up .38s ease both; }
.services-grid .service-card:nth-child(1) { animation-delay: .04s; }
.services-grid .service-card:nth-child(2) { animation-delay: .09s; }
.services-grid .service-card:nth-child(3) { animation-delay: .14s; }
.services-grid .service-card:nth-child(4) { animation-delay: .19s; }
.services-grid .service-card:nth-child(5) { animation-delay: .24s; }
.services-grid .service-card:nth-child(6) { animation-delay: .29s; }

/* ── Trust strip ────────────────────────────────────────── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0 .5rem;
  border-top: 1px solid var(--border);
  margin-top: 3.25rem;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.trust-icon.green {
  background: var(--green-bg);
  color: var(--green);
  border: 1.5px solid var(--green-border);
}
.trust-icon.gold {
  background: var(--orange-pale);
  color: var(--orange);
  border: 1.5px solid rgba(249,115,22,.22);
}
.trust-icon.blue {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1.5px solid var(--border-mid);
}
.trust-title { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: .88rem; color: var(--fg); }
.trust-desc  { font-size: .79rem; color: var(--fg-muted); line-height: 1.6; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.custom-breadcrumb {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--fg-muted);
  padding-top: 1.5rem;
  margin-bottom: .25rem;
}
.custom-breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.custom-breadcrumb a:hover { color: var(--blue); }
.custom-breadcrumb .sep { opacity: .35; }

/* ── Order page layout ──────────────────────────────────── */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 1.75rem;
  align-items: start;
  padding-top: 1.25rem;
}
@media (max-width: 768px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-summary-sticky { order: -1; }
}

/* Form card */
.order-form-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  color: var(--fg);
}
.order-form-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--card-alt);
  position: relative;
}
.order-form-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
}
.order-form-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 .25rem;
  color: var(--fg);
  line-height: 1.2;
}
.order-form-subtitle {
  font-size: .855rem;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.5;
}
.order-form-body { padding: 1.6rem 1.75rem; }

/* Form controls */
.order-form-body .form-label {
  font-weight: 500;
  font-size: .875rem;
  color: var(--fg);
  margin-bottom: .38rem;
}
.order-form-body .form-control,
.order-form-body .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .6rem .875rem;
  font-size: .93rem;
  background: #fff;
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
  font-family: 'Outfit', system-ui, sans-serif;
}
.order-form-body .form-control:focus,
.order-form-body .form-select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(27,79,216,.10);
  outline: none;
}
.order-form-body .form-text   { font-size: .79rem; color: var(--fg-muted); }
.order-form-body .invalid-feedback { font-size: .79rem; }

/* CTA button */
.btn-cta {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: .9rem 1.25rem;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .15s, transform .12s, box-shadow .15s;
  letter-spacing: .01em;
  margin-top: 1.25rem;
  font-family: 'Outfit', system-ui, sans-serif;
}
.btn-cta:hover {
  background: var(--orange-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(249,115,22,.38);
}
.btn-cta:active { transform: scale(.99); }

/* Summary sidebar */
.order-summary-sticky { position: sticky; top: 76px; }
.order-summary-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.order-summary-header {
  background: var(--blue-pale);
  border-bottom: 1px solid var(--border-mid);
  padding: 1.1rem 1.4rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.order-summary-body { padding: 1.25rem 1.4rem; }
.order-price-big {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.order-price-note { font-size: .77rem; color: var(--fg-muted); margin-top: .4rem; }
.security-badge {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: var(--green-bg);
  border: 1.5px solid var(--green-border);
  border-radius: var(--r-sm);
  padding: .85rem 1rem;
  font-size: .8rem;
  color: var(--green-text);
  line-height: 1.5;
  margin-top: .9rem;
}
.security-badge i { flex-shrink: 0; font-size: 1.05rem; margin-top: 1px; }
.sidebar-perks {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .79rem;
  color: var(--fg-muted);
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.sidebar-perk { display: flex; align-items: center; gap: .5rem; }
.sidebar-perk i { font-size: 1rem; flex-shrink: 0; }

/* ── Success page ───────────────────────────────────────── */
.success-wrap {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.success-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 2.75rem 2.25rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--fg);
}
.success-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
}
.success-icon-ring {
  width: 76px;
  height: 76px;
  background: var(--green-bg);
  border: 1.5px solid var(--green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  color: var(--green);
  font-size: 2rem;
  animation: pop-in .5s cubic-bezier(.175,.885,.32,1.4) both;
}
.success-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: .55rem;
}
.success-sub {
  color: var(--fg-muted);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.success-summary {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .9rem 1.1rem;
  text-align: left;
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .32rem 0;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--fg-muted); }
.summary-value { font-weight: 500; color: var(--fg); text-align: right; }
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--blue);
  border: 1.5px solid var(--blue-mid);
  background: transparent;
  border-radius: var(--r-sm);
  padding: .6rem 1.25rem;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  font-family: 'Outfit', system-ui, sans-serif;
  transition: background .15s, color .15s;
}
.btn-home:hover { background: var(--blue); color: #fff; }

/* ── Animations ─────────────────────────────────────────── */
.fade-up { animation: fade-up .4s ease both; }
.fade-up-1 { animation-delay: .06s; }
.fade-up-2 { animation-delay: .13s; }
.fade-up-3 { animation-delay: .20s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop-in {
  from { transform: scale(.3); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.alert { animation: fade-down .25s ease both; border-radius: var(--r-sm); }
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .55s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
@keyframes btn-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   Panel / Admin styles (preserved)
═══════════════════════════════════════════════════════════ */
[data-copy] {
  cursor: pointer;
  transition: background-color .15s, color .15s;
  border-radius: 3px;
  padding: 1px 3px;
}
[data-copy]:hover { background-color: #dbeafe; }
[data-copy]::after { content: ' F4CB'; font-style: normal; font-size: .7em; opacity: .45; }
[data-copy].copied { background-color: #d1fae5; }
[data-copy].copied::after { content: ' ✓'; color: #16a34a; opacity: 1; }

/* ── Navbar brand subtle styling ── */
.navbar-brand { letter-spacing: -0.3px; }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 14px 20px 14px 16px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, padding .2s ease;
  white-space: nowrap;
}
.whatsapp-fab i {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.whatsapp-fab__label {
  font-size: .875rem;
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
}
.whatsapp-fab:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

@media (max-width: 480px) {
  .whatsapp-fab {
    padding: 14px;
    border-radius: 50%;
  }
  .whatsapp-fab__label { display: none; }
}
