:root {
  /* --- Color Palette (Modern & Vibrant) --- */
  --primary: #4f46e5;
  /* Indigo 600 */
  --primary-light: #818cf8;
  /* Indigo 400 */
  --primary-dark: #3730a3;
  /* Indigo 800 */

  --secondary: #ec4899;
  /* Pink 500 */
  --accent: #06b6d4;
  /* Cyan 500 */

  --bg: #f8fafc;
  /* Slate 50 */
  --bg-subtle: #f1f5f9;
  /* Slate 100 */

  --ink: #0f172a;
  /* Slate 900 */
  --ink-soft: #475569;
  /* Slate 600 */
  --ink-light: #94a3b8;
  /* Slate 400 */

  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(255, 255, 255, 0.8);

  /* --- Typography --- */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- Metrics --- */
  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 8px;

  /* --- Effects --- */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --glass: blur(12px);
}

/* === RESET & BASE === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

p {
  margin: 0 0 1rem 0;
}

.frase {
  text-align: center;
}


a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* === UTILITIES === */
.container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.u-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-flex {
  display: flex;
}

.u-gap-s {
  gap: 0.5rem;
}

.u-mt {
  margin-top: 1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 99px;
  /* Pill shape */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Primary Button with Gradient */
.btn:not(.secondary) {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn:not(.secondary):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

/* Secondary Button */
.btn.secondary {
  background-color: white;
  color: var(--ink);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-row .btn {
  flex: 1;
  /* This forces equal width in the same row */
  min-width: 260px;
  /* Minimum width to prevent looking tiny */
  max-width: 400px;
  width: 100%;
  /* Ensures they fill the container when stacked */
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 600px) {
  .cta-row .btn {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* === HEADER & NAV === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.nav-links a strong {
  color: var(--primary);
  font-weight: 600;
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* Mobile Nav */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    /* Hide standard nav on mobile */
  }

  .menu-btn {
    display: block;
  }
}

/* === HERO SECTION (Premium Redesign) === */
.hero {
  position: relative;
  padding: 3.5rem 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.18) 0%, transparent 60%);
  overflow: visible;
}

/* Background blob effects */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
}

.hero-copy {
  max-width: 600px;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--ink), var(--ink-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: left;

}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-weight: 400;
  text-align: justify;

}

.cta-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .cta-row {
    justify-content: center;
  }
}

.hero-metrics {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
  .hero-metrics {
    justify-content: center;
    text-align: left;
  }
}

.hero-metric-block {
  display: flex;
  flex-direction: column;
}

.hero-metric-main {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.hero-metric-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 200px;
  line-height: 1.4;
  margin: 0;
}

/* Elegant Hero Image */
.hero-device {
  position: relative;
  z-index: 10;
}

.hero-device img {
  border-radius: 24px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  /* Subtle border */
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  background: white;
  /* Fallback for transparency */
}

@media (min-width: 901px) {
  .hero-device:hover img {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(-10px);
  }
}



.section.alt {
  background-color: white;
  border-top: 1px solid var(--bg-subtle);
  border-bottom: 1px solid var(--bg-subtle);
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  letter-spacing: -0.02em;
}

.section-text {
  text-align: justify;
  max-width: 650px;
  margin: 0 auto 3rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* === GLASS CARDS === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}

.card h3 {
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* === FOOTER (Modern Dark) === */
/* === FOOTER (Modern Dark - 4 Columns) === */
.site-footer {
  background-color: #0f172a;
  /* Dark slate */
  color: #94a3b8;
  /* Light slate text */
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex !important;
  flex-direction: column;
  gap: 3rem;
}

/* Footer Top: 4 Columns */
.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  /* Brand: Full width, centered */
  .footer-col:nth-child(1) {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-desc {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Nav (2) & Contact (3) - Explicitly allow them to share the row */
  .footer-col:nth-child(2) {
    grid-column: 1 / 2;
    align-items: flex-start;
    text-align: left;
  }

  .footer-col:nth-child(3) {
    grid-column: 2 / 3;
    align-items: flex-start;
    text-align: left;
  }

  /* Social: Bottom, Full Width */
  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  /* Reset headings for mobile if needed */
  .footer-heading {
    text-align: center;
  }

  .footer-col:nth-child(2) .footer-heading,
  .footer-col:nth-child(3) .footer-heading {
    text-align: left;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Column 1: Brand */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: white;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-desc {
  line-height: 1.5;
  color: #94a3b8;
  max-width: 280px;
}

/* Headings */
.footer-heading {
  color: white;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Links List */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: white;
  transform: translateX(2px);
  display: inline-block;
}

/* Contact Items */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.footer-contact-item i {
  color: var(--secondary);
  /* Pink accent */
  width: 20px;
  text-align: center;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.2s;
}

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

/* Footer Bottom: Copyright & Legal */
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: #64748b;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #cbd5e1;
}

/* === FORMS === */
.form-pro {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-pro input,
.form-pro textarea,
.form-pro select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-pro input:focus,
.form-pro textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-pro label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 2rem;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: white;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar .menu-list a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
}

.sidebar .menu-list a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Print Styles */
@media print {

  .site-header,
  .site-footer,
  .btn,
  .overlay {
    display: none;
  }
}

/* Hide hero image on mobile */
@media (max-width: 900px) {
  .hero-device {
    display: none !important;
  }
}

/* Helper for logo in sidebar */
.logo-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-family: var(--font-head);
  margin-bottom: 2rem;
}

.logo-side img {
  width: 32px;
}

/* Imágenes protegidas por defecto */
main img,
.protected-media {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* === PWA: INSTALACIÓN Y OFFLINE === */
#pwaBanner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(100%);
  background: var(--card);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  padding: .8rem 1rem;
  z-index: 3000;
  max-width: 96%;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
}

#pwaBanner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#pwaBanner .row {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
}

#pwaBanner .btn.secondary {
  background: #f3f4f6;
  color: #111;
}

/* Mensaje sin conexión */
.offline-card {
  max-width: 600px;
  margin: 10vh auto;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  text-align: center;
}

.offline-card h1 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.offline-card p {
  margin: .4rem 0;
  line-height: 1.5;
}

.offline-card a {
  color: #0b57d0;
}

/* User provided form styles */
.frmtx {
  --font-size: 100%;
  --font-family: inherit;
  --font-color: inherit;
  --background-color: #FFF;
  --border-color: #AAA;
  --border-width: 1px;
  --border-radius: 5px;
  margin: 1rem;
  min-width: 240px
}

.frmtx * {
  color: var(--font-color);
  font-family: var(--font-family);
  font-size: var(--font-size);
  margin: 0;
  padding: 0;
  appearance: auto;
  outline: none;
  box-sizing: border-box
}

.frmtx label {
  padding: 0;
  margin: 1em 0 .3em;
  display: block;
  line-height: 1.3
}

.frmtx label:first-child {
  margin-top: 0
}

.frmtx input,
.frmtx textarea,
.frmtx button {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color)
}

.frmtx input,
.frmtx textarea {
  width: 100%;
  resize: none;
  padding: .5em;
  line-height: 1.3
}

.frmtx input[name="_gotcha"] {
  display: none
}

.frmtx input[type="checkbox"] {
  display: inline;
  width: 1.1em;
  height: 1.1em;
  appearance: auto;
  margin-right: .2em
}

.frmtx button {
  display: block;
  padding: .5em 1.5em;
  margin: 1.5em 0 0;
  line-height: 1.5;
  font-weight: bold;
  cursor: pointer
}

/* Responsive buttons for News section cards */
@media (max-width: 768px) {
  .card .btn {
    width: 100%;
    margin-top: 1rem;
    display: flex;
  }
}




/* Contenedor del Newsletter */
.newsletter-embed {
  width: 100%;
  display: flex;
  justify-content: center;
}

.beehiiv-embed {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 400px;
  border-radius: 12px;
  transition: height 0.3s ease;
  text-align: justify;
}

@media (max-width: 480px) {
  .beehiiv-embed {
    min-height: 450px;
    text-align: justify;
  }
}

/* === NEWSLETTER CARD === */
.newsletter-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-card h2,
.newsletter-card p,
.newsletter-card label {
  color: white;
  position: relative;
  z-index: 2;
}

.newsletter-card .form-pro {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  box-shadow: none;
  max-width: 500px;
  margin: 2rem auto 0;
}

.newsletter-card input[type="email"] {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 1rem;
  color: var(--ink);
}

.newsletter-card .btn {
  background: white !important;
  color: var(--primary) !important;
  font-weight: 700;
  width: 100%;
  margin-top: 1rem;
}

.newsletter-card .btn:hover {
  background: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-card a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter-card a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Social Media Section ('Síguenos') */
.social-connect {
  text-align: center;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.social-title {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  position: relative;
}


.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--ink);
  color: white;
  border-radius: 50%;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.social-icon:hover {
  transform: translateY(-3px);
  background-color: var(--primary);
  box-shadow: var(--shadow);
}

.social-icon i {
  font-size: 22px;
}

/* Horizontal Snap Scroll for News Cards on Mobile */
@media (max-width: 768px) {
  .grid.grid-cols-3 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 2rem;
    /* Space for scrollbar/shadow */
    /* Margin negative to touch edges */
    margin: 0 -1.5rem;

    /* Robust Centering using Viewport Units */
    /* Ensures the card (280px) is always in the middle of the screen */
    padding-left: max(1.5rem, calc(50vw - 140px));
    padding-right: max(1.5rem, calc(50vw - 140px));

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Removed overscroll-behavior to avoid potential gesture conflicts */

    /* Ensure native touch response */
    scroll-behavior: auto;
  }

  .grid.grid-cols-3::-webkit-scrollbar {
    display: none;
  }

  .grid.grid-cols-3 .card,
  .grid.grid-cols-3 .app-card {
    min-width: 280px;
    width: 280px;
    height: auto;
    flex-shrink: 0;

    /* STRICT SNAPPING to fix "skipping 2 cards" */
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Disable hover effects on mobile to prevent "jumps" during touch scrolling */
  .grid.grid-cols-3 .card:hover,
  .grid.grid-cols-3 .app-card:hover,
  .grid.grid-cols-3 .card:active,
  .grid.grid-cols-3 .app-card:active,
  .grid.grid-cols-3 .card:focus,
  .grid.grid-cols-3 .app-card:focus {
    transform: none;
    box-shadow: var(--shadow);
    /* Keep original shadow, don't lift */
    border-color: rgba(0, 0, 0, 0.06);
    /* Keep original border */
  }
}

/* Infinite Scroll Logic (Ticker Animation) */
.scroller {
  max-width: 100%;
  overflow: hidden;
  /* Hide scrollbar completely */
  -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
  mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
}

.scroller-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem !important;
  width: max-content;
  animation: scroll 40s linear infinite;
  /* Remove grid/scroll-snap styles from previous step */
  overflow-x: visible;
  scroll-snap-type: none;
  padding-bottom: 2rem;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

.scroller-inner:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.75rem));
  }
}


/* === MODERN SIDEBAR REDESIGN === */

/* Sidebar Container */
.sidebar {
  width: 300px;
  /* Slightly wider */
  background: white;
  /* Clean white */
  padding: 2.5rem 1.5rem;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
  /* Softer shadow */
  border-right: 1px solid rgba(0, 0, 0, 0.03);
  /* Subtle border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Push bottom items down */
}

/* Sidebar Logo Area */
.logo-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-left: 0.5rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-side img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  /* Soften logo corners if applicable */
}

/* Menu List */
.menu-list {
  list-style: none;
  /* Remove bullets */
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Space between items */
}

/* Menu Links */
.sidebar .menu-list a {
  display: block;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  /* Modern rounded corners */
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* Hover Effect */
.sidebar .menu-list a:hover,
.sidebar .menu-list a:focus {
  color: var(--primary);
  background-color: var(--bg-subtle);
  transform: translateX(4px);
  /* Subtle slide */
}

/* "Mi Cuenta" - Special Styling */
.sidebar .menu-list li:last-child {
  margin-top: 1.5rem;
  /* Separate from main nav */
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Divider */
}

.sidebar .menu-list li:last-child a {
  color: var(--ink);
  /* Darker text */
  background-color: rgba(79, 70, 229, 0.05);
  /* Very light primary bg */
}

.sidebar .menu-list li:last-child a:hover {
  background-color: var(--primary);
  color: white;
  /* Inverse on hover */
  transform: translateY(-2px);
  /* Lift effect */
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

/* Privacy Link (Bottom) */
/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 1rem 0.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-light);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sidebar-footer a {
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.sidebar-footer span {
  opacity: 0.5;
}

/* === Silktide Cookie Consent Customization === */

/* Custom Colors */
:root {
  --stcm-bg-override: #FFFFFF;
  --stcm-text-override: #4B494B;
  --stcm-primary-override: #533BE2;
}

/* Override Banner & Modal Background */
#stcm-wrapper #stcm-banner,
#stcm-wrapper #stcm-modal {
  background-color: var(--stcm-bg-override) !important;
  color: var(--stcm-text-override) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Override Text Colors */
#stcm-wrapper #stcm-banner p,
#stcm-wrapper #stcm-modal p,
#stcm-wrapper #stcm-modal h1,
#stcm-wrapper #stcm-modal h2,
#stcm-wrapper #stcm-modal label,
#stcm-wrapper .stcm-toggle-off {
  color: var(--stcm-text-override) !important;
}

/* Primary Button Override */
#stcm-wrapper .stcm-button-primary {
  background-color: var(--stcm-primary-override) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
}

#stcm-wrapper .stcm-button-primary:hover {
  background-color: #4330b5 !important;
  /* Slightly darker */
  transform: translateY(-1px);
}

/* Icon Button Override */
#stcm-wrapper #stcm-icon {
  background-color: var(--stcm-primary-override) !important;
  color: #FFFFFF !important;
}

#stcm-wrapper #stcm-icon svg {
  fill: #FFFFFF !important;
}

/* Hide Icon when accepted */
body.cookies-accepted #stcm-wrapper #stcm-icon,
body.cookies-accepted #stcm-icon {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Optimize Newsletter Section for Mobile */
@media (max-width: 768px) {

  /* Reduce excessive padding on the section */
  #newsletter,
  .section#newsletter {
    padding: 2rem 0 !important;
    /* Top/Bottom 2rem, Left/Right 0 to maximize width */
  }

  /* Make sure container doesn't restrict width too much */
  #newsletter .container {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    max-width: 100%;
  }

  /* Justify the descriptive text */
  #newsletter .section-text {
    text-align: justify !important;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
  }

  /* Maximize iframe width */
  .newsletter-embed {
    width: 100%;
    overflow: hidden;
    /* Prevent horizontal scroll */
  }

  .newsletter-embed iframe,
  iframe.beehiiv-embed {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    /* Force height if needed, but auto might work */
  }
}