﻿:root {
      --primary: #0fa37f;
      --primary-dark: #0b7058;
      --secondary: #113a32;
      --text: #1f252b;
      --muted: #64707d;
      --border: #e5e8ec;
      --border-strong: #d8dde3;
      --bg: #f4f5f7;
      --soft: #edf8f4;
      --white: #ffffff;
      --danger: #ff4d4f;
      --container: 1380px;
      --shadow: 0 14px 34px rgba(14, 39, 33, 0.08);
      --success-bg: #ecfdf5;
      --success-text: #0f766e;
      --error-bg: #fef2f2;
      --error-text: #b91c1c;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      font-family: "Inter", sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    img { max-width: 100%; display: block; height: auto; }
    a { text-decoration: none; color: inherit; }
    button, input, select, textarea { font: inherit; }

    .container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }

    .topbar { background: #0c2e27; color: #d9f6ed; font-size: 0.92rem; }

    .topbar-inner {
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      padding: 8px 0;
    }

    .topbar-group { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

    .site-header {
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .header-inner {
      min-height: 88px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo a { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--secondary); }

    .logo-mark {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--primary), #29c79f);
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 800;
      box-shadow: var(--shadow);
    }

    .logo-text { display: flex; flex-direction: column; line-height: 1.05; }
    .logo-title { font-size: 1.16rem; letter-spacing: -0.02em; }
    .logo-sub { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

    .main-nav { flex: 1; display: flex; justify-content: center; }
    .main-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
    .main-nav a { color: #49505a; font-size: 0.98rem; font-weight: 600; transition: 0.2s ease; }
    .main-nav a:hover, .main-nav a.active { color: var(--primary-dark); }

    .header-right {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      position: relative;
    }

    .icon-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: #fff;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: 0.2s ease;
      position: relative;
    }

    .icon-btn:hover { background: var(--bg); }
    .cart-btn { position: relative; overflow: visible; }
    .cart-icon { font-size: 18px; line-height: 1; }

    .cart-count {
      position: absolute;
      top: -8px;
      right: -8px;
      min-width: 22px;
      height: 22px;
      padding: 0 6px;
      border-radius: 999px;
      background: #ff4d4f;
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      border: 2px solid #fff;
    }

    .search-box {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      width: min(360px, calc(100vw - 24px));
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px;
      box-shadow: var(--shadow);
      display: none;
      z-index: 2000;
    }

    .search-box.active { display: block; }
    .search-form { display: flex; gap: 8px; }

    .search-form input {
      flex: 1;
      min-width: 0;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 11px 12px;
      outline: none;
    }

    .search-form input:focus { border-color: var(--primary); }

    .search-form button {
      border: none;
      border-radius: 10px;
      padding: 11px 14px;
      background: var(--primary);
      color: #fff;
      font-weight: 800;
      cursor: pointer;
    }

    .search-form button:hover { background: var(--primary-dark); }

    .search-message {
      margin-top: 10px;
      color: #c0392b;
      font-size: .9rem;
      display: none;
    }

    .phone {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 0.95rem;
      white-space: nowrap;
      padding: 0 4px;
    }

    .login-btn {
      padding: 11px 18px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #fff;
      color: #4e555f;
      font-weight: 600;
      transition: 0.2s ease;
    }

    .login-btn:hover { background: var(--bg); }

    .checkout-hero {
      background:
        radial-gradient(circle at top left, rgba(15,163,127,.10), transparent 26%),
        linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
      border-bottom: 1px solid var(--border);
    }

    .checkout-hero-inner { padding: 44px 0 36px; }

    .breadcrumbs {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 0.92rem;
      margin-bottom: 18px;
    }

    .breadcrumbs a:hover { color: var(--primary-dark); }

    .checkout-hero h1 {
      font-size: clamp(2rem, 4vw, 3.2rem);
      line-height: 1.08;
      letter-spacing: -0.03em;
      color: #15251f;
      margin-bottom: 14px;
      max-width: 920px;
    }

    .checkout-hero p { max-width: 820px; color: var(--muted); font-size: 1.04rem; }

    .checkout-section { padding: 34px 0 70px; background: var(--bg); }

    .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr); gap: 28px; align-items: start; }

    .checkout-card {
      background: #fff;
      border: 1px solid #d9dfe4;
      border-radius: 24px;
      padding: 28px;
      box-shadow: none;
    }

    .checkout-card h2 { font-size: 1.7rem; font-weight: 800; color: #1a2025; margin-bottom: 22px; }
    .form-section { margin-bottom: 26px; }
    .form-section:last-child { margin-bottom: 0; }
    .form-section-title { font-size: 1.02rem; font-weight: 800; color: #1d2328; margin-bottom: 16px; }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .checkout-guidance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
    .checkout-guidance-grid article, .checkout-service-grid article { border: 1px solid rgba(13,63,52,.12); border-radius: 16px; background: #f8fbfa; padding: 14px; }
    .checkout-guidance-grid strong, .checkout-guidance-grid span, .checkout-service-grid strong, .checkout-service-grid span { display: block; }
    .checkout-guidance-grid strong, .checkout-service-grid strong { color: #0c2e27; margin-bottom: 6px; }
    .checkout-guidance-grid span, .checkout-service-grid span { color: #52645e; font-size: .92rem; line-height: 1.45; }
    .form-group { display: flex; flex-direction: column; gap: 8px; }
    .form-group.full { grid-column: 1 / -1; }
    .form-group label { font-size: 0.95rem; font-weight: 600; color: #2b3440; }

    .form-group input, .form-group select, .form-group textarea {
      width: 100%;
      border: 1px solid #dfe5ea;
      border-radius: 14px;
      background: #fff;
      padding: 14px 16px;
      outline: none;
      transition: 0.2s ease;
      color: var(--text);
    }

    .form-group textarea { min-height: 120px; resize: vertical; }

    .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
      border-color: #b7d8cf;
      box-shadow: 0 0 0 4px rgba(15,163,127,0.08);
    }

    .payment-options { display: grid; gap: 12px; }

    .payment-option {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      border: 1px solid #dfe5ea;
      border-radius: 16px;
      background: #fff;
      padding: 16px;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .payment-option:hover { background: #fbfefd; border-color: #b7d8cf; }
    .payment-option input { margin-top: 4px; }
    .payment-option strong { display: block; font-size: 0.98rem; color: #24303a; margin-bottom: 4px; }
    .payment-option span { color: var(--muted); font-size: 0.93rem; }

    .payment-info {
      display: grid;
      gap: 4px;
      margin: 12px 0 0;
      padding: 14px 16px;
      border-radius: 14px;
      background: #f7fbfa;
      border: 1px solid #d8eee8;
      color: #21443d;
      font-size: 0.94rem;
    }

    .payment-info strong { color: #12352f; }
    .payment-info span { color: #52645f; }
    .payment-info .payment-next {
      margin-top: 4px;
      color: #12352f;
      font-weight: 800;
    }

    .summary-list { display: grid; gap: 18px; }

    .summary-item {
      display: grid;
      grid-template-columns: 84px 1fr auto;
      gap: 14px;
      align-items: center;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--border);
    }

    .summary-item:last-child { border-bottom: none; padding-bottom: 0; }

    .summary-image {
      width: 84px;
      height: 84px;
      object-fit: cover;
      border-radius: 16px;
      background: #eff3f2;
    }

    .summary-item h3 { font-size: 1rem; color: #1f252b; margin-bottom: 4px; font-weight: 700; }
    .summary-meta { color: var(--muted); font-size: 0.9rem; text-transform: capitalize; }
    .summary-price { font-size: 1rem; font-weight: 800; color: #111; white-space: nowrap; }

    .totals { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
    .totals-row { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 0.98rem; }
    .totals-row.total { color: #1f252b; font-size: 1.12rem; font-weight: 800; }

    .submit-btn {
      width: 100%;
      border: none;
      border-radius: 16px;
      min-height: 56px;
      background: var(--primary);
      color: #fff;
      font-weight: 800;
      cursor: pointer;
      transition: 0.2s ease;
      margin-top: 22px;
    }

    .submit-btn:hover { background: var(--primary-dark); }

    .submit-btn:disabled,
    .submit-btn.is-loading {
      cursor: wait;
      opacity: 0.72;
      background: #64707d;
    }

    .checkout-layout > aside.checkout-card {
      position: sticky;
      top: 116px;
    }

    .summary-note {
      margin-top: 16px;
      padding: 18px;
      border-radius: 16px;
      background: #f7f8fa;
      border: 1px solid #e2e6ea;
      font-size: 0.95rem;
      color: var(--muted);
    }

    .message { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 0.95rem; font-weight: 700; }
    .message.info { display: block; background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }
    .message.success { display: block; background: var(--success-bg); color: var(--success-text); border: 1px solid #a7f3d0; }
    .message.error { display: block; background: var(--error-bg); color: var(--error-text); border: 1px solid #fecaca; }

    .empty-cart { padding: 24px; border: 1px dashed var(--border-strong); border-radius: 18px; background: #fbfcfd; color: var(--muted); text-align: center; }
    .empty-cart strong { display: block; color: #111827; font-size: 1.12rem; margin-bottom: 8px; }

    .site-footer { background: #0f1514; color: #d1d7d5; padding: 58px 0 28px; margin-top: 40px; }
    .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
    .footer-brand p { margin-top: 16px; color: #99a3a0; max-width: 320px; }
    .footer-title { color: #fff; margin-bottom: 14px; font-size: 1rem; font-weight: 700; }
    .footer-links { list-style: none; display: grid; gap: 10px; }
    .footer-links a { color: #aab4b1; }
    .footer-links a:hover { color: #fff; }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #95a09d; font-size: .94rem; }

    .legacy-contact-float {
      position: fixed;
      right: 20px;
      bottom: 20px;
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: #45c655;
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 26px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.18);
      z-index: 100;
    }

    @media (max-width: 1024px) {
      .main-nav { display: none; }
      .checkout-layout { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 640px) {
      .container { width: min(var(--container), calc(100% - 20px)); }
      .header-inner { padding: 14px 0; min-height: auto; }
      .header-right .phone, .header-right .login-btn { display: none; }
      .form-grid { grid-template-columns: 1fr; }
      .summary-item { grid-template-columns: 70px 1fr; }
      .summary-price { grid-column: 2; }
      .footer-grid { grid-template-columns: 1fr; }
    }

/* Premium checkout finish */
body{
  background:
    radial-gradient(circle at 12% 0%, rgba(15,163,127,.08), transparent 28%),
    linear-gradient(180deg, #f7faf8 0%, #eef4f2 100%);
}

.checkout-hero{
  background:
    linear-gradient(135deg, rgba(12,46,39,.95), rgba(15,112,92,.86));
  color:#fff;
  border-bottom:0;
}

.checkout-hero h1{
  color:#fff;
}

.checkout-hero p,
.checkout-hero .breadcrumbs{
  color:rgba(255,255,255,.78);
}

.checkout-card{
  border-color:rgba(13,63,52,.12);
  border-radius:22px;
  box-shadow:0 24px 58px rgba(15,35,48,.10);
}

.checkout-card h2,
.form-section-title{
  color:#0c2e27;
}

.form-group input,
.form-group select,
.form-group textarea,
.payment-option,
.summary-note{
  border-color:rgba(13,63,52,.14);
  border-radius:14px;
}

.payment-option:hover{
  box-shadow:0 12px 26px rgba(15,35,48,.07);
}

.payment-option:has(input:checked){
  border-color:#0f705c;
  background:#f0faf7;
  box-shadow:0 14px 30px rgba(15,112,92,.10);
}

.summary-image{
  border-radius:16px;
  box-shadow:inset 0 0 0 1px rgba(13,63,52,.08);
}

.checkout-trust-visual{
  min-height:230px;
  margin-top:18px;
  border-radius:18px;
  background:
    linear-gradient(180deg, rgba(4,29,25,.02), rgba(4,29,25,.22)),
    url("assets/premium/checkout-trust.jpg") center / cover no-repeat;
  border:1px solid rgba(13,66,55,.12);
  box-shadow:0 20px 42px rgba(13,40,35,.12);
}

.totals-row.total strong{
  color:#0c2e27;
}

.submit-btn{
  background:#0c2e27;
  border-radius:16px;
  box-shadow:0 18px 34px rgba(12,46,39,.18);
}

.submit-btn:hover{
  background:#0f705c;
}
/* Codigo: muestra el logo oficial de EspacioDucha en cabeceras y pies. */
.logo-image,
.brand-logo-image,
.ed-brand-logo-image,
.payment-logo-image {
  display: block;
  width: clamp(118px, 13vw, 168px);
  height: auto;
  max-height: 68px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand .logo-image {
  width: 158px;
  max-height: 72px;
}

.payment-logo-image {
  width: 150px;
  max-height: 78px;
}

.logo a,
.brand,
.ed-brand {
  min-width: 0;
}

@media (max-width: 640px) {
  .logo-image,
  .brand-logo-image,
  .ed-brand-logo-image {
    width: 122px;
    max-height: 56px;
  }
}

.checkout-hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.checkout-hero-points span{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 13px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  font-weight:900;
  backdrop-filter:blur(6px);
}

.checkout-steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:-4px 0 24px;
}

.checkout-steps div{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid rgba(13,63,52,.1);
  border-radius:14px;
  background:#f7fbfa;
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.checkout-steps span{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#0c2e27;
  color:#fff;
  font-weight:900;
}

.checkout-steps strong{
  color:#0c2e27;
}

.checkout-steps div.active{
  border-color:#0f705c;
  background:#ecf8f4;
  box-shadow:0 12px 26px rgba(15,112,92,.08);
}

.checkout-steps div.active span{
  background:#0f705c;
}

.form-section{
  scroll-margin-top:130px;
}

.checkout-review-box{
  display:grid;
  gap:8px;
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(197,164,90,.28);
  border-radius:18px;
  background:linear-gradient(135deg,#fffdf8,#f7fbfa);
}

.checkout-review-box span{
  color:#0f705c;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.checkout-review-box strong{
  color:#0c2e27;
  line-height:1.35;
}

.checkout-review-box p{
  margin:0;
  color:#52645e;
}

.checkout-premium-timeline{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0 18px;
}

.checkout-premium-timeline article{
  border:1px solid rgba(13,63,52,.12);
  border-radius:16px;
  background:#fff;
  padding:14px;
}

.checkout-premium-timeline strong,
.checkout-premium-timeline span{
  display:block;
}

.checkout-premium-timeline strong{
  color:#0c2e27;
  margin-bottom:6px;
}

.checkout-premium-timeline span{
  color:#52645e;
  font-size:.9rem;
  line-height:1.42;
}

.checkout-legal-acceptance{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:start;
  margin-top:16px;
  padding:16px 18px;
  border:1px solid rgba(13,63,52,.14);
  border-radius:16px;
  background:#fff;
  color:#41554f;
  line-height:1.45;
}

.checkout-legal-acceptance input{
  width:20px;
  height:20px;
  margin-top:2px;
  accent-color:#0f705c;
}

.checkout-legal-acceptance a{
  color:#0f705c;
  font-weight:900;
  text-decoration:none;
}

.checkout-legal-acceptance a:hover{
  text-decoration:underline;
}

.premium-review-request{
  display:grid;
  gap:12px;
  margin:18px 0;
  border:1px solid rgba(13,63,52,.12);
  border-radius:18px;
  background:#f8fbfa;
  padding:16px;
}

.premium-review-request label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#0c2e27;
  font-weight:900;
  line-height:1.35;
}

.premium-review-request input{
  margin-top:3px;
}

.premium-review-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.premium-review-grid span{
  border:1px solid rgba(13,63,52,.1);
  border-radius:999px;
  background:#fff;
  color:#52645e;
  padding:8px 10px;
  font-size:.86rem;
  font-weight:800;
  text-align:center;
}

.checkout-next-box{
  display:grid;
  gap:6px;
  margin-top:14px;
  padding:16px;
  border:1px solid rgba(13,63,52,.12);
  border-radius:16px;
  background:#f7fbfa;
}

.checkout-next-box strong{
  color:#0c2e27;
}

.checkout-next-box span{
  color:#52645e;
  line-height:1.5;
}

.checkout-service-grid{
  display:grid;
  gap:10px;
  margin-top:16px;
}

@media(max-width:620px){
  .checkout-steps{
    grid-template-columns:1fr 1fr;
  }

  .checkout-guidance-grid{
    grid-template-columns:1fr;
  }

  .premium-review-grid{
    grid-template-columns:1fr;
  }

  .checkout-premium-timeline{
    grid-template-columns:1fr;
  }
}

@media(max-width:1024px){
  .checkout-layout > aside.checkout-card{
    position:static;
  }
}

