:root {
  /* Brand Colors TP Road */
  --tp-navy: #0A2240;
  --tp-red: #E63030;
  --tp-red-hover: #C52222;
  
  /* Grays / Lights for Premium Aesthetic */
  --bg-white: #FFFFFF;
  --bg-light: #F4F6F8; /* Super soft gray inspired by XPD */
  --bg-dark: #121A25; /* Very dark navy for footers */
  
  --text-dark: #1C2431;
  --text-muted: #5A6A7E;
  --text-light: #A0B0C4;
  --border-light: #E0E6ED;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* UI Tokens */
  --radius-sm: 4px;
  --radius-md: 8px; /* Sharp, clean edges */
  --radius-lg: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px -5px rgba(10,34,64,0.08); /* Premium subtle shadow */
  --shadow-lg: 0 20px 40px -5px rgba(10,34,64,0.12);
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--tp-navy);
  line-height: 1.2;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

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

.text-navy { color: var(--tp-navy); }
.text-red { color: var(--tp-red); }
.text-white { color: white; }
.text-muted { color: var(--text-muted); }

.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-navy { background-color: var(--tp-navy); }

/* =========================================
   LAYOUT UTILS
   ========================================= */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 100px 0;
}

.text-center { text-align: center; }

/* =========================================
   TYPOGRAPHY HIERARCHY
   ========================================= */
.h-giant {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h-section {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* =========================================
   BUTTONS (Premium Pill / Rect shapes)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--tp-red);
  color: white;
}
.btn-primary:hover {
  background-color: var(--tp-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,48,48,0.3);
}

.btn-navy {
  background-color: var(--tp-navy);
  color: white;
}
.btn-navy:hover {
  background-color: #163660;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,34,64,0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--tp-navy);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--tp-navy);
  background-color: rgba(10,34,64,0.03);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: transform 0.3s ease, height 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  height: 75px;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px; /* wider than the standard .container (1300px) — the nav
                         has more items (dropdowns) than a typical content
                         section and needs the extra room to stay on one line */
}

.logo-img {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--tp-navy);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font-body);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--tp-red);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--tp-navy);
  width: 30px;
  cursor: pointer;
}

/* =========================================
   HERO SECTION (Enterprise Style)
   ========================================= */
.hero-premium {
  padding: 180px 0 100px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(10,34,64,0.03) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-subtitle {
  color: var(--tp-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 40px;
  color: var(--text-muted);
  max-width: 600px;
}

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

/* Trust Stats Bar */
.trust-bar {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-red);
  box-shadow: var(--shadow-sm);
}
.trust-icon svg { width: 24px; height: 24px; }

.trust-text h4 {
  font-size: 1.5rem;
  margin-bottom: 2px;
}
.trust-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* =========================================
   VALUE PROP / CERTEZA
   ========================================= */
.value-prop {
  background-color: var(--tp-navy);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.value-prop h2 {
  color: white;
  max-width: 800px;
  margin: 0 auto 24px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.value-prop p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* =========================================
   SERVICES GRID (Premium Cards)
   ========================================= */
.services-section {
  background-color: var(--bg-white);
}

.services-header {
  margin-bottom: 60px;
  max-width: 600px;
}

.service-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--tp-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--tp-navy);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 24px;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tp-red);
  font-weight: 600;
  font-size: 0.95rem;
}
.service-link svg {
  width: 16px;
  transition: var(--transition-fast);
}
.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* =========================================
   TECH / CONTROL SECTION
   ========================================= */
.tech-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-list {
  list-style: none;
  margin-top: 32px;
}

.tech-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.tech-list li svg {
  color: var(--tp-red);
  flex-shrink: 0;
  margin-top: 4px;
}

.tech-list h4 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.tech-visual {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.dashboard-mockup {
  width: 100%;
  height: 300px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border: 1px solid var(--border-light);
}

/* =========================================
   CULTURE CTA
   ========================================= */
.culture-cta {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================================
   FOOTER (Premium Dark)
   ========================================= */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.footer-desc {
  max-width: 400px;
  font-size: 1rem;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-light);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero-grid, .tech-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-product-photo {
    justify-content: center;
    margin-top: 20px;
  }
  .hero-product-photo img {
    width: 90%;
    max-width: 420px;
    margin-right: 0;
  }
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-product-photo img {
    max-width: 300px;
  }
}

/* Tighten nav spacing on narrower desktop/laptop widths — keeps every item
   on a single line for longer before handing off to the mobile hamburger
   at 768px, instead of the items wrapping and touching the logo. */
@media (max-width: 1400px) {
  .nav-links { gap: 20px; }
  .nav-link { font-size: 0.85rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    clip-path: circle(0% at top right);
    transition: var(--transition-smooth);
  }
  .nav-links.active {
    clip-path: circle(150% at top right);
  }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .trust-bar { flex-direction: column; }
}

/* =========================================
   DARK HERO NAV (inversion.php)
   ========================================= */
body.hero-dark .navbar:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
body.hero-dark .navbar:not(.scrolled) .nav-link {
  color: white;
}
body.hero-dark .navbar:not(.scrolled) .nav-link::after {
  background-color: white;
}
body.hero-dark .navbar.scrolled .nav-link {
  color: var(--tp-navy);
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition-smooth);
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
}

/* =========================================
   COUNT-UP STAT NUMBERS
   ========================================= */
.trust-text h4[data-countup] {
  font-variant-numeric: tabular-nums;
}

/* =========================================
   FORM SPLIT-SCREEN LAYOUT (cotizador.php, contacto.php)
   ========================================= */
.form-split-screen {
  padding: 140px 0 100px;
  min-height: calc(100vh - 400px);
  position: relative;
  overflow: hidden;
}

.form-split-screen.bg-tint {
  background: var(--bg-light);
}

.form-split-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .form-split-grid { grid-template-columns: 1fr; }
}

.form-unit-accent {
  position: relative;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  min-height: 110px;
}

.form-unit-ghost {
  position: absolute;
  left: 0;
  bottom: -8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--border-light);
  letter-spacing: -0.02em;
  z-index: 0;
}

.form-unit-accent img {
  position: relative;
  z-index: 1;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 15px 18px rgba(10, 34, 64, 0.15));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-unit-accent:hover img {
  transform: translateY(-4px) scale(1.03);
}

.form-value-prop {
  position: sticky;
  top: 120px;
}

.form-value-prop h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 24px;
}

.form-value-prop p {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.benefit-list {
  list-style: none;
}

.benefit-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-red);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.benefit-icon svg { width: 24px; height: 24px; }

.benefit-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.benefit-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-card {
  background: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-card.form-card-flush {
  background: transparent;
  padding: 30px 0;
  box-shadow: none;
  border: none;
}

.hs-form iframe {
  width: 100% !important;
  min-height: 500px;
  border: none;
}

/* =========================================
   CONTACT INFO PANEL (contacto.php)
   ========================================= */
.contact-info-premium {
  background: var(--tp-navy);
  color: white;
  padding: 60px 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 120px;
  overflow: hidden;
}

.contact-info-ghost {
  position: absolute;
  top: -0.15em;
  right: 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 7rem;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.02em;
  z-index: 0;
  pointer-events: none;
}

.contact-info-premium h1,
.contact-info-premium p,
.contact-info-premium .contact-item {
  position: relative;
  z-index: 1;
}

.contact-info-premium h1 {
  color: white;
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 20px;
}

.contact-info-premium p {
  color: var(--text-light);
  margin-bottom: 40px;
}

.contact-item {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}

.contact-item h3 {
  color: var(--tp-red);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-item a {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item-divider {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-item-divider a {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 400;
}

/* =========================================
   ABOUT / NOSOTROS
   ========================================= */
.page-header-premium {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.about-story {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-mission-vision {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.about-mission-vision h4 {
  font-size: 2rem;
}

.about-mission-vision p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.values-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.value-card-premium {
  background: white;
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.value-card-premium:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--tp-red);
}

.value-index {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: rgba(10,34,64,0.1);
  font-weight: 800;
  margin-bottom: -15px;
  transition: color var(--transition-smooth);
}

.value-card-premium:hover .value-index { color: rgba(230,48,48,0.2); }

.value-card-premium h3 { font-size: 1.25rem; font-weight: 700; }

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

/* =========================================
   INVEST (inversion.php)
   ========================================= */
.invest-hero {
  padding: 180px 0 100px;
  text-align: center;
  background: var(--tp-navy);
  color: white;
  position: relative;
  overflow: hidden;
}

.invest-hero > .container {
  position: relative;
  z-index: 1;
}

.invest-hero .hero-subtitle {
  color: white;
  opacity: 0.8;
}

.invest-hero h1 {
  color: white;
}

.invest-hero p {
  color: var(--text-light);
  max-width: 800px;
  margin: 24px auto 0;
}

.invest-panels-section {
  padding-top: 0;
  background: var(--bg-white);
}

.invest-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: -50px;
  z-index: 10;
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

@media (max-width: 900px) {
  .invest-panels {
    grid-template-columns: 1fr;
  }
}

.invest-panel {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.invest-panel-primary {
  background: var(--bg-white);
  border-right: 1px solid var(--border-light);
}

.invest-panel-secondary {
  background: var(--bg-light);
}

.panel-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.panel-icon-red {
  background: rgba(230, 48, 48, 0.1);
  color: var(--tp-red);
}

.panel-icon-navy {
  background: rgba(10, 34, 64, 0.1);
  color: var(--tp-navy);
}

.invest-panel h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.invest-panel p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  flex-grow: 1;
}

.invest-perks {
  list-style: none;
  margin-bottom: 40px;
}

.invest-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-dark);
}

.invest-perks svg {
  color: var(--tp-red);
}

/* =========================================
   BLOG POST CONTENT (TinyMCE output)
   ========================================= */
.post-content h2, .post-content h3 {
  margin-top: 40px;
  margin-bottom: 16px;
}
.post-content p {
  margin-bottom: 20px;
  color: var(--text-dark);
}
.post-content ul, .post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-dark);
}
.post-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.post-content a {
  color: var(--tp-red);
  text-decoration: underline;
}
.post-content blockquote {
  border-left: 3px solid var(--tp-red);
  padding-left: 20px;
  color: var(--text-muted);
  font-style: italic;
  margin: 24px 0;
}

/* =========================================
   HERO PRODUCT PHOTO (real transparent cutout,
   bleeding off the right edge of the hero)
   ========================================= */
.hero-product-photo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.hero-product-photo img {
  width: 130%;
  max-width: 820px;
  height: auto;
  display: block;
  margin-right: -14%;
  filter: drop-shadow(0 35px 45px rgba(10, 34, 64, 0.22));
}

/* Abstract line/wave graphic behind the hero content, echoing the reference's circuit-line motif */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* =========================================
   FEATURE BAND (3-col dark strip below hero)
   ========================================= */
.feature-band {
  background: var(--tp-navy);
}

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

.feature-band-item {
  padding: 48px 40px;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-band-item:last-child {
  border-right: none;
}

.feature-band-icon {
  color: var(--tp-red);
  margin-bottom: 20px;
}
.feature-band-icon svg { width: 32px; height: 32px; }

.feature-band-item h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-band-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================
   FLEET SHOWCASE (ghost type + big photo + pager)
   ========================================= */
.fleet-showcase {
  background: var(--bg-white);
  overflow: hidden;
}

.fleet-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.fleet-showcase-stage {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.fleet-ghost-type {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4.5rem, 15vw, 13rem);
  color: var(--bg-light);
  white-space: nowrap;
  z-index: 0;
  letter-spacing: -0.02em;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fleet-showcase-photo {
  position: relative;
  z-index: 1;
  max-width: 780px;
  width: 96%;
  display: flex;
  justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-showcase-photo[hidden] {
  display: none;
}

.fleet-showcase-photo.is-entering {
  opacity: 0;
  transform: translateX(24px) scale(0.97);
}

.fleet-showcase-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 25px 30px rgba(10, 34, 64, 0.15));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-showcase-photo:hover img {
  transform: scale(1.03) translateY(-4px);
}

.fleet-photo-placeholder {
  width: 320px;
  max-width: 80%;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-light);
}
.fleet-photo-placeholder svg {
  width: 56px;
  height: 35px;
}
.fleet-photo-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.fleet-showcase-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.fleet-showcase-specs div span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fleet-showcase-specs div strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--tp-navy);
}

.fleet-pager {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fleet-pager-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tp-navy);
  transition: var(--transition-fast);
}
.fleet-pager-btn:hover {
  border-color: var(--tp-red);
  color: var(--tp-red);
}
.fleet-pager-btn svg { width: 18px; height: 18px; }

.fleet-pager-count {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--tp-navy);
  letter-spacing: 1px;
  min-width: 56px;
  text-align: center;
}

/* =========================================
   WORDMARK CTA BAND
   ========================================= */
.wordmark-cta {
  background: var(--tp-navy);
  position: relative;
  overflow: hidden;
}

.wordmark-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 480px;
}

.wordmark-cta-text {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.wordmark-cta-text .hero-subtitle {
  color: var(--tp-red);
}

.wordmark-cta-text h2 {
  color: white;
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 20px;
}

.wordmark-cta-text p {
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 440px;
}

.wordmark-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark-cta-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordmark-cta-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  z-index: 0;
}
.wordmark-cta-word .wm-tp { color: var(--tp-red); }
.wordmark-cta-word .wm-road { color: rgba(255, 255, 255, 0.14); }

.wordmark-cta-photo {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 480px;
}
.wordmark-cta-photo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.35));
}

/* =========================================
   PROCESS PANELS (01 / 02 / 03)
   ========================================= */
.process-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 50px;
}

.process-panel {
  padding: 44px 36px;
  background: var(--bg-light);
  border-right: 1px solid var(--border-light);
}
.process-panel:last-child { border-right: none; }

.process-panel-index {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--tp-red);
  display: block;
  margin-bottom: 20px;
}

.process-panel p {
  color: var(--text-dark);
  font-size: 1.05rem;
  margin: 0;
}

.process-panel-highlight {
  background: var(--tp-navy);
}
.process-panel-highlight .process-panel-index { color: white; }
.process-panel-highlight p { color: white; }

/* =========================================
   RESPONSIVE — NEW SECTIONS
   ========================================= */
@media (max-width: 1024px) {
  .fleet-ghost-type { font-size: clamp(3rem, 12vw, 7rem); }
  .wordmark-cta-grid { grid-template-columns: 1fr; min-height: 0; }
  .wordmark-cta-visual { min-height: 320px; padding: 40px 0; }
}

@media (max-width: 900px) {
  .feature-band-grid { grid-template-columns: 1fr; }
  .feature-band-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .feature-band-item:last-child { border-bottom: none; }
  .process-panels { grid-template-columns: 1fr; }
  .process-panel { border-right: none; border-bottom: 1px solid var(--border-light); }
  .process-panel:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .fleet-showcase-specs { gap: 24px; }
}

/* =========================================
   MOTION — staggered reveals, decorative-line
   fade-in, and hero parallax
   ========================================= */
.hero-lines svg {
  opacity: 0;
  animation: linesFadeIn 1.6s ease 0.2s forwards;
}

@keyframes linesFadeIn {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lines svg { animation: none; opacity: 1; }
}

/* Staggered fade-up: children of these grids reveal in sequence rather
   than all at once, reads as more deliberate/designed. */
.feature-band-grid > .fade-up:nth-child(1) { transition-delay: 0s; }
.feature-band-grid > .fade-up:nth-child(2) { transition-delay: 0.12s; }
.feature-band-grid > .fade-up:nth-child(3) { transition-delay: 0.24s; }

.service-grid-premium > .fade-up:nth-child(1) { transition-delay: 0s; }
.service-grid-premium > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.service-grid-premium > .fade-up:nth-child(3) { transition-delay: 0.2s; }
.service-grid-premium > .fade-up:nth-child(4) { transition-delay: 0s; }
.service-grid-premium > .fade-up:nth-child(5) { transition-delay: 0.1s; }
.service-grid-premium > .fade-up:nth-child(6) { transition-delay: 0.2s; }

.values-grid-premium > .fade-up:nth-child(1) { transition-delay: 0s; }
.values-grid-premium > .fade-up:nth-child(2) { transition-delay: 0.08s; }
.values-grid-premium > .fade-up:nth-child(3) { transition-delay: 0.16s; }
.values-grid-premium > .fade-up:nth-child(4) { transition-delay: 0.24s; }
.values-grid-premium > .fade-up:nth-child(5) { transition-delay: 0.32s; }

.process-panels > .fade-up:nth-child(1),
.process-panel:nth-child(1) { transition-delay: 0s; }
.process-panel:nth-child(2) { transition-delay: 0.12s; }
.process-panel:nth-child(3) { transition-delay: 0.24s; }

/* Gentle intro scale on the hero product photo — settles into place
   rather than appearing static, without being a distracting "zoom". */
.hero-product-photo img {
  animation: heroPhotoSettle 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

@keyframes heroPhotoSettle {
  from { opacity: 0; transform: scale(1.06) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product-photo img { animation: none; }
}

/* =========================================
   LANDING PAGES (minimal chrome, AIDA sections)
   ========================================= */
.navbar-minimal .nav-container {
  justify-content: center;
}

.footer-minimal {
  padding: 40px 0;
}

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

.footer-minimal-row .footer-logo {
  height: 36px;
  margin-bottom: 0;
}

.footer-minimal-row p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.footer-minimal-contact {
  display: flex;
  gap: 24px;
}

.footer-minimal-contact a {
  color: var(--text-light);
  font-size: 0.9rem;
}
.footer-minimal-contact a:hover { color: white; }

/* Landing hero: text + eBook mockup card, same 2-col grid language as the homepage hero */
.landing-hero {
  padding: 160px 0 100px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.landing-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.landing-eyebrow {
  display: inline-block;
  background: rgba(230, 48, 48, 0.1);
  color: var(--tp-red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.landing-hero-by {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stylized "stacked booklet" mockup — no real cover art exists, so the
   guide's title itself becomes the cover design. */
.ebook-mockup-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.ebook-mockup {
  position: relative;
  width: 300px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, var(--tp-navy) 0%, #163660 100%);
  border-radius: 10px;
  box-shadow: 0 40px 60px -15px rgba(10, 34, 64, 0.35);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  color: white;
  z-index: 2;
}

.ebook-mockup::before,
.ebook-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  z-index: -1;
}
.ebook-mockup::before {
  transform: rotate(-4deg) translate(-8px, 6px);
}
.ebook-mockup::after {
  transform: rotate(3deg) translate(10px, 4px);
}

.ebook-mockup-tag {
  display: inline-block;
  background: var(--tp-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: auto;
}

.ebook-mockup-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 24px 0 12px;
}

.ebook-mockup-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.ebook-mockup-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ebook-mockup-footer img {
  height: 22px;
  filter: brightness(0) invert(1);
}

.ebook-mockup-footer span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Desire: audience checklist */
.audience-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.audience-checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.audience-checklist-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tp-red);
  color: white;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.audience-checklist-icon svg { width: 16px; height: 16px; }

.audience-checklist p {
  margin: 0;
  color: var(--text-dark);
  font-weight: 500;
}

/* Action: download CTA band */
.download-cta {
  background: var(--tp-navy);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.download-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.download-cta-inner .hero-subtitle {
  color: var(--tp-red);
}

.download-cta-inner h2 {
  color: white;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.download-cta-inner > p {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.download-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.download-privacy-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

.download-cta-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 12rem);
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  z-index: 0;
}

@media (max-width: 1024px) {
  .landing-hero-grid { grid-template-columns: 1fr; }
  .ebook-mockup-wrap { margin-top: 20px; }
}

@media (max-width: 640px) {
  .audience-checklist { grid-template-columns: 1fr; }
  .download-form-card { padding: 28px; }
}

.ebook-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 40px;
}

@media (max-width: 768px) {
  .ebook-teaser { flex-direction: column; align-items: flex-start; }
}

/* =========================================
   CUBICAJE CALCULATOR
   ========================================= */
.cubicaje-wizard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  margin-top: 50px;
  align-items: start;
}

.cubicaje-step-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.cubicaje-step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--tp-navy);
  margin-bottom: 28px;
}

.cubicaje-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tp-red);
  color: white;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cubicaje-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cubicaje-form-row-4 {
  grid-template-columns: repeat(4, 1fr);
}
.cubicaje-form-row-split {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

/* Custom "apilable" toggle switch */
.cubicaje-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  height: 46px;
}
.cubicaje-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cubicaje-switch-track {
  width: 42px;
  height: 24px;
  background: var(--border-light);
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.cubicaje-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform var(--transition-fast);
}
.cubicaje-switch input:checked ~ .cubicaje-switch-track {
  background: var(--tp-red);
}
.cubicaje-switch input:checked ~ .cubicaje-switch-track .cubicaje-switch-thumb {
  transform: translateX(18px);
}
.cubicaje-switch-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

#cub-agregar {
  margin-top: 22px;
}

.cubicaje-shake {
  animation: cubicajeShake 0.4s;
}
@keyframes cubicajeShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.cubicaje-items-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cubicaje-items-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-light);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
}
.cubicaje-items-empty svg { width: 36px; height: 36px; margin-bottom: 10px; color: var(--border-light); }
.cubicaje-items-empty p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.cubicaje-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  animation: cubicajeItemIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes cubicajeItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cubicaje-item-box {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cubicaje-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cubicaje-item-info strong { color: var(--tp-navy); font-size: 0.95rem; }
.cubicaje-item-info span { color: var(--text-muted); font-size: 0.8rem; }

.cubicaje-item-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.cubicaje-item-remove svg { width: 14px; height: 14px; }
.cubicaje-item-remove:hover { background: rgba(230,48,48,0.1); color: var(--tp-red); }

.cubicaje-items-summary {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cubicaje-items-summary > div {
  display: flex;
  flex-direction: column;
}
.cubicaje-items-summary span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.cubicaje-items-summary strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--tp-navy);
}
.cubicaje-items-summary .btn {
  margin-left: auto;
}

.cubicaje-disclaimer {
  margin-top: 24px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cubicaje-result {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cubicaje-result-empty {
  text-align: center;
  color: var(--text-muted);
}
.cubicaje-result-empty svg {
  width: 48px;
  height: 48px;
  color: var(--border-light);
  margin-bottom: 16px;
}

.cubicaje-result-card {
  width: 100%;
  animation: cubicajeItemIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cubicaje-result-photo {
  margin: 16px 0 20px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  overflow: hidden;
}
.cubicaje-result-photo img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  padding: 10px;
}
.cubicaje-result-photo .fleet-photo-placeholder {
  border: none;
  width: 100%;
  aspect-ratio: auto;
  min-height: 160px;
}

.cubicaje-result-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cubicaje-bar {
  margin-bottom: 20px;
}

.cubicaje-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.cubicaje-bar-track {
  height: 10px;
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
}

.cubicaje-bar-fill {
  height: 100%;
  background: var(--tp-red);
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cubicaje-result-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.cubicaje-result-specs div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.cubicaje-result-specs span { color: var(--text-muted); }
.cubicaje-result-specs strong { color: var(--tp-navy); }

.cubicaje-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.cubicaje-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.cubicaje-table th, .cubicaje-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.cubicaje-table th {
  background: var(--bg-light);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.cubicaje-table tbody tr:last-child td { border-bottom: none; }
.cubicaje-table tbody tr:hover { background: var(--bg-light); }
.cubicaje-table td:first-child { font-weight: 600; color: var(--tp-navy); }

@media (max-width: 900px) {
  .cubicaje-wizard { grid-template-columns: 1fr; }
  .cubicaje-form-row-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .cubicaje-form-row-4 { grid-template-columns: 1fr; }
  .cubicaje-form-row-split { grid-template-columns: 1fr; }
  .cubicaje-items-summary { flex-direction: column; align-items: stretch; }
  .cubicaje-items-summary .btn { margin-left: 0; }
}

/* =========================================
   AUDIO-BLOG WIDGET (blog/post.php)
   ========================================= */
.audio-blog {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.audio-blog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.audio-blog-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--tp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.audio-blog-icon svg { width: 20px; height: 20px; }

.audio-blog-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.audio-blog-copy strong {
  font-family: var(--font-heading);
  color: var(--tp-navy);
  font-size: 0.95rem;
}
.audio-blog-copy span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.audio-blog-speed {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--tp-navy);
  background: white;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-blog-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-blog-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tp-red);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.audio-blog-play:hover { background: var(--tp-red-hover); }
.audio-blog-play svg { width: 20px; height: 20px; }
.audio-blog-play svg[hidden] { display: none; }

.audio-blog-progress {
  flex: 1;
  height: 6px;
  background: var(--border-light);
  border-radius: 20px;
  overflow: hidden;
}
.audio-blog-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--tp-red);
  border-radius: 20px;
  transition: width 0.3s ease;
}

.audio-blog-stop {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.audio-blog-stop:hover { border-color: var(--tp-red); color: var(--tp-red); }
.audio-blog-stop svg { width: 14px; height: 14px; }

.audio-blog-seek {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--tp-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.audio-blog-seek:hover { border-color: var(--tp-red); color: var(--tp-red); }
.audio-blog-seek svg { width: 18px; height: 18px; }

/* Hook variant: same widget, plus a headline luring skim-readers into listening. */
.audio-blog-hook-line {
  font-weight: 600;
  color: var(--tp-navy);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .audio-blog-head { flex-wrap: wrap; }
  .audio-blog-speed { margin-left: 54px; }
}

/* =========================================
   BLOG POST TEASER (blog/post.php, above the audio hook)
   ========================================= */
.blog-teaser {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   NAV "SOLUCIONES" DROPDOWN
   ========================================= */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-chevron {
  transition: transform var(--transition-fast);
}

.nav-item-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1001;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--tp-navy);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: var(--bg-light);
  color: var(--tp-red);
}

.nav-dropdown-link.active {
  color: var(--tp-red);
  font-weight: 600;
  background: var(--bg-light);
}

@media (max-width: 768px) {
  /* Fills the space below the navbar so the clip-path reveal covers the
     whole screen instead of stopping partway and exposing page content
     underneath. */
  .nav-links { min-height: calc(100vh - 75px); }

  .nav-item-dropdown { width: 100%; }
  /* Centered (not space-between) so the label+chevron group lines up with
     every other centered nav item instead of hugging the left edge. */
  .nav-dropdown-toggle { width: 100%; justify-content: center; padding: 8px 0; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
  }
  /* Same selector specificity as the desktop hover/open rule further up
     this file (which sets transform: translateX(-50%) ...) — needed to
     actually win the cascade and cancel that transform in mobile, since
     plain ".nav-dropdown-menu { transform: none }" above loses to it on
     specificity. Without this, opening a dropdown pushed its labels off
     the left edge of the screen. */
  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu,
  .nav-item-dropdown.open .nav-dropdown-menu {
    transform: none;
    max-height: 500px;
  }
  /* The desktop flyout relies on white-space:nowrap to size its 240px
     panel — in the mobile inline-accordion that instead pushed long
     labels (e.g. "LTL (Less Than Truckload)") off the left edge of the
     screen, making them unreadable. Let them wrap normally here. */
  .nav-dropdown-link { white-space: normal; }
}

/* =========================================
   FAQ ACCORDION (service landing pages)
   ========================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  transition: var(--transition-fast);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--tp-navy);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--tp-red);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 0 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================
   SERVICE LANDING PAGE TEMPLATE
   ========================================= */
.service-hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.service-hero-content .hero-actions {
  justify-content: center;
}

.service-copy-block {
  max-width: 780px;
  margin: 0 auto;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .two-col-grid { grid-template-columns: 1fr; gap: 32px; }
}

.service-unit-narrative {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* Visually hidden but still present for SEO/screen readers. */
.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;
}

/* =========================================
   ASISTENTE — "¿Qué servicio necesito?" quiz
   ========================================= */
.asistente-wizard {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 40px auto 0;
}

.asistente-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.asistente-card.asistente-fade-out {
  opacity: 0;
  transform: translateX(-12px);
}

.asistente-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.asistente-progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(10, 34, 64, 0.1);
  transition: background 0.3s ease;
}
.asistente-progress-seg.filled {
  background: var(--tp-red);
}

.asistente-question-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-red);
  margin-bottom: 8px;
}

.asistente-question {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--tp-navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.asistente-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.asistente-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.asistente-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--tp-navy);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}
.asistente-option:hover {
  border-color: var(--tp-red);
  background: rgba(230, 48, 48, 0.03);
  transform: translateX(4px);
}
.asistente-option svg {
  flex-shrink: 0;
  color: var(--tp-red);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.asistente-option:hover svg {
  opacity: 1;
}

.asistente-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}
.asistente-back:hover {
  color: var(--tp-navy);
}

.asistente-result {
  text-align: center;
}
.asistente-result-icon {
  width: 84px;
  height: 84px;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--tp-red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.asistente-result-icon svg {
  width: 40px;
  height: 40px;
}
.asistente-result-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-red);
  margin-bottom: 6px;
}
.asistente-result h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0 0 12px;
}
.asistente-result-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 28px;
}
.asistente-result-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.asistente-restart {
  display: block;
  margin: 24px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}
.asistente-restart:hover {
  color: var(--tp-navy);
}

@media (max-width: 640px) {
  .asistente-card { padding: 28px 24px; }
  .asistente-question { font-size: 1.25rem; }
  .asistente-result-actions { flex-direction: column; }
  .asistente-result-actions .btn { width: 100%; text-align: center; }
}

/* =========================================
   ASISTENTE FLOAT (stacked above the WhatsApp float)
   ========================================= */
.asistente-float {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--tp-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition-smooth);
}
.asistente-float:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--tp-red-hover);
}

.asistente-float-label {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--tp-navy);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.asistente-float:hover .asistente-float-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 640px) {
  .asistente-float-label { display: none; }
}
