:root {
  --primary: #1e5bb8;
  --primary-dark: #123f7a;
  --secondary: #4b5563;
  --accent: #111827;
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #5b6777;
  --border: #d7dfeb;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 14px 30px rgba(17, 24, 39, 0.06);
  --shadow-strong: 0 28px 70px rgba(17, 24, 39, 0.14);
  --radius: 22px;
  --glass: rgba(255, 255, 255, 0.82);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
.container { width: min(1200px, 92%); margin: 0 auto; max-width: 100%; }

.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.95);
  font-size: .9rem;
  overflow: hidden;
}

.topbar-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.topbar-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
  padding: 10px 0;
  animation: marqueeScroll 28s linear infinite;
}

.topbar:hover .topbar-track {
  animation-play-state: paused;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-separator {
  opacity: .7;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 79, 138, 0.08);
  box-shadow: 0 8px 24px rgba(20, 53, 92, 0.05);
}

.nav {
  display: grid;
  grid-template-columns: auto auto minmax(320px, 1fr) auto;
  align-items: center;
  padding: 14px 0;
  gap: 14px;
}

header .container.nav {
  width: min(1680px, 96%);
  max-width: 1680px;
}

.brand {
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:bold;
  color:var(--primary);
  font-size:1.2rem;
  min-width: 0;
}

.brand-subtitle { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.28; max-width: 220px; }

.brand-badge {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 16px 34px rgba(31,79,138,.14);
  overflow: hidden;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid #d9e4f0;
}

.brand-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}

.nav-links {
  display:flex;
  gap:8px;
  color:var(--muted);
  font-size:.94rem;
  flex-wrap:nowrap;
  justify-content:center;
  align-items:center;
  background: rgba(243, 248, 253, .78);
  border: 1px solid rgba(223, 235, 246, .95);
  border-radius: 999px;
  padding: 8px 14px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: .25s ease;
  white-space: nowrap;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: .28s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: bold;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.nav-actions {
  display:flex;
  gap:10px;
  align-items:center;
  justify-self:end;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-actions > * {
  flex-shrink: 0;
}

.nav-enterprise-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0;
}

.nav-enterprise-btn,
.nav-worker-menu-header {
  margin-right: 4px;
}

.nav-worker-menu-header {
  display: inline-flex;
  align-items: center;
}


.btn {
  border:none;
  border-radius:999px;
  padding:12px 18px;
  font-weight:bold;
  cursor:pointer;
  transition:.28s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.btn:hover { transform: translateY(-2px); }

.btn-outline {
  background:#fff;
  color:var(--primary);
  border:1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
  border-color: #bfd3e8;
  box-shadow: 0 18px 38px rgba(20,53,92,.10);
}

.btn-primary {
  background: var(--primary);
  color:#fff;
  box-shadow: 0 10px 24px rgba(31,79,138,.22);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(31,79,138,.35);
}

.page-hero,
.hero {
  padding: 64px 0 46px;
  position: relative;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(30, 91, 184, .04);
  top: -160px;
  right: -120px;
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(17, 24, 39, .03);
  bottom: -180px;
  left: -120px;
  pointer-events: none;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 38px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(231, 241, 251, .88);
  color:var(--primary);
  border:1px solid #cfe0f2;
  border-radius:999px;
  padding:10px 16px;
  font-size:.9rem;
  font-weight:bold;
  margin-bottom:18px;
  box-shadow: 0 10px 22px rgba(31,79,138,.08);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height:1.08;
  color:var(--primary-dark);
  margin-bottom:18px;
  letter-spacing: -.02em;
}

.hero p,
.page-hero p {
  font-size:1.03rem;
  color:var(--muted);
  max-width:680px;
  margin-bottom:26px;
}

.hero-buttons {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:26px;
}

.hero-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:10px;
}

.stat,
.card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.stat {
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(10px);
}

.stat:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: #c8dcec;
}

.stat h3 { font-size:1.7rem; color:var(--primary); margin-bottom:4px; }
.stat p { color:var(--muted); font-size:.92rem; }

.hero-card,
.side-panel {
  background: linear-gradient(160deg, rgba(255,255,255,.92) 0%, rgba(238,247,255,.85) 100%);
  border:1px solid var(--border);
  border-radius:30px;
  padding:32px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
  backdrop-filter: blur(10px);
}

.hero-card::after,
.side-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,183,3,.14), transparent 65%);
  right: -60px;
  bottom: -80px;
}

.pet-illustration {
  background: var(--primary);
  border-radius:24px;
  padding:26px;
  color:#fff;
  margin-bottom:18px;
  min-height:220px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  position: relative;
  overflow: hidden;
}

.hero-card-featured {
  padding: 30px 32px;
}



.pet-illustration-large {
  min-height: 400px;
  padding: 38px 38px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 220px;
  align-items: center;
  column-gap: 30px;
}

.pet-copy {
  max-width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
  padding-right: 6px;
}

.pet-eyebrow {
  opacity: 0.95;
  display: block;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 220px;
}

.pet-title {
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 250px;
  position: relative;
  z-index: 2;
}






.pet-illustration::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  top: -70px;
  right: -50px;
}

.pet-shape {
  display:flex;
  align-items:center;
  justify-content:center;
  width:220px;
  height:220px;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.18));
  position: relative;
  z-index: 1;
}

.pet-shape img {
  width:210px;
  max-width:100%;
  height:auto;
  object-fit:contain;
  display:block;
}


.pet-shape-large {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 22px;
  position: relative;
  animation: floatPet 4.8s ease-in-out infinite;
  justify-self: end;
  margin-left: 10px;
}

.pet-shape-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translateX(10px) rotate(-2deg);
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(0,0,0,.24);
}

.mini-card-large {
  padding: 22px 20px;
  margin-top: -26px;
}

.mini-card-large h4 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.mini-card-large p {
  font-size: 1.06rem;
  line-height: 1.55;
}


@keyframes floatPet {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.mini-card {
  background:rgba(255,255,255,.96);
  color:var(--text);
  border-radius:18px;
  padding:16px;
  box-shadow:0 16px 36px rgba(0,0,0,.12);
  margin-top:-34px;
  position:relative;
  z-index:2;
  border: 1px solid rgba(216, 226, 238, .9);
}

.mini-card h4 { color:var(--primary); margin-bottom:6px; }

.section { padding: 46px 0; position: relative; }

.section-header {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:22px;
  flex-wrap:wrap;
}

.section-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color:var(--primary-dark);
  margin-bottom:8px;
  letter-spacing: -.02em;
}

.section-header p { color:var(--muted); max-width:700px; }

.section-kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: bold;
  letter-spacing: .08em;
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-kicker.soft-map { color: #85a9c8; }

.features-grid,
.services-grid,
.products-grid,
.steps-grid,
.team-grid,
.contact-grid,
.admin-grid {
  display:grid;
  gap:20px;
}

.features-grid { grid-template-columns: repeat(4, 1fr); }
.services-grid,
.products-grid,
.team-grid { grid-template-columns: repeat(3,1fr); }
.steps-grid { grid-template-columns: repeat(4,1fr); }
.contact-grid,
.admin-grid { grid-template-columns: 1fr 1fr; }

.icon {
  width:56px;
  height:56px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:1.45rem;
  margin-bottom:16px;
  background:linear-gradient(135deg,#e7f4f4,#e9f1fb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.card h3 { color:var(--primary); font-size:1.12rem; margin-bottom:10px; }
.card p,
.card li { color:var(--muted); font-size:.96rem; }

.card ul {
  list-style:none;
  display:grid;
  gap:8px;
  margin-top:12px;
}

.card ul li::before {
  content:'✔ ';
  color:var(--secondary);
  font-weight:bold;
}

.highlight-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  color:#fff;
  padding:32px;
  border-radius:28px;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:center;
}

.highlight-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom:12px;
}

.highlight-banner p { opacity:.92; margin-bottom:18px; }

.banner-panel {
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  border-radius:24px;
  padding:22px;
  backdrop-filter: blur(10px);
}

.banner-panel ul {
  list-style:none;
  display:grid;
  gap:12px;
  font-size:.97rem;
}

.banner-panel li::before { content:'🐾 '; }

.step-number {
  width:42px;
  height:42px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--accent), #ffd166);
  display:grid;
  place-items:center;
  font-weight:bold;
  color:#533b00;
  margin-bottom:16px;
  box-shadow: 0 10px 22px rgba(255, 183, 3, .24);
}

.product-image,
.team-photo {
  height:180px;
  border-radius:20px;
  background:linear-gradient(135deg,#dfeffc,#ebf8f7);
  display:grid;
  place-items:center;
  font-size:4rem;
  margin-bottom:18px;
  overflow: hidden;
  position: relative;
}

.product-image::after,
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.18) 100%);
}

.team-photo { height:220px; font-size:3.6rem; }

.badge-row,
.filter-row {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.badge {
  background:#edf5ff;
  color:var(--primary);
  border:1px solid #d4e4f5;
  border-radius:999px;
  padding:8px 12px;
  font-size:.83rem;
  font-weight:bold;
}

.contact-panel,
.admin-panel {
  background:rgba(255,255,255,.88);
  border:1px solid var(--border);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
}

.contact-info { display:grid; gap:16px; margin-top:18px; }

.info-item {
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px;
  border-radius:18px;
  background:#f7fbff;
  border:1px solid #e1ebf3;
  transition: .25s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.info-item span { font-size:1.3rem; }

form { display:grid; gap:14px; margin-top:18px; }

input,
textarea,
select {
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  font:inherit;
  color:var(--text);
  outline:none;
  transition: .25s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #9fc4e5;
  box-shadow: 0 0 0 4px rgba(31,79,138,.08);
}

textarea { min-height:130px; resize:vertical; }

.flash-messages { display:grid; gap:10px; margin-top:16px; }

.flash {
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
}

.flash.success {
  border-color:#b9e5cf;
  background:#eefbf3;
  color:#15653b;
}

.flash.error {
  border-color:#f1c1c1;
  background:#fff1f1;
  color:#9b1c1c;
}

.table-wrap {
  overflow:auto;
  border-radius:20px;
  border:1px solid var(--border);
}

table {
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

th,
td {
  padding:14px;
  text-align:left;
  border-bottom:1px solid #edf2f7;
  font-size:.95rem;
}

th { background:#f6fbff; color:var(--primary-dark); }

.branch-map-section { position: relative; }
.branch-header-center { justify-content: center; }

.branch-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: start;
}

.map-card,
.branch-info-panel {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.map-card-header h3 {
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--primary);
  border: 1px solid #d8e7f6;
  font-size: .86rem;
  font-weight: bold;
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #dbe8f3;
  height: 440px;
  background: linear-gradient(135deg, #e8f3ff, #eefbf9);
}

#clinic-map {
  width: 100%;
  height: 440px;
  border-radius: 24px;
  z-index: 1;
}

.branch-info-panel {
  display: grid;
  gap: 14px;
}

.branch-info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 22px;
  background: #f8fbff;
  border: 1px solid #e2edf6;
}

.branch-info-card.featured {
  background: linear-gradient(135deg, #edf5ff, #eefbf9);
}

.branch-clickable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: .25s ease;
  font: inherit;
}

.branch-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.active-branch {
  border: 2px solid #6aa7dc;
  box-shadow: 0 14px 30px rgba(31,79,138,.12);
}

.branch-card-content {
  width: 100%;
  min-width: 0;
}

.branch-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.branch-main-info {
  min-width: 0;
  flex: 1;
}

.branch-info-card h3 {
  color: var(--primary-dark);
  margin-bottom: 4px;
  font-size: 1rem;
}

.branch-info-card p {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: .9rem;
}

.branch-address {
  display: block;
  color: var(--primary);
  font-size: .83rem;
  font-weight: bold;
  line-height: 1.35;
}

.branch-mini-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-width: 150px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: .82rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 10px 20px rgba(31,79,138,.16);
  transition: .25s ease;
}

.branch-mini-cta:hover {
  transform: translateY(-2px);
}

.branch-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 12px 22px rgba(31,79,138,.20);
}

.compact-schedule-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f5fbff 100%);
  border: 1px solid #e2edf6;
  border-radius: 22px;
  padding: 14px;
}

.compact-schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.schedule-kicker {
  display: inline-block;
  font-size: .70rem;
  font-weight: bold;
  letter-spacing: .08em;
  color: var(--secondary);
  margin-bottom: 5px;
}

.compact-schedule-header h3 {
  color: var(--primary-dark);
  font-size: .98rem;
}

.active-branch-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--primary);
  border: 1px solid #d8e7f6;
  font-size: .72rem;
  font-weight: bold;
  white-space: nowrap;
}

.compact-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.compact-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8f0f7;
  min-height: 44px;
}

.compact-schedule-row strong {
  color: var(--primary-dark);
  font-size: .82rem;
}

.compact-schedule-row span {
  color: var(--muted);
  font-size: .79rem;
  text-align: right;
  line-height: 1.2;
}

.schedule-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mini-extra-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #dfeaf4;
  background: #fff;
}

.mini-extra-card strong {
  color: var(--primary-dark);
  font-size: .82rem;
}

.mini-extra-card span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.emergency-card {
  background: linear-gradient(135deg, #fff4f4, #fff9f9);
  border-color: #f2d5d5;
}

.attention-card {
  background: linear-gradient(135deg, #f2fbfb, #f8fdff);
}

footer,
.site-footer {
  margin-top: 24px;
  border-top: 1px solid #dbe6f0;
  color: var(--muted);
  font-size: .93rem;
  background: linear-gradient(180deg,#ffffff 0%,#f3f8fd 100%);
}

.site-footer .container {
  width: min(1740px, 98.8%);
  max-width: 1740px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(330px, 1.08fr) minmax(920px, 2.12fr);
  gap: 16px;
  padding: 20px 0 12px;
  align-items: start;
}

.footer-brand-block {
  display: grid;
  gap: 10px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-badge {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d9e4f0;
  box-shadow: 0 10px 22px rgba(31,79,138,.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer-logo-badge img {
  width: 128%;
  height: 128%;
  object-fit: contain;
  transform: scale(1.08);
}

.footer-brand-block h3 {
  color: var(--primary-dark);
  font-size: 1.14rem;
  margin-bottom: 2px;
}

.footer-brand-block p {
  color: var(--muted);
  line-height: 1.45;
}

.footer-contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.footer-contact-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.8);
  border: 1px solid #dde8f2;
  min-height: 46px;
}

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

.footer-column {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid #dde8f2;
  box-shadow: 0 8px 18px rgba(17,24,39,.04);
}

.footer-column h4 {
  color: var(--primary-dark);
  font-size: .98rem;
  margin-bottom: 1px;
}

.footer-column a {
  color: var(--muted);
  transition: .22s ease;
  line-height: 1.35;
}

.footer-column a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-legal-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 10px;
}

.footer-legal-strip p {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  border: 1px solid #dde8f2;
  line-height: 1.45;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 18px;
  border-top: 1px solid #dbe6f0;
  font-size: .86rem;
  color: #627184;
}

.footer-wrap {
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
}

.footer-enhanced > div { min-width: 220px; }
.muted { color: var(--muted); }
.empty-state { text-align:center; padding:40px 20px; }

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .7s ease forwards;
}

.fade-up.delay-1 { animation-delay: .08s; }
.fade-up.delay-2 { animation-delay: .16s; }
.fade-up.delay-3 { animation-delay: .24s; }
.fade-up.delay-4 { animation-delay: .32s; }
.fade-up.delay-5 { animation-delay: .40s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.brand-badge img {
  width: 132%;
  height: 132%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  transform: scale(1.18);
  transform-origin: center;
}

@media (max-width: 1560px) {
  .nav {
    grid-template-columns: auto auto 1fr;
  }

  .nav-actions {
    grid-column: 1 / -1;
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 1240px) {
  .nav {
    grid-template-columns: auto 1fr;
  }

  .brand {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .nav-links {
    order: 3;
  }

  .nav-actions {
    order: 4;
  }
}

@media (max-width:1080px) {
  .hero-grid,
  .page-hero-grid,
  .highlight-banner,
  .contact-grid,
  .features-grid,
  .services-grid,
  .products-grid,
  .steps-grid,
  .team-grid,
  .admin-grid,
  .branch-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width:1180px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-contact-list,
  .footer-legal-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width:980px) {
  header .container.nav {
    width: min(100%, 94%);
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    min-height: auto;
    border-radius: 28px;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width:860px) {
  .branch-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .branch-mini-cta {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width:760px) {
  .footer-wrap,
  .footer-bottom-bar,
  .footer-logo-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction:column;
    align-items:stretch;
  }

  .nav-enterprise-slot {
    order: 1;
    justify-content: center;
  }

  .brand {
    order: 2;
    min-width: 0;
    justify-content: center;
  }

  .nav-links {
    order: 3;
  }

  .nav-actions {
    order: 4;
  }

  .nav-links,
  .nav-actions {
    justify-content:center;
  }

  .hero,
  .page-hero,
  .section {
    padding:28px 0;
  }

  .hero-grid,
  .page-hero-grid,
  .highlight-banner,
  .contact-grid,
  .features-grid,
  .services-grid,
  .products-grid,
  .steps-grid,
  .team-grid,
  .admin-grid,
  .branch-grid,
  .schedule-summary-row,
  .compact-schedule-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .card,
  .contact-panel,
  .admin-panel,
  .map-card,
  .branch-info-panel {
    padding:22px;
  }

  .pet-illustration { min-height:180px; }

  .hero-card-featured {
    padding: 24px;
  }

  .pet-illustration-large{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:40px;
  }

  .pet-copy{
    max-width:300px;
  }

  .pet-title {
    font-size: 1.65rem;
    max-width: 100%;
  }

  .pet-shape {
    width: 160px;
    height: 160px;
  }

  .pet-shape img {
    width: 150px;
  }

  .pet-shape-large{
    width:240px;
    height:240px;
    flex-shrink:0;
  }

  .pet-shape-large img {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .map-frame,
  #clinic-map {
    height: 360px;
    min-height: 360px;
  }

  .compact-schedule-row {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .compact-schedule-row span {
    text-align: left;
  }
}




/* =========================
   AJUSTE HERO CARD DESTACADA
   Más ancha de los lados para separar texto e imagen
   ========================= */

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(600px, 1.08fr);
  align-items: start;
  gap: 30px;
}

.hero-card.hero-card-featured {
  width: 100%;
  max-width: none;
  padding: 24px;
}

.pet-illustration.pet-illustration-large {
  min-height: 330px;
  padding: 30px 42px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  column-gap: 44px;
}

.pet-copy {
  padding-right: 0;
}

.hero-card-move-right {
  margin-left: 0px;
}

.pet-title {
  font-size: 2.2rem;
  line-height: 1.06;
  max-width: 285px;
}

.pet-shape-large {
  width: 250px;
  height: 250px;
  justify-self: end;
  margin-left: 0;
}

.pet-shape-large img {
  transform: translateX(0) rotate(-2deg);
}

.mini-card.mini-card-large {
  margin-top: -18px;
  padding: 18px 18px;
}

.mini-card-large p {
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 1280px) {
  .home-hero-shell {
    padding-inline: 12px;
  }
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
    gap: 24px;
  }

  .pet-illustration.pet-illustration-large {
    grid-template-columns: minmax(0, 1fr) 220px;
    column-gap: 30px;
    min-height: 315px;
    padding: 26px 30px 24px;
  }

  .pet-title {
    font-size: 2rem;
    max-width: 270px;
  }

  .pet-shape-large {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card.hero-card-featured {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .hero-card.hero-card-featured {
    padding: 22px;
  }

  .pet-illustration.pet-illustration-large {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 20px;
    min-height: auto;
    padding: 28px 24px 24px;
  }

  .pet-copy {
    max-width: none;
  }

  .pet-title {
    max-width: 100%;
    font-size: 2rem;
  }

  .pet-shape-large {
    justify-self: center;
    width: 210px;
    height: 210px;
  }

  .mini-card.mini-card-large {
    margin-top: -10px;
  }

  /* ===== PRODUCTOS TIENDA ===== */

  .product-card-store{

  padding:22px;

  transition:all .25s ease;

  border:1px solid rgba(0,0,0,0.05);

  }

  .product-card-store:hover{

  transform:translateY(-6px);

  box-shadow:0 18px 40px rgba(0,0,0,0.08);

  }

  /* imagen */

  .product-media{

  display:flex;

  align-items:center;

  justify-content:center;

  min-height:210px;

  margin-bottom:18px;

  }

  .product-media img{

  max-width:100%;

  max-height:210px;

  object-fit:contain;

  border-radius:16px;

  }

  /* etiquetas */

  .product-tags{

  display:flex;

  gap:8px;

  flex-wrap:wrap;

  margin-bottom:10px;

  }

  .badge-amazon{

  background:#ff9900;

  color:#fff;

  }

  .badge-discount{

  background:#ff3b3b;

  color:#fff;

  }

  /* titulo */

  .product-title{

  font-size:1.05rem;

  font-weight:600;

  margin-bottom:6px;

  }

  /* descripcion */

  .product-description{

  font-size:.9rem;

  opacity:.75;

  margin-bottom:14px;

  }

  /* precio */

  .price-block{

  display:flex;

  align-items:center;

  gap:12px;

  margin-bottom:10px;

  }

  .price-main{

  font-size:1.55rem;

  font-weight:700;

  color:var(--primary);

  }

  .price-old{

  text-decoration:line-through;

  opacity:.6;

  font-size:.95rem;

  }

  /* stock */

  .stock-row{

  font-size:.85rem;

  opacity:.7;

  margin-bottom:10px;

  }

  .stock-amazon{

  font-size:.85rem;

  margin-bottom:10px;

  }

  /* boton */

  .product-actions{

  margin-top:12px;

  }

  .btn-buy{

  width:100%;

  text-align:center;

  font-weight:600;

  }
}


/* =========================
   SUBIR UN POCO LA HERO CARD DESTACADA
   ========================= */

.hero-card.hero-card-featured {
  margin-top: -20px;
}

@media (max-width: 980px) {
  .hero-card.hero-card-featured {
    margin-top: -12px;
  }
}

@media (max-width: 760px) {
  .hero-card.hero-card-featured {
    margin-top: 0;
  }
}


/* =========================
   MOVER SOLO LA HERO CARD DESTACADA HACIA LA DERECHA
   ========================= */

.hero-card.hero-card-featured {
  position: relative;
  left: 0;
  max-width: 100%;
}

@media (max-width: 980px) {
  .hero-card.hero-card-featured {
    left: 0;
  }
}

@media (max-width: 760px) {
  .hero-card.hero-card-featured {
    left: 0;
  }
}

/* =========================
   TIENDA - ESTILO COMERCIAL COMPACTO
   ========================= */

.store-hero .page-hero-grid.store-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 28px;
  align-items: center;
}

.store-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(231, 241, 251, .88);
  color: var(--primary);
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(31,79,138,.08);
}

.store-filter-row {
  margin-top: 18px;
  gap: 12px;
}

.store-filter-row .btn {
  padding: 12px 18px;
  min-height: 46px;
}

.store-side-panel {
  padding: 28px;
}

.store-panel-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

.store-side-panel h3 {
  color: var(--primary-dark);
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.store-panel-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.store-point {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dde8f2;
  box-shadow: 0 10px 22px rgba(20, 53, 92, 0.07);
}

.store-point strong {
  display: block;
  color: var(--primary);
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 6px;
}

.store-point span {
  color: var(--muted);
  font-size: .88rem;
}

.store-section {
  padding-top: 24px;
}

.store-products-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-card-store.product-card-compact {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(20,53,92,.06);
  border: 1px solid #e4ecf4;
  min-height: 100%;
}

.product-card-store.product-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(20,53,92,.12);
  border-color: #d4e0eb;
}

.product-media-compact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  max-height: 180px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
  overflow: hidden;
}

.product-media-compact img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
}

.product-image-compact {
  width: 100%;
  height: 180px;
  margin-bottom: 0;
  border-radius: 14px;
  font-size: 3.2rem;
}

.store-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  background: #cc0c39;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(204,12,57,.24);
}

.product-tags-compact {
  gap: 8px;
  margin-bottom: 10px;
}

.product-tags-compact .badge {
  padding: 6px 10px;
  font-size: .74rem;
}

.badge-category {
  background: #f4f8fc;
}

.badge-amazon {
  background: #ff9900;
  color: #fff;
  border-color: #ff9900;
}

.product-title-compact {
  font-size: 1rem;
  line-height: 1.38;
  min-height: calc(1.38em * 2 + 4px);
  max-height: calc(1.38em * 2 + 4px);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: normal;
  overflow-wrap: break-word;
  margin-bottom: 8px;
  color: #111827;
}

.product-description-compact {
  font-size: .84rem;
  line-height: 1.4;
  color: #556476;
  min-height: 36px;
  max-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

.price-block-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.price-main-compact {
  font-size: 1.85rem;
  line-height: 1;
  color: #111827;
  font-weight: 700;
}

.price-old-compact {
  font-size: .88rem;
  color: #6b7280;
  text-decoration: line-through;
}

.store-meta {
  margin-top: auto;
  padding-top: 4px;
}

.store-meta .stock-row,
.store-meta .stock-amazon {
  font-size: .8rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.product-actions-compact {
  margin-top: 8px;
}

.product-actions-compact .btn-buy {
  width: 100%;
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: .92rem;
}

.store-empty-state {
  grid-column: 1 / -1;
}

@media (max-width: 1280px) {
  .store-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .store-hero .page-hero-grid.store-hero-grid {
    grid-template-columns: 1fr;
  }

  .store-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .store-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card-store.product-card-compact {
    padding: 12px;
    border-radius: 16px;
  }

  .product-media-compact,
  .product-image-compact {
    min-height: 150px;
    max-height: 150px;
    height: 150px;
  }

  .product-title-compact {
    min-height: 48px;
    max-height: 48px;
    font-size: .94rem;
  }

  .product-description-compact {
    display: none;
  }

  .price-main-compact {
    font-size: 1.45rem;
  }

  .store-panel-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .store-filter-row .btn {
    flex: 1 1 calc(50% - 8px);
  }

  .store-products-grid {
    grid-template-columns: 1fr;
  }

  .product-media-compact,
  .product-image-compact {
    height: 190px;
    min-height: 190px;
    max-height: 190px;
  }
}

/* =========================
   CARRITO Y ACCIONES DE TIENDA
========================= */

.flash-messages-global {
  margin-top: 18px;
}

.cart-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.btn-cart-nav {
  position: relative;
  gap: 10px;
  padding-right: 18px;
}

.btn-cart-nav.is-active {
  border-color: #bfd3e8;
  box-shadow: 0 18px 38px rgba(20,53,92,.10);
}

.cart-count-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(31,79,138,.22);
}

.store-side-panel-cart {
  display: grid;
  gap: 18px;
}

.store-point-emphasis {
  background: linear-gradient(135deg, #edf5ff, #eefbf9);
  border-color: #cfe0f2;
}

.store-cart-shortcut {
  width: fit-content;
}

.product-actions-store {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.add-cart-form {
  width: 100%;
}

.add-cart-form .btn,
.btn-buy-cart,
.btn-product-link {
  width: 100%;
}

.btn-buy-cart {
  gap: 10px;
}

.btn-product-link {
  min-height: 46px;
}

.cart-hero-grid {
  grid-template-columns: 1.05fr .95fr;
}

.cart-summary-panel {
  display: grid;
  gap: 18px;
}

.cart-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 22px;
  align-items: start;
}

.cart-items-list {
  display: grid;
  gap: 18px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.cart-item-media {
  min-height: 180px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.cart-image-fallback {
  height: 180px;
  width: 100%;
  margin-bottom: 0;
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.cart-item-title {
  font-size: 1.1rem;
  color: var(--primary-dark);
  line-height: 1.35;
}

.cart-item-price-box {
  min-width: 135px;
  text-align: right;
  display: grid;
  gap: 4px;
}

.cart-item-price-box strong {
  color: var(--primary);
  font-size: 1.18rem;
}

.cart-item-price-box span,
.cart-item-description {
  color: var(--muted);
  font-size: .95rem;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.cart-item-actions form {
  margin-top: 0;
}

.cart-totals-card {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid #e2edf6;
}

.cart-total-row strong {
  color: var(--primary);
}

.cart-total-note {
  margin-bottom: 4px;
}

.cart-item-demo-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #edf8f2, #f4fbff);
  border: 1px solid #cfe7da;
  color: #1f6b49;
  font-size: .86rem;
  font-weight: 700;
}

.cart-item-demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}

.cart-checkout-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
  border: 1px solid #dfeaf4;
}

.checkout-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-mini-header strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.checkout-mini-header span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7ff;
  border: 1px solid #d8e7f6;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
}

.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.payment-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-brand {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid #dce7f2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  transition: .24s ease;
  box-shadow: 0 10px 20px rgba(20,53,92,.05);
}

.payment-option:hover .payment-brand,
.payment-option input:checked + .payment-brand {
  transform: translateY(-2px);
  border-color: #b7d0e7;
  box-shadow: 0 16px 28px rgba(20,53,92,.10);
}

.payment-paypal {
  color: #0a58ca;
}

.payment-visa {
  color: #1a1f71;
}

.payment-mastercard {
  color: #d35400;
}

.checkout-disclaimer {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff8e8;
  border: 1px solid #f0dfad;
}

.checkout-disclaimer span {
  font-size: .95rem;
  line-height: 1.2;
}

.checkout-disclaimer p {
  color: #7a5b00;
  font-size: .84rem;
  line-height: 1.45;
}

.checkout-submit-btn {
  min-height: 50px;
  font-size: 1rem;
}

.cart-wide-btn,
.cart-clear-btn {
  width: 100%;
}

.cart-empty-state {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.empty-cart-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 18px 34px rgba(31,79,138,.22);
}

@media (max-width: 1080px) {
  .cart-layout,
  .cart-hero-grid {
    grid-template-columns: 1fr;
  }

  .cart-totals-card {
    position: static;
  }
}

@media (max-width: 980px) {
  .nav-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .cart-item-card {
    grid-template-columns: 1fr;
  }

  .cart-item-top {
    flex-direction: column;
  }

  .cart-item-price-box {
    text-align: left;
    min-width: 0;
  }

  .cart-summary-actions,
  .cart-item-actions {
    flex-direction: column;
  }

  .checkout-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .store-cart-shortcut,
  .cart-summary-actions .btn,
  .cart-summary-actions form,
  .cart-item-actions form,
  .cart-item-actions .btn {
    width: 100%;
  }
}


/* =========================
   TOAST CARRITO TIENDA
========================= */

.cart-toast {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 1200;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 22px 48px rgba(20,53,92,.24);
  border: 1px solid rgba(255,255,255,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) translateX(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  font-size: .95rem;
  line-height: 1.4;
  pointer-events: none;
}

.cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(0);
}

@media (max-width: 760px) {
  .cart-toast {
    top: 84px;
    right: 12px;
    left: 12px;
    min-width: 0;
    max-width: none;
  }
}


/* =========================
   TIENDA - ACABADOS MÁS COMERCIALES
   ========================= */

.store-side-panel.store-side-panel-cart {
  background: linear-gradient(160deg, rgba(255,255,255,.96) 0%, rgba(239,247,255,.94) 52%, rgba(232,245,243,.92) 100%);
  border: 1px solid rgba(180, 204, 225, .75);
  box-shadow: 0 22px 52px rgba(20, 53, 92, 0.12);
}

.store-side-panel.store-side-panel-cart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.45), transparent 38%);
  pointer-events: none;
}

.store-point.store-point-emphasis {
  background: var(--primary);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 16px 32px rgba(31,79,138,.20);
}

.store-point.store-point-emphasis strong,
.store-point.store-point-emphasis span {
  color: #fff;
}

.product-card-store.product-card-compact {
  overflow: hidden;
}

.product-card-store.product-card-compact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.38) 0%, transparent 36%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.product-card-store.product-card-compact:hover::before {
  opacity: 1;
}

.product-media-compact {
  border: 1px solid #edf3f8;
}

.product-actions-store {
  margin-top: 12px;
}

.btn-buy-cart {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 14px 26px rgba(31,79,138,.18);
}

.btn-buy-cart::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
  transition: left .45s ease;
}

.btn-buy-cart:hover::after {
  left: 120%;
}

.store-item-qty {
  min-height: 28px;
  margin: 0 0 10px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.store-item-qty.show {
  opacity: 1;
  transform: translateY(0);
}

.store-item-qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31,79,138,.10), rgba(57,166,163,.16));
  border: 1px solid rgba(57,166,163,.22);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
}

.cart-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8,34,66,.98), rgba(26,91,122,.96));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 54px rgba(6, 23, 44, .28);
  backdrop-filter: blur(12px);
}

.cart-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 42%);
  pointer-events: none;
}

.cart-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 12px 22px rgba(34,197,94,.28);
}

.cart-toast-icon svg {
  width: 20px;
  height: 20px;
}

.cart-toast-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-toast-title {
  font-size: .92rem;
  line-height: 1.1;
  color: #fff;
}

.cart-toast-text {
  font-size: .88rem;
  line-height: 1.4;
  color: rgba(255,255,255,.86);
}

@media (max-width: 760px) {
  .cart-toast {
    align-items: center;
  }

  .cart-toast-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}


/* =========================
   BADGE CIRCULAR DE CANTIDAD EN TIENDA
   ========================= */

.store-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 8px;
  min-height: 56px;
}

.store-status-row.has-cart-qty .store-meta {
  padding-right: 0;
}

.store-meta {
  flex: 1;
  min-width: 0;
}

.store-item-qty {
  display: none;
}

.store-item-qty-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background: linear-gradient(135deg, #ffffff, #eef7fb);
  border: 4px solid #111827;
  color: #111827;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .12);
  opacity: 0;
  transform: scale(.7);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.store-item-qty-circle.show {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 760px) {
  .store-status-row {
    min-height: 52px;
    gap: 10px;
  }

  .store-item-qty-circle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: .92rem;
    border-width: 3px;
  }
}


/* =========================
   CONTROL DE CANTIDAD TIPO AMAZON
   ========================= */

.amazon-cart-ui {
  width: 100%;
  display: grid;
}

.amazon-add-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid #f0b84b;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd978 0%, #f7c948 100%);
  color: #f7f7f7;
  font-size: .92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.amazon-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.10);
  filter: brightness(.99);
}

.amazon-add-btn:active {
  transform: translateY(0);
}

.amazon-add-btn .cart-icon svg {
  width: 17px;
  height: 17px;
}

.amazon-qty-control {
  display: none;
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #f0b84b;
  background: linear-gradient(180deg, #ffd978 0%, #f7c948 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.amazon-cart-ui.is-active .amazon-add-btn,
.amazon-cart-ui.is-active .js-cart-add-form {
  display: none;
}

.amazon-cart-ui.is-active .amazon-qty-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: stretch;
}

.amazon-qty-control form {
  margin-top: 0;
  display: block;
}

.amazon-qty-btn {
  width: 100%;
  height: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease;
}

.amazon-qty-btn:hover {
  background: rgba(255,255,255,.24);
}

.amazon-qty-btn-left {
  border-right: 1px solid rgba(17, 24, 39, 0.14);
}

.amazon-qty-btn-right {
  border-left: 1px solid rgba(17, 24, 39, 0.14);
}

.amazon-qty-display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .96rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: .01em;
  user-select: none;
}

.qty-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.qty-icon-trash {
  width: 17px;
  height: 17px;
}

.qty-icon.is-hidden {
  display: none;
}

.amazon-cart-ui.is-loading {
  opacity: .72;
}

.amazon-cart-ui.is-loading button {
  cursor: wait;
}

.product-actions-store {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .amazon-add-btn,
  .amazon-qty-control,
  .amazon-qty-btn {
    min-height: 40px;
  }

  .amazon-cart-ui.is-active .amazon-qty-control {
    grid-template-columns: 42px 1fr 42px;
  }
}


/* =========================
   CARRITO - ACABADO COMERCIAL PREMIUM
   ========================= */

.cart-hero .hero-tag {
  background: rgba(231, 241, 251, .88);
  border-color: #cfe0f2;
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(31,79,138,.08);
}

.cart-summary-panel {
  background: linear-gradient(160deg, rgba(255,255,255,.98) 0%, rgba(242,248,255,.96) 48%, rgba(233,246,244,.94) 100%);
  border: 1px solid rgba(191, 211, 232, .85);
  box-shadow: 0 24px 56px rgba(20,53,92,.14);
}

.cart-summary-copy {
  max-width: 48ch;
}

.cart-summary-actions .btn,
.cart-summary-actions form {
  flex: 1 1 0;
}

.cart-item-card {
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(20,53,92,.08);
}

.cart-item-media {
  border-radius: 22px;
  border: 1px solid #e6eef6;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.cart-item-title {
  font-size: 1.22rem;
  margin-top: 4px;
}

.cart-item-price-box {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef6fc);
  border: 1px solid #dfeaf4;
}

.cart-item-price-box strong {
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.cart-item-actions {
  align-items: center;
  justify-content: space-between;
}

.cart-item-demo-note {
  background: linear-gradient(135deg, #edf8f2, #f4fbff);
  color: #175c3d;
  border-color: #cde5d7;
}

.cart-totals-card {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 20px 50px rgba(20,53,92,.12);
}

.cart-totals-card h3 {
  font-size: 1.7rem;
  color: var(--primary-dark);
}

.cart-total-row {
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfdff, #f4f9fe);
}

.cart-total-row strong {
  color: var(--primary-dark);
}

.cart-checkout-panel {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.checkout-mini-header strong,
.checkout-payment-header strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.checkout-mini-header span,
.checkout-payment-header span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7ff;
  border: 1px solid #d8e7f6;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
}

.checkout-payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-form input {
  min-height: 52px;
  border-radius: 18px;
}

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

.payment-methods-visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-option-card .payment-brand {
  min-height: 98px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid #dce7f2;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.payment-brand-logo {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
}

.payment-brand-logo img {
  max-width: 72px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.08));
}

.payment-brand-logo small {
  font-size: .8rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.payment-option input:checked + .payment-brand {
  border-color: #8ab4d8;
  box-shadow: 0 18px 30px rgba(20,53,92,.12);
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}

.checkout-disclaimer-soft {
  background: linear-gradient(135deg, #fffaf0, #fff6e2);
  border-color: #efd9a0;
}

.checkout-submit-btn {
  min-height: 54px;
  font-size: 1.02rem;
  box-shadow: 0 16px 34px rgba(31,79,138,.24);
}

@media (max-width: 760px) {
  .payment-methods-visual,
  .checkout-grid-third {
    grid-template-columns: 1fr;
  }

  .cart-item-actions {
    align-items: stretch;
  }
}


/* =========================
   CARRITO DINÁMICO Y PEDIDO COMPLETADO
   ========================= */

.cart-item-card.is-removing {
  opacity: .55;
  transform: scale(.985);
  pointer-events: none;
}

.checkout-submit-btn.is-loading {
  opacity: .75;
  cursor: wait;
}

.cart-complete-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 21, 38, 0.18);
  backdrop-filter: blur(6px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.cart-complete-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-complete-badge {
  min-width: min(520px, calc(100vw - 40px));
  max-width: 100%;
  padding: 26px 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f6a48, #22a06b);
  color: #fff;
  box-shadow: 0 28px 70px rgba(9, 59, 41, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.18);
  transform: translateY(12px) scale(.96);
  transition: transform .25s ease;
}

.cart-complete-overlay.show .cart-complete-badge {
  transform: translateY(0) scale(1);
}

.cart-complete-badge strong {
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  letter-spacing: .04em;
}

.cart-complete-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 1.45rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cart-complete-badge {
    padding: 22px 18px;
    gap: 12px;
    flex-direction: column;
  }
}


/* =========================
   MAPA LEAFLET - CARTO POSITRON SUAVE
   ========================= */

.map-frame {
  background: linear-gradient(135deg, #f6f8fb, #eef2f6);
}

#clinic-map {
  background: #eef2f5;
}

#clinic-map .leaflet-tile-pane {
  filter: saturate(.82) brightness(1.05) contrast(.96);
}

#clinic-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 14px 30px rgba(20, 53, 92, 0.14);
}

#clinic-map .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  color: var(--primary-dark);
  border: none;
  background: rgba(255,255,255,.96);
}

#clinic-map .leaflet-control-zoom a:hover {
  background: #ffffff;
}

#clinic-map .leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 18px 35px rgba(20, 53, 92, 0.18);
  border: 1px solid rgba(216, 226, 238, 0.9);
}

#clinic-map .leaflet-popup-content {
  margin: 14px 16px;
  color: var(--text);
  line-height: 1.45;
}

#clinic-map .leaflet-popup-content b {
  color: var(--primary-dark);
}

#clinic-map .leaflet-popup-content a {
  color: var(--primary);
  font-weight: 700;
}

#clinic-map .leaflet-popup-tip {
  box-shadow: none;
}

#clinic-map .leaflet-control-attribution {
  background: rgba(255,255,255,.88);
  border-radius: 10px 0 0 0;
  padding: 4px 8px;
  color: #627387;
}

/* =========================
   ESTUDIOS VETERINARIOS - ESTILO COMERCIAL
   ========================= */

.studies-hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 30px;
  align-items: center;
}

.studies-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(231, 241, 251, .88);
  color: var(--primary);
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: .9rem;
  font-weight: bold;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(31,79,138,.08);
}

.studies-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.studies-point {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid #dbe8f3;
  box-shadow: 0 12px 24px rgba(20,53,92,.07);
}

.studies-point strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.studies-point span {
  color: var(--muted);
  font-size: .88rem;
}

.studies-side-panel {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.studies-panel-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.studies-side-panel h3 {
  color: var(--primary-dark);
  font-size: 1.55rem;
  line-height: 1.15;
}

.studies-side-list {
  display: grid;
  gap: 12px;
}

.studies-side-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dde8f2;
}

.studies-side-item span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf5ff, #eefbf9);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.studies-side-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 2px;
}

.studies-side-item small {
  color: var(--muted);
  line-height: 1.35;
}

.studies-section {
  padding-top: 20px;
}

.studies-section-header {
  margin-bottom: 26px;
}

.studies-results-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef7ff, #eefbf9);
  border: 1px solid #d9e8f5;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

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

.study-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(20,53,92,.08);
}

.study-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.study-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf5ff, #eefbf9);
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.study-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #d32f2f;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 20px rgba(211,47,47,.25);
}

.study-card h3 {
  color: var(--primary-dark);
  font-size: 1.12rem;
  line-height: 1.35;
  min-height: 54px;
  margin-bottom: 8px;
}

.study-card p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
  min-height: 68px;
  margin-bottom: 16px;
}

.study-price-label {
  color: #2f3b4a;
  font-size: .92rem;
  margin-bottom: 2px;
}

.study-prices {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
}

.study-old-price {
  color: #59697c;
  font-size: .98rem;
  text-decoration: line-through;
}

.study-new-price {
  color: #0b57d0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.study-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.study-btn {
  width: 100%;
  min-height: 48px;
  font-size: .95rem;
}

@media (max-width: 1180px) {
  .studies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .studies-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .studies-hero-points,
  .studies-grid {
    grid-template-columns: 1fr;
  }

  .study-card h3,
  .study-card p {
    min-height: auto;
  }

  .study-new-price {
    font-size: 1.7rem;
  }
}


.study-title-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0 0 8px;
  text-align: left;
  color: var(--primary-dark);
  font-size: 1.12rem;
  line-height: 1.35;
  min-height: 54px;
  font-weight: 700;
  cursor: pointer;
  transition: color .22s ease, transform .22s ease;
}

.study-title-button:hover {
  color: #0b57d0;
  transform: translateX(2px);
}

.study-title-button:focus-visible {
  outline: 3px solid rgba(11, 87, 208, .18);
  outline-offset: 6px;
  border-radius: 12px;
}

.study-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.study-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.study-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 33, 56, .56);
  backdrop-filter: blur(6px);
}

.study-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,250,255,.98) 100%);
  border: 1px solid rgba(216,226,238,.95);
  box-shadow: 0 28px 70px rgba(11, 36, 68, .26);
  padding: 28px 28px 24px;
}

.study-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid #d9e5f0;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(20,53,92,.10);
}

.study-modal-header {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  align-items: start;
  padding-right: 60px;
  margin-bottom: 24px;
}

.study-modal-icon {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #edf5ff, #eefbf9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.study-modal-kicker {
  display: inline-block;
  font-size: .76rem;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.study-modal-heading h3 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.study-modal-heading p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.study-modal-content {
  display: grid;
  gap: 18px;
}

.study-modal-section {
  background: rgba(255,255,255,.92);
  border: 1px solid #dbe8f3;
  border-radius: 22px;
  padding: 18px 20px;
}

.study-modal-section h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 10px;
}

.study-modal-section p,
.study-modal-section li {
  color: #000000;
  line-height: 1.62;
  font-size: .96rem;
}

.study-modal-section ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.study-modal-section li {
  display: flex;
  gap: 10px;
}

.study-modal-section li::before {
  content: '•';
  color: var(--secondary);
  font-weight: 900;
  flex-shrink: 0;
}

.study-modal-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef7ff, #f4fcfb);
  border: 1px solid #d8e8f4;
  color: var(--primary);
  font-size: .9rem;
  line-height: 1.5;
}

.study-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.study-modal-price-box {
  display: grid;
  gap: 4px;
}

.study-modal-price-box span {
  color: var(--muted);
  font-size: .88rem;
}

.study-modal-price-box strong {
  color: #0b57d0;
  font-size: 1.9rem;
  line-height: 1;
}

.study-modal-cart-form {
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
}

.study-modal-cart-btn {
  min-width: 220px;
  min-height: 52px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .study-title-button {
    min-height: auto;
  }

  .study-modal {
    padding: 14px;
  }

  .study-modal-dialog {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .study-modal-header {
    grid-template-columns: 1fr;
    padding-right: 44px;
  }

  .study-modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .study-modal-heading h3 {
    font-size: 1.45rem;
  }

  .study-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .study-modal-cart-form,
  .study-modal-cart-btn {
    width: 100%;
  }
}

/* =========================
   PROCESO - ESTILO MÁS COMERCIAL / PROFESIONAL
   ========================= */

.process-hero .page-hero-grid.process-hero-grid,
.process-hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 30px;
  align-items: center;
}

.process-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.process-hero-point {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dce8f3;
  box-shadow: 0 12px 28px rgba(20,53,92,.08);
}

.process-hero-point strong {
  display: block;
  color: var(--primary-dark);
  font-size: .98rem;
  margin-bottom: 6px;
}

.process-hero-point span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.process-hero-visual {
  position: relative;
}

.process-hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(216,226,238,.95);
  box-shadow: var(--shadow-strong);
  background: #fff;
}

.process-hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.process-image-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 34, 66, .74);
  color: #fff;
  backdrop-filter: blur(8px);
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}

.process-floating-note {
  position: absolute;
  left: -18px;
  bottom: 26px;
  max-width: 260px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  border: 1px solid #dbe8f3;
  box-shadow: 0 20px 40px rgba(20,53,92,.14);
}

.process-floating-note strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

.process-floating-note p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  margin: 0;
}

.process-section-header {
  margin-bottom: 24px;
}

.process-timeline {
  display: grid;
  gap: 20px;
}

.process-step-card {
  padding: 26px;
  border-radius: 28px;
}

.process-step-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.process-step-card h3 {
  font-size: 1.22rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.process-step-card > p,
.process-step-top p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.6;
}

.process-media-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: center;
  margin: 8px 0 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fbff, #f2fbf9);
  border: 1px solid #dfeaf4;
}

.process-media-copy strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1rem;
}

.process-media-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.process-media-thumb {
  overflow: hidden;
  border-radius: 20px;
  min-height: 180px;
  box-shadow: 0 16px 34px rgba(20,53,92,.12);
}

.process-media-thumb img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.process-study-showcase {
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 12px;
}

.process-study-image {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #dfe8f1;
  box-shadow: 0 18px 36px rgba(20,53,92,.12);
  min-height: 260px;
}

.process-study-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.process-study-copy {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f9fd 100%);
  border: 1px solid #dfeaf4;
}

.process-study-copy .badge {
  display: inline-flex;
  margin-bottom: 12px;
}

.process-study-copy h4 {
  color: var(--primary-dark);
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.process-study-copy ul {
  margin-top: 0;
}

.process-guidelines-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 22px;
  align-items: start;
}

.process-checklist-panel,
.process-alerts-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.process-checklist-panel h2,
.process-alerts-panel h2 {
  color: var(--primary-dark);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.process-checklist-list {
  display: grid;
  gap: 14px;
}

.process-check-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff, #f5fbfa);
  border: 1px solid #e0ebf4;
}

.process-check-item span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31,79,138,.18);
}

.process-check-item strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.process-check-item p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.process-alerts-panel {
  display: grid;
  gap: 14px;
}

.process-alert-card {
  padding: 18px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid #e0ebf4;
}

.process-alert-card strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.process-alert-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.52;
}

.emergency-card-soft {
  background: linear-gradient(135deg, #fff5f5, #fffdfd);
  border-color: #f1d3d3;
}

.process-banner {
  align-items: center;
}

@media (max-width: 1080px) {
  .process-hero .page-hero-grid.process-hero-grid,
  .process-hero-grid,
  .process-guidelines-grid,
  .process-study-showcase,
  .process-media-block {
    grid-template-columns: 1fr;
  }

  .process-hero-points {
    grid-template-columns: 1fr;
  }

  .process-floating-note {
    position: static;
    max-width: none;
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  .process-step-card,
  .process-checklist-panel,
  .process-alerts-panel {
    padding: 22px;
  }

  .process-step-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-hero-image-card img {
    min-height: 300px;
    max-height: 360px;
  }

  .process-media-thumb,
  .process-media-thumb img,
  .process-study-image,
  .process-study-image img {
    min-height: 210px;
  }

  .process-check-item {
    grid-template-columns: 1fr;
  }
}

/* =========================
   EQUIPO - SECCIÓN COMERCIAL
   ========================= */

.equipment-shell {
  width: min(1760px, 97vw);
  max-width: 1760px;
}

.equipment-hero {
  padding-top: 52px;
}

.equipment-hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  align-items: stretch;
  gap: 30px;
}

.equipment-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.equipment-hero-panel {
  display: grid;
  gap: 16px;
}

.equipment-panel-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.equipment-hero-panel h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  line-height: 1.15;
}

.equipment-panel-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.equipment-mini-point {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dde8f2;
  box-shadow: 0 10px 22px rgba(20, 53, 92, 0.07);
}

.equipment-mini-point strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 6px;
}

.equipment-mini-point span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.equipment-gallery-section {
  padding-top: 26px;
}

.equipment-gallery-section .equipment-shell,
.equipment-cards-section .equipment-shell {
  width: min(1780px, 97.2vw);
  max-width: 1780px;
}

.equipment-section-header {
  margin-bottom: 24px;
}

.equipment-showcase-grid {
  display: grid;
  gap: 28px;
}

.equipment-showcase-card {
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(0, .88fr);
  gap: 0;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(242,248,255,.95));
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.10);
}

.equipment-showcase-media {
  min-height: 430px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.equipment-showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.16));
}

.equipment-showcase-content {
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.equipment-card-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--primary);
  border: 1px solid #d5e4f4;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.equipment-showcase-content h3 {
  color: var(--primary-dark);
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.equipment-showcase-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.equipment-showcase-content ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.equipment-showcase-content ul li {
  color: var(--text);
  font-size: .96rem;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.equipment-showcase-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: 900;
}

.equipment-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.equipment-feature-card {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,250,255,.96));
  padding: 28px;
}

.equipment-feature-card .icon {
  margin-bottom: 18px;
}

.equipment-banner {
  overflow: hidden;
}

.equipment-banner-panel {
  background: rgba(255,255,255,.14);
}

.equipment-banner .badge {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}

@media (max-width: 1080px) {
  .equipment-shell,
  .equipment-gallery-section .equipment-shell,
  .equipment-cards-section .equipment-shell {
    width: min(95%, 95%);
  }

  .equipment-showcase-card,
  .equipment-hero-grid,
  .equipment-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .equipment-showcase-card {
    grid-template-columns: 1fr;
  }

  .equipment-showcase-media {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .equipment-shell,
  .equipment-gallery-section .equipment-shell,
  .equipment-cards-section .equipment-shell {
    width: min(94%, 94%);
  }

  .equipment-hero-grid,
  .equipment-panel-points,
  .equipment-feature-grid {
    grid-template-columns: 1fr;
  }

  .equipment-showcase-content {
    padding: 24px;
  }

  .equipment-showcase-content h3 {
    font-size: 1.35rem;
  }

  .equipment-showcase-media {
    min-height: 280px;
  }
}

/* =========================
   HOME / INICIO COMERCIAL
   ========================= */

.home-hero {
  padding-top: 34px;
}

.home-hero-shell {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding-inline: 0;
}

.home-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.45), transparent 22%),
    linear-gradient(115deg, #e7f1fb 0%, #eef5fc 34%, #f8fbff 100%);
  border: 0;
  box-shadow: 0 28px 70px rgba(20, 53, 92, 0.12);
  min-height: 640px;
}

.home-carousel-track {
  position: relative;
  min-height: 640px;
}

.home-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(620px, 1.12fr);
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transform: translateX(32px);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}

.home-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.home-slide-copy {
  position: relative;
  padding: 62px 64px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  background:
    linear-gradient(135deg, rgba(233,242,252,.98) 0%, rgba(240,247,253,.94) 55%, rgba(247,251,255,.80) 100%);
}

.home-slide-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.85), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,.10), transparent 60%);
  pointer-events: none;
}

.home-slide-copy > * {
  position: relative;
  z-index: 1;
}

.home-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  border: 1px solid rgba(181, 206, 230, .95);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(20,53,92,.08);
}

.home-slide-copy h1 {
  font-size: clamp(2.55rem, 4.8vw, 4.55rem);
  line-height: .96;
  color: #0a3566;
  max-width: 660px;
  margin-bottom: 18px;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.home-slide-copy p {
  color: #49637f;
  font-size: 1.08rem;
  line-height: 1.72;
  max-width: 550px;
  margin-bottom: 26px;
}

.home-slide-copy > *:last-child {
  margin-bottom: 0;
}

.home-slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.home-slide-actions .btn {
  min-height: 54px;
  padding-inline: 28px;
  font-size: .95rem;
  box-shadow: 0 16px 34px rgba(20,53,92,.10);
}

.home-slide-actions .btn.btn-outline {
  background: rgba(255,255,255,.86);
  border-color: rgba(184, 205, 224, .95);
}

.home-slide-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-slide-badge {
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: var(--primary-dark);
  border: 1px solid rgba(150, 182, 214, .28);
  font-size: .84rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(20,53,92,.05);
}

.home-slide-badge.soft {
  background: rgba(57,166,163,.10);
  color: #226d6c;
}

.home-slide-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.home-slide-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,40,69,.08) 0%, rgba(16,40,69,0) 16%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.10));
  pointer-events: none;
  z-index: 1;
}

.home-slide-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(7,25,45,0), rgba(7,25,45,.10));
  pointer-events: none;
  z-index: 1;
}

.home-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.08);
  transform-origin: center;
}

.home-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--primary);
  font-size: 1.35rem;
  box-shadow: 0 14px 30px rgba(20,53,92,.16);
  cursor: pointer;
  z-index: 3;
}

.home-carousel-arrow.prev { left: 18px; }
.home-carousel-arrow.next { right: 18px; }

.home-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.home-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(12, 77, 151, .45);
  background: rgba(255,255,255,.84);
  cursor: pointer;
}

.home-carousel-dot.is-active {
  background: #1662c4;
}

.home-hero-stats {
  width: min(1120px, 82%);
  margin: 20px auto 0;
  gap: 16px;
}

.home-hero-stats .stat {
  padding: 18px 20px;
  min-height: 132px;
}

.home-hero-stats .stat h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.home-hero-stats .stat p {
  font-size: .85rem;
  line-height: 1.52;
}

.home-value-section,
.home-products-section {
  padding-top: 26px;
}

.home-features-grid {
  grid-template-columns: repeat(4, 1fr);
}

.home-feature-card {
  min-height: 100%;
}

.home-products-grid {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.home-product-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 24px;
}

.home-product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef6ff, #f7fbff);
  overflow: hidden;
}

.home-product-media img {
  width: 100%;
  max-width: 210px;
  max-height: 210px;
  object-fit: contain;
  display: block;
}

.home-product-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff4b6b;
  color: #fff;
  font-weight: bold;
  font-size: .82rem;
  padding: 8px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(255,75,107,.24);
}

.home-product-tags {
  margin-bottom: 10px;
}

.home-product-title {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.home-product-description {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.52;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.home-product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.home-product-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
}

.home-product-price-old {
  color: #92a0af;
  text-decoration: line-through;
  font-size: .96rem;
}

.home-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

.home-add-cart-btn,
.home-see-more-btn {
  width: 100%;
}

.home-product-footer {
  margin-top: 12px;
}

.home-product-cart-state {
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  color: var(--secondary);
  font-weight: bold;
}

.cart-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(18, 39, 68, .96);
  color: #fff;
  box-shadow: 0 20px 45px rgba(0,0,0,.24);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: .25s ease;
}

.cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(57,166,163,.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cart-toast-icon svg {
  width: 20px;
  height: 20px;
}

.cart-toast-body {
  display: grid;
  gap: 2px;
}

.cart-toast-title {
  font-size: .93rem;
}

.cart-toast-text {
  font-size: .85rem;
  opacity: .92;
}

@media (max-width: 1280px) {
  .home-slide {
    grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  }

  .home-slide-copy {
    padding: 52px 46px 92px;
  }

  .home-slide-copy h1 {
    font-size: clamp(2.2rem, 4.25vw, 3.85rem);
  }
}

@media (max-width: 1200px) {
  .home-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-carousel,
  .home-carousel-track {
    min-height: 620px;
  }

  .home-slide {
    grid-template-columns: minmax(0, .98fr) minmax(420px, 1fr);
  }

  .home-slide-copy {
    padding: 44px 34px 86px;
  }

  .home-slide-media {
    min-height: 620px;
  }

  .home-slide-copy h1 {
    font-size: clamp(2rem, 3.9vw, 3.2rem);
  }
}

@media (max-width: 900px) {
  .home-carousel,
  .home-carousel-track,
  .home-slide-media {
    min-height: auto;
  }

  .home-slide {
    position: absolute;
    grid-template-columns: 1fr;
  }

  .home-slide-copy {
    justify-content: flex-start;
    padding: 38px 24px 88px;
  }

  .home-slide-copy h1 {
    font-size: clamp(2.05rem, 6vw, 3.1rem);
    max-width: 100%;
  }

  .home-slide-copy p {
    max-width: 100%;
  }

  .home-slide-media {
    height: 370px;
  }

  .home-slide-media img {
    transform: scale(1.04);
  }

  .home-carousel,
  .home-carousel-track {
    min-height: 880px;
  }

  .home-hero-stats {
    width: min(720px, 92%);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-hero-shell {
    width: 100%;
    margin-left: 0;
    padding-inline: 0;
  }

  .home-hero {
    padding-top: 22px;
  }

  .home-carousel {
    border-radius: 0;
    min-height: 840px;
  }

  .home-carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .home-carousel-arrow.prev { left: 10px; }
  .home-carousel-arrow.next { right: 10px; }

  .home-slide-copy h1 {
    font-size: 2rem;
  }

  .home-slide-actions,
  .home-slide-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .home-slide-copy {
    padding: 30px 20px 84px;
  }

  .home-products-grid,
  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .home-product-media {
    min-height: 200px;
  }

  .cart-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}


/* =========================
   FIX TOAST CARRITO TIENDA
   Evita que se estire de arriba a abajo por reglas duplicadas
   ========================= */
.cart-toast {
  top: auto;
  left: auto;
  right: 20px;
  bottom: 20px;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 40px));
  width: auto;
  height: auto;
  align-items: center;
}

.cart-toast-body {
  min-width: 0;
  max-width: 100%;
}

.cart-toast-title,
.cart-toast-text {
  display: block;
  word-break: break-word;
}

@media (max-width: 760px) {
  .cart-toast {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
    max-width: none;
  }
}

/* =====================================================
   TIENDA PRO - REDISEÑO VISUAL MÁS COMERCIAL
   ===================================================== */

.store-hero-pro {
  padding-bottom: 26px;
}

.store-hero-grid-pro {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr) !important;
  align-items: stretch;
  gap: 24px;
}

.store-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.store-highlight-card {
  background: rgba(255,255,255,.88);
  border: 1px solid #dbe7f2;
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 28px rgba(20,53,92,.08);
}

.store-highlight-card strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.store-highlight-card span {
  display: block;
  font-size: .9rem;
  color: var(--muted);
}

.store-highlight-card-accent {
  background: linear-gradient(135deg, rgba(31,79,138,.92), rgba(57,166,163,.92));
  border-color: transparent;
}

.store-highlight-card-accent strong,
.store-highlight-card-accent span {
  color: #fff;
}

.store-side-panel-pro {
  background: linear-gradient(160deg, rgba(255,255,255,.94) 0%, rgba(236,247,255,.9) 100%);
  border: 1px solid #d8e5f1;
  display: grid;
  gap: 16px;
}

.store-panel-list {
  display: grid;
  gap: 12px;
}

.store-panel-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid #e0ebf4;
  border-radius: 16px;
  color: var(--text);
}

.store-panel-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8f3d);
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(255,183,3,.14);
}

.store-cart-shortcut-pro {
  width: 100%;
  min-height: 52px;
}

.store-section-pro {
  padding-top: 12px;
}

.store-layout-pro {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.store-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  box-shadow: 0 14px 32px rgba(20,53,92,.08);
}

.store-sidebar-block {
  display: grid;
  gap: 14px;
}

.store-sidebar-head h3 {
  color: var(--primary-dark);
  font-size: 1.28rem;
  margin-bottom: 2px;
}

.store-sidebar-kicker,
.store-results-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.store-category-list {
  display: grid;
  gap: 10px;
}

.store-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e2ebf3;
  background: #fff;
  color: var(--text);
  transition: .24s ease;
  font-weight: 700;
}

.store-category-link span {
  flex: 1;
  min-width: 0;
}

.store-category-link strong {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: #eef4fb;
  color: var(--primary);
  font-size: .82rem;
}

.store-category-link svg {
  width: 16px;
  height: 16px;
  color: #8ba3b9;
  flex-shrink: 0;
}

.store-category-link:hover,
.store-category-link.is-active {
  transform: translateY(-2px);
  border-color: #c8daea;
  box-shadow: 0 14px 26px rgba(20,53,92,.10);
}

.store-category-link.is-active {
  background: linear-gradient(135deg, rgba(31,79,138,.96), rgba(57,166,163,.96));
  color: #fff;
}

.store-category-link.is-active strong {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.store-category-link.is-active svg {
  color: rgba(255,255,255,.82);
}

.store-sidebar-note {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff 0%, #f0f8ff 100%);
  border: 1px solid #dbe7f1;
}

.store-sidebar-note h4 {
  color: var(--primary-dark);
  font-size: 1rem;
}

.store-sidebar-note p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.store-main-content {
  display: grid;
  gap: 20px;
}

.store-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-radius: 26px;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(247,251,255,.95) 100%);
}

.store-results-bar h2 {
  color: var(--primary-dark);
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.store-results-bar p {
  color: var(--muted);
  margin: 0;
}

.store-results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-clear-filter,
.store-cart-summary-btn {
  min-height: 48px;
}

.store-products-grid-pro {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch;
}

.product-card-store-pro {
  min-height: 100%;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  padding: 16px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dfebf5 !important;
  box-shadow: 0 14px 30px rgba(20,53,92,.07) !important;
  overflow: hidden;
}

.product-card-store-pro:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 44px rgba(20,53,92,.13) !important;
  border-color: #cfdfee !important;
}

.product-media-store-pro {
  min-height: 240px !important;
  max-height: 240px !important;
  height: 240px;
  border-radius: 20px !important;
  background: radial-gradient(circle at top right, rgba(57,166,163,.12), transparent 32%), linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%) !important;
  margin-bottom: 14px !important;
}

.product-media-store-pro img,
.product-image-store-pro {
  width: 100%;
  height: 100%;
}

.product-media-store-pro img {
  padding: 14px !important;
}

.product-image-store-pro {
  display: grid;
  place-items: center;
  font-size: 4rem;
  margin-bottom: 0 !important;
}

.store-discount-badge-pro {
  top: 14px !important;
  left: 14px !important;
  min-width: 62px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: #d32f2f !important;
  box-shadow: 0 10px 20px rgba(211,47,47,.25) !important;
}

.product-card-body-store-pro {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-tags-store-pro {
  margin-bottom: 12px !important;
}

.badge-category-pro {
  background: #edf5ff !important;
  color: var(--primary-dark) !important;
  border-color: #d7e4f1 !important;
}

.badge-stock-pro {
  background: #ecfbf4 !important;
  color: #118a54 !important;
  border: 1px solid #c9ecd9 !important;
}

.product-title-store-pro {
  font-size: 1.06rem !important;
  line-height: 1.38 !important;
  min-height: calc(1.38em * 2 + 4px) !important;
  max-height: calc(1.38em * 2 + 4px) !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  margin-bottom: 10px !important;
}

.product-description-store-pro {
  min-height: 44px !important;
  max-height: 44px !important;
  font-size: .9rem !important;
  margin-bottom: 14px !important;
  color: #637487 !important;
}

.price-block-store-pro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px !important;
  margin-bottom: 12px !important;
}

.price-old-store-pro {
  order: 0;
  font-size: .92rem !important;
}

.price-main-store-pro {
  order: 1;
  font-size: 1.8rem !important;
  color: var(--primary-dark) !important;
}

.store-status-row-pro {
  min-height: 50px;
  margin-bottom: 14px;
}

.store-meta-pro {
  margin-top: 0 !important;
}

.store-meta-pro .stock-row,
.store-meta-pro .stock-amazon {
  font-size: .82rem !important;
}

.product-actions-store-pro {
  margin-top: auto !important;
}

.product-actions-store-pro .amazon-add-btn,
.product-actions-store-pro .amazon-qty-control {
  width: 100%;
}

.product-actions-store-pro .amazon-add-btn {
  min-height: 50px;
  border-radius: 16px;
  font-weight: 700;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(31,79,138,.22);
}

.product-actions-store-pro .amazon-add-btn:hover {
  transform: translateY(-1px);
}

.product-actions-store-pro .amazon-qty-control {
  min-height: 50px;
  border-radius: 16px;
}

.store-empty-state-pro {
  padding: 46px 24px;
  border-radius: 24px;
}

@media (max-width: 1180px) {
  .store-layout-pro {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .store-products-grid-pro {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .store-hero-grid-pro,
  .store-layout-pro {
    grid-template-columns: 1fr !important;
  }

  .store-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 760px) {
  .store-hero-highlights {
    grid-template-columns: 1fr;
  }

  .store-results-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-results-actions {
    width: 100%;
  }

  .store-results-actions .btn {
    flex: 1 1 100%;
  }

  .store-products-grid-pro {
    grid-template-columns: 1fr !important;
  }

  .product-media-store-pro {
    min-height: 210px !important;
    max-height: 210px !important;
    height: 210px;
  }
}


/* =========================
   CHATBOT IA GLOBAL
   ========================= */
.ai-chatbot {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 70;
}

.ai-chatbot-trigger {
  position: relative;
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff, #e7f7fb 52%, #dff1ff);
  box-shadow: 0 24px 48px rgba(18, 56, 98, .24);
  display: grid;
  place-items: center;
  overflow: visible;
  transition: transform .28s ease, box-shadow .28s ease;
}

.ai-chatbot-trigger:hover {
  transform: translateY(-6px) scale(1.03) rotate(-2deg);
  box-shadow: 0 30px 56px rgba(18, 56, 98, .30);
}

.ai-chatbot-trigger:active {
  transform: scale(.98);
}

.ai-chatbot-trigger-ring,
.ai-chatbot-trigger-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.ai-chatbot-trigger-ring {
  border: 2px solid rgba(57, 166, 163, .30);
  animation: chatbotPulse 2.8s ease-out infinite;
}

.ai-chatbot-trigger-glow {
  inset: 8px;
  background: radial-gradient(circle, rgba(57,166,163,.24), rgba(31,79,138,.06) 58%, transparent 72%);
}

.ai-chatbot-trigger img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  transform: translate(-1px, -2px);
  filter: drop-shadow(0 12px 14px rgba(31,79,138,.18));
}

.ai-chatbot-bubble {
  position: absolute;
  right: 108px;
  bottom: 18px;
  width: 260px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(210, 227, 241, .95);
  box-shadow: 0 18px 38px rgba(18, 56, 98, .16);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 3px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}

.ai-chatbot-bubble strong {
  color: var(--primary-dark);
  font-size: .95rem;
}

.ai-chatbot-bubble span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.ai-chatbot-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 28px;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,.96);
  border-right: 1px solid rgba(210, 227, 241, .95);
  border-bottom: 1px solid rgba(210, 227, 241, .95);
  transform: rotate(-45deg);
}

.ai-chatbot-bubble.is-hidden,
.ai-chatbot.is-open .ai-chatbot-bubble {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.ai-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 112px;
  width: min(390px, calc(100vw - 24px));
  height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(211, 227, 241, .95);
  box-shadow: 0 34px 80px rgba(18, 56, 98, .22);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

.ai-chatbot.is-open .ai-chatbot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  background: var(--primary);
  color: #fff;
}

.ai-chatbot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chatbot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ai-chatbot-avatar img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.ai-chatbot-brand strong {
  display: block;
  font-size: 1rem;
}

.ai-chatbot-brand span {
  display: block;
  margin-top: 3px;
  font-size: .82rem;
  opacity: .92;
}

.ai-chatbot-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.ai-chatbot-close:hover {
  background: rgba(255,255,255,.22);
  transform: scale(1.04);
}

.ai-chatbot-body {
  padding: 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(57,166,163,.08), transparent 26%),
    linear-gradient(180deg, rgba(245,250,255,.86), rgba(255,255,255,.96));
  display: grid;
  gap: 12px;
}

.ai-chatbot-message {
  display: flex;
}

.ai-chatbot-message.is-user {
  justify-content: flex-end;
}

.ai-chatbot-message-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: .94rem;
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: 0 12px 24px rgba(18, 56, 98, .08);
}

.ai-chatbot-message.is-bot .ai-chatbot-message-bubble {
  background: #fff;
  color: var(--text);
  border: 1px solid #dfe9f4;
  border-bottom-left-radius: 6px;
}

.ai-chatbot-message.is-user .ai-chatbot-message-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.ai-chatbot-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 66px;
}

.ai-chatbot-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(31,79,138,.42);
  animation: chatbotTyping 1.15s infinite ease-in-out;
}

.ai-chatbot-typing span:nth-child(2) { animation-delay: .15s; }
.ai-chatbot-typing span:nth-child(3) { animation-delay: .3s; }

.ai-chatbot-quick-actions {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.96);
}

.ai-chatbot-chip {
  border: 1px solid #dbe7f3;
  background: #f5f9ff;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: bold;
  font-size: .79rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ai-chatbot-chip:hover {
  transform: translateY(-2px);
  border-color: #bfd7ea;
  box-shadow: 0 12px 24px rgba(18, 56, 98, .08);
}

.ai-chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid #e6eef6;
  background: rgba(255,255,255,.98);
}

.ai-chatbot-input {
  min-height: 52px;
  max-height: 120px;
  resize: none;
  border-radius: 18px;
  padding: 14px 16px;
}

.ai-chatbot-send {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  min-width: 92px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(18, 56, 98, .18);
  transition: transform .24s ease, box-shadow .24s ease;
}

.ai-chatbot-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(18, 56, 98, .24);
}

.ai-chatbot-particles {
  position: absolute;
  inset: -20px -20px auto auto;
  width: 140px;
  height: 140px;
  pointer-events: none;
}

.ai-chatbot-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(57,166,163,.9), rgba(31,79,138,.9));
  box-shadow: 0 0 0 6px rgba(57,166,163,.08);
  opacity: .8;
  animation: chatbotFloat 4.6s infinite ease-in-out;
}

.ai-chatbot-particles span:nth-child(1) { top: 18px; right: 30px; animation-delay: 0s; }
.ai-chatbot-particles span:nth-child(2) { top: 46px; right: 6px; width: 10px; height: 10px; animation-delay: .8s; }
.ai-chatbot-particles span:nth-child(3) { top: 72px; right: 42px; width: 6px; height: 6px; animation-delay: 1.4s; }
.ai-chatbot-particles span:nth-child(4) { top: 20px; right: 72px; width: 6px; height: 6px; animation-delay: 2s; }
.ai-chatbot-particles span:nth-child(5) { top: 88px; right: 18px; width: 7px; height: 7px; animation-delay: 2.5s; }
.ai-chatbot-particles span:nth-child(6) { top: 54px; right: 84px; width: 9px; height: 9px; animation-delay: 3.1s; }

@keyframes chatbotPulse {
  0% { transform: scale(.92); opacity: .66; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

@keyframes chatbotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: .55; }
  50% { transform: translateY(-10px) scale(1.08); opacity: 1; }
}

@keyframes chatbotTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 760px) {
  .ai-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .ai-chatbot-trigger {
    width: 82px;
    height: 82px;
  }

  .ai-chatbot-trigger img {
    width: 80px;
    height: 80px;
  }

  .ai-chatbot-panel {
    right: 0;
    bottom: 96px;
    width: min(100vw - 12px, 370px);
    height: min(72vh, 540px);
  }

  .ai-chatbot-bubble {
    display: none;
  }
}


/* =========================
   INICIO - PRODUCTOS RECOMENDADOS EN TIRA
   ========================= */

.home-products-section {
  overflow: hidden;
}

.home-products-section .section-header {
  align-items: center;
}

.home-products-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 6px 0 10px;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.home-products-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: homeProductsMarquee 38s linear infinite;
  will-change: transform;
}

.home-products-marquee:hover .home-products-track {
  animation-play-state: paused;
}

.home-product-card-marquee {
  flex: 0 0 278px;
  width: 278px;
  min-width: 278px;
  padding: 14px !important;
  border-radius: 22px !important;
}

.home-product-card-marquee .product-media-store-pro,
.home-product-card-marquee .home-product-media {
  min-height: 176px !important;
  max-height: 176px !important;
  height: 176px;
  margin-bottom: 12px !important;
  border-radius: 18px !important;
}

.home-product-card-marquee .product-media-store-pro img,
.home-product-card-marquee .home-product-media img {
  padding: 12px !important;
}

.home-product-card-marquee .store-discount-badge-pro,
.home-product-card-marquee .home-product-discount {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  min-width: 56px !important;
  height: 30px !important;
  font-size: .8rem !important;
}

.home-product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-product-card-marquee .product-tags-store-pro {
  margin-bottom: 10px !important;
}

.home-product-card-marquee .product-tags-compact .badge {
  padding: 6px 10px;
  font-size: .73rem;
}

.home-product-card-marquee .product-title-store-pro,
.home-product-card-marquee .home-product-title {
  font-size: .98rem !important;
  line-height: 1.36 !important;
  margin-bottom: 8px !important;
}

.home-product-card-marquee .product-description-store-pro,
.home-product-card-marquee .home-product-description {
  min-height: 40px !important;
  max-height: 40px !important;
  font-size: .84rem !important;
  line-height: 1.42 !important;
  margin-bottom: 12px !important;
}

.home-product-card-marquee .price-block-store-pro,
.home-product-card-marquee .home-product-price-row {
  gap: 4px !important;
  margin-bottom: 12px !important;
}

.home-product-card-marquee .price-main-store-pro,
.home-product-card-marquee .home-product-price {
  font-size: 1.62rem !important;
}

.home-product-card-marquee .price-old-store-pro,
.home-product-card-marquee .home-product-price-old {
  font-size: .84rem !important;
}

.home-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

.home-product-card-marquee .home-add-cart-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 15px;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(31,79,138,.18);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-product-card-marquee .home-add-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(31,79,138,.24);
}

.home-product-card-marquee .home-add-cart-btn:disabled {
  opacity: .75;
  cursor: wait;
}

.home-product-card-marquee .home-see-more-btn {
  width: 100%;
  min-height: 46px;
}

.home-product-card-marquee .home-product-footer {
  margin-top: 12px;
  padding-top: 2px;
}

.home-product-card-marquee .home-product-cart-state {
  font-size: .82rem;
  line-height: 1.35;
}

@keyframes homeProductsMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (max-width: 980px) {
  .home-products-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .home-product-card-marquee {
    flex-basis: 250px;
    width: 250px;
    min-width: 250px;
  }
}

@media (max-width: 760px) {
  .home-products-track {
    gap: 14px;
    animation-duration: 30s;
  }

  .home-product-card-marquee {
    flex-basis: 226px;
    width: 226px;
    min-width: 226px;
    padding: 12px !important;
  }

  .home-product-card-marquee .product-media-store-pro,
  .home-product-card-marquee .home-product-media {
    min-height: 152px !important;
    max-height: 152px !important;
    height: 152px;
  }

  .home-product-card-marquee .price-main-store-pro,
  .home-product-card-marquee .home-product-price {
    font-size: 1.45rem !important;
  }
}


/* =========================
   LOGIN / AUTH
   ========================= */

.nav-user-menu {
  position: relative;
}

.nav-user-menu summary {
  list-style: none;
}

.nav-user-menu summary::-webkit-details-marker {
  display: none;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef7ff, #f3fbff);
  border: 1px solid #d7e5f3;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .92rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: .25s ease;
  user-select: none;
}

.nav-user-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(20,53,92,.10);
  border-color: #bfd3e8;
}

.nav-user-pill-login {
  text-decoration: none;
}

.nav-user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31,79,138,.16);
  flex-shrink: 0;
}

.nav-user-icon svg {
  width: 16px;
  height: 16px;
}

.nav-user-name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform .22s ease;
}

.nav-user-chevron svg {
  width: 15px;
  height: 15px;
}

.nav-user-menu[open] .nav-user-chevron {
  transform: rotate(180deg);
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  border: 1px solid #dfeaf4;
  box-shadow: 0 22px 48px rgba(20,53,92,.16);
  backdrop-filter: blur(14px);
  z-index: 40;
}

.nav-user-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--primary-dark);
  font-weight: 700;
  transition: .22s ease;
}

.nav-user-dropdown-link:hover {
  background: linear-gradient(135deg, #eef7ff, #f3fbff);
  color: var(--primary);
}

.auth-page-section {
  padding-top: 52px;
  padding-bottom: 58px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 24px;
  align-items: stretch;
}

.auth-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.auth-card-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.auth-card-copy p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 58ch;
}

.auth-benefits {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-benefit-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbff, #f1f9f8);
  border: 1px solid #dfeaf4;
}

.auth-benefit-item strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.auth-benefit-item span {
  color: var(--muted);
  font-size: .95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f4f8fc;
  border: 1px solid #e0eaf4;
  margin-bottom: 22px;
}

.auth-tab {
  border: none;
  min-height: 48px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
}

.auth-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31,79,138,.18);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.auth-form label span {
  font-size: .94rem;
}

.auth-submit-btn {
  min-height: 54px;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-user-menu,
  .nav-user-pill {
    width: 100%;
  }

  .nav-user-dropdown {
    left: 0;
    right: 0;
    min-width: 100%;
  }

  .auth-card {
    padding: 22px;
    border-radius: 24px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
}


/* =========================
   CARRITO - REDISEÑO COMERCIAL GRANDE
   ========================= */

.cart-hero-premium .page-hero-grid {
  align-items: stretch;
}

.cart-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-hero-copy h1 {
  max-width: 11.5ch;
}

.cart-hero-trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.cart-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid #d9e7f2;
  box-shadow: 0 12px 26px rgba(20,53,92,.08);
  color: var(--primary-dark);
  font-size: .92rem;
}

.cart-trust-pill span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #edf6ff, #eefbf9);
}

.cart-summary-panel-premium {
  display: grid;
  gap: 18px;
}

.cart-summary-topline,
.cart-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #edf5ff, #eefbf9);
  border: 1px solid #d4e4f3;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.cart-summary-points-premium {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-summary-stat {
  gap: 6px;
}

.cart-summary-stat small {
  color: #ffffff;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cart-summary-stat strong {
  font-size: 2rem;
  line-height: 1;
}

.cart-summary-stat-total strong {
  color: var(--primary-dark);
}

.cart-summary-benefits {
  display: grid;
  gap: 12px;
}

.cart-summary-benefit {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  border: 1px solid #dde8f3;
}

.cart-summary-benefit strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.cart-summary-benefit span {
  color: var(--muted);
  font-size: .93rem;
}

.cart-layout-premium {
  grid-template-columns: minmax(0, 1.45fr) 390px;
  gap: 24px;
}

.cart-main-column {
  display: grid;
  gap: 18px;
}

.cart-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cart-section-head h2 {
  color: var(--primary-dark);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.cart-section-head p {
  color: var(--muted);
  max-width: 60ch;
}

.cart-stepper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cart-step {
  min-width: 110px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid #dfeaf4;
  display: grid;
  gap: 6px;
}

.cart-step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(20,53,92,.08);
}

.cart-step strong {
  font-size: .9rem;
  color: var(--muted);
}

.cart-step.is-active {
  background: linear-gradient(135deg, #eef6ff, #eefbf8);
  border-color: #cfe0f2;
}

.cart-step.is-active span {
  background: var(--primary);
  color: #fff;
}

.cart-step.is-active strong {
  color: var(--primary-dark);
}

.cart-item-card-premium {
  position: relative;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(20,53,92,.09);
}

.cart-item-card-premium:hover {
  transform: translateY(-5px);
}

.cart-item-media-premium {
  position: relative;
  min-height: 210px;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(255,255,255,.95), rgba(241,247,253,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.cart-item-media-premium img,
.cart-item-media-premium .cart-image-fallback {
  height: 210px;
}

.cart-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 12px 22px rgba(31,79,138,.20);
}

.cart-item-top-premium {
  gap: 20px;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-price-box-premium {
  min-width: 170px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.cart-item-price-box-premium small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cart-item-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f7fbff;
  border: 1px solid #e2edf6;
  color: var(--primary-dark);
  font-size: .86rem;
  font-weight: 700;
}

.cart-badge-service {
  background: #eefbf8;
  color: #18725c;
  border-color: #cfe9e1;
}

.cart-item-actions-premium {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.cart-item-demo-note-premium {
  max-width: 100%;
}

.cart-remove-btn {
  min-height: 46px;
}

.cart-totals-card-premium {
  top: 104px;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
}

.cart-total-stack {
  display: grid;
  gap: 12px;
}

.cart-total-row-highlight {
  background: linear-gradient(135deg, #eef5ff, #eefbf9);
  border-color: #cfe0f2;
}

.cart-benefit-strip {
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #163b67, #2e6da5, #39a6a3);
  color: #fff;
  box-shadow: 0 18px 34px rgba(20,53,92,.16);
}

.cart-benefit-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.cart-benefit-strip span {
  display: block;
  color: rgba(255,255,255,.92);
  font-size: .9rem;
}

.cart-checkout-panel-premium {
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
}

.payment-methods-premium .payment-brand {
  min-height: 72px;
  border-radius: 20px;
}

.cart-empty-state-premium {
  max-width: 820px;
  margin: 0 auto;
  padding: 42px 28px;
  text-align: center;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,248,253,.96));
}

.empty-cart-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #edf5ff, #eefbf9);
  box-shadow: 0 16px 34px rgba(20,53,92,.12);
}

.cart-empty-state-premium h3 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.cart-empty-state-premium p {
  max-width: 54ch;
  margin: 0 auto 22px;
}

.cart-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .cart-layout-premium {
    grid-template-columns: 1fr 360px;
  }

  .cart-item-card-premium {
    grid-template-columns: 185px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .cart-layout-premium {
    grid-template-columns: 1fr;
  }

  .cart-totals-card-premium {
    position: relative;
    top: 0;
  }
}

@media (max-width: 760px) {
  .cart-summary-points-premium,
  .cart-hero-trustbar,
  .cart-item-meta-grid,
  .cart-empty-actions {
    grid-template-columns: 1fr;
  }

  .cart-trust-pill,
  .cart-info-chip {
    width: 100%;
  }

  .cart-section-head,
  .cart-item-actions-premium,
  .cart-item-top-premium,
  .cart-summary-topline,
  .cart-sidebar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-stepper {
    width: 100%;
    justify-content: flex-start;
  }

  .cart-step {
    min-width: 0;
    flex: 1 1 calc(33.333% - 8px);
  }

  .cart-item-card-premium {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cart-item-media-premium {
    min-height: 190px;
  }

  .cart-item-media-premium img,
  .cart-item-media-premium .cart-image-fallback {
    height: 190px;
  }

  .cart-item-price-box-premium {
    width: 100%;
    text-align: left;
    min-width: 0;
  }

  .cart-empty-state-premium {
    padding: 30px 20px;
  }

  .cart-empty-state-premium h3 {
    font-size: 1.65rem;
  }
}


/* =========================
   AGENDA DE CITAS
   ========================= */

.appointments-hero .page-hero-grid {
  align-items: stretch;
}

.appointment-side-panel h3,
.appointment-panel-title {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.appointment-checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.appointment-checklist li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid #d9e6f2;
  color: var(--muted);
}

.appointment-checklist li::before {
  content: '✔';
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}

.appointment-badges {
  margin-top: 14px;
}

.appointment-grid {
  align-items: start;
}

.appointment-form {
  gap: 16px;
}

.appointment-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.appointment-label {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.appointment-slot-box {
  border: 1px solid #d9e7f3;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  border-radius: 20px;
  padding: 16px;
}

.appointment-slot-box strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.appointment-slot-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-slot-preview span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe7f1;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 700;
}

.appointment-help {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid #dde9f4;
  color: var(--muted);
  font-size: .93rem;
}

.appointment-help[data-state='success'] {
  background: #eefbf3;
  border-color: #b9e5cf;
  color: #15653b;
}

.appointment-help[data-state='error'] {
  background: #fff1f1;
  border-color: #f1c1c1;
  color: #9b1c1c;
}

.upload-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #dbe8f2;
  background: #f9fcff;
}

.appointment-mini-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #d9e7f3;
  background: linear-gradient(135deg, #f4f9ff, #f8fcff);
}

.appointment-mini-note strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.appointment-mini-note p {
  color: var(--muted);
  margin: 0;
}

input[type='file'] {
  padding: 12px;
  background: #fff;
}

input[type='file']::file-selector-button {
  border: none;
  border-radius: 999px;
  background: #1e5bb8;
  color: #fff;
  padding: 10px 14px;
  margin-right: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .appointment-two-cols {
    grid-template-columns: 1fr;
  }
}

/* =========================
   AGENDA DE CITAS PREMIUM + CHECKOUT VISUAL
   ========================= */

.appointment-grid-premium {
  align-items: start;
}

.appointment-form-panel-premium {
  display: grid;
  gap: 18px;
}

.appointment-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.appointment-panel-subtitle {
  color: var(--muted);
  margin-top: 6px;
}

.appointment-checkout-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: #eef7ff;
  border: 1px solid #d8e7f6;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
}

.appointment-form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dfeaf4;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(20,53,92,.05);
}

.appointment-form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.appointment-form-section-head strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.appointment-form-section-head span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f7fd;
  border: 1px solid #dde9f4;
  color: var(--secondary);
  font-size: .74rem;
  font-weight: 700;
}

.appointment-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.appointment-slot-head strong {
  color: var(--primary-dark);
}

.appointment-slot-head span {
  color: var(--primary);
  font-size: .85rem;
  font-weight: 700;
}

.appointment-slot-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.appointment-hour-select-shell {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.slot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #dfe8f2;
  background: #fff;
  font-size: .84rem;
  font-weight: 700;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.slot-pill-available {
  color: #0f6a48;
  background: linear-gradient(135deg, #edf9f3, #f7fffb);
  border-color: #cfe8db;
  box-shadow: 0 10px 20px rgba(15,106,72,.06);
  cursor: pointer;
}

.slot-pill-available:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15,106,72,.12);
}

.slot-pill-taken {
  color: #a11d2d;
  background: linear-gradient(135deg, #fff1f3, #fff9fa);
  border-color: #f2c7cf;
  text-decoration: line-through;
  opacity: .95;
  cursor: not-allowed;
}

.slot-pill-disabled {
  color: var(--muted);
  background: linear-gradient(135deg, #f4f7fb, #fafcff);
  border-color: #dbe4ed;
}

.slot-pill-selected {
  color: #fff;
  background: linear-gradient(135deg, #1e5bb8, #2f7cf0);
  border-color: #1e5bb8;
  box-shadow: 0 16px 30px rgba(31,79,138,.24);
  transform: translateY(-2px);
}

.appointment-help {
  margin-top: 0;
  padding: 13px 15px;
  border-radius: 16px;
  background: #f4f9ff;
  border: 1px solid #d9e7f5;
  color: var(--secondary);
  font-size: .92rem;
}

.appointment-help[data-state="success"] {
  background: #eefbf3;
  border-color: #cfe8db;
  color: #16633c;
}

.appointment-help[data-state="error"] {
  background: #fff1f1;
  border-color: #efcbcb;
  color: #9b1c1c;
}

.appointment-mini-note-strong {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #dbe7f2;
  background: linear-gradient(135deg, #f8fbff, #f1f8ff);
}

.appointment-mini-note-strong strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.appointment-mini-note-strong p {
  color: var(--muted);
  margin: 0;
}

.appointment-legend-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #dbe7f2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.appointment-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-size: .9rem;
  font-weight: 700;
}

.slot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.slot-dot-available {
  background: #1f9d63;
  box-shadow: 0 0 0 5px rgba(31,157,99,.12);
}

.slot-dot-taken {
  background: #d32f2f;
  box-shadow: 0 0 0 5px rgba(211,47,47,.12);
}

.slot-dot-disabled {
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148,163,184,.14);
}

.appointment-payment-shell {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
}

.appointment-checkout-mini-header {
  margin-bottom: 0;
}

.appointment-payment-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-payment-fields input {
  min-height: 52px;
}

.appointment-disclaimer {
  margin-top: 0;
}

.appointment-submit-btn {
  width: 100%;
  min-height: 56px;
  font-size: 1rem;
  box-shadow: 0 16px 34px rgba(31,79,138,.24);
}

.upload-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #dde8f3;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

@media (max-width: 760px) {
  .appointment-two-cols,
  .appointment-payment-methods {
    grid-template-columns: 1fr;
  }

  .appointment-panel-head,
  .appointment-form-section-head,
  .appointment-slot-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .slot-pill {
    min-width: calc(50% - 5px);
  }
}


/* =========================
   AGENDA DE CITAS - AJUSTES DE ANCHO Y ÉXITO
   ========================= */

.appointment-page-shell {
  width: min(1500px, 96%);
  max-width: 1500px;
}

.appointments-section-wide {
  padding-top: 24px;
}

.appointment-grid-premium {
  grid-template-columns: minmax(340px, .8fr) minmax(0, 1.55fr);
  gap: 24px;
}

.appointment-form-panel-premium {
  position: relative;
  min-height: 100%;
}

.appointment-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.appointment-form > .appointment-submit-btn {
  grid-column: 1 / -1;
}

.appointment-form > .appointment-form-section:nth-of-type(1),
.appointment-form > .appointment-form-section:nth-of-type(2) {
  grid-column: 1 / -1;
}

.appointment-form > .appointment-form-section:nth-of-type(3),
.appointment-form > .appointment-form-section:nth-of-type(4) {
  grid-column: auto;
}

.appointment-success-modal {
  position: sticky;
  top: 94px;
  z-index: 14;
  margin: 0 0 18px;
  animation: appointmentFadeIn .35s ease;
}

.appointment-success-modal.is-visible {
  opacity: 1;
}

.appointment-success-card {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(280px, 380px);
  grid-template-areas:
    "icon copy email"
    ". actions email";
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
  border: 1px solid #d9e7f3;
  box-shadow: 0 18px 42px rgba(17, 24, 39, .12);
  animation: appointmentPopIn .42s cubic-bezier(.2,.9,.2,1);
}

.appointment-success-copy {
  grid-area: copy;
  min-width: 0;
}

.appointment-success-icon {
  grid-area: icon;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1e5bb8, #2f7cf0);
  box-shadow: 0 12px 24px rgba(31,79,138,.20);
}

.appointment-success-kicker {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d8e7f6;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.appointment-success-card h3 {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.1;
}

.appointment-success-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.appointment-success-card strong {
  color: var(--primary-dark);
}

.appointment-success-close {
  min-width: 180px;
}

@keyframes appointmentFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes appointmentFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes appointmentPopIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .appointment-grid-premium {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .appointment-form > .appointment-form-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .appointment-success-card {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
      "icon copy"
      "email email"
      "actions actions";
  }

  .appointment-success-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .appointment-page-shell {
    width: min(96%, 96%);
  }

  .appointment-success-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "copy"
      "email"
      "actions";
    padding: 22px 18px 20px;
    border-radius: 24px;
  }

  .appointment-success-icon {
    margin: 0 auto;
  }
}


/* =========================
   AGENDA - SERVICIOS, PDF Y ÉXITO
   ========================= */

.appointment-price-card {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #dbe7f2;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 12px 26px rgba(17,24,39,.06);
}

.appointment-price-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--secondary);
}

.appointment-price-card strong {
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--primary-dark);
}

.appointment-price-card small {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.appointment-success-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.appointment-success-pdf {
  min-width: 230px;
  max-width: 100%;
}

@media (max-width: 760px) {
  .appointment-success-actions {
    flex-direction: column;
  }

  .appointment-success-pdf,
  .appointment-success-close {
    width: 100%;
  }

  .appointment-price-card strong {
    font-size: 1.2rem;
  }
}


/* =========================
   AGENDA DE CITAS - FOTOS MASCOTA
   ========================= */

.appointment-photos-section {
  gap: 18px;
}

.appointment-upload-intro {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dce9f4;
  background: linear-gradient(135deg, #f8fbff, #f3f8ff);
}

.appointment-upload-intro p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
}

.appointment-upload-grid {
  align-items: start;
  gap: 18px;
}

.upload-card-preview {
  display: grid;
  gap: 14px;
  min-height: 100%;
}

.upload-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-card-top .appointment-label {
  margin-bottom: 0;
}

.upload-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(231, 241, 251, .88);
  color: var(--primary);
  border: 1px solid #cfe0f2;
  box-shadow: 0 10px 22px rgba(31,79,138,.08);
  font-size: .72rem;
  font-weight: 700;
}

.upload-input-shell {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appointment-file-input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.appointment-file-trigger {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #d7e5f0;
  background: var(--primary);
  color: #fff;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(31,79,138,.18);
  transition: .25s ease;
}

.appointment-file-trigger:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.appointment-file-name {
  display: block;
  width: 100%;
  font-size: .82rem;
  line-height: 1.35;
  color: #66758a;
  text-align: center;
  word-break: break-word;
}

.appointment-image-preview {
  width: 100%;
  min-height: 220px;
  border-radius: 22px;
  border: 1px dashed #b9d1e7;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.appointment-preview-image {
  width: 100%;
  max-width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  display: none;
  box-shadow: 0 18px 34px rgba(17,24,39,.12);
  border: 1px solid #dbe6f0;
}

.appointment-preview-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 210px;
  color: var(--secondary);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}

.appointment-image-preview[data-empty='false'] {
  border-style: solid;
  border-color: #d7e5f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

@media (max-width: 760px) {
  .upload-card-top {
    align-items: flex-start;
  }

  .appointment-file-input::file-selector-button {
    width: 100%;
    max-width: none;
    min-width: 100%;
    margin-right: 0;
    margin-bottom: 0;
  }

  .appointment-image-preview {
    min-height: 190px;
  }

  .appointment-preview-image {
    max-width: 150px;
    height: 150px;
  }
}


.appointment-success-email-status {
  grid-area: email;
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dbe7f2;
  background: #f8fbff;
  text-align: left;
  align-self: stretch;
}

.appointment-success-email-status strong {
  font-size: .92rem;
}

.appointment-success-email-status span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.appointment-success-email-status.is-sent {
  background: linear-gradient(135deg, #eef8f1, #f7fcf8);
  border-color: #cfe7d6;
}

.appointment-success-email-status.is-sent strong {
  color: #15653b;
}

.appointment-success-email-status.is-warning {
  background: linear-gradient(135deg, #fff8f0, #fffdf9);
  border-color: #f0dfbf;
}

.appointment-success-email-status.is-warning strong {
  color: #9a5b00;
}


.btn-empresa-nav {
  min-height: 48px;
  padding-inline: 18px;
}

.btn-empresa-nav.is-active,
.nav-worker-pill {
  background: linear-gradient(135deg, #123f7a, #1e5bb8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(20,53,92,.18);
}

.nav-worker-pill .nav-user-chevron,
.nav-worker-pill .nav-user-name {
  color: #fff;
}

.nav-worker-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: none;
  font-size: 1rem;
}

.worker-auth-section,
.worker-panel-section {
  padding-top: 54px;
  padding-bottom: 62px;
}

.worker-auth-shell,
.worker-panel-shell {
  display: grid;
  gap: 24px;
}

.worker-panel-shell.is-loading {
  opacity: .72;
  pointer-events: none;
  transition: opacity .18s ease;
}

.worker-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 24px;
  align-items: stretch;
}

.worker-copy-card,
.worker-login-card,
.worker-panel-card,
.worker-panel-table-card,
.worker-metric-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.worker-copy-card,
.worker-login-card,
.worker-panel-card,
.worker-panel-table-card {
  padding: 28px;
}

.worker-copy-card {
  background: linear-gradient(160deg, rgba(255,255,255,.96) 0%, rgba(238,247,255,.88) 100%);
}

.worker-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(231, 241, 251, .88);
  color: var(--primary);
  border: 1px solid #cfe0f2;
  box-shadow: 0 10px 22px rgba(31,79,138,.08);
  font-weight: 700;
  font-size: .86rem;
  margin-bottom: 18px;
}

.worker-copy-card h1,
.worker-panel-card h1 {
  color: var(--primary-dark);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.worker-copy-card p,
.worker-login-card p,
.worker-panel-card p {
  color: var(--muted);
}

.worker-points,
.worker-mini-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.worker-point,
.worker-mini-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: #f7fbff;
  border: 1px solid #e1ebf3;
}

.worker-point-icon,
.worker-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf5ff, #eefbf9);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.worker-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.worker-form .btn {
  min-height: 52px;
}

.worker-helper-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef6fc);
  border: 1px solid #dfeaf4;
}

.worker-helper-box strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.worker-helper-box code {
  font-family: Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #dbe6f0;
}

.worker-panel-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.worker-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.worker-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.worker-metric-card {
  padding: 22px;
}

.worker-metric-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 2rem;
  margin-bottom: 6px;
}

.worker-metric-card span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.worker-metric-card small {
  color: #6b7280;
  line-height: 1.45;
}

.worker-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 22px;
}

.worker-table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid #dfe8f2;
  margin-top: 18px;
}

.worker-table-wrap table {
  min-width: 720px;
}

.worker-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(231, 241, 251, .88);
  color: var(--primary);
  border: 1px solid #cfe0f2;
  font-size: .8rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .worker-auth-layout,
  .worker-panel-grid,
  .worker-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .btn-empresa-nav,
  .nav-enterprise-slot {
    width: 100%;
  }

  .worker-copy-card,
  .worker-login-card,
  .worker-panel-card,
  .worker-panel-table-card {
    padding: 22px;
  }

  .worker-panel-topbar,
  .worker-panel-actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* =========================
   WORKER HEADER SOLO ICONO
   ========================= */

.nav-worker-pill.nav-worker-pill-icon-only {
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
}

.nav-worker-pill.nav-worker-pill-icon-only .nav-worker-icon {
  width: 36px;
  height: 36px;
  font-size: 1.18rem;
  background: rgba(255,255,255,.16);
}

.nav-worker-pill.nav-worker-pill-icon-only .nav-user-chevron,
.nav-worker-pill.nav-worker-pill-icon-only .nav-user-name {
  display: none;
}

@media (max-width: 760px) {
  .nav-worker-pill.nav-worker-pill-icon-only {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
  }
}

/* =========================
   PANEL DE TRABAJO - AGENDA ADMINISTRATIVA
   ========================= */

.worker-agenda-section {
  position: relative;
}

.worker-dashboard-hero {
  background: linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(238,247,255,.92) 50%, rgba(245,250,255,.96) 100%);
}

.worker-dashboard-topbar {
  align-items: flex-start;
}

.worker-metrics-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.worker-metric-card-highlight {
  background: linear-gradient(145deg, #123f7a 0%, #1e5bb8 100%);
  border-color: transparent;
  box-shadow: 0 22px 46px rgba(18,63,122,.24);
}

.worker-metric-card-highlight span,
.worker-metric-card-highlight strong,
.worker-metric-card-highlight small {
  color: #fff;
}

.worker-calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap: 22px;
  align-items: start;
}

.worker-calendar-card,
.worker-sidebar-card {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.worker-calendar-card {
  padding: 28px;
}

.worker-sidebar-stack {
  display: grid;
  gap: 22px;
}

.worker-sidebar-card {
  padding: 24px;
}

.worker-calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.worker-calendar-head h2,
.worker-sidebar-card h2 {
  color: var(--primary-dark);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.worker-calendar-head p,
.worker-sidebar-card p {
  color: var(--muted);
}

.worker-agenda-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.worker-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f8fd;
  border: 1px solid #dbe7f3;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 700;
}

.worker-summary-pill-success {
  background: rgba(18, 161, 86, .10);
  border-color: rgba(18, 161, 86, .24);
  color: #0f7a43;
}

.worker-day-selector {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.worker-day-pill {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 10px;
  border-radius: 22px;
  background: #f8fbff;
  border: 1px solid #dce8f3;
  transition: .24s ease;
}

.worker-day-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.worker-day-pill-top {
  font-size: .74rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: .08em;
}

.worker-day-pill strong {
  color: var(--primary-dark);
  font-size: 1.38rem;
  line-height: 1;
}

.worker-day-pill small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.worker-day-pill.is-active {
  background: linear-gradient(135deg, #123f7a, #1e5bb8);
  border-color: transparent;
  box-shadow: 0 18px 38px rgba(20,53,92,.22);
}

.worker-day-pill.is-active .worker-day-pill-top,
.worker-day-pill.is-active strong,
.worker-day-pill.is-active small {
  color: #fff;
}

.worker-day-pill.is-sunday {
  opacity: .84;
}

.worker-schedule-grid {
  display: grid;
  gap: 12px;
}

.worker-slot-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.worker-slot-time {
  border-radius: 18px;
  border: 1px solid #dce8f3;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.worker-slot-time span {
  color: var(--primary-dark);
  font-weight: 700;
}

.worker-slot-track {
  min-height: 88px;
  border-radius: 22px;
  border: 1px dashed #d7e4ef;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
  padding: 12px;
  display: flex;
  align-items: stretch;
}

.worker-slot-row.is-booked .worker-slot-track {
  border-style: solid;
  border-color: rgba(18, 161, 86, .22);
  background: linear-gradient(180deg, rgba(18,161,86,.05) 0%, rgba(18,161,86,.08) 100%);
}

.worker-slot-empty {
  width: 100%;
  min-height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8796;
  font-weight: 700;
  font-size: .92rem;
  background: rgba(255,255,255,.82);
}

.worker-appointment-block {
  width: 100%;
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #12a156 0%, #17935c 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(18,161,86,.18);
}

.worker-appointment-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.worker-appointment-top strong {
  font-size: .98rem;
}

.worker-appointment-top span,
.worker-appointment-meta span {
  font-size: .78rem;
  font-weight: 700;
  opacity: .95;
}

.worker-appointment-client {
  font-size: .96rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.worker-appointment-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.worker-next-appointment {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18,63,122,.95) 0%, rgba(30,91,184,.95) 100%);
  color: #fff;
  box-shadow: 0 20px 40px rgba(20,53,92,.22);
}

.worker-next-appointment strong {
  font-size: 1.08rem;
}

.worker-next-appointment p,
.worker-next-appointment-clinic {
  color: rgba(255,255,255,.92);
}

.worker-next-appointment-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.worker-next-appointment-meta span,
.worker-next-appointment-clinic {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .78rem;
  font-weight: 700;
}

.worker-empty-agenda {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #dce8f3;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
}

.worker-empty-agenda strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.worker-empty-agenda.compact {
  padding: 18px;
}

.worker-mini-list-tight {
  margin-top: 18px;
}

.worker-panel-grid-bottom {
  grid-template-columns: 1fr;
}

@media (max-width: 1180px) {
  .worker-metrics-grid-4,
  .worker-day-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worker-calendar-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .worker-metrics-grid-4,
  .worker-day-selector,
  .worker-slot-row {
    grid-template-columns: 1fr;
  }

  .worker-calendar-card,
  .worker-sidebar-card {
    padding: 22px;
  }

  .worker-slot-time {
    justify-content: flex-start;
  }
}


/* =========================
   PANEL ADMINISTRATIVO - EXPANSIÓN Y COMPACTO
   ========================= */

.worker-panel-section {
  padding-top: 34px;
  padding-bottom: 44px;
}

.worker-panel-section .container.worker-panel-shell {
  width: min(1680px, 97vw);
  max-width: 1680px;
  gap: 18px;
}

.worker-dashboard-hero,
.worker-calendar-card,
.worker-sidebar-card,
.worker-panel-table-card {
  border-radius: 26px;
}

.worker-dashboard-hero {
  padding: 24px;
}

.worker-dashboard-topbar {
  gap: 18px;
  justify-content: space-between;
}

.worker-dashboard-topbar h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.worker-dashboard-topbar p {
  max-width: 860px;
  margin-bottom: 0;
}

.worker-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.worker-panel-actions .btn {
  min-height: 46px;
  padding: 11px 18px;
}

.worker-metrics-grid.worker-metrics-grid-4 {
  gap: 14px;
}

.worker-metric-card {
  padding: 18px 18px 16px;
  min-height: 132px;
}

.worker-metric-card span {
  font-size: .8rem;
}

.worker-metric-card strong {
  font-size: clamp(1.65rem, 2vw, 2.2rem);
  line-height: 1;
}

.worker-metric-card small {
  font-size: .79rem;
  line-height: 1.4;
}

.worker-calendar-shell {
  grid-template-columns: minmax(0, 1.72fr) minmax(290px, .48fr);
  gap: 18px;
}

.worker-calendar-card {
  padding: 22px;
}

.worker-sidebar-stack {
  gap: 18px;
  position: sticky;
  top: 96px;
}

.worker-sidebar-card {
  padding: 20px;
}

.worker-calendar-head {
  margin-bottom: 14px;
}

.worker-calendar-head h2,
.worker-sidebar-card h2 {
  font-size: 1.34rem;
  margin-bottom: 6px;
}

.worker-calendar-head p,
.worker-sidebar-card p {
  font-size: .92rem;
}

.worker-agenda-summary-badges {
  gap: 8px;
}

.worker-summary-pill {
  min-height: 34px;
  padding: 6px 12px;
  font-size: .76rem;
}

.worker-day-selector {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.worker-day-pill {
  min-height: 84px;
  padding: 10px 8px;
  border-radius: 18px;
}

.worker-day-pill-top {
  font-size: .72rem;
}

.worker-day-pill strong {
  font-size: 1.2rem;
  line-height: 1;
}

.worker-day-pill small {
  font-size: .68rem;
}

.worker-schedule-grid {
  display: grid;
  gap: 8px;
}

.worker-slot-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.worker-slot-time {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 16px;
  align-items: center;
}

.worker-slot-time span {
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
}

.worker-slot-track {
  min-height: 58px;
  padding: 6px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
  align-items: stretch;
}

.worker-slot-empty {
  min-height: 46px;
  border-radius: 14px;
  font-size: .82rem;
  padding: 10px 14px;
  display: flex;
  align-items: center;
}

.worker-appointment-block {
  padding: 10px 12px;
  border-radius: 15px;
  min-height: 46px;
}

.worker-appointment-top {
  gap: 8px;
  margin-bottom: 5px;
}

.worker-appointment-top strong {
  font-size: .9rem;
  line-height: 1.2;
}

.worker-appointment-top span,
.worker-appointment-meta span {
  font-size: .72rem;
}

.worker-appointment-client {
  font-size: .84rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

.worker-appointment-meta {
  gap: 8px;
}

.worker-next-appointment {
  gap: 7px;
  padding: 16px;
  border-radius: 18px;
}

.worker-next-appointment strong {
  font-size: 1rem;
}

.worker-next-appointment p {
  font-size: .88rem;
  line-height: 1.35;
}

.worker-next-appointment-meta span,
.worker-next-appointment-clinic {
  min-height: 30px;
  padding: 6px 10px;
  font-size: .72rem;
}

.worker-mini-list-tight {
  margin-top: 14px;
  gap: 12px;
}

.worker-mini-item {
  gap: 12px;
  align-items: flex-start;
}

.worker-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1rem;
}

.worker-mini-item strong {
  font-size: .92rem;
}

.worker-mini-item p {
  font-size: .82rem;
  line-height: 1.4;
}

.worker-panel-grid.worker-panel-grid-bottom {
  gap: 16px;
}

.worker-panel-table-card {
  padding: 20px;
}

.worker-panel-table-card h2 {
  font-size: 1.24rem;
  margin-bottom: 6px;
}

.worker-panel-table-card > p {
  font-size: .9rem;
  margin-bottom: 0;
}

.worker-table-wrap {
  max-height: 330px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #dce7f2;
  margin-top: 14px;
}

.worker-table-wrap table {
  min-width: 100%;
}

.worker-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.worker-table-wrap th,
.worker-table-wrap td {
  padding: 11px 12px;
  font-size: .84rem;
  white-space: nowrap;
}

@media (max-width: 1380px) {
  .worker-panel-section .container.worker-panel-shell {
    width: min(1520px, 96vw);
    max-width: 1520px;
  }

  .worker-calendar-shell {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .52fr);
  }
}

@media (max-width: 1180px) {
  .worker-panel-section .container.worker-panel-shell {
    width: min(1280px, 95vw);
    max-width: 1280px;
  }

  .worker-metrics-grid.worker-metrics-grid-4,
  .worker-day-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worker-calendar-shell {
    grid-template-columns: 1fr;
  }

  .worker-sidebar-stack {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .worker-panel-section {
    padding-top: 22px;
    padding-bottom: 30px;
  }

  .worker-panel-section .container.worker-panel-shell {
    width: min(100%, 94vw);
    max-width: none;
    gap: 14px;
  }

  .worker-dashboard-hero,
  .worker-calendar-card,
  .worker-sidebar-card,
  .worker-panel-table-card {
    padding: 18px;
    border-radius: 22px;
  }

  .worker-panel-actions,
  .worker-sidebar-stack,
  .worker-metrics-grid.worker-metrics-grid-4,
  .worker-day-selector,
  .worker-slot-row {
    grid-template-columns: 1fr;
  }

  .worker-slot-row {
    gap: 8px;
  }

  .worker-slot-time {
    min-height: 44px;
    justify-content: flex-start;
  }

  .worker-slot-track,
  .worker-slot-empty,
  .worker-appointment-block {
    min-height: auto;
  }

  .worker-table-wrap {
    max-height: none;
  }

  .worker-table-wrap th,
  .worker-table-wrap td {
    white-space: normal;
  }
}


/* =========================
   MENÚ EMPRESAS + VISTAS NUEVAS
   ========================= */

.nav-worker-dropdown-menu {
  min-width: 240px;
}

.nav-user-dropdown-link.is-current {
  background: rgba(231, 241, 251, .88);
  color: var(--primary);
  border: 1px solid #cfe0f2;
  font-weight: 700;
}

.nav-user-dropdown-link-danger {
  color: #b42318;
}

.nav-user-dropdown-link-danger:hover {
  background: #fff3f2;
  color: #912018;
}

.worker-module-shell {
  width: min(1520px, 96%);
  margin: 0 auto;
}

.worker-module-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: start;
}

.worker-module-card {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.worker-module-hero {
  background: linear-gradient(145deg, rgba(18,63,122,.98) 0%, rgba(30,91,184,.95) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.worker-module-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -60px;
  right: -55px;
}

.worker-module-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.worker-module-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.worker-module-hero p {
  color: rgba(255,255,255,.9);
  max-width: 620px;
}

.worker-module-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.worker-module-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.worker-module-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  flex-shrink: 0;
  font-size: 1.05rem;
}

.worker-module-item strong {
  display: block;
  margin-bottom: 4px;
}

.worker-module-item span {
  color: rgba(255,255,255,.84);
  font-size: .92rem;
  line-height: 1.45;
}

.worker-module-panel-title {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 1.45rem;
}

.worker-module-panel-copy {
  color: var(--muted);
  margin-bottom: 18px;
}

.worker-module-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.worker-module-box {
  border-radius: 22px;
  border: 1px solid #dde7f1;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 18px;
}

.worker-module-box strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-size: 1rem;
}

.worker-module-box p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.worker-module-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(231, 241, 251, .72);
  border: 1px solid #cfe0f2;
  color: var(--primary-dark);
  font-weight: 700;
}

@media (max-width: 980px) {
  .worker-module-grid,
  .worker-module-boxes {
    grid-template-columns: 1fr;
  }
}


/* =========================
   DIAGNÓSTICO TRABAJADORES
   ========================= */

body.diag-modal-open {
  overflow: hidden;
}

.worker-diagnostic-page {
  padding: 34px 0 54px;
}

.worker-diagnostic-shell {
  display: grid;
  gap: 22px;
}

.worker-diagnostic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 340px;
  gap: 22px;
  align-items: center;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(243,248,253,.95));
}

.worker-diagnostic-hero h1 {
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  margin-bottom: 12px;
}

.worker-diagnostic-hero p {
  color: var(--muted);
  max-width: 760px;
}

.worker-diagnostic-stats {
  display: grid;
  gap: 14px;
}

.worker-diagnostic-stat {
  padding: 18px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dce7f2;
  box-shadow: var(--shadow-soft);
}

.worker-diagnostic-stat strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 8px;
}

.worker-diagnostic-stat span {
  color: var(--muted);
  font-size: .92rem;
}

.worker-diagnostic-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.diag-case-tile {
  display: grid;
  gap: 18px;
  min-height: 250px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,249,253,.98) 100%);
  border: 1px solid #d8e3ee;
  box-shadow: 0 16px 34px rgba(17,24,39,.07);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.diag-case-tile::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: -34px;
  bottom: -46px;
  background: radial-gradient(circle, rgba(30,91,184,.10), transparent 70%);
  pointer-events: none;
}

.diag-case-tile:hover,
.diag-case-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(17,24,39,.12);
  border-color: #c6d7e8;
  outline: none;
}

.diag-case-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.diag-case-tile-avatar,
.diag-case-avatar,
.diag-modal-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(231, 241, 251, .88);
  border: 1px solid #cfe0f2;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.diag-case-tile-badges {
  display: flex;
  justify-content: flex-end;
}

.diag-case-kicker {
  display: inline-block;
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.diag-case-tile-body h2 {
  color: var(--primary-dark);
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.diag-case-tile-pet {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.diag-case-tile-service {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.diag-case-tile-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.diag-case-status,
.diag-case-code,
.diag-case-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .8rem;
  font-weight: 700;
}

.diag-case-status.is-ready {
  background: rgba(231, 241, 251, .88);
  color: var(--primary);
  border: 1px solid #cfe0f2;
  box-shadow: 0 10px 22px rgba(31,79,138,.08);
}

.diag-case-status.is-pending {
  background: rgba(255, 243, 224, .94);
  color: #9a5a00;
  border: 1px solid #f2d39f;
}

.diag-case-meta {
  background: #f7fbff;
  color: var(--muted);
  border: 1px solid #e2ebf3;
  font-weight: 600;
}

.diag-case-code {
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(15,23,42,.06);
}

.diag-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.diag-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.diag-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 33, .52);
  backdrop-filter: blur(7px);
}

.diag-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1720px, calc(100vw - 36px));
  height: min(92vh, 1080px);
  margin: 18px auto;
  border-radius: 30px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%);
  border: 1px solid rgba(214, 226, 238, .95);
  box-shadow: 0 32px 90px rgba(8,15,28,.28);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.diag-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 1px solid #d8e3ee;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(17,24,39,.10);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.diag-modal-close span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.diag-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(17,24,39,.14);
}

.diag-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 78px 22px 28px;
  border-bottom: 1px solid #dde7f1;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
}

.diag-modal-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.diag-modal-title-wrap {
  min-width: 0;
}

.diag-modal-title-wrap h2 {
  color: var(--primary-dark);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
  margin-bottom: 6px;
}

.diag-modal-title-wrap p {
  color: var(--muted);
  font-size: .98rem;
}

.diag-modal-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 48%;
}

.diag-modal-body {
  overflow: auto;
  padding: 24px 28px 30px;
}

.diag-modal-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
  gap: 20px;
  align-items: start;
}

.diag-modal-panel,
.diag-case-photos-panel,
.diag-case-report-panel {
  border: 1px solid #dde7f1;
  border-radius: 26px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(17,24,39,.05);
}

.diag-case-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.diag-case-section-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.diag-case-section-head strong {
  color: var(--primary-dark);
  font-size: .95rem;
}

.diag-case-photos-grid,
.diag-modal-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diag-modal-photos-grid.is-single {
  grid-template-columns: 1fr;
}

.diag-case-photo-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.diag-case-photo-shell,
.diag-modal-photo-shell {
  min-height: 390px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  border: 1px solid #dfebf4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.diag-case-photo-shell img,
.diag-modal-photo-shell img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.diag-case-photo-card figcaption {
  display: grid;
  gap: 2px;
}

.diag-case-photo-card figcaption strong {
  color: var(--primary-dark);
  font-size: .92rem;
}

.diag-case-photo-card figcaption span {
  color: var(--muted);
  font-size: .82rem;
  word-break: break-word;
}

.diag-case-mini-data,
.diag-modal-mini-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.diag-case-mini-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e2ebf3;
}

.diag-case-mini-item span {
  display: block;
  color: var(--muted);
  font-size: .77rem;
  margin-bottom: 5px;
}

.diag-case-mini-item strong {
  color: var(--primary-dark);
  font-size: .92rem;
  word-break: break-word;
}

.diag-case-report-highlight {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(231, 241, 251, .78), rgba(255,255,255,.98));
  border: 1px solid #d9e7f4;
  margin-bottom: 16px;
}

.diag-case-report-highlight p {
  color: var(--text);
  line-height: 1.6;
}

.diag-case-report-grid,
.diag-modal-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.diag-case-report-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dfebf4;
}

.diag-case-report-box span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.diag-case-report-box strong {
  color: var(--primary-dark);
  font-size: .96rem;
  line-height: 1.4;
}

.diag-case-report-lists,
.diag-modal-report-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.diag-case-list-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #dfeaf4;
  background: #fff;
}

.diag-case-list-card h3 {
  color: var(--primary-dark);
  font-size: .98rem;
  margin-bottom: 10px;
}

.diag-case-list-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.diag-case-list-card li {
  position: relative;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  padding-left: 16px;
}

.diag-case-list-card li::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.diag-case-warning {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff5f5;
  border: 1px solid #f0d0d0;
}

.diag-case-warning strong {
  display: block;
  color: #9b1c1c;
  margin-bottom: 6px;
}

.diag-case-warning p {
  color: #7f1d1d;
  line-height: 1.55;
}

.diag-case-loading,
.diag-case-error {
  min-height: 160px;
  border-radius: 20px;
  border: 1px dashed #d8e6f3;
  background: #f9fcff;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
}

.diag-modal-loading-state {
  min-height: calc(92vh - 220px);
}

.diag-case-error strong {
  color: var(--primary-dark);
}

.diag-loader {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(30,91,184,.14);
  border-top-color: var(--primary);
  animation: diagSpin .9s linear infinite;
}

.worker-diagnostic-empty {
  text-align: center;
  padding: 42px 26px;
}

.worker-diagnostic-empty-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  background: rgba(231, 241, 251, .88);
  border: 1px solid #cfe0f2;
}

.worker-diagnostic-empty h2 {
  color: var(--primary-dark);
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.worker-diagnostic-empty p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
}

@keyframes diagSpin {
  to { transform: rotate(360deg); }
}

@media (min-width: 1400px) {
  .worker-diagnostic-page .container.worker-diagnostic-shell,
  .worker-diagnostic-shell-wide {
    width: min(1680px, 98%);
  }
}

@media (max-width: 1320px) {
  .worker-diagnostic-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .diag-modal-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .worker-diagnostic-hero {
    grid-template-columns: 1fr;
  }

  .worker-diagnostic-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diag-modal-dialog {
    width: min(100vw - 24px, 1500px);
    height: min(94vh, 1200px);
    margin: 12px auto;
  }

  .diag-modal-header {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 78px;
  }

  .diag-modal-header-meta {
    max-width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .worker-diagnostic-card-grid,
  .diag-case-photos-grid,
  .diag-case-mini-data,
  .diag-case-report-grid,
  .diag-case-report-lists {
    grid-template-columns: 1fr;
  }

  .diag-modal-body {
    padding: 18px;
  }

  .diag-case-photo-shell,
  .diag-modal-photo-shell {
    min-height: 280px;
  }

  .diag-case-photo-shell img,
  .diag-modal-photo-shell img {
    height: 252px;
  }
}

@media (max-width: 640px) {
  .worker-diagnostic-page {
    padding: 20px 0 34px;
  }

  .worker-diagnostic-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .diag-case-tile {
    min-height: 220px;
    padding: 18px;
  }

  .diag-modal-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    margin: 6px auto;
    border-radius: 22px;
  }

  .diag-modal-header {
    padding: 18px 64px 18px 18px;
  }

  .diag-modal-title-wrap h2 {
    font-size: 1.2rem;
  }

  .diag-modal-title-wrap p {
    font-size: .9rem;
  }

  .diag-modal-avatar,
  .diag-case-tile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 1.45rem;
  }

  .diag-modal-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* =========================
   EXPEDIENTES
   ========================= */
.btn-expediente-nav.is-active,
.btn-expediente-nav:hover {
  border-color: #bfd3e8;
  box-shadow: 0 18px 38px rgba(20,53,92,.10);
}

.expediente-shell,
.expediente-editor-shell {
  width: min(1680px, 98.2%);
}

.expediente-top-grid,
.expediente-editor-layout,
.expediente-cliente-grid {
  display: grid;
  gap: 24px;
}

.expediente-top-grid {
  grid-template-columns: minmax(0, 1.35fr) 360px;
  margin-bottom: 24px;
}

.expediente-hero-card,
.expediente-list-card,
.expediente-metric-card,
.expediente-editor-summary,
.expediente-editor-form-card,
.expediente-cliente-login-card,
.expediente-cliente-result-card,
.expediente-cliente-empty-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.expediente-hero-card,
.expediente-list-card,
.expediente-editor-summary,
.expediente-editor-form-card,
.expediente-cliente-login-card,
.expediente-cliente-result-card,
.expediente-cliente-empty-card {
  padding: 26px;
}

.expediente-hero-card h1,
.expediente-cliente-login-card h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.expediente-hero-card p,
.expediente-cliente-login-card p,
.expediente-cliente-empty-card p {
  color: var(--muted);
  max-width: 760px;
}

.expediente-metrics-grid {
  display: grid;
  gap: 16px;
}

.expediente-metric-card {
  padding: 22px;
  display: grid;
  gap: 8px;
}

.expediente-metric-card strong {
  font-size: 2.2rem;
  color: var(--primary-dark);
}

.expediente-metric-card span {
  color: var(--muted);
}

.expediente-case-grid {
  display: grid;
  gap: 16px;
}

.expediente-case-card {
  border: 1px solid #d8e6f2;
  border-radius: 24px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.expediente-case-main {
  display: flex;
  gap: 16px;
  align-items: center;
}

.expediente-case-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  background: rgba(231, 241, 251, .88);
  color: var(--primary);
  border: 1px solid #cfe0f2;
}

.expediente-case-kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.expediente-case-card h3 {
  color: var(--primary-dark);
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.expediente-case-card p,
.expediente-case-meta,
.expediente-helper,
.expediente-summary-item span,
.expediente-ai-box p,
.expediente-ai-box li,
.expediente-cliente-info-grid,
.preline {
  color: var(--muted);
}

.expediente-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: .92rem;
}

.expediente-case-side {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.expediente-case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.expediente-inline-chip,
.expediente-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  border: 1px solid #d8e7f6;
}

.expediente-inline-chip {
  background: #f4f8fc;
  color: var(--primary-dark);
}

.status-publicado {
  background: #eefaf1;
  color: #16723f;
  border-color: #ccead5;
}

.status-borrador {
  background: #fff7ea;
  color: #a4640d;
  border-color: #efd9b1;
}

.status-pendiente {
  background: #eef4fb;
  color: var(--primary);
  border-color: #d5e4f2;
}

.expediente-open-btn {
  min-width: 190px;
}

.expediente-editor-layout,
.expediente-cliente-grid {
  grid-template-columns: 390px minmax(0, 1fr);
}

.expediente-summary-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.expediente-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid #deebf6;
}

.expediente-summary-gallery,
.expediente-uploaded-grid,
.expediente-cliente-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.expediente-summary-gallery figure,
.expediente-uploaded-grid figure,
.expediente-cliente-gallery figure {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dce9f4;
  background: #fff;
}

.expediente-summary-gallery img,
.expediente-uploaded-grid img,
.expediente-cliente-gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.expediente-summary-gallery figcaption,
.expediente-uploaded-grid figcaption,
.expediente-cliente-gallery figcaption {
  padding: 10px 12px;
  font-size: .86rem;
  color: var(--muted);
}

.expediente-ai-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #dce9f4;
  background: linear-gradient(180deg, #f9fcff, #f3f8fd);
}

.expediente-ai-box h3,
.expediente-editor-header h2,
.expediente-cliente-result-card h2,
.expediente-cliente-empty-card h2 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.expediente-ai-box ul {
  margin-top: 10px;
  padding-left: 18px;
}

.expediente-form-grid {
  display: grid;
  gap: 18px;
}

.expediente-form-row,
.expediente-cliente-block-grid,
.expediente-cliente-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.expediente-editor-form-card label,
.expediente-cliente-form label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.expediente-editor-form-card textarea {
  min-height: 190px;
}

.expediente-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.expediente-danger-btn {
  color: #b42318;
  border-color: #efc3be;
}

.expediente-editor-header,
.expediente-cliente-result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.expediente-cliente-block {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid #deebf6;
}

.preline {
  white-space: pre-line;
}

@media (max-width: 1100px) {
  .expediente-top-grid,
  .expediente-editor-layout,
  .expediente-cliente-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .expediente-case-card,
  .expediente-form-row,
  .expediente-cliente-block-grid,
  .expediente-cliente-info-grid,
  .expediente-summary-gallery,
  .expediente-uploaded-grid,
  .expediente-cliente-gallery {
    grid-template-columns: 1fr;
  }

  .expediente-case-card {
    padding: 18px;
  }

  .expediente-case-side {
    justify-items: stretch;
  }

  .expediente-case-badges,
  .expediente-actions-row {
    justify-content: stretch;
  }

  .expediente-open-btn,
  .expediente-actions-row .btn {
    width: 100%;
  }

  .expediente-editor-header,
  .expediente-cliente-result-header {
    flex-direction: column;
  }
}


/* =========================
   EXPEDIENTES - VISTA EN CUADROS
   ========================= */
.expediente-list-card-cases {
  padding: 30px;
}

.expediente-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.expediente-list-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .78rem;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--secondary);
}

.expediente-list-header h2 {
  color: var(--primary-dark);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.12;
}

.expediente-list-header p {
  max-width: 520px;
  color: var(--muted);
}

.expediente-case-grid-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.expediente-case-card {
  min-height: 156px;
  padding: 18px 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .9fr);
  align-content: stretch;
  align-items: center;
  gap: 14px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 16px 34px rgba(20,53,92,.08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.expediente-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(20,53,92,.13);
  border-color: #bfd3e8;
}

.expediente-case-main {
  align-items: center;
  flex-direction: row;
  gap: 14px;
}

.expediente-case-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.expediente-case-card h3 {
  font-size: 1.02rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.expediente-case-card p {
  font-size: .9rem;
  line-height: 1.35;
}

.expediente-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.expediente-case-meta span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f8fc;
  border: 1px solid #dbe8f3;
  font-size: .82rem;
  color: var(--primary-dark);
}

.expediente-case-side {
  gap: 12px;
  justify-items: end;
  align-items: center;
}

.expediente-case-badges {
  justify-content: flex-start;
}

.expediente-inline-chip,
.expediente-status-chip {
  padding: 9px 12px;
  font-size: .8rem;
}

.expediente-open-btn {
  width: 260px;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
}

@media (max-width: 1320px) {
  .expediente-case-grid-cards {
    grid-template-columns: 1fr;
  }

  .expediente-case-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  }
}

@media (max-width: 1024px) {
  .expediente-list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .expediente-case-grid-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .expediente-list-card-cases {
    padding: 22px;
  }

  .expediente-case-grid-cards {
    grid-template-columns: 1fr;
  }

  .expediente-case-card {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .expediente-case-topline,
  .expediente-case-main,
  .expediente-case-meta-stacked,
  .expediente-case-side-bottom {
    grid-column: auto;
  }
}


/* =========================
   EXPEDIENTES - PANEL ADMINISTRATIVO MEJORADO
   ========================= */
.expediente-dashboard-shell {
  padding-bottom: 10px;
}

.expediente-top-grid-enhanced {
  grid-template-columns: minmax(0, 1.55fr) 404px;
  align-items: stretch;
}

.expediente-hero-card-enhanced {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(30, 91, 184, .12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,248,253,.96) 100%);
}

.expediente-hero-card-enhanced::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,91,184,.12), transparent 65%);
  pointer-events: none;
}

.expediente-hero-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.expediente-hero-status {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(17,24,39,.16);
}

.expediente-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.expediente-hero-highlight {
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  border: 1px solid #dbe7f1;
  box-shadow: 0 12px 24px rgba(20,53,92,.06);
}

.expediente-hero-highlight strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: .95rem;
}

.expediente-hero-highlight span {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.4;
}

.expediente-side-panel {
  display: grid;
}

.expediente-metrics-grid-enhanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.expediente-metric-card {
  position: relative;
  overflow: hidden;
}

.expediente-metric-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -34px auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,91,184,.10), transparent 70%);
  pointer-events: none;
}

.expediente-metric-card-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: rgba(31,79,138,.22);
}

.expediente-metric-card-primary strong,
.expediente-metric-card-primary span,
.expediente-metric-card-primary .expediente-metric-icon {
  color: #fff;
}

.expediente-metric-icon {
  font-size: 1.1rem;
}

.expediente-list-card-enhanced {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,249,253,.96) 100%);
}

.expediente-list-header-enhanced {
  margin-bottom: 18px;
}

.expediente-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: #f6fbff;
  border: 1px solid #deebf5;
}

.expediente-search-box {
  flex: 1 1 340px;
  position: relative;
}

.expediente-search-box input {
  padding-left: 48px;
  min-height: 52px;
  border-radius: 16px;
  background: #fff;
}

.expediente-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.expediente-toolbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #deebf5;
  color: var(--primary-dark);
  font-size: .88rem;
  font-weight: 700;
}

.expediente-case-grid-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.expediente-case-card {
  position: relative;
  overflow: hidden;
}


.expediente-case-card.is-filter-hidden,
.expediente-case-card[hidden] {
  display: none !important;
}

.expediente-case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.30), transparent 38%);
  pointer-events: none;
}

.expediente-case-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  grid-column: 1 / 2;
}

.expediente-case-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
}

.expediente-case-copy {
  min-width: 0;
}

.expediente-case-meta-stacked {
  align-content: start;
  grid-column: 2 / 3;
  justify-content: flex-start;
  align-self: center;
}

.expediente-case-main {
  grid-column: 1 / 2;
}

.expediente-case-side-bottom {
  grid-column: 2 / 3;
  margin-top: 0;
  align-self: center;
}

.expediente-case-side-bottom {
  margin-top: auto;
}

.expediente-search-empty {
  text-align: center;
  padding: 34px 20px 18px;
}

.expediente-search-empty h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.expediente-search-empty p {
  color: var(--muted);
}

@media (max-width: 1200px) {
  .expediente-top-grid-enhanced {
    grid-template-columns: 1fr;
  }

  .expediente-metrics-grid-enhanced,
  .expediente-case-grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .expediente-hero-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .expediente-toolbar,
  .expediente-list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .expediente-metrics-grid-enhanced,
  .expediente-case-grid-cards {
    grid-template-columns: 1fr;
  }

  .expediente-hero-card-enhanced,
  .expediente-list-card-cases {
    padding: 22px;
  }
}


/* =========================
   EXPEDIENTES ENVIADOS - TARJETA COMPLETA EN VERDE
   ========================= */
.expediente-case-card.estado-publicado,
.expediente-case-card.estado-enviado,
.expediente-case-card.estado-enviado_al_cliente,
.expediente-case-card.estado-enviado-cliente {
  background: linear-gradient(180deg, #edf9f1 0%, #dff3e7 100%);
  border-color: #b9dec6;
  box-shadow: 0 18px 38px rgba(22, 114, 63, .12);
}

.expediente-case-card.estado-publicado:hover,
.expediente-case-card.estado-enviado:hover,
.expediente-case-card.estado-enviado_al_cliente:hover,
.expediente-case-card.estado-enviado-cliente:hover {
  border-color: #93c7a6;
  box-shadow: 0 24px 46px rgba(22, 114, 63, .18);
}

.expediente-case-card.estado-publicado .expediente-case-meta span,
.expediente-case-card.estado-enviado .expediente-case-meta span,
.expediente-case-card.estado-enviado_al_cliente .expediente-case-meta span,
.expediente-case-card.estado-enviado-cliente .expediente-case-meta span {
  background: rgba(255, 255, 255, .72);
  border-color: #c7e3d0;
  color: #125733;
}

.expediente-case-card.estado-publicado .expediente-inline-chip,
.expediente-case-card.estado-enviado .expediente-inline-chip,
.expediente-case-card.estado-enviado_al_cliente .expediente-inline-chip,
.expediente-case-card.estado-enviado-cliente .expediente-inline-chip {
  background: rgba(255, 255, 255, .78);
  border-color: #c7e3d0;
  color: #125733;
}

.expediente-case-card.estado-publicado .expediente-case-id,
.expediente-case-card.estado-enviado .expediente-case-id,
.expediente-case-card.estado-enviado_al_cliente .expediente-case-id,
.expediente-case-card.estado-enviado-cliente .expediente-case-id {
  background: #16723f;
}

.expediente-case-card.estado-publicado .expediente-open-btn,
.expediente-case-card.estado-enviado .expediente-open-btn,
.expediente-case-card.estado-enviado_al_cliente .expediente-open-btn,
.expediente-case-card.estado-enviado-cliente .expediente-open-btn {
  background: #16723f;
  color: #fff;
  border-color: #16723f;
  box-shadow: 0 12px 24px rgba(22, 114, 63, .18);
}

.expediente-case-card.estado-publicado .expediente-open-btn:hover,
.expediente-case-card.estado-enviado .expediente-open-btn:hover,
.expediente-case-card.estado-enviado_al_cliente .expediente-open-btn:hover,
.expediente-case-card.estado-enviado-cliente .expediente-open-btn:hover {
  background: #125733;
  border-color: #125733;
}

/* =========================
   EXPEDIENTES - LAYOUT MÁS ANCHO Y TARJETAS RECTANGULARES
   ========================= */
.worker-panel-section.expediente-panel-page {
  padding-top: 24px;
  padding-bottom: 34px;
}

.worker-panel-section.expediente-panel-page .worker-module-shell,
.expediente-dashboard-shell,
.expediente-shell {
  width: min(1880px, 98.6vw);
  max-width: 1880px;
}

.expediente-top-grid-enhanced {
  grid-template-columns: minmax(0, 1.6fr) 430px;
  gap: 20px;
}

.expediente-list-card-cases,
.expediente-list-card-enhanced,
.expediente-hero-card-enhanced {
  padding-left: 22px;
  padding-right: 22px;
}

.expediente-case-grid-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.expediente-case-card {
  min-height: 168px;
  padding: 16px 18px;
  border-radius: 24px;
  grid-template-columns: 110px minmax(0, 1.45fr) minmax(220px, .95fr) minmax(190px, auto);
  gap: 14px 18px;
  align-items: center;
}

.expediente-case-topline {
  height: 100%;
  align-content: center;
  justify-items: start;
  justify-content: start;
  gap: 8px;
}

.expediente-case-id {
  padding: 6px 10px;
  font-size: .74rem;
}

.expediente-case-main {
  gap: 14px;
}

.expediente-case-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 1.35rem;
}

.expediente-case-card h3 {
  font-size: 1.08rem;
  line-height: 1.15;
  margin-bottom: 4px;
}

.expediente-case-card p {
  font-size: .94rem;
  line-height: 1.35;
}

.expediente-case-meta,
.expediente-case-meta-stacked {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  align-content: center;
}

.expediente-case-meta span {
  padding: 8px 12px;
  font-size: .82rem;
  border-radius: 999px;
}

.expediente-case-side,
.expediente-case-side-bottom {
  width: 100%;
  align-self: stretch;
  justify-items: stretch;
  gap: 12px;
  margin-top: 0;
}

.expediente-case-badges {
  justify-content: flex-start;
  gap: 8px;
}

.expediente-inline-chip,
.expediente-status-chip {
  padding: 8px 12px;
  font-size: .8rem;
}

.expediente-open-btn {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
}

@media (max-width: 1520px) {
  .worker-panel-section.expediente-panel-page .worker-module-shell,
  .expediente-dashboard-shell,
  .expediente-shell {
    width: min(1680px, 98vw);
  }

  .expediente-case-card {
    grid-template-columns: 96px minmax(0, 1.35fr) minmax(210px, .95fr) minmax(180px, auto);
  }
}

@media (max-width: 1280px) {
  .expediente-top-grid-enhanced {
    grid-template-columns: 1fr;
  }

  .expediente-case-grid-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .expediente-case-card {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 14px;
  }

  .expediente-case-topline,
  .expediente-case-side,
  .expediente-case-side-bottom {
    height: auto;
  }
}


/* =========================
   PROCESO - LAYOUT MÁS AMPLIO E IMÁGENES MÁS PROTAGONISTAS
   ========================= */
.process-shell {
  width: min(1680px, 97.2vw);
  max-width: 1680px;
}

.process-hero {
  padding-top: 58px;
  padding-bottom: 40px;
}

.process-hero.process-hero .process-hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(460px, .96fr);
  gap: 34px;
  align-items: stretch;
}

.process-hero-visual {
  position: relative;
  min-width: 0;
}

.process-hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 520px;
  border: 1px solid #d9e5f1;
  box-shadow: 0 28px 64px rgba(20,53,92,.16);
}

.process-hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform .45s ease;
}

.process-hero-image-card:hover img {
  transform: scale(1.1);
}

.process-image-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17,24,39,.86), rgba(30,91,184,.78));
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  backdrop-filter: blur(6px);
}

.process-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.process-hero-point {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid #dce7f1;
  box-shadow: 0 16px 34px rgba(20,53,92,.07);
}

.process-hero-point strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1rem;
}

.process-hero-point span {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
}

.process-timeline {
  gap: 24px;
}

.process-step-card {
  padding: 28px 30px;
}

.process-media-block {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 20px;
}

.process-media-thumb {
  min-height: 250px;
  border-radius: 24px;
}

.process-media-thumb img {
  min-height: 250px;
  transition: transform .42s ease;
}

.process-media-thumb:hover img {
  transform: scale(1.08);
}

.process-study-showcase {
  grid-template-columns: minmax(340px, 1fr) minmax(0, 1.08fr);
  gap: 24px;
  margin-top: 16px;
}

.process-study-image {
  min-height: 340px;
  border-radius: 28px;
}

.process-study-image img {
  min-height: 340px;
  transition: transform .42s ease;
}

.process-study-image:hover img {
  transform: scale(1.07);
}

.process-checklist-panel,
.process-alerts-panel {
  padding: 30px;
}

.process-banner {
  grid-template-columns: 1.08fr .92fr;
}

@media (max-width: 1320px) {
  .process-shell {
    width: min(1540px, 96.4vw);
    max-width: 1540px;
  }

  .process-hero.process-hero .process-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr);
  }

  .process-hero-image-card,
  .process-hero-image-card img {
    min-height: 470px;
  }
}

@media (max-width: 1080px) {
  .process-shell {
    width: min(100%, 95%);
  }

  .process-hero.process-hero .process-hero-grid,
  .process-banner,
  .process-guidelines-grid,
  .process-study-showcase,
  .process-media-block {
    grid-template-columns: 1fr;
  }

  .process-hero-points {
    grid-template-columns: 1fr;
  }

  .process-hero-image-card,
  .process-hero-image-card img {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .process-shell {
    width: min(100%, 93.5%);
  }

  .process-step-card,
  .process-checklist-panel,
  .process-alerts-panel {
    padding: 22px;
  }

  .process-hero-image-card,
  .process-hero-image-card img {
    min-height: 300px;
    border-radius: 24px;
  }

  .process-media-thumb,
  .process-media-thumb img {
    min-height: 220px;
  }

  .process-study-image,
  .process-study-image img {
    min-height: 260px;
  }
}


/* =========================================================
   MOBILE POLISH PACK — ZOOLOMASCOTAS
   Ajustes globales para móvil y tablet pequeña
   ========================================================= */
@media (max-width: 900px) {
  .container,
  .page-hero .container,
  .section .container,
  .equipment-gallery-section .equipment-shell,
  .equipment-cards-section .equipment-shell,
  .store-layout-pro,
  .site-footer .container {
    width: min(100% - 28px, 100%);
    max-width: 100%;
  }

  .page-hero,
  .hero,
  .section,
  .branch-map-section {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .page-hero::before,
  .page-hero::after,
  .hero::before,
  .hero::after {
    opacity: .6;
    transform: scale(.78);
  }

  .page-hero-grid,
  .hero-grid,
  .store-hero .page-hero-grid.store-hero-grid,
  .studies-hero-grid,
  .process-hero .page-hero-grid.process-hero-grid,
  .process-hero-grid,
  .equipment-hero-grid,
  .branch-grid,
  .highlight-banner,
  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .section-header {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-header h2,
  .page-hero h1,
  .hero h1,
  .equipment-showcase-content h3,
  .studies-side-panel h3,
  .store-side-panel h3,
  .process-step-card h3 {
    line-height: 1.08;
  }

  .card,
  .side-panel,
  .hero-card,
  .map-card,
  .branch-info-panel,
  .footer-column,
  .footer-legal-strip p,
  .footer-contact-list span,
  .process-step-card,
  .study-card,
  .store-results-bar,
  .store-sidebar,
  .product-card-store.product-card-compact,
  .equipment-showcase-card {
    border-radius: 22px;
  }

  .card,
  .stat,
  .map-card,
  .branch-info-panel,
  .footer-column,
  .process-step-card,
  .study-card,
  .store-results-bar,
  .store-sidebar,
  .product-card-store.product-card-compact {
    padding: 18px;
  }

  .hero-card,
  .side-panel {
    padding: 20px;
  }

  .features-grid,
  .services-grid,
  .products-grid,
  .steps-grid,
  .team-grid,
  .contact-grid,
  .admin-grid,
  .studies-grid,
  .store-products-grid,
  .process-hero-points,
  .studies-hero-points,
  .equipment-panel-points,
  .store-panel-points,
  .compact-schedule-grid,
  .schedule-summary-row,
  .footer-links-grid,
  .footer-contact-list,
  .footer-legal-strip {
    grid-template-columns: 1fr !important;
  }

  .store-results-actions,
  .study-actions,
  .hero-buttons,
  .filter-row,
  .badge-row,
  .equipment-badge-row,
  .process-step-actions {
    width: 100%;
  }

  .store-results-actions .btn,
  .study-actions .btn,
  .study-actions form,
  .hero-buttons .btn,
  .filter-row .btn,
  .store-filter-row .btn,
  .process-step-actions .btn {
    width: 100%;
  }

  .branch-card-top,
  .process-step-top,
  .footer-logo-row,
  .store-results-bar,
  .map-card-header,
  .compact-schedule-header {
    align-items: flex-start;
  }

  .store-results-bar,
  .branch-card-top,
  .process-step-top,
  .footer-logo-row,
  .compact-schedule-header {
    gap: 12px;
  }

  .branch-info-card,
  .info-item,
  .studies-side-item,
  .store-panel-list-item,
  .equipment-mini-point,
  .compact-schedule-row {
    min-height: unset;
  }

  .map-frame,
  #clinic-map {
    height: 260px !important;
    min-height: 260px !important;
  }

  .branch-mini-cta {
    min-width: 0;
    width: 100%;
  }

  .highlight-banner {
    padding: 22px;
  }

  .banner-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .store-hero-highlights,
  .process-hero-points,
  .studies-hero-points {
    gap: 10px;
  }

  .store-highlight-card,
  .process-hero-point,
  .studies-point,
  .equipment-mini-point,
  .store-point {
    padding: 14px 15px;
    border-radius: 16px;
  }

  .process-hero-image-card img {
    min-height: 280px;
    max-height: 320px;
  }

  .process-floating-note {
    position: static;
    max-width: 100%;
    margin-top: 12px;
  }

  .process-media-block,
  .equipment-showcase-card,
  .store-layout-pro {
    grid-template-columns: 1fr !important;
  }

  .process-media-thumb,
  .process-media-thumb img {
    min-height: 200px;
    max-height: 240px;
  }

  .equipment-showcase-media {
    min-height: 240px;
  }

  .equipment-showcase-content {
    padding: 22px 18px;
  }

  .store-sidebar {
    order: 2;
  }

  .store-main-content {
    order: 1;
  }

  .store-category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .store-category-list::-webkit-scrollbar {
    display: none;
  }

  .store-category-link {
    flex: 0 0 auto;
    min-width: 220px;
    scroll-snap-align: start;
  }

  .store-products-grid,
  .studies-grid,
  .services-grid,
  .team-grid {
    gap: 14px;
  }

  .product-card-store.product-card-compact {
    padding: 14px;
  }

  .product-media-compact,
  .product-image-compact,
  .product-media-store-pro,
  .home-product-media {
    min-height: 150px !important;
    max-height: 150px !important;
    height: 150px !important;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .product-media-compact img,
  .product-media-store-pro img,
  .home-product-media img {
    padding: 8px;
  }

  .product-title-store-pro,
  .product-title,
  .study-title-button {
    font-size: 1rem;
    line-height: 1.3;
  }

  .product-description-store-pro,
  .product-description,
  .study-card p,
  .equipment-showcase-content p,
  .process-step-card p {
    font-size: .92rem;
    line-height: 1.5;
  }

  .study-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .study-modal-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 22px;
  }

  .study-modal-header,
  .study-modal-content,
  .study-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .study-modal-footer {
    gap: 12px;
  }

  .study-modal-footer > * {
    width: 100%;
  }

  .pet-illustration.pet-illustration-large {
    padding: 22px 20px 20px;
    row-gap: 14px;
  }

  .pet-title {
    font-size: 1.78rem;
  }

  .pet-shape-large {
    width: min(190px, 62vw);
    height: min(190px, 62vw);
  }

  .mini-card,
  .mini-card-large {
    margin-top: -4px;
    padding: 15px;
  }

  .footer-main {
    padding: 16px 0 8px;
  }

  .footer-brand-block,
  .footer-links-grid,
  .footer-contact-list,
  .footer-legal-strip {
    gap: 8px;
  }

  .footer-column,
  .footer-legal-strip p,
  .footer-contact-list span {
    padding: 10px 12px;
  }

  .footer-brand-block p,
  .footer-column a,
  .footer-legal-strip p,
  .footer-bottom-bar,
  .footer-contact-list span {
    font-size: .84rem;
    line-height: 1.4;
  }

  .footer-bottom-bar {
    padding: 10px 0 16px;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container,
  .page-hero .container,
  .section .container,
  .site-footer .container,
  .equipment-gallery-section .equipment-shell,
  .equipment-cards-section .equipment-shell {
    width: calc(100% - 18px);
  }

  .page-hero,
  .hero,
  .section,
  .branch-map-section {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .hero-tag,
  .badge,
  .live-badge,
  .active-branch-badge,
  .studies-results-badge,
  .equipment-card-label,
  .store-discount-badge,
  .store-discount-badge-pro,
  .home-slide-badge,
  .diag-case-status,
  .diag-case-meta,
  .diag-case-code,
  .expediente-inline-chip,
  .expediente-status-chip {
    font-size: .72rem;
    padding: 8px 10px;
  }

  .page-hero h1,
  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
    margin-bottom: 12px;
  }

  .page-hero p,
  .hero p,
  .section-header p,
  .footer-brand-block p {
    font-size: .92rem;
    margin-bottom: 0;
  }

  .card,
  .stat,
  .map-card,
  .branch-info-panel,
  .process-step-card,
  .study-card,
  .store-results-bar,
  .store-sidebar,
  .product-card-store.product-card-compact,
  .footer-column,
  .footer-legal-strip p,
  .footer-contact-list span,
  .hero-card,
  .side-panel {
    padding: 15px;
    border-radius: 18px;
  }

  .topbar {
    font-size: .74rem;
  }

  .topbar-track {
    gap: 10px;
    padding: 7px 0;
  }

  .nav-links a,
  .nav-actions .btn,
  .nav-actions .nav-user-pill {
    min-height: 44px;
    font-size: .84rem;
  }

  .home-hero-stats,
  .hero-stats,
  .store-hero-highlights,
  .studies-hero-points,
  .process-hero-points {
    gap: 8px;
  }

  .store-highlight-card,
  .studies-point,
  .process-hero-point,
  .equipment-mini-point,
  .store-point,
  .stat {
    padding: 12px 13px;
  }

  .store-highlight-card strong,
  .studies-point strong,
  .stat h3 {
    font-size: 1.12rem;
  }

  .process-hero-image-card,
  .equipment-showcase-card,
  .map-card,
  .branch-info-panel,
  .study-modal-dialog {
    border-radius: 18px;
  }

  .process-hero-image-card img {
    min-height: 220px;
    max-height: 250px;
  }

  .process-image-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: .84rem;
  }

  .equipment-showcase-media {
    min-height: 200px;
  }

  .equipment-showcase-content {
    padding: 18px 15px;
  }

  .product-media-compact,
  .product-image-compact,
  .product-media-store-pro,
  .home-product-media {
    min-height: 136px !important;
    max-height: 136px !important;
    height: 136px !important;
  }

  .product-card-store.product-card-compact,
  .study-card {
    gap: 8px;
  }

  .store-category-link {
    min-width: 180px;
    padding: 12px 14px;
  }

  .footer-logo-badge {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .footer-logo-row {
    gap: 10px;
  }

  .footer-brand-block h3 {
    font-size: 1rem;
  }

  .footer-column h4 {
    font-size: .9rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .page-hero,
  .hero,
  .section,
  .branch-map-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .container,
  .page-hero .container,
  .section .container,
  .site-footer .container,
  .equipment-gallery-section .equipment-shell,
  .equipment-cards-section .equipment-shell {
    width: calc(100% - 14px);
  }

  .hero-tag,
  .badge,
  .studies-results-badge,
  .active-branch-badge,
  .live-badge {
    font-size: .68rem;
    padding: 7px 9px;
  }

  .page-hero h1,
  .hero h1,
  .pet-title {
    font-size: clamp(1.55rem, 7.5vw, 1.95rem);
  }

  .page-hero p,
  .hero p,
  .card p,
  .card li,
  .footer-brand-block p,
  .footer-column a,
  .footer-legal-strip p {
    font-size: .88rem;
  }

  .nav-links {
    padding: 6px;
    gap: 6px;
  }

  .nav-links a {
    padding: 9px 12px;
  }

  .store-results-actions,
  .study-actions,
  .hero-buttons {
    gap: 8px;
  }

  .study-modal-header,
  .study-modal-content,
  .study-modal-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .study-modal-close {
    top: 10px;
    right: 10px;
  }

  .footer-main {
    gap: 10px !important;
    padding-top: 12px;
  }
}


/* =========================
   REFINES MOBILE NAV / HOME / FOOTER / STORE
   ========================= */

.nav-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .nav-user-pill,
  .btn-cart-nav,
  .btn-expediente-nav {
    position: relative;
    min-height: 58px;
    padding: 12px 16px;
  }

  .nav-user-pill-login,
  .btn-cart-nav {
    justify-content: center;
  }

  .nav-user-pill-login .nav-user-icon,
  .btn-cart-nav .cart-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31,79,138,.18);
  }

  .btn-cart-nav .cart-icon svg,
  .nav-user-pill-login .nav-user-icon svg {
    width: 16px;
    height: 16px;
  }

  .nav-user-pill-login .nav-user-name,
  .btn-cart-nav .nav-button-label,
  .btn-expediente-nav .nav-button-label {
    width: 100%;
    text-align: center;
    padding-inline: 28px;
  }

  .btn-cart-nav {
    padding-right: 46px;
  }

  .btn-cart-nav .cart-count-badge {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
  }

  .home-carousel,
  .home-carousel-track {
    min-height: 760px !important;
  }

  .home-slide {
    grid-template-columns: 1fr !important;
  }

  .home-slide-media {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
  }

  .home-slide-copy {
    min-height: 0 !important;
    padding: 20px 16px 70px !important;
  }

  .home-slide-copy h1 {
    font-size: clamp(1.92rem, 8vw, 2.45rem) !important;
    line-height: 1.02 !important;
    margin-bottom: 12px !important;
  }

  .home-slide-copy p {
    font-size: .95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }

  .home-slide-actions {
    margin-bottom: 12px !important;
  }

  .home-slide-actions .btn {
    min-height: 48px !important;
  }

  .home-carousel-arrow {
    top: 120px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .home-carousel-dots {
    bottom: 14px !important;
  }

  .compact-schedule-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .compact-schedule-row {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: 78px;
    padding: 10px 12px;
  }

  .compact-schedule-row strong,
  .compact-schedule-row span {
    text-align: left !important;
  }

  .compact-schedule-row span {
    font-size: .8rem;
    line-height: 1.3;
  }

  .store-layout-pro {
    display: flex !important;
    flex-direction: column;
  }

  .store-sidebar {
    order: -1;
  }

  .store-main-content {
    order: 1;
  }
}

@media (max-width: 480px) {
  .compact-schedule-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .compact-schedule-row {
    min-height: 82px;
  }

  .compact-schedule-row strong {
    font-size: .84rem;
  }

  .compact-schedule-row span {
    font-size: .77rem;
  }
}

.site-footer {
  background: linear-gradient(180deg, #0c1320 0%, #0f1727 100%);
  color: rgba(255,255,255,.92);
}

.site-footer .container {
  width: min(1680px, 96%);
}

.footer-brand-block h3,
.footer-column h4 {
  color: #ffffff;
}

.footer-brand-block p,
.footer-column a,
.footer-bottom-bar,
.footer-legal-strip p {
  color: rgba(226,234,245,.84);
}

.footer-contact-list span,
.footer-column,
.footer-legal-strip p {
  background: rgba(255,255,255,.04);
  border-color: rgba(148, 178, 212, .18);
  box-shadow: none;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top-color: rgba(148, 178, 212, .14);
}

@media (max-width: 760px) {
  .site-footer .container {
    width: min(100%, 92%);
  }

  .footer-main {
    gap: 14px;
    padding: 18px 0 10px;
  }

  .footer-links-grid,
  .footer-legal-strip {
    gap: 12px;
  }

  .footer-column,
  .footer-legal-strip p,
  .footer-contact-list span {
    border-radius: 18px;
    padding-left: 14px;
    padding-right: 14px;
  }
}
