/* =============================================
   RCP SERVICES – styles.css
   Sistema visual unificado 2.0 | Montserrat | Oro RCP #FCB53F
   ============================================= */

/* Montserrat loaded via <link> in index.html */

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: var(--rcp-black, #000000);
  --black-2: var(--rcp-charcoal, #0a0a0a);
  --black-3: var(--rcp-surface, #111112);
  --white: var(--rcp-white, #ffffff);
  --accent: var(--rcp-gold, #fcb53f);
  --accent-dark: var(--rcp-gold-hover, #e09e20);
  --text: var(--rcp-text, #e8e8ea);
  --text-muted: var(--rcp-text-muted, #8a8a98);
  --card-bg: var(--rcp-surface, #111112);
  --card-border: var(--rcp-border, #252527);
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.32);
  --transition: all 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Montserrat', 'Bahnschrift', Arial, sans-serif;
  --navbar-scrolled: rgba(10, 10, 10, 0.96);
}

[data-theme="light"] {
  --black: #ffffff;
  --black-2: #f5f3ef;
  --black-3: #ece8e1;
  --text: #1a1a1a;
  --text-muted: #555555;
  --card-bg: #ffffff;
  --card-border: #d5d0c8;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
  --navbar-scrolled: rgba(255, 255, 255, 0.97);
}

[data-theme="light"] .hero-mascot-img {
  filter: none;
}

[data-theme="light"] .hero {
  background: #f5f3ef;
}

[data-theme="light"] .hero-bg-grid {
  opacity: 0.03;
}

[data-theme="light"] .hero-badge {
  background: rgba(252, 181, 63, 0.1);
  border-color: rgba(252, 181, 63, 0.3);
  color: #7a5d00;
}

[data-theme="light"] .stat-label {
  color: #555;
}

[data-theme="light"] .pricing-badge {
  background: rgba(252, 181, 63, 0.12);
  color: #7a5d00;
}

[data-theme="light"] .card-dark {
  background: #faf9f7;
  border-color: #d5d0c8;
}

[data-theme="light"] .visual-card {
  background: #faf9f7;
  border-color: #d5d0c8;
}

[data-theme="light"] .section-label {
  background: rgba(252, 181, 63, 0.12);
  color: #7a5d00;
  border: 1px solid rgba(252, 181, 63, 0.3);
}

[data-theme="light"] .pricing-card {
  background: #faf9f7;
  border-color: #d5d0c8;
}

[data-theme="light"] .pricing-featured {
  background: #faf9f7;
  border-color: var(--accent);
}

[data-theme="light"] .pricing-label {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .trust-card {
  background: #faf9f7;
  border-color: #d5d0c8;
}

[data-theme="light"] .trust-tooltip {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .trust-tooltip::before {
  background: #ffffff;
}

[data-theme="light"] .junta-directiva {
  background: rgba(252, 181, 63, 0.06);
}

[data-theme="light"] .qr-full-block {
  background: #faf9f7;
}

[data-theme="light"] .form-control {
  background: #faf9f7;
  border-color: #d5d0c8;
  color: #1a1a1a;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="light"] .form-control:hover {
  border-color: rgba(252, 181, 63, 0.5);
  background: #fdfdfc;
}
[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 181, 63, 0.22), inset 0 1px 3px rgba(0,0,0,0.03);
}

.custom-file-upload {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 2px dashed var(--accent);
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: var(--transition);
}
.custom-file-upload:hover {
  background: rgba(252, 181, 63, 0.1);
  border-color: var(--accent-dark);
}
.custom-file-upload .file-name {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 8px;
}

[data-theme="light"] .footer {
  background: #1a1a1a;
  color: #ffffff;
  --text: #ffffff;
  --text-muted: #ffffff;
}

[data-theme="light"] .footer-bottom {
  background: #111;
  color: #ffffff;
  --text-muted: #ffffff;
}

[data-theme="light"] .social-btn {
  border-color: #d5d0c8;
  color: #1a1a1a;
}

[data-theme="light"] .chatbot-btn {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-ghost {
  border-color: #d5d0c8;
  color: #1a1a1a;
}

[data-theme="light"] .back-top {
  background: var(--accent);
  color: #1a1a1a;
}

[data-theme="light"] .tab-btn {
  border-color: #d5d0c8;
  color: #555;
}

[data-theme="light"] .tab-btn.active {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

[data-theme="light"] .tab-btn.active .tab-letter {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 1.1vw, 18px);
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ─── CONTAINER ─── */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

.section {
  overflow-x: hidden;
}

.nav-links {
  gap: clamp(8px, 1.5vw, 24px);
}

.nav-links a {
  white-space: nowrap;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
}

/* ─── TYPOGRAPHY ─── */
.accent {
  color: var(--accent) !important;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: clamp(0.65rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 5px 18px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-bottom: 24px;
  max-width: 640px;
  line-height: 1.75;
}

/* ─── BUTTONS ─── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent) !important;
  color: var(--black) !important;
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 700;
  padding: clamp(12px, 1.2vw, 16px) clamp(24px, 2vw, 36px);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(252, 181, 63, 0.3);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(252, 181, 63, 0.4);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  transition: var(--transition);
  margin-top: auto;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--black);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: clamp(12px, 1.5vw, 22px) 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--navbar-scrolled, rgba(12, 12, 13, 0.95));
  border-bottom: 1px solid var(--card-border);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.5vw, 40px);
}

/* ─── LOGO IMAGES ─── */
.logo-img-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* invert(1) turns black text → white; hue-rotate(180deg) restores gold leopard to ~orange */
.logo-invert {
  filter: invert(1) hue-rotate(180deg);
}

.logo-color {
  filter: none;
}

.nav-logo {
  height: clamp(2.25rem, 4.5vw, 3.125rem);
  max-width: 180px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}

.nav-logo:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.footer-logo {
  height: clamp(2.75rem, 5vw, 4.25rem);
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 1.8vw, 32px);
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  margin-left: 16px;
  padding: 10px 22px;
  font-size: 0.88rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
  padding: clamp(80px, 8vw, 110px) 0 clamp(40px, 5vw, 60px);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.8;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 181, 63, 0.055) 0%, rgba(252, 181, 63, 0.02) 45%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 181, 63, 0.04) 0%, rgba(252, 181, 63, 0.015) 45%, transparent 72%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(252, 181, 63, 0.1);
  border: 1px solid rgba(252, 181, 63, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 680px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  align-items: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--card-border);
}

.hero-mascot {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(15rem, 26vw, 30rem);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero-mascot-img {
  width: 100%;
  height: auto;
  filter: none;
}

.service-visual-language {
  position: absolute;
  top: 50%;
  right: 24px;
  width: min(39%, 510px);
  margin: 0;
  padding: 10px;
  background: #f5f3ef;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-visual-language img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 8px);
}

.hero-short .hero-content {
  max-width: 54%;
}

/* ─── SECTIONS ─── */
.section {
  padding: clamp(40px, 4.5vw, 65px) 0 clamp(30px, 3.5vw, 50px) 0;
  scroll-margin-top: 80px;
}

.section.problema {
  background: var(--black-2);
}

.section.solucion {
  background: var(--black);
}

.section.paquetes {
  background: var(--black-2);
}

.section.trust {
  background: var(--black);
}

.section.contacto-section {
  background: var(--black-2);
}

/* ─── CARDS ─── */
.cards-grid {
  display: grid;
  gap: 24px;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2vw, 2rem) clamp(1.25rem, 1.75vw, 1.75rem);
  transition: var(--transition);
}

.card-dark {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.card-dark:hover {
  border-color: rgba(252, 181, 63, 0.5);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin-bottom: 10px;
}

.card h3 {
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.5;
}

/* ─── TABS ─── */
.tabs {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--card-border);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 12px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--accent);
  background: rgba(252, 181, 63, 0.06);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(252, 181, 63, 0.06);
}

.tab-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(252, 181, 63, 0.15);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
}

.tab-panel {
  display: none;
  padding: 24px 30px;
}

.tab-panel.active {
  display: block;
}

.panel-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.panel-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.panel-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.check {
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.visual-card {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  min-width: 170px;
}

.visual-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.visual-card span {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.visual-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 30px) clamp(16px, 2vw, 24px) !important;
  display: flex;
  flex-direction: column;
  gap: 14px !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252, 181, 63, 0.08);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.pricing-card:hover::before {
  transform: translateX(100%);
}

/* Glow particles — top corners */
.pricing-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(252, 181, 63, 0.28);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 20px 48px rgba(252, 181, 63, 0.18), 0 4px 16px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.pricing-card:hover::after {
  opacity: 1;
}

/* Ensure inner content stays above shimmer */
.pricing-card>* {
  position: relative;
  z-index: 1;
}

.pricing-featured {
  background: var(--card-bg);
  border: 2px solid var(--accent) !important;
  box-shadow: 0 0 24px rgba(252, 181, 63, 0.08);
  position: relative;
}

.pricing-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--black) !important;
  background: var(--accent) !important;
  border-radius: 100px;
  padding: 4px 12px;
  align-self: flex-start;
}

.pricing-tier {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-name {
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  font-weight: 800;
}

.pricing-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 100px;
  align-self: flex-start;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px !important;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

.check-sm {
  color: var(--accent) !important;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── TRUST CARDS ─── */
.trust-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(2rem, 3.5vw, 3.25rem) clamp(1.5rem, 2.5vw, 2.5rem);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: visible;
  cursor: default;
}

.trust-card:hover {
  border-color: rgba(252, 181, 63, 0.5);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

/* Tooltip relative to card, width 100%, drops down gracefully */
.trust-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.trust-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--card-bg);
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.trust-card:hover .trust-tooltip {
  display: block;
  animation: fadeUp 0.25s ease forwards;
}



.trust-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  display: block;
}

.trust-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}

.trust-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── JUNTA DIRECTIVA EXTERNA ─── */
.junta-directiva {
  margin-top: 60px;
  padding: 44px;
  background: rgba(252, 181, 63, 0.06);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.junta-title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.junta-text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 900px;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Aligns the 'Conéctate' heading top with the form */
.contact-info-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-control {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 14px 18px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-control:hover {
  border-color: rgba(252, 181, 63, 0.4);
  background: rgba(252, 181, 63, 0.03);
}

.form-control:focus {
  border-color: var(--accent);
  background: rgba(252, 181, 63, 0.05);
  box-shadow: 0 0 0 4px rgba(252, 181, 63, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-control option {
  background: var(--card-bg);
  color: var(--text);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.contact-info h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 28px;
}

.info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--accent);
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.info-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-item a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ─── NAVBAR DROPDOWN ─── */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-trigger .arrow {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.nav-dropdown:hover .dropdown-trigger .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(17, 17, 18, 0.96);
border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 170px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(17, 17, 18, 0.96);
  border-top: 1px solid var(--card-border);
  border-left: 1px solid var(--card-border);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(252, 181, 63, 0.1);
  color: var(--accent) !important;
}

[data-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: #d5d0c8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dropdown-menu::before {
  background: rgba(255, 255, 255, 0.98);
  border-color: #d5d0c8;
}

[data-theme="light"] .dropdown-menu a:hover {
  background: rgba(252, 181, 63, 0.08);
}

/* ─── NAV CONTROLS ─── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(138, 138, 152, 0.1);
  border: 1px solid rgba(138, 138, 152, 0.2);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(138, 138, 152, 0.2);
  border-color: var(--text-muted);
}

.theme-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-select {
  background: rgba(252, 181, 63, 0.08);
  border: 1px solid rgba(252, 181, 63, 0.3);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  padding: 5px 12px;
  letter-spacing: 0.05em;
  transition: var(--transition);
  accent-color: var(--accent);
}

.lang-select:hover {
  background: rgba(252, 181, 63, 0.15);
  border-color: var(--accent);
}

.lang-select option {
  background: var(--card-bg);
  color: var(--text);
}

/* Global select accent */
select,
select:focus {
  accent-color: var(--accent);
}

select option:checked,
select option:hover {
  background: var(--accent) !important;
  color: #000 !important;
}

.form-control:is(select) {
  accent-color: var(--accent);
}

/* ─── QR FULL BLOCK ─── */
.qr-full-block {
  margin-top: 56px;
  padding: 40px 24px;
  background: var(--black-2);
  border: 1px solid rgba(252, 181, 63, 0.2);
  border-radius: var(--radius);
  text-align: center;
}

.qr-full-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.qr-full-img {
  width: clamp(8.75rem, 20vw, 13.75rem);
  height: clamp(8.75rem, 20vw, 13.75rem);
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 0 32px rgba(252, 181, 63, 0.12);
}

.qr-full-label {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.qr-full-sub {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.qr-full-hint {
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  color: var(--text-muted);
  margin-top: -8px;
}

/* ─── MUSIC BUTTON ─── */
.music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(252, 181, 63, 0.08);
  border: 1px solid rgba(252, 181, 63, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.music-btn:hover,
.music-btn.playing {
  background: rgba(252, 181, 63, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── QR CODE ─── */
.qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
  transition: var(--transition);
}

.qr-card:hover {
  border-color: var(--accent);
}

.qr-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #fff;
  padding: 4px;
}

.qr-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.qr-label strong {
  color: var(--accent);
  display: block;
  font-size: 0.95rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--card-border);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ─── CHATBOT WIDGET ─── */
.chatbot-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem; /* Increased for touch target spacing */
}

.chatbot-tooltip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
  pointer-events: none;
}

.chatbot-widget:hover .chatbot-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.chatbot-btn {
  width: 3.625rem;
  height: 3.625rem;
  border-radius: 50%;
  background: var(--accent) !important;
  border: none;
  color: var(--black) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0.25rem 1rem rgba(252, 181, 63, 0.25);
  transition: var(--transition);
  animation: pulse-btn 3s ease infinite;
  margin: 16px; /* Increased for touch target spacing */
}

.chatbot-btn:hover {
  transform: scale(1.1);
  background: var(--accent-dark);
}

/* ─── BACK TO TOP ─── */
.back-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.back-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-top:hover {
  background: var(--accent);
  color: var(--black);
}

/* ─── ANIMATIONS ─── */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(calc(-50% - 18px)) translateX(8px);
  }
}

@keyframes pulse-btn {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(252, 181, 63, 0.4);
  }

  50% {
    box-shadow: 0 6px 40px rgba(252, 181, 63, 0.65);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

.delay-4 {
  animation-delay: 0.6s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .three-col {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .three-col {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

  .visual-card {
    display: none;
  }

  .hero-mascot {
    width: clamp(160px, 18vw, 260px);
  }
}

@media (max-width: 1150px) {
  .service-visual-language {
    display: none;
  }

  .hero-short .hero-content {
    max-width: 660px;
  }

  .nav-links,
  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: block !important;
    flex-shrink: 0;
    margin-left: 0 !important;
  }

  .nav-controls {
    margin-left: auto !important;
  }

  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black, #0c0c0d) !important; /* solid, rich opaque background */
    align-items: center;
    justify-content: flex-start !important; /* prevent Flexbox center scroll cutoff */
    gap: 20px;
    font-size: 1.2rem;
    z-index: 9999 !important; /* stack above all overlay components and chatbot */
    overflow-y: auto;
    padding: 100px 24px 60px; /* comfortable scrolling margins */
  }

  .nav-links.open a {
    font-size: 1.2rem !important;
  }

  .nav-links.open::before {
    content: '✕';
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
  }

  body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
  }

  /* Prevent backdrop-filter from creating a containing block that traps the mobile menu */
  body.menu-open .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-bottom: none !important;
  }

  /* Flat listing for mobile menu nested items */
  .nav-dropdown .dropdown-trigger {
    display: none !important;
  }
  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important; /* vertical flex layout for sub-items instead of display: contents */
    flex-direction: column !important;
    gap: 14px !important;
    margin: 6px 0 !important;
    align-items: center !important;
  }
  .dropdown-menu::before {
    display: none !important;
  }
  .dropdown-menu a {
    padding: 0 !important;
    font-size: 1.05rem !important; /* slightly smaller for hierarchy */
    color: var(--accent) !important; /* visually group using brand color accent */
    text-align: center !important;
    opacity: 0.85;
  }
  .dropdown-menu a:hover {
    background: transparent !important;
    color: var(--accent) !important;
    opacity: 1;
  }

  /* Simplify structure on mobile/tablet: replace complex nested grids/flexboxes with standard block flows */
  .cart-container-layout {
    display: block !important;
    width: auto !important;
    margin: 0 16px !important; /* force 16px safety margin on both sides */
  }

  .blocks-explorer {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Replace blocks grid with a highly reliable vertical flex column to prevent overflow and ensure margins */
  .blocks-grid {
    display: none !important;
  }
  
  .blocks-grid.active {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Stacking vertical flows for packages catalog grids */
  .catalog-grid,
  .pricing-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 24px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .package-detail-card,
  .pricing-card,
  .block-card {
    padding: 30px 24px !important; /* compact internal padding to keep beautiful margins on mobile */
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .blocks-tabs {
    padding-left: 4px !important;
    padding-right: 4px !important;
    margin-bottom: 24px !important;
  }
}

@media (min-width: 1151px) and (max-width: 1440px) {
  .container {
    padding: 0 clamp(1rem, 2vw, 2rem) !important;
  }
  .nav-inner {
    gap: clamp(8px, 1.2vw, 16px) !important;
  }
  .nav-links {
    gap: clamp(6px, 1vw, 12px) !important;
  }
  .nav-logo {
    max-width: 130px !important;
  }
  .nav-cta {
    margin-left: 5px !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
  .nav-links a {
    font-size: clamp(0.72rem, 0.8vw, 0.8rem) !important;
  }
  .nav-controls {
    gap: 8px !important;
  }
}

@media (max-width: 768px) {

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-mascot {
    display: none;
  }

  .hero-stats {
    gap: 20px;
  }

  .three-col {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tab-btn {
    font-size: 0.82rem;
    padding: 15px 10px;
    flex-direction: column;
    gap: 4px;
  }

  .tab-panel {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    max-width: clamp(130px, 45vw, 160px) !important;
    height: auto !important;
  }

  .footer-logo {
    height: auto !important;
    width: 100% !important;
    max-width: 320px !important;
    margin-bottom: 2rem !important;
  }

  .nav-controls {
    gap: clamp(4px, 1.5vw, 8px) !important;
  }

  .nav-controls .icon-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .lang-select {
    padding: 2px 4px !important;
    font-size: 0.75rem !important;
  }

  .nav-inner {
    gap: clamp(8px, 2.5vw, 16px) !important;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-ghost {
    text-align: center;
    justify-content: center;
  }

  .chatbot-widget {
    bottom: 20px;
    right: 20px;
  }

  .back-top {
    bottom: 20px;
    left: 20px;
  }
}

/* Visited links color safety overrides to prevent blue icons */
.social-btn:visited {
  color: var(--text) !important;
}
.info-item a:visited {
  color: var(--text-muted) !important;
}
.info-item a:hover {
  color: var(--accent) !important;
}
.info-icon svg {
  color: var(--accent) !important;
  fill: var(--accent) !important;
}
.social-btn svg {
  color: currentColor !important;
}


/* ═══════════════════════════════════════════════ */
/* NEW PAGES: Hero Short, Media, Ocean, Chat      */
/* ═══════════════════════════════════════════════ */

.hero-short {
  min-height: 50vh;
  padding-bottom: 40px;
}

.active-link {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ERAC Dynamic Hub */
.erac-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.erac-center {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 8px;
}

.erac-center-label {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.15em;
  padding: 10px 32px;
  border: 2px solid var(--accent);
  border-radius: 100px;
  background: rgba(252, 181, 63, 0.06);
  box-shadow: 0 0 30px rgba(252, 181, 63, 0.12);
  animation: eracPulse 3s ease-in-out infinite;
}

@keyframes eracPulse {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(252, 181, 63, 0.12);
  }

  50% {
    box-shadow: 0 0 45px rgba(252, 181, 63, 0.25);
  }
}

.erac-center-sub {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 8px;
}

.erac-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.erac-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.erac-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.erac-eliminate::before {
  background: #ef4444;
}

.erac-reduce::before {
  background: #f97316;
}

.erac-raise::before {
  background: var(--accent);
}

.erac-create::before {
  background: var(--rcp-growth, #a6ce39);
}

.erac-letter {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.9;
}

.erac-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.erac-eliminate h3 {
  color: #ef4444;
}

.erac-reduce h3 {
  color: #f97316;
}

.erac-raise h3 {
  color: var(--accent);
}

.erac-create h3 {
  color: #22c55e;
}

.erac-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.erac-icon {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 1.6rem;
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.3s;
}

.erac-card:hover .erac-icon {
  opacity: 0.7;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .erac-hub {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Media Players */
.media-player {
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.media-video {
  width: 100%;
  display: block;
  max-height: 560px;
  object-fit: contain;
  background: #000;
}

.audio-player {
  padding: 32px;
}

.podcast-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.podcast-icon {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 181, 63, 0.12);
  border-radius: 16px;
  flex-shrink: 0;
}

.podcast-info h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.podcast-info p {
  font-size: 1.15rem;
  font-weight: 700;
}

.media-audio {
  width: 100%;
  border-radius: 8px;
}

.media-details {
  margin-top: 24px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.media-details h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.media-details ul {
  list-style: none;
  padding: 0;
}

.media-details li {
  padding: 6px 0;
  padding-left: 1.5em;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.media-details li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Three-col responsive grid */
.three-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

  .three-col,
  .cards-grid[style*="repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════ */
/* CHAT WIDGET PANEL                               */
/* ═══════════════════════════════════════════════ */
.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 370px;
  max-width: calc(100vw - 40px);
  height: 480px;
  background: var(--black-2);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
  transform: scale(0) translateY(20px);
  opacity: 0;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  pointer-events: none;
}

[data-theme="light"] .chat-panel {
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--accent);
  color: #000;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-header-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.chat-header-info p {
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0;
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #000;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--black);
}

[data-theme="light"] .chat-messages {
  background: #f8f8f8;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.chat-msg.bot {
  background: rgba(252, 181, 63, 0.1);
  border: 1px solid rgba(252, 181, 63, 0.2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--accent);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: var(--black-2);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.chat-send:hover {
  transform: scale(1.08);
}

.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chat-quick-btn {
  background: rgba(252, 181, 63, 0.1);
  border: 1px solid rgba(252, 181, 63, 0.25);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.chat-quick-btn:hover {
  background: rgba(252, 181, 63, 0.2);
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 80px;
    height: 70vh;
  }
}

/* Typing indicator dots */
.chat-typing {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
}

.chat-typing .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Light mode contrast improvements */
body.light-mode {
  --text-muted: #4a4a5a;
}

/* Responsive YouTube embed */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Podcast card */
.podcast-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.podcast-icon {
  font-size: 2.5rem;
}

.podcast-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.podcast-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.media-details {
  margin-top: 32px;
}

.media-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.media-details ul {
  padding-left: 20px;
}

.media-details li {
  margin-bottom: 8px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   ─── ECOSISTEMA OPERATIVO SOBERANO ────────────
   ═══════════════════════════════════════════════ */

.eco-section {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.eco-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 181, 63, 0.04) 0%, rgba(252, 181, 63, 0.015) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.eco-section {
  padding: clamp(40px, 4vw, 60px) 0 clamp(30px, 3vw, 45px) 0 !important;
}

.eco-section .section-sub {
  margin-bottom: 24px !important;
}

.eco-section .container {
  position: relative;
  z-index: 1;
}

/* Eco Cards — subtle glow on hover */
.eco-card {
  transition: var(--transition);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  padding: clamp(1.2rem, 1.8vw, 1.6rem) clamp(1rem, 1.5vw, 1.5rem) !important;
}

.eco-card .card-icon {
  margin-bottom: 10px !important;
  font-size: clamp(1.8rem, 2vw, 2.2rem) !important;
}

.eco-card h3 {
  margin-bottom: 8px !important;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem) !important;
}

.eco-card p {
  line-height: 1.45 !important;
  font-size: clamp(0.82rem, 0.9vw, 0.92rem) !important;
}

.eco-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(252, 181, 63, 0.03);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.eco-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(252,181,63,0.12);
}

.eco-card:hover::after {
  opacity: 1;
}

/* Comparison Table */
.eco-compare {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}

.eco-compare-header {
  padding: 28px 30px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}

.eco-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.eco-compare-col {
  padding: 36px 32px;
}

.eco-compare-col h4 {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.05rem;
}

.eco-compare-trad {
  border-right: 1px solid var(--card-border);
  background: rgba(239, 68, 68, 0.02);
}

.eco-compare-rcp {
  background: rgba(252, 181, 63, 0.03);
}

.eco-compare-col .feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eco-compare-col .feature-list li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* 11 Layers Visual Grid */
.eco-layers {
  margin-top: 56px;
  text-align: center;
}

.eco-layers-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.eco-layers-sub {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.eco-groups-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}

.eco-group-card {
  background: var(--black-3);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
}

.eco-group-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(252, 181, 63, 0.08);
}

.eco-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
}

.eco-group-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.eco-group-icon {
  font-size: 1.3rem;
}

.eco-group-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eco-layer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}

.eco-layer-pill:hover {
  border-color: var(--accent);
  background: rgba(252,181,63,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(252,181,63,0.1);
}

.eco-group-pills .eco-layer-pill {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  opacity: 0;
  animation: pillFadeIn 0.4s ease forwards;
}

/* Staggered entrance animation for pills within categories */
.eco-group-card:nth-child(1) .eco-layer-pill:nth-child(1) { animation-delay: 0.05s; }
.eco-group-card:nth-child(1) .eco-layer-pill:nth-child(2) { animation-delay: 0.10s; }
.eco-group-card:nth-child(1) .eco-layer-pill:nth-child(3) { animation-delay: 0.15s; }

.eco-group-card:nth-child(2) .eco-layer-pill:nth-child(1) { animation-delay: 0.20s; }
.eco-group-card:nth-child(2) .eco-layer-pill:nth-child(2) { animation-delay: 0.25s; }
.eco-group-card:nth-child(2) .eco-layer-pill:nth-child(3) { animation-delay: 0.30s; }
.eco-group-card:nth-child(2) .eco-layer-pill:nth-child(4) { animation-delay: 0.35s; }

.eco-group-card:nth-child(3) .eco-layer-pill:nth-child(1) { animation-delay: 0.40s; }
.eco-group-card:nth-child(3) .eco-layer-pill:nth-child(2) { animation-delay: 0.45s; }
.eco-group-card:nth-child(3) .eco-layer-pill:nth-child(3) { animation-delay: 0.50s; }
.eco-group-card:nth-child(3) .eco-layer-pill:nth-child(4) { animation-delay: 0.55s; }

/* Light Theme overrides for group cards */
[data-theme="light"] .eco-group-card {
  background: #fff;
  border-color: #d5d0c8;
}

/* Responsive styles to ensure columns stack on mobile */
@media (max-width: 992px) {
  .eco-groups-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@keyframes pillFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Light theme overrides */
[data-theme="light"] .eco-section {
  background: #ffffff;
}

[data-theme="light"] .eco-compare-trad {
  background: rgba(239, 68, 68, 0.04);
}

[data-theme="light"] .eco-compare-rcp {
  background: rgba(252, 181, 63, 0.06);
}

[data-theme="light"] .eco-layer-pill {
  background: #fff;
  border-color: #d5d0c8;
}

[data-theme="light"] .eco-layer-pill:hover {
  background: rgba(252,181,63,0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .eco-compare-grid {
    grid-template-columns: 1fr;
  }

  .eco-compare-trad {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }

  .eco-compare-col {
    padding: 24px 20px;
  }

  .eco-group-pills {
    gap: 8px;
  }

  .eco-layer-pill {
    font-size: 0.78rem;
    padding: 8px 14px;
  }
}

/* ==========================================
   VISITED & ACTIVE OVERRIDES SAFEGUARDS
   ========================================== */
a:visited,
.btn-cta:visited,
.btn-outline:visited,
.btn-ghost:visited,
.nav-links a:visited {
  color: inherit;
}
.btn-cta:visited {
  color: var(--black) !important;
  background: var(--accent) !important;
}
[data-theme="light"] .btn-cta:visited {
  color: var(--white) !important;
}
.btn-outline:visited {
  color: var(--text) !important;
}
.btn-ghost:visited {
  color: var(--text-muted) !important;
}
.nav-links a:visited {
  color: var(--text) !important;
}
.nav-links a:hover {
  color: var(--accent) !important;
}

/* ==========================================
   CATALOGO DE SERVICIOS INTERACTIVO & WIDGETS
   ========================================== */
.catalog-filter {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 60px;
  max-width: 1000px;
}
.filter-pill {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-family: var(--font);
}
.filter-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 181, 63, 0.1);
}
.filter-pill.active {
  border-color: var(--accent);
  background: rgba(252, 181, 63, 0.08);
  box-shadow: 0 8px 30px rgba(252, 181, 63, 0.15);
}
.pill-icon {
  font-size: 2rem;
}
.pill-text {
  display: flex;
  flex-direction: column;
}
.pill-title {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}
.pill-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.package-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.package-detail-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.package-detail-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(252, 181, 63, 0.08);
}
.package-detail-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
}
.featured-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--accent);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.pkg-header {
  margin-bottom: 30px;
}
.pkg-tier {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}
.pkg-name {
  font-size: 1.6rem;
  margin: 8px 0 12px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.pkg-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.pkg-price-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.pkg-price-range {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}
.pkg-price-tag {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}
.pkg-price-split {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pkg-price-split > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.font-sm {
  font-size: 1.1rem;
}
.price-separator {
  display: none;
}
.timeline-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.05);
}
.pkg-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pkg-features {
  list-style: none;
  padding: 0; margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
}
.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.check {
  color: var(--accent);
  font-weight: 700;
}

/* MODULAR BLOCK CARTS */
.cart-container-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
.blocks-explorer {
  display: flex;
  flex-direction: column;
}
.blocks-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.block-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0; /* prevent squeezing and text truncation on mobile screens */
  transition: all 0.3s ease;
}
.block-tab-btn:hover {
  color: var(--text);
}
.block-tab-btn.active {
  background: rgba(252, 181, 63, 0.1);
  color: var(--accent);
}
.blocks-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.blocks-grid.active {
  display: grid;
}
.block-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.block-card:hover {
  border-color: rgba(252,181,63,0.5);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.block-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.block-icon {
  font-size: 1.5rem;
}
.block-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.block-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}
.block-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 15px;
  gap: 10px;
}
.block-price-range {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.block-price-range small {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.btn-add-cart {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(252, 181, 63, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-add-cart:hover {
  background: var(--accent);
  color: var(--black);
}
.btn-add-cart.added {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}
.btn-add-cart.added::after {
  content: '✓';
}

.cart-summary-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: sticky;
  top: 100px;
}
.cart-summary-sidebar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 5px;
}
.cart-empty-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  padding: 20px 0;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.02);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
}
.cart-item-name {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.cart-item-price {
  font-weight: 600;
  color: var(--accent);
}
.btn-remove-cart {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0 0 8px;
}
.cart-hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 15px 0;
}
.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  align-items: center;
}
.total-row strong {
  color: var(--text);
  font-size: 1rem;
}
.btn-disabled {
  background: var(--card-border) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* INTERACTIVE SCHEDULING WIDGET */
.scheduling-widget {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 40px;
}
.widget-sidebar-info {
  border-right: 1px solid var(--card-border);
  padding-right: 40px;
}
.meeting-card {
  display: flex;
  flex-direction: column;
}
.meeting-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}
.meeting-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.meeting-duration {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.meeting-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.meeting-pitch {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.widget-booking-flow {
  display: flex;
  flex-direction: column;
}
.booking-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.calendar-wrapper {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}
.calendar-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.calendar-header-nav button {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.calendar-header-nav button:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}
.calendar-header-nav span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-days span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.2;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}
.calendar-days span:hover:not(.disabled) {
  background: rgba(252,181,63,0.15);
  color: var(--accent);
}
.calendar-days span.disabled {
  color: rgba(255,255,255,0.15) !important;
  cursor: not-allowed;
  background: transparent !important;
}
.calendar-days span.prev-month,
.calendar-days span.next-month {
  color: rgba(255,255,255,0.2);
}
.calendar-days span.active {
  background: var(--accent) !important;
  color: var(--black) !important;
  font-weight: 700;
}
.calendar-days span.today {
  border: 1px dashed var(--accent);
}

.time-slots-container {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
}
.time-slots-container h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.slots-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
}
.slots-grid span:hover:not(.disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(252,181,63,0.05);
}
.slots-grid span.active {
  background: var(--accent) !important;
  color: var(--black) !important;
  border-color: var(--accent) !important;
  font-weight: 700;
}
.slots-grid span.disabled {
  color: rgba(255,255,255,0.15) !important;
  border-color: transparent !important;
  background: transparent !important;
  cursor: not-allowed;
}
.slots-empty-msg {
  grid-column: span 4;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0;
}

.selected-slot-summary {
  background: rgba(252, 181, 63, 0.05);
  border: 1px solid rgba(252, 181, 63, 0.15);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: var(--text);
}
.booking-form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.success-screen {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
}
.success-screen h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.success-screen p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 30px;
}
.success-details-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 450px;
  margin: 0 auto 30px;
  text-align: left;
}
.success-details-card p {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  color: var(--text);
}
.success-details-card p:last-child {
  margin-bottom: 0;
}
.accent-link {
  color: var(--accent);
  text-decoration: underline;
  margin-left: 5px;
}
.accent-link:hover {
  color: var(--accent-dark);
}

/* Light theme support */
[data-theme="light"] .filter-pill {
  background: var(--white);
}
[data-theme="light"] .package-detail-card {
  background: var(--white);
}
[data-theme="light"] .pkg-price-box {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.05);
}
[data-theme="light"] .timeline-badge {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.04);
}
[data-theme="light"] .block-card {
  background: var(--white);
}
[data-theme="light"] .cart-summary-sidebar {
  background: var(--white);
}
[data-theme="light"] .cart-item {
  background: rgba(0,0,0,0.01);
  border-color: rgba(0,0,0,0.02);
}
[data-theme="light"] .scheduling-widget {
  background: var(--white);
}
[data-theme="light"] .calendar-wrapper {
  background: rgba(0,0,0,0.01);
}
[data-theme="light"] .calendar-header-nav button {
  background: rgba(0,0,0,0.03);
}
[data-theme="light"] .slots-grid span {
  background: rgba(0,0,0,0.02);
}
[data-theme="light"] .success-details-card {
  background: rgba(0,0,0,0.01);
}

/* Adaptive layout for mobile */
@media (max-width: 992px) {
  .catalog-filter {
    flex-direction: column;
    gap: 10px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cart-container-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary-sidebar {
    position: static;
    margin-top: 30px;
  }
  .scheduling-widget {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .widget-sidebar-info {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding-right: 0;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px !important; /* Force secure 16px safety margins globally on mobile screens */
  }
  .blocks-grid {
    grid-template-columns: 1fr !important;
  }
  .slots-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================
   LARGE MONITOR DYNAMIC FLUID SCALING SYSTEM
   ========================================== */

/* Large Laptops & Standard Desktops (>= 1440px) */
@media (min-width: 1440px) {
  html {
    font-size: clamp(17px, 1.1vw, 20px);
  }
}

/* Full HD Screens & 2K Monitors (>= 1920px) */
@media (min-width: 1920px) {
  html {
    font-size: clamp(19px, 1.1vw, 22px);
  }
}

/* 4K UHD Monitors & Ultra-wides (>= 2560px) */
@media (min-width: 2560px) {
  html {
    font-size: clamp(21px, 1.1vw, 24px);
  }
}


/* Search Linked to Chatbot */
.search-container {
  display: flex;
  align-items: center;
  position: relative;
  background: transparent;
  border-radius: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.search-container.active {
  width: 250px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0 10px;
}
.search-input {
  border: none;
  background: transparent;
  color: var(--text);
  width: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.search-container.active .search-input {
  width: 100%;
  opacity: 1;
  padding: 0 5px;
}
.search-btn {
  background: transparent;
  color: var(--text);
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: color 0.3s ease;
  flex-shrink: 0;
}
.search-btn:hover {
  color: var(--accent);
}
@media (max-width: 768px) {
  .search-container.active {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    z-index: 1000;
  }
}

/* ─── ACCESSIBILITY & LIGHT MODE CONTRAST OVERRIDES (WCAG AA Compliant) ─── */
[data-theme="light"] .accent {
  color: #b45309 !important; /* Amber-700 (4.58:1 contrast on white) instead of yellow */
}
[data-theme="light"] .btn-cta {
  color: #000000 !important; /* Ensure black text on yellow background */
}
[data-theme="light"] .btn-cta:visited {
  color: #000000 !important;
}
[data-theme="light"] .btn-outline {
  color: #b45309 !important;
  border-color: #b45309 !important;
}
[data-theme="light"] .btn-outline:hover {
  background: #b45309 !important;
  color: #ffffff !important;
}
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .dropdown-menu a:hover,
[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .portal-link:hover,
[data-theme="light"] .tab-btn:hover {
  color: #b45309 !important;
}
[data-theme="light"] .tab-btn.active {
  color: #000000 !important; /* Ensure black text on active tab */
}

/* Guided Tour Styles */
.tour-button-container {
  position: fixed;
  bottom: 160px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-button-container.dismissed {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.tour-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: var(--black);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(252, 181, 63, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}

.tour-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(252, 181, 63, 0.4);
  opacity: 1;
}

.tour-dismiss-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(252, 181, 63, 0.2);
  border: 1px solid rgba(252, 181, 63, 0.4);
  color: var(--black);
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tour-dismiss-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.tour-highlight {
  position: absolute;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(252, 181, 63, 0.5);
  pointer-events: none;
  z-index: 10001;
  max-height: 60vh;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-tooltip {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
  z-index: 10002;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tour-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tour-tooltip-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.tour-tooltip-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tour-tooltip-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.tour-tooltip-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tour-tooltip-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.tour-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tour-progress-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.tour-tooltip-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tour-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tour-btn-primary {
  background: var(--accent);
  color: var(--black);
  border: none;
}

.tour-btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.tour-btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.tour-btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Next Section → replaced by .scroll-indicator */
.next-section-btn {
  display: none !important; /* Legacy — replaced by scroll-indicator */
}

/* Smart Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(252, 181, 63, 0.12);
  border: 1px solid rgba(252, 181, 63, 0.3);
  color: var(--accent);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-indicator.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  animation: scrollPulse 2.5s infinite ease-in-out;
}

.scroll-indicator:hover {
  background: rgba(252, 181, 63, 0.25);
  border-color: var(--accent);
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.next-section-arrow {
  width: 32px;
  height: 32px;
}

[data-theme="light"] .tour-tooltip {
  background: rgba(255, 255, 255, 0.95);
}


/* ═══════════════════════════════════════════════
   ADDITIONAL OPTIMIZATIONS & FIXES (2026-06-20)
   ═══════════════════════════════════════════════ */

/* ─── ECO CARDS GRID SPACING ─── */
.eco-cards-grid {
  margin-bottom: 60px;
}

/* ─── CONTACT GRID ALIGNMENT ─── */
.contact-grid {
  align-items: start;
}

/* ─── FOOTER INSTAGRAM LINK ─── */
.footer-instagram {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.footer-instagram:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ─── SECTION SUB CENTERED ─── */
.eco-section .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ─── FOCUS VISIBLE FOR ACCESSIBILITY ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── REDUCED MOTION PREFERENCE ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll,
  .animate-fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── PRINT STYLES ─── */
@media print {
  .navbar, .chatbot-widget, .chat-panel, .back-top, 
  .tour-button, .tour-overlay, .next-section-btn,
  .music-btn, .theme-btn, .search-container, .hamburger {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero {
    background: white !important;
    page-break-after: always;
  }
  
  .card-dark {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #666;
  }
}

/* ─── HIGH CONTRAST MODE ─── */
@media (forced-colors: active) {
  .btn-cta, .btn-outline {
    border: 2px solid currentColor;
  }
  
  .card-dark {
    border: 1px solid currentColor;
  }
}

/* ─── CHAT TYPING ANIMATION FIX ─── */
.chat-typing .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 3px;
  animation: chatTypingBounce 1.4s infinite ease-in-out both;
}

.chat-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing .dot:nth-child(2) { animation-delay: -0.16s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0s; }

@keyframes chatTypingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ─── SKIP TO CONTENT (ACCESSIBILITY) ─── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 10001;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* ═══════════════════════════════════════════════
   COOKIE CONSENT BANNER & DETAILS PANEL
   ═══════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--black-3);
  border-top: 1px solid var(--card-border);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.cookie-link {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font);
}

.cookie-btn-accept {
  background: var(--accent);
  color: #000;
}

.cookie-btn-accept:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.cookie-btn-reject:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Cookie Details Panel */
.cookie-details-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.cookie-details-panel.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-details-inner {
  background: var(--black-2);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.cookie-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
}

.cookie-details-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.cookie-details-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.cookie-details-close:hover {
  color: var(--text);
  background: var(--card-border);
}

.cookie-details-body {
  padding: 20px 24px;
}

.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cookie-category-header strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.cookie-category-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-border);
  border-radius: 24px;
  transition: 0.3s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
  background: #000;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-details-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 600px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    max-height: 34vh;
    overflow-y: auto;
  }

  .cookie-banner-inner {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  .cookie-text {
    min-width: 0;
  }

  .cookie-text p {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.78rem;
    text-align: center;
  }

  .cookie-details-panel {
    padding: 12px;
  }

  .cookie-details-inner {
    max-height: 86vh;
    border-radius: 12px;
  }
}

/* ═══════════════════════════════════════════════
   TIENDA / STORE PAGE STYLES
   ═══════════════════════════════════════════════ */

.store-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.store-cat-btn:hover, .store-cat-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(252, 181, 63, 0.08);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.store-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
display: flex;
  flex-direction: column;
}

.store-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(252, 181, 63, 0.12);
}

.store-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 181, 63, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(252, 181, 63, 0.08);
  overflow: hidden;
  transition: var(--transition);
}

.store-card:hover .store-card-icon {
  background: rgba(252, 181, 63, 0.06);
  border-color: rgba(252, 181, 63, 0.15);
}

.store-card-icon .product-thumbnail {
  transition: transform 0.3s ease;
}

.store-card:hover .store-card-icon .product-thumbnail {
  transform: scale(1.05);
}

.store-card-icon-fallback {
  font-size: 2.5rem;
  opacity: 0.7;
}

.store-card-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.store-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.store-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.store-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

.store-card-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.store-card-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.store-card-btn:hover {
  background: var(--accent);
  color: #000;
}

/* ─── SEARCH BAR ─── */
.store-search-container {
  margin-bottom: 24px;
}

.store-search-wrapper {
  position: relative;
  max-width: 480px;
}

.store-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.store-search-input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.store-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 181, 63, 0.1);
}

.store-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.store-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.store-search-clear:hover {
  color: var(--accent);
  background: rgba(252, 181, 63, 0.1);
}

/* ─── FAVORITES ─── */
.store-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.store-fav-btn:hover {
  color: var(--accent);
  background: rgba(252, 181, 63, 0.15);
  transform: scale(1.1);
}

.store-fav-btn.active {
  color: var(--accent);
  background: rgba(252, 181, 63, 0.2);
}

.store-card.is-fav {
  border-color: rgba(252, 181, 63, 0.25);
}

.store-card-icon {
  position: relative;
}

/* Product Modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.product-modal.open {
  opacity: 1;
  pointer-events: all;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.product-modal-content {
  position: relative;
  background: var(--black-2);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 1;
}

.product-modal-close:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text);
}

.product-modal-body {
  padding: 32px;
}

.product-modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.product-modal-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}

.product-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 12px;
}

.product-modal-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.product-modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.modal-meta-item {
  text-align: center;
  padding: 12px;
  background: var(--black-3);
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.product-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-tag {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(252, 181, 63, 0.08);
  border: 1px solid rgba(252, 181, 63, 0.2);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

/* Payment Method Buttons */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--black-3);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.payment-btn:hover {
  border-color: var(--accent);
  background: rgba(252, 181, 63, 0.05);
}

.payment-btn-whatsapp {
  grid-column: 1 / -1;
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.payment-btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
}

/* Four column grid */
.four-col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .product-modal-meta { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .four-col { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: 1fr; }
}

.store-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
}

/* ═══════════════════════════════════════════════
   CART FAB + CART PANEL + STORE ENHANCEMENTS
   ═══════════════════════════════════════════════ */

.cart-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9980;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(252,181,63,0.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.cart-fab.visible {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.cart-fab:hover { transform: scale(1.1); }

.cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--black-2);
  border-left: 1px solid var(--card-border);
  z-index: 10003;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-panel.open { right: 0; }

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
}

.cart-panel-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }

.cart-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}

.cart-item-info { flex: 1; }
.cart-item-info strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 2px; }
.cart-item-info span { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
}

.cart-panel-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--card-border);
}

.cart-panel-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1rem;
}

.cart-panel-total strong { color: var(--accent); font-size: 1.2rem; }

/* Store card states */
.store-card.in-cart { border-color: var(--accent); background: rgba(252,181,63,0.04); }
.store-card-btn.added { background: var(--accent); color: #000; }
.store-card-btn.quote-btn { border-color: #25d366; color: #25d366; }
.store-card-btn.quote-btn:hover { background: #25d366; color: #fff; }

/* Quote separator in modal */
.quote-separator {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
  gap: 12px;
}
.quote-separator::before, .quote-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}
.quote-separator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.payment-btn.full-width { width: 100%; justify-content: center; }
.payment-btn.cart-btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}
.payment-btn.cart-btn-primary:hover {
  background: var(--accent-dark);
}

/* Cart panel payment grid */
.cart-payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.cart-payment-options .payment-btn {
  font-size: 0.78rem;
  padding: 10px 12px;
  justify-content: center;
}


/* ═══ Portal Loading Overlay ═══ */
.portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 12, 0.85);
display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.portal-overlay-content {
  text-align: center;
}
.portal-overlay-content p {
  color: #e4e4e7;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 16px;
}
.portal-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(252, 181, 63, 0.15);
  border-top-color: var(--accent, #fcb53f);
  border-radius: 50%;
  animation: portalSpin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes portalSpin {
  to { transform: rotate(360deg); }
}
[data-theme="light"] .portal-overlay {
  background: rgba(255, 255, 255, 0.88);
}
[data-theme="light"] .portal-overlay-content p {
  color: #1a1a2e;
}
