﻿:root {
      --primary: #0fa37f;
      --primary-dark: #0b7058;
      --secondary: #113a32;
      --text: #1f252b;
      --muted: #64707d;
      --border: #e5e8ec;
      --bg: #f4f5f7;
      --soft: #edf8f4;
      --white: #ffffff;
      --danger: #b91c1c;
      --success: #0f766e;
      --shadow: 0 14px 34px rgba(14, 39, 33, 0.08);
      --container: 1320px;
    }

    * {
      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 {
      color: inherit;
      text-decoration: none;
    }

    button,
    input {
      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 {
      overflow: visible;
    }

    .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;
    }

    .header-search-box {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      width: min(380px, calc(100vw - 24px));
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px;
      box-shadow: var(--shadow);
      display: none;
      z-index: 2000;
    }

    .header-search-box.active {
      display: block;
    }

    .header-search-form {
      display: flex;
      gap: 8px;
    }

    .header-search-form input {
      flex: 1;
      min-width: 0;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 11px 12px;
      outline: none;
      background: #fff;
    }

    .header-search-form input:focus {
      border-color: var(--primary);
    }

    .header-search-form button {
      border: none;
      border-radius: 10px;
      padding: 11px 14px;
      background: var(--primary);
      color: #fff;
      font-weight: 800;
      cursor: pointer;
    }

    .header-search-message {
      margin-top: 10px;
      color: #c0392b;
      font-size: .9rem;
      display: none;
    }

    .login-btn {
      padding: 11px 18px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--primary);
      color: #fff;
      font-weight: 700;
      transition: 0.2s ease;
    }

    .login-btn:hover {
      background: var(--primary-dark);
    }

    .login-hero {
      background:
        radial-gradient(circle at top left, rgba(15,163,127,.12), transparent 28%),
        linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
      border-bottom: 1px solid var(--border);
    }

    .login-hero-inner {
      padding: 44px 0 36px;
    }

    .breadcrumbs {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 0.92rem;
      margin-bottom: 18px;
    }

    .breadcrumbs a:hover {
      color: var(--primary-dark);
    }

    .login-hero h1 {
      font-size: clamp(2rem, 4vw, 3.25rem);
      line-height: 1.08;
      letter-spacing: -0.03em;
      color: #15251f;
      margin-bottom: 14px;
      max-width: 820px;
    }

    .login-hero p {
      color: var(--muted);
      max-width: 760px;
      font-size: 1.04rem;
    }

    .login-section {
      padding: 42px 0 76px;
    }

    .login-layout {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.65fr);
      gap: 28px;
      align-items: stretch;
    }

    .login-panel,
    .benefits-panel {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 26px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .login-visual {
      min-height: 100%;
      background:
        linear-gradient(90deg, rgba(8,30,25,.70), rgba(8,30,25,.30)),
        url("assets/premium/hero-damasco.jpg") center/cover;
      padding: 40px;
      color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }

    .login-visual h2 {
      font-size: clamp(1.9rem, 3vw, 3rem);
      line-height: 1.08;
      letter-spacing: -0.03em;
      max-width: 680px;
      margin-bottom: 14px;
    }

    .login-visual p {
      color: rgba(255,255,255,.88);
      max-width: 620px;
      font-size: 1.02rem;
    }

    .form-panel {
      padding: 34px;
      background: #fff;
    }

    .form-panel h2 {
      font-size: 1.75rem;
      line-height: 1.12;
      letter-spacing: -0.03em;
      margin-bottom: 10px;
      color: #172227;
    }

    .form-panel > p {
      color: var(--muted);
      margin-bottom: 24px;
    }

    .login-form {
      display: grid;
      gap: 16px;
    }

    .form-group {
      display: grid;
      gap: 8px;
    }

    .form-group label {
      font-weight: 700;
      color: #26313d;
      font-size: 0.95rem;
    }

    .input-wrap {
      position: relative;
    }

    .form-group input {
      width: 100%;
      min-height: 56px;
      border: 1px solid #dfe5ea;
      border-radius: 15px;
      padding: 14px 48px 14px 16px;
      background: #fbfcfd;
      color: var(--text);
      outline: none;
      transition: 0.2s ease;
    }

    .form-group input:focus {
      border-color: #b7d8cf;
      box-shadow: 0 0 0 4px rgba(15,163,127,0.08);
      background: #fff;
    }

    .input-icon {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 1rem;
    }

    .form-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin: 2px 0 4px;
      font-size: 0.94rem;
    }

    .remember {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #3b4652;
      font-weight: 600;
    }

    .remember input {
      width: 17px;
      height: 17px;
      accent-color: var(--primary);
    }

    .forgot-link {
      color: var(--primary-dark);
      font-weight: 800;
    }

    .submit-btn {
      min-height: 58px;
      border: none;
      border-radius: 16px;
      background: linear-gradient(180deg, var(--primary), #10a789);
      color: #fff;
      font-weight: 900;
      cursor: pointer;
      transition: 0.2s ease;
      box-shadow: 0 12px 24px rgba(25,179,148,0.18);
    }

    .submit-btn:hover {
      background: var(--primary-dark);
    }

    .message {
      display: none;
      padding: 14px 16px;
      border-radius: 14px;
      font-weight: 700;
      font-size: 0.94rem;
    }

    .message.success {
      display: block;
      background: #ecfdf5;
      color: var(--success);
      border: 1px solid #a7f3d0;
    }

    .message.error {
      display: block;
      background: #fef2f2;
      color: var(--danger);
      border: 1px solid #fecaca;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--muted);
      font-size: 0.9rem;
      margin: 6px 0;
    }

    .divider::before,
    .divider::after {
      content: "";
      height: 1px;
      flex: 1;
      background: var(--border);
    }

    .secondary-actions {
      display: grid;
      gap: 12px;
    }

    .secondary-btn {
      min-height: 52px;
      border-radius: 15px;
      border: 1px solid var(--border);
      background: #fff;
      color: #3f4b56;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: 0.2s ease;
    }

    .secondary-btn:hover {
      background: var(--bg);
    }

    .register-note {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
      color: var(--muted);
      text-align: center;
    }

    .register-note a {
      color: var(--primary-dark);
      font-weight: 800;
    }

    .benefits-panel {
      padding: 30px;
      display: grid;
      align-content: start;
      gap: 18px;
    }

    .benefits-panel h2 {
      font-size: 1.55rem;
      line-height: 1.14;
      letter-spacing: -0.03em;
      color: #172227;
    }

    .benefits-panel p {
      color: var(--muted);
    }

    .benefit-list {
      list-style: none;
      display: grid;
      gap: 14px;
      margin-top: 6px;
    }

    .benefit-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      color: #334049;
      font-weight: 600;
    }

    .check-badge {
      width: 25px;
      height: 25px;
      border-radius: 50%;
      flex-shrink: 0;
      display: grid;
      place-items: center;
      background: var(--soft);
      color: var(--primary-dark);
      font-size: 0.88rem;
      font-weight: 900;
      margin-top: 1px;
    }

    .support-box {
      margin-top: 8px;
      background: #f8faf9;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 20px;
    }

    .support-box h3 {
      font-size: 1.08rem;
      margin-bottom: 8px;
      color: #1d2328;
    }

    .support-box a {
      color: var(--primary-dark);
      font-weight: 800;
    }

    .site-footer {
      background: #0f1514;
      color: #d1d7d5;
      padding: 58px 0 28px;
      margin-top: 20px;
    }

    .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: 1100px) {
      .main-nav {
        display: none;
      }

      .login-layout {
        grid-template-columns: 1fr;
      }

      .login-visual {
        min-height: 430px;
      }

      .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 .login-btn {
        display: none;
      }

      .login-hero-inner {
        padding: 34px 0 30px;
      }

      .login-section {
        padding: 28px 0 56px;
      }

      .form-panel,
      .benefits-panel,
      .login-visual {
        padding: 24px;
      }

      .form-options {
        align-items: flex-start;
        flex-direction: column;
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }
    }
/* 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;
  }
}

