/* ==========================================================================
   TAMAYO CO. — BRAND DESIGN SYSTEM & POLISHED STYLES
   - Color Palette: #73ab43 (Tamayo Olive-Green), #262826 (Slate), White (#FFFFFF)
   - Typography: Outfit (Primary Headline) + Plus Jakarta Sans (Reading)
   - Organic curved radii: 16px - 24px (Pebble Isotype)
   - Scroll-driven subtle reveal animations
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --tamayo-green: #73ab43;
  --tamayo-green-hover: #639538;
  --tamayo-green-dark: #527e2d;
  --tamayo-green-light: #eef6e9;
  --tamayo-green-subtle: #f5faf1;
  --tamayo-slate: #262826;
  --tamayo-slate-light: #3a3d3a;

  /* Neutrals */
  --bg-main: #ffffff;
  --bg-subtle: #f7f9f6;
  --bg-card: #ffffff;
  --border-subtle: #e6eae4;
  --border-focus: #73ab43;

  /* Text Colors */
  --text-main: #262826;
  --text-secondary: #585d58;
  --text-muted: #838a83;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Geometry matching Pebble Isotype */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Subtle Shadows */
  --shadow-subtle: 0 4px 20px rgba(38, 40, 38, 0.05);
  --shadow-card: 0 8px 30px rgba(38, 40, 38, 0.07);
  --shadow-hover: 0 14px 40px rgba(38, 40, 38, 0.12);

  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 125px; /* Offset for desktop double-decker header */
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

/* Custom Scrollbars (Webkit / Chrome / Safari / Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--tamayo-green);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* ==========================================================================
   SUBTLE SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   STICKY DOUBLE-DECKER HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0 2px 16px rgba(38, 40, 38, 0.05);
}

/* Main Deck: Logo on Left, Action buttons on Right (Uncompressed!) */
.header-main-deck {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Sub-Deck: Clean Section Anchor Navigation Bar */
.header-sub-deck {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 5;
}

/* Mobile Scale Tab (Slides smoothly from underneath the nav-bar, no empty bar visible when idle) */
.header-mobile-scale-bar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1; /* Sits underneath .header-main-deck (z-index: 10) */
  justify-content: center;
}

@media (max-width: 767px) {
  .header-mobile-scale-bar {
    display: flex;
  }
}

.mobile-scale-tab-container {
  position: relative;
  width: auto;
  min-width: 260px;
  max-width: calc(100% - 2.5rem);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
  pointer-events: none;
  will-change: transform, opacity;
}

.header-mobile-scale-bar.is-visible .mobile-scale-tab-container {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-scale-green-tab {
  width: 100%;
  background-color: var(--tamayo-green);
  color: #ffffff;
  border: none;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  padding: 0.6rem 1.4rem 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(115, 171, 67, 0.38), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background-color var(--transition), transform 0.2s ease;
}

.mobile-scale-green-tab:hover {
  background-color: var(--tamayo-green-hover);
}

.mobile-scale-green-tab:active {
  transform: translateY(1px);
}

.msb-tab-title {
  letter-spacing: -0.01em;
}

.msb-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-scale-green-tab[aria-expanded="true"] .msb-chevron {
  transform: rotate(180deg);
}

.msb-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  z-index: 110;
  overflow: hidden;
}

.msb-menu.is-open {
  display: flex;
}

.msb-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition);
}

.msb-item:last-child {
  border-bottom: none;
}

.msb-item:hover, .msb-item.active {
  background-color: var(--tamayo-green-light);
}

.msb-item strong {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--tamayo-slate);
}

.msb-item.active strong {
  color: var(--tamayo-green);
}

.msb-item small {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.header-sub-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-sub-inner::-webkit-scrollbar {
  display: none;
}

.sub-nav-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.sub-nav-item:hover {
  color: var(--tamayo-green);
}

/* Hamburger button: hidden on desktop by default */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.hamburger-btn:hover {
  background-color: var(--bg-subtle);
}

.hamburger-bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--tamayo-slate);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  display: none;
  max-height: 0;
  overflow: hidden;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.is-open {
  max-height: 400px;
}

.mobile-drawer-content {
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tamayo-slate);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--tamayo-green);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background-color: var(--tamayo-green);
  color: #ffffff;
  border-color: var(--tamayo-green);
}

.btn-primary:hover {
  background-color: var(--tamayo-green-hover);
  border-color: var(--tamayo-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(115, 171, 67, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--tamayo-slate);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--tamayo-green);
  color: var(--tamayo-green);
  background-color: var(--tamayo-green-subtle);
}

.btn-whatsapp {
  background-color: transparent;
  color: #25d366;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border-color: #25d366;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-inline-icon {
  flex-shrink: 0;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
}

.btn-match-size {
  min-width: 230px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background-color: var(--bg-main);
}

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

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1.15fr 1fr;
  }
}

.hero-title-main {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--tamayo-slate);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title-main {
    font-size: 3rem;
  }
}

.hero-subtitle-pyme {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--tamayo-green);
  line-height: 1.35;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .hero-subtitle-pyme {
    font-size: 1.65rem;
  }
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--bg-subtle);
}

.hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   FULL-WIDTH LOGO MARQUEE (100% SCREEN WIDTH)
   ========================================================================== */
.clients-banner-fullwidth {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-subtle);
  overflow: hidden;
}

.marquee-track-full {
  display: inline-flex;
  gap: 3.5rem;
  align-items: center;
  animation: logo-scroll 55s linear infinite;
  white-space: nowrap;
}

.clients-banner-fullwidth:hover .marquee-track-full {
  animation-play-state: paused;
}

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

.client-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  flex-shrink: 0;
}

.client-logo-item img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all var(--transition);
}

.client-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}

.section-heading {
  margin-bottom: 3.5rem;
}

.section-heading.text-center {
  text-align: center;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tamayo-green);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.35rem;
  }
}

@media (min-width: 1100px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   PROBLEM SECTION (3 CARDS)
   ========================================================================== */
.problem-section {
  background-color: var(--bg-main);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.problem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(115, 171, 67, 0.4);
  box-shadow: var(--shadow-card);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--tamayo-green-light);
  color: var(--tamayo-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.problem-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.85rem;
}

.problem-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.unified-process-section {
  background-color: var(--bg-subtle);
  padding-top: 5rem;
  padding-bottom: 3.5rem;
}

.scale-selector-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.scale-tabs {
  display: grid;
  grid-template-columns: 1fr;
  background-color: #ffffff;
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  gap: 0.35rem;
  width: 100%;
  max-width: 740px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 680px) {
  .scale-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scale-tab {
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}

.scale-tab.active {
  background-color: var(--tamayo-green);
  box-shadow: 0 4px 15px rgba(115, 171, 67, 0.25);
}

.st-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tamayo-slate);
}

.scale-tab.active .st-name {
  color: #ffffff;
}

.st-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.scale-tab.active .st-sub {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   STICKY SCALE DROPDOWN BAR
   ========================================================================== */
.scale-sticky-bar {
  display: none;
  position: fixed;
  top: 125px; /* Sits right below the desktop double-decker header */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.scale-sticky-bar.is-sticky {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sticky-bar-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  white-space: nowrap;
}

.scale-dropdown-wrapper {
  position: relative;
}

.scale-dropdown-trigger {
  background-color: var(--tamayo-green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(115, 171, 67, 0.25);
  transition: background-color var(--transition);
}

.scale-dropdown-trigger:hover {
  background-color: var(--tamayo-green-hover);
}

.sdt-chevron {
  transition: transform 0.25s ease;
}

.scale-dropdown-trigger[aria-expanded="true"] .sdt-chevron {
  transform: rotate(180deg);
}

.scale-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 100;
}

.scale-dropdown-menu.is-open {
  display: flex;
}

.scale-dropdown-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition);
}

.scale-dropdown-item:last-child {
  border-bottom: none;
}

.scale-dropdown-item:hover {
  background-color: var(--tamayo-green-subtle);
}

.scale-dropdown-item.active {
  background-color: var(--tamayo-green-light);
}

.scale-dropdown-item strong {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--tamayo-slate);
}

.scale-dropdown-item.active strong {
  color: var(--tamayo-green);
}

.scale-dropdown-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.unified-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 960px) {
  .unified-cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.phase-investment-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}

.phase-investment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.featured-phase-card {
  border-color: var(--tamayo-green);
  box-shadow: 0 10px 30px rgba(115, 171, 67, 0.12);
}

/* Perfectly Centered Ribbon with Balanced Padding */
.featured-ribbon-centered {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--tamayo-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.45rem 1.25rem;
  line-height: 1.2;
  text-align: center;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(115, 171, 67, 0.3);
  white-space: nowrap;
}

.pic-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pic-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--tamayo-green);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accent-num {
  background-color: var(--tamayo-green);
  color: #ffffff;
  border-color: var(--tamayo-green);
}

.pic-phase-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
}

.accent-name {
  color: var(--tamayo-green);
}

.pic-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tamayo-slate);
}

.pic-scope-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.pic-deliverables {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
}

.pic-deliverables h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--tamayo-green);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pic-deliverables ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pic-deliverables li {
  font-size: 0.875rem;
  color: var(--text-main);
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.4;
}

.pic-deliverables li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--tamayo-green);
  font-weight: bold;
}

.pic-investment-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  margin-top: auto;
}

.featured-phase-card .pic-investment-box {
  background-color: var(--tamayo-green-subtle);
  border-color: rgba(115, 171, 67, 0.3);
}

.pib-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.pib-row-price {
  align-items: center;
}

.pib-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 50%;
  line-height: 1.25;
}

.pib-val {
  font-size: 0.9375rem;
  color: var(--tamayo-slate);
}

/* 1-Line Price Container with Smaller MXN* text */
.pib-single-line-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.pib-price-num {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--tamayo-slate);
  line-height: 1;
}

.pib-price-currency {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pib-ideal {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

.pib-ideal span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tamayo-green);
  display: block;
}

.pib-ideal p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 0.15rem;
}

.unified-legal-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   CASES SECTION (DARK TONE MATCHING ¿COMENZAMOS? FOR A SOPHISTICATED LOOK)
   ========================================================================== */
.cases-section-dark {
  background-color: #171817;
  color: #ffffff;
  padding: 6rem 0;
}

.cases-heading-white {
  margin-bottom: 3.5rem;
}

.cases-tag-contrast {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tamayo-green);
  margin-bottom: 0.75rem;
  text-align: center;
}

.text-white {
  color: #ffffff !important;
}

.text-white-subtle {
  color: rgba(255, 255, 255, 0.9) !important;
}

.cases-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .cases-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-box {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.case-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.case-img-holder {
  position: relative;
  height: 210px;
}

.case-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-chip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--tamayo-green);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.case-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-client-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.case-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  min-height: 3.4rem;
}

.case-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  min-height: 5.6rem;
}

/* Case Details Expandable (Leer más) */
.case-details-expandable {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.case-details-expandable.is-expanded {
  max-height: 800px;
  opacity: 1;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.case-detail-block {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.case-detail-block strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-detail-block p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.case-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-results-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  color: var(--tamayo-slate);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.case-results-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--tamayo-green);
  font-size: 0.75rem;
  font-weight: 700;
}

.case-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-case-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--tamayo-green);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.btn-case-toggle:hover {
  color: var(--tamayo-green-hover);
}

.btn-case-toggle .chevron-icon {
  transition: transform 0.3s ease;
}

.btn-case-toggle.is-expanded .chevron-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   SERVICES & PORTFOLIO GRID: EXACT 5 CATEGORIES (ROW 1: 2, ROW 2: 3)
   ========================================================================== */
.services-section {
  background-color: var(--bg-main);
}

/* Row 1: Exactly 2 cards */
.portfolio-grid-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .portfolio-grid-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Row 2: Exactly 3 cards */
.portfolio-grid-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .portfolio-grid-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(115, 171, 67, 0.4);
  box-shadow: var(--shadow-card);
}

.portfolio-image-wrap {
  height: 220px;
  overflow: hidden;
  background-color: #e6eae4;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.portfolio-card-footer {
  margin-top: auto;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   PORTFOLIO WORKS GALLERY (COLLAPSIBLE SHOWCASE CON FILTROS)
   ========================================================================== */
.works-gallery-section {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.works-gallery-teaser {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  margin-bottom: 1rem;
}

@media (min-width: 800px) {
  .works-gallery-teaser {
    flex-direction: row;
    text-align: left;
  }
}

.wgt-content {
  max-width: 650px;
}

#btn-toggle-gallery {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

#btn-toggle-gallery .chevron-icon {
  transition: transform 0.35s ease;
}

#btn-toggle-gallery.is-open .chevron-icon {
  transform: rotate(180deg);
}

.gallery-expandable-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  pointer-events: none;
}

.gallery-expandable-wrapper.is-open {
  max-height: 3500px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 2.5rem;
}

.works-gallery-header {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 2.5rem;
  width: 100%;
}

.works-gallery-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.65rem;
}

.works-gallery-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.gallery-filter-btn {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--tamayo-slate);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

@media (min-width: 768px) {
  .gallery-filter-bar {
    flex-wrap: nowrap;
    gap: 0.6rem;
  }
}

.gallery-filter-btn:hover {
  background-color: #ffffff;
  border-color: var(--tamayo-green);
  color: var(--tamayo-green);
}

.gallery-filter-btn.active {
  background-color: var(--tamayo-green);
  border-color: var(--tamayo-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(115, 171, 67, 0.28);
}

.works-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Orden exacto para el filtro General */
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="1"] { order: 1; }
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="2"] { order: 2; }
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="3"] { order: 3; }
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="4"] { order: 4; }
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="5"] { order: 5; }
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="6"] { order: 6; }
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="7"] { order: 7; }
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="8"] { order: 8; }
.works-gallery-grid[data-active-filter="general"] .work-item[data-general-order="9"] { order: 9; }

@media (min-width: 640px) {
  .works-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .works-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-item.is-hidden {
  display: none;
}

.work-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #262826;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-subtle);
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 24, 23, 0.1) 0%, rgba(23, 24, 23, 0.92) 100%);
  color: #ffffff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.work-thumb:hover .work-img {
  transform: scale(1.08);
}

.work-thumb:hover .work-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Touch friendly on mobile: slight persistent bottom gradient */
@media (max-width: 767px) {
  .work-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(180deg, transparent 40%, rgba(23, 24, 23, 0.9) 100%);
  }
}

.work-category {
  display: none;
}

.work-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.work-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  margin: 0;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--tamayo-green);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  width: fit-content;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.work-link:hover {
  background-color: var(--tamayo-green-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(115, 171, 67, 0.4);
}

.work-link svg {
  transition: transform var(--transition);
}

.work-link:hover svg {
  transform: translate(2px, -2px);
}

.work-link-video:hover svg {
  transform: scale(1.15);
}

/* ==========================================================================
   VIDEO LIGHTBOX MODAL
   ========================================================================== */
.video-lightbox-overlay {
  background: rgba(10, 12, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
}

.video-lightbox-container {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: #171817;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-lightbox-close:hover {
  background: var(--tamayo-green);
  border-color: var(--tamayo-green);
  color: #ffffff;
}

.video-lightbox-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000000;
  overflow: hidden;
}

.video-lightbox-player iframe {
  position: absolute;
  top: -7%;
  left: -2%;
  width: 104%;
  height: 114%;
  border: none;
}

.video-lightbox-caption {
  padding: 0.9rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: #1c1e1c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Agency CTA Banner */
.agency-cta-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #262826 0%, #171817 100%);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 850px) {
  .agency-cta-banner {
    flex-direction: row;
    text-align: left;
  }
}

.acb-content h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.acb-content p {
  font-size: 0.95rem;
  color: #d1d5db;
  max-width: 580px;
  line-height: 1.55;
}

.acb-actions {
  flex-shrink: 0;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  background-color: var(--bg-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.about-feature {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.about-f-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--tamayo-green-light);
  color: var(--tamayo-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.35rem;
}

.about-feature p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-card-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.about-photo-wrapper {
  position: relative;
  background-color: #f3f5f3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  height: 380px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-badge-role {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--tamayo-slate);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-story-container {
  padding: 2rem;
}

.about-story-header {
  margin-bottom: 1rem;
}

.founder-salute {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--tamayo-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.founder-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  line-height: 1.35;
}

.about-story-lead {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.about-story-expandable {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-story-expandable.is-expanded {
  max-height: 350px;
  opacity: 1;
  margin-bottom: 1.25rem;
}

.about-story-expandable p {
  margin-bottom: 0.85rem;
}

.about-story-expandable strong {
  color: var(--tamayo-slate);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--tamayo-green);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0;
  transition: color var(--transition);
}

.btn-read-more:hover {
  color: var(--tamayo-green-hover);
}

.btn-read-more .chevron-icon {
  transition: transform 0.3s ease;
}

.btn-read-more.is-expanded .chevron-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   FINAL CTA: ENTIRE SECTION DARK BACKGROUND
   ========================================================================== */
.final-dark-section {
  background-color: #171817;
  color: #ffffff;
  padding: 6.5rem 0;
}

.dark-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.dark-cta-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tamayo-green);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}

.dark-cta-headline {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .dark-cta-headline {
    font-size: 3rem;
  }
}

.dark-cta-text {
  font-size: 1.15rem;
  color: #d1d5db;
  line-height: 1.65;
  margin-bottom: 2.75rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.dark-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 0.5fr 1.6fr 1.4fr;
    gap: 2.5rem;
  }
}

.footer-logo {
  height: 40px;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-col h4, .footer-contact-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 1.25rem;
  white-space: nowrap;
}

.footer-links-col li a {
  white-space: nowrap;
}

.footer-links-col ul, .footer-contact-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a, .footer-contact-col li {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links-col a:hover, .footer-contact-col a:hover {
  color: var(--tamayo-green);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  color: var(--tamayo-slate);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.social-icon-btn svg {
  display: block;
  transition: transform var(--transition), color var(--transition);
}

.social-icon-btn:hover {
  background-color: var(--tamayo-green);
  color: #ffffff !important;
  border-color: var(--tamayo-green);
  transform: translateY(-2px);
}

.social-icon-btn:hover svg {
  color: #ffffff !important;
}

.social-icon-btn:hover svg[fill="none"] {
  stroke: #ffffff !important;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(38, 40, 38, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.75rem 2.25rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}

.modal-card::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background-color: var(--tamayo-green);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--tamayo-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--transition);
}

.modal-close svg {
  display: block;
  pointer-events: none;
}

.modal-close:hover {
  background-color: #171817; /* Dark tone matching ¿Comenzamos? */
  color: #ffffff;
  border-color: #171817;
  transform: scale(1.05);
}

.modal-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tamayo-green);
  margin-bottom: 0.5rem;
}

.modal-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 2rem;
}

.modal-progress-fill {
  height: 100%;
  background-color: var(--tamayo-green);
  transition: width 0.3s ease;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.quiz-q-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-opt-btn {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: all var(--transition);
}

.quiz-opt-btn:hover {
  border-color: var(--tamayo-green);
  background-color: var(--tamayo-green-subtle);
  transform: translateX(4px);
}

.quiz-opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--tamayo-green);
  flex-shrink: 0;
}

.quiz-opt-text {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.45;
}

/* Form controls */
.form-field {
  margin-bottom: 1.25rem;
}

.form-columns {
  display: flex;
  gap: 1rem;
}

.form-columns .form-field {
  flex: 1;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tamayo-slate);
  margin-bottom: 0.4rem;
}

.input-control, .select-control, .textarea-control {
  width: 100%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--tamayo-slate);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.select-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2373ab43' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.select-control option {
  background-color: #ffffff;
  color: var(--tamayo-slate);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.65rem 0.85rem;
}

.input-control:focus, .select-control:focus, .textarea-control:focus {
  outline: none;
  border-color: var(--tamayo-green);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(115, 171, 67, 0.15);
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  display: block;
  margin-top: 0.85rem;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 70px; /* Offset for single-deck mobile header */
  }

  /* Header Mobile */
  .header-main-inner {
    height: 64px;
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .logo-img {
    height: 38px;
  }

  .header-cta-wrap {
    gap: 0.5rem;
  }

  .header-cta-wrap .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }

  #btn-quiz-nav {
    display: none; /* Keep clean on small mobile, book button stays prominent */
  }

  /* Ocultar botón 'Ir al Sitio Principal' en páginas secundarias en móvil para que no empuje WhatsApp */
  .subpage-header-home-btn,
  .header-btn-home {
    display: none !important;
  }

  /* Hide bottom sub-deck on mobile — replaced with standard mobile menu */
  .header-sub-deck {
    display: none !important;
  }

  /* Show Hamburger Button on mobile */
  .hamburger-btn {
    display: inline-flex;
  }

  .mobile-nav-drawer {
    display: block;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-title-main {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .hero-subtitle-pyme {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-img {
    height: 280px;
  }

  /* Marquee Mobile */
  .clients-banner-fullwidth {
    padding: 1.75rem 0;
  }

  .client-logo-item img {
    height: 36px;
    max-width: 110px;
  }

  /* Unified Process & Investment Mobile */
  .unified-process-section {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  /* Hide desktop floating pill on mobile in favor of the attached nav sub-bar */
  .scale-sticky-bar {
    display: none !important;
  }

  .scale-dropdown-wrapper {
    width: 100%;
  }

  .scale-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
  }

  .scale-dropdown-menu {
    left: 0;
    right: 0;
    min-width: unset;
    width: 100%;
  }

  .scale-tabs {
    border-radius: var(--radius-md);
  }

  .scale-tab {
    padding: 0.65rem 0.75rem;
  }

  .phase-investment-card {
    padding: 1.75rem 1.25rem;
  }

  .pic-title {
    font-size: 1.2rem;
  }

  .pib-row-price {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .pib-label {
    max-width: 100%;
  }

  /* Cases Section Mobile */
  .cases-section-dark {
    padding: 4rem 0;
  }

  .case-img-holder {
    height: 180px;
  }

  .case-info {
    padding: 1.25rem;
  }

  .case-heading {
    font-size: 1.1rem;
  }

  /* Services Mobile */
  .portfolio-body {
    padding: 1.25rem;
  }

  .portfolio-name {
    font-size: 1.15rem;
  }

  /* About Section Mobile */
  .about-photo-wrapper {
    height: 300px;
  }

  .about-story-container {
    padding: 1.5rem 1.25rem;
  }

  /* Dark CTA Mobile */
  .final-dark-section {
    padding: 4.5rem 0;
  }

  .dark-cta-headline {
    font-size: 1.85rem;
  }

  .dark-cta-text {
    font-size: 1rem;
  }

  .dark-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-match-size {
    width: 100%;
    min-width: unset;
  }

  /* Modals Mobile */
  .modal-overlay {
    padding: 0.75rem;
    align-items: center;
  }

  .modal-card {
    padding: 2.25rem 1.25rem 1.75rem;
    max-height: 90vh;
    border-radius: var(--radius-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  .quiz-q-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }

  .quiz-opt-btn {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .quiz-opt-text {
    font-size: 0.875rem;
  }

  .form-columns {
    flex-direction: column;
    gap: 0;
  }
}

/* ==========================================================================
   ANTI-SPAM: CLOUDFLARE TURNSTILE & HONEYPOT
   ========================================================================== */
.hp-check-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.turnstile-container {
  margin: 1rem 0 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 65px;
}

/* ==========================================================================
   LEGAL PAGES (AVISO DE PRIVACIDAD & TÉRMINOS)
   ========================================================================== */
.legal-page-header {
  background-color: #171817;
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.social-header-inner {
  width: 100%;
}

.legal-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tamayo-green);
  margin-bottom: 0.75rem;
}

.legal-page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.legal-body-section {
  padding: 4.5rem 0 6rem;
  background-color: var(--bg-main);
}

.legal-content-card {
  max-width: 860px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
  .legal-content-card {
    padding: 3.5rem 4rem;
  }
}

.legal-content-card h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-subtle);
}

.legal-content-card h2:first-of-type {
  margin-top: 0;
}

.legal-content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tamayo-slate);
  margin: 1.5rem 0 0.5rem;
}

.legal-content-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.legal-content-card ul, .legal-content-card ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-content-card li {
  margin-bottom: 0.5rem;
}

.legal-content-card strong {
  color: var(--tamayo-slate);
  font-weight: 600;
}

.legal-highlight-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.legal-highlight-box p {
  margin-bottom: 0;
  color: var(--tamayo-slate);
  font-size: 0.95rem;
}

.legal-back-nav {
  margin-bottom: 2rem;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tamayo-green);
  transition: all var(--transition);
}

.legal-back-link:hover {
  color: var(--tamayo-green-hover);
  transform: translateX(-3px);
}

/* ==========================================================================
   PLANES DE PUBLICIDAD Y REDES SOCIALES
   ========================================================================== */
.social-packages-section {
  background-color: var(--bg-main);
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.social-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .social-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.social-pricing-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.social-pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(115, 171, 67, 0.4);
}

.social-pricing-card.featured {
  border: 2px solid var(--tamayo-green);
  box-shadow: 0 12px 32px rgba(115, 171, 67, 0.15);
  background: linear-gradient(180deg, #ffffff 0%, #fafdf8 100%);
}

.spc-popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--tamayo-green);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(115, 171, 67, 0.3);
}

.spc-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tamayo-green);
  background: var(--bg-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.spc-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--tamayo-slate);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.spc-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 2.7rem;
  margin-bottom: 1.5rem;
}

.spc-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.75rem;
}

.spc-currency {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tamayo-slate);
}

.spc-amount {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--tamayo-slate);
  letter-spacing: -0.02em;
}

.spc-period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 0.35rem;
}

.spc-feature-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tamayo-slate);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.spc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.spc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.spc-list li strong {
  color: var(--tamayo-slate);
}

.spc-list .check-icon {
  color: var(--tamayo-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.spc-cta {
  margin-top: 2rem;
}

/* Términos y Notas Aclaratorias */
.social-packages-terms-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.spt-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.spt-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--tamayo-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spt-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.25rem;
}

.spt-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.spt-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.spt-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--tamayo-slate);
  margin-bottom: 0.5rem;
}

.spt-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   MODAL SELECTOR DE ÁREA (CHOICE-MODAL)
   ========================================================================== */
.modal-choice-card {
  max-width: 680px;
  padding: 3rem 2.25rem 2.25rem;
}

.choice-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 620px) {
  .choice-options-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.choice-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  text-align: left;
}

.choice-card:hover {
  background: #ffffff;
  border-color: var(--tamayo-green);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(115, 171, 67, 0.12);
}

.choice-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--tamayo-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.choice-card:hover .choice-card-icon {
  background-color: var(--tamayo-green);
  color: #ffffff;
  border-color: var(--tamayo-green);
}

.choice-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tamayo-green);
  margin-bottom: 0.4rem;
}

.choice-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.choice-card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.choice-card-action {
  margin-top: auto;
}

.choice-modal-footer {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.choice-modal-footer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.choice-modal-footer a {
  color: var(--tamayo-green);
  font-weight: 700;
  transition: color var(--transition);
}

.choice-modal-footer a:hover {
  color: var(--tamayo-green-hover);
  text-decoration: underline;
}

/* Footer link button reset for JS handlers */
.footer-links-col a[href^="javascript:"] {
  cursor: pointer;
}

/* ==========================================================================
   COOKIE CONSENT BANNER & PREFERENCES MODAL
   ========================================================================== */
.cookie-banner-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 1rem 1.25rem 1.5rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner-wrap.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-card {
  max-width: 1040px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .cookie-banner-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.cookie-banner-content {
  flex: 1;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--tamayo-green);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-cookie-decline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cookie-decline:hover {
  background: var(--bg-subtle);
  color: var(--tamayo-slate);
  border-color: #cbd5e1;
}

.btn-cookie-config {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cookie-config:hover {
  background: var(--bg-subtle);
  color: var(--tamayo-green);
  border-color: var(--tamayo-green);
}

.btn-cookie-accept {
  padding: 0.55rem 1.35rem;
  font-size: 0.8125rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .cookie-banner-wrap {
    padding: 0.75rem 0.85rem 1rem;
  }

  .cookie-banner-card {
    padding: 1.25rem 1.15rem;
    gap: 1rem;
  }

  .cookie-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
  }

  .cookie-banner-actions .btn-cookie-decline,
  .cookie-banner-actions .btn-cookie-config,
  .cookie-banner-actions .btn-cookie-accept {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
  }

  /* Aceptar Todas arriba para conveniencia y claridad visual, o orden estándar */
  .cookie-banner-actions .btn-cookie-accept {
    order: 1;
  }
  .cookie-banner-actions .btn-cookie-decline {
    order: 2;
  }
  .cookie-banner-actions .btn-cookie-config {
    order: 3;
  }
}

/* Modal de Preferencias de Cookies */
.modal-cookie-card {
  max-width: 620px;
  padding: 2.5rem 2rem 2rem;
}

.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
}

.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.cookie-pref-info {
  flex: 1;
}

.cookie-pref-info h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tamayo-slate);
  margin-bottom: 0.25rem;
}

.cookie-pref-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--tamayo-green);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.65;
  cursor: not-allowed;
}

.cookie-pref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}


