/* =========================================================
   VARIABLES
========================================================= */
:root {
  --blue-dark: #1E2A38;
  --blue-light: #E5EEF8;
  --blue-hover: #0F1927;

  --orange: #FF6A30;
  --orange-hover: #CC4F1F;

  --gray-text: #374151;
  /* Darkened from #47505C for WCAG AA */
  --white: #ffffff;

  --radius: 12px;
  --transition: .3s ease;

  /* layout */
  --container-max: 1100px;
  --container-pad: clamp(16px, 2vw, 28px);
}

/* =========================================================
   ACCESIBILIDAD (Global)
========================================================= */
button,
a,
input[type="submit"],
input[type="button"] {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Revert display for inline links inside text to avoid breaking flow */
p a,
li a:not(.btn-ghost):not(.btn-primary) {
  display: inline;
  min-height: auto;
  min-width: auto;
}

/* =========================================================
   RESET + TIPOGRAFÍA
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-text);
  background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Lato, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
}

h1 {
  font-size: 2rem;
  margin: .5rem 0
}

h2 {
  font-size: 1.5rem;
  margin: .5rem 0
}

h3 {
  font-size: 1.2rem;
  margin: .5rem 0
}

#hero h1 {
  font-size: 2.5rem;
  color: #fff
}

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

a:hover {
  color: var(--orange-hover)
}

/* =========================================================
   SECCIONES
========================================================= */
section {
  padding: 3.5rem 1rem;
  animation: fadeInUp .8s ease;
  scroll-margin-top: 80px;
}

section>h2 {
  text-align: center;
  margin: 0 0 2.5rem;
}

/* =========================================================
   BOTONES
========================================================= */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  margin: 1rem auto;
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  transition: background var(--transition);
  border: 0;
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: #fff;
}

.btn-pack {
  display: inline-block;
  margin-top: 1rem;
  background: var(--orange);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.btn-pack:hover {
  background: var(--orange-hover)
}

.btn-ghost {
  margin: 1rem auto;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: normal;
  background: transparent;
  transition: background .25s, color .25s;
  box-sizing: border-box;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  background: var(--orange);
  color: #fff;
}

/* =========================================================
   HEADER & NAVEGACIÓN
========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

nav {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue-dark);
  padding: .7rem 1rem;
  isolation: isolate;
  position: relative;
}

nav a.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav a.logo:hover {
  transform: scale(1.05);
}

/* =========================================================
   GRIDS Y CARDS GENÉRICAS
========================================================= */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

@media(min-width: 768px) {
  .services-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.service-card {
  flex: 1 1 300px;
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

nav ul.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul.menu a {
  color: #fff;
  padding: .5rem;
  border-radius: var(--radius);
}

nav ul.menu a:hover {
  background: var(--blue-hover);
}

nav ul.menu a[aria-current="page"] {
  background: var(--orange);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 999;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0;
  background: #fff;
  transition: all .3s;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media(max-width:768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  nav ul.menu {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--blue-dark);
    padding: 6rem 2rem 3rem;
    gap: 1.5rem;
    overflow-y: auto;
    
    /* Reveal logic */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s ease;
    z-index: 2000; /* Above everything */
    text-align: center;
    pointer-events: none;
  }

  nav ul.menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav ul.menu a {
    display: block;
    padding: 1.2rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  nav ul.menu li:last-child a {
    border-bottom: none;
    margin-top: 1rem;
  }
}

/* =========================================================
   HERO (varios)
========================================================= */
#hero {
  position: relative;
  background:
    linear-gradient(rgba(15, 25, 39, 0.7), rgba(15, 25, 39, 0.6)),
    url('../img/home-portada-premium.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: clamp(8rem, 15vh, 12rem) 1.5rem clamp(6rem, 10vh, 8rem);
  isolation: isolate;
}

#hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin: 0 auto 1.5rem;
  max-width: 900px;
  color: #FFF;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

#hero2 {
  background:
    linear-gradient(rgba(30, 42, 56, .3), rgba(30, 42, 56, .3)),
    url('../img/banner.jpg') top/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 10rem 2rem;
}

#hero2 p {
  max-width: 600px;
  margin: auto
}

#hero2 h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}

#hero3 {
  background:
    linear-gradient(rgba(30, 42, 56, .3), rgba(30, 42, 56, .3)),
    url('../img/hero.webp') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

#hero3 p {
  max-width: 600px;
  margin: auto
}

#hero3 h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #FF6A30;
}

#hero4 {
  background:
    linear-gradient(rgba(30, 42, 56, .3), rgba(30, 42, 56, .3)),
    url('../img/Cohete.webp') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

#hero4 p {
  max-width: 600px;
  margin: auto
}

#hero4 h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

#hero5 {
  background: linear-gradient(rgba(30, 42, 56, .3), rgba(30, 42, 56, .3)), url('../img/scan-can-producto.webp') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

#hero5 p {
  max-width: 600px;
  margin: auto
}

#hero5 h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--orange);
}

#hero6 {
  background: linear-gradient(rgba(30, 42, 56, .3), rgba(30, 42, 56, .3)), url('../img/vaca-iot.webp') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
}

#hero6 p {
  max-width: 600px;
  margin: auto
}

#hero6 h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--orange);
}


/* =========================================================
   SERVICIOS (cards de la home)
========================================================= */
#servicios {
  padding: 3rem 1rem;
}

#servicios .cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

@media(min-width:768px) {
  #servicios .cards {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
}

#servicios article {
  flex: 1 1 300px;
  max-width: 350px;
  background: var(--blue-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  text-align: center;
  transition: transform .3s, border .3s;
}

#servicios article:hover {
  transform: translateY(-5px);
  border: 4px solid var(--orange);
}

#servicios article i,
#servicios article .lucide {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--orange);
  transition: transform .3s;
}

#servicios article:hover i,
#servicios article:hover .lucide {
  transform: scale(1.2)
}

#servicios article a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-weight: 700;
}

/* =========================================================
   TESTIMONIOS (slider)
========================================================= */
.testi {
  padding: 4rem 1rem;
  background: var(--blue-light);
  text-align: center;
}

.testi-slider {
  max-width: 640px;
  margin: auto;
  position: relative;
}

.testi-item {
  display: none;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, #ffffff 0%, #f8faff 60%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  position: relative;
}

.testi-item.active {
  display: flex;
  animation: fadeInUp .8s ease
}

.testi-item::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -14px;
  left: -14px;
  font-size: 2.8rem;
  color: var(--orange);
  opacity: .2;
}

.testi-item img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--orange);
  margin-bottom: 1.2rem;
}

.testi-item blockquote {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.testi-item cite {
  font-weight: 700;
  color: var(--blue-dark)
}

.testi-item cite span {
  display: block;
  font-weight: 400;
  font-size: .9rem;
  color: var(--gray-text);
}

.testi-dots {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: .6rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--blue-hover);
  opacity: .35;
  cursor: pointer;
  transition: opacity .3s, transform .3s;
  position: relative;
}

.dot:hover {
  transform: scale(1.15)
}

.dot.active {
  opacity: 1;
  background: var(--orange)
}

.dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--orange);
  opacity: 0;
  transform: scale(.4);
  transition: transform .35s, opacity .35s;
}

.dot:hover::after {
  opacity: .25;
  transform: scale(1.9)
}

.dot.active::after {
  opacity: .45;
  animation: pulse 2s infinite
}

.dot:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* =========================================================
   PACKS
========================================================= */
#packs {
  background: var(--blue-light);
  padding: 3rem 1rem
}

.pack-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.pack {
  flex: 1 1 300px;
  max-width: 350px;
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Sutil borde */
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .08);
  /* Sombra suave */
  /* opacity: 0;  <-- Disabled to ensure visibility if JS fails */
  opacity: 1;
  transform: none;
  transition: all .4s ease;
  position: relative;
}

.pack.visible {
  opacity: 1;
  transform: translateY(0);
}

.pack:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .12);
  border-color: rgba(255, 106, 48, 0.3);
}

.pack h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pack h3 i {
  color: var(--orange);
  width: 24px;
}

.pack-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.pack ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  text-align: left;
}

.pack ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.pack ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

#packs .pack-price {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--blue-dark);
  margin-top: auto;
  margin-bottom: 1rem;
}

/* Pack Destacado (Top Ventas) */
.pack.destacado {
  border: 2px solid var(--orange);
  background: #fff;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(255, 106, 48, 0.15);
}

.pack.destacado:hover {
  transform: scale(1.08) translateY(-5px);
}

.badgetop {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-bottom-left-radius: 12px;
  border-top-right-radius: 16px;
  /* Match card radius */
}

@media(max-width: 768px) {
  .pack-cards {
    gap: 1.5rem;
  }

  .pack {
    flex-basis: 100%;
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .pack.destacado {
    transform: none !important;
    /* Evitar desborde por escala */
    margin: 0;
  }

  .pack.destacado:hover {
    transform: none !important;
  }
}

/* =========================================================
   CTA FINAL
========================================================= */
#cta {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 2rem;
}

#cta a {
  display: inline-block;
  background: #fff;
  color: var(--orange);
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

#cta a:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* =========================================================
   DIAGNOSTICO CARD (NUEVO)
======================================================== */
/* .diagnostic-card definition removed (superseded by stable version at end of file) */


.check-list {
  list-style: none;
  margin: 2rem auto;
  padding: 0;
  text-align: left;
  max-width: 600px;
}

.check-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
  font-size: 1.05rem;
}

.check-list li::before {
  content: '\f058';
  /* FontAwesome check-circle-o */
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 1.2rem;
  top: 2px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--blue-dark);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

footer nav a {
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

footer nav a:hover {
  color: var(--orange);
  text-decoration: none;
}

footer address {
  font-style: normal;
  margin-top: 2rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media(max-width: 600px) {
  footer nav {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
}

/* =========================================================
   BOTÓN WHATSAPP
========================================================= */
#wa-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  transition: transform .3s;
  z-index: 1200;
}

#wa-floating:hover {
  transform: scale(1.1)
}

/* =========================================================
   COOKIE BANNER (UNIFICADO) + MODAL
   — LIMPIEZA: reglas unificadas/renombradas —
========================================================= */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 1200;
  background: rgba(30, 42, 56, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  margin: 0 auto;
}

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

#cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

#cookie-banner .btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

#cookie-banner button {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: auto;
  min-width: auto;
}

#acceptCookies {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange) !important;
}

#acceptCookies:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover) !important;
  transform: translateY(-2px);
}

#rejectCookies,
#customizeCookies {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

#rejectCookies:hover,
#customizeCookies:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff !important;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  #cookie-banner {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1.25rem;
  }
  #cookie-banner .btn-group {
    width: 100%;
  }
  #cookie-banner button {
    width: 100%;
  }
}

.btn-secondary {
  background: #fff;
  color: var(--blue-dark);
  border: 1px solid var(--blue-dark);
  padding: .6rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-link {
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer
}

#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1300;
}

#cookie-modal[hidden] {
  display: none;
}

.modal-box {
  background: #fff;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.switch {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1rem 0;
  font-size: .95rem;
}

.switch input {
  display: none;
}

.slider {
  width: 44px;
  height: 24px;
  border-radius: 34px;
  background: #c6c6c6;
  position: relative;
  flex-shrink: 0;
  transition: .3s;
}

.slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: .3s;
}

.switch input:checked+.slider {
  background: var(--orange);
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.2rem;
}

/* ===== RGPD checkbox ===== */
.rgpd {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  flex-wrap: wrap;
}

.rgpd input {
  margin-top: .25rem;
  accent-color: var(--orange);
}

.rgpd a {
  color: var(--orange);
  text-decoration: none;
}

.rgpd a:hover {
  text-decoration: underline;
}

/* =========================================================
   CASE STUDY (foto + overlay + KPI)
========================================================= */
.case-lite {
  text-align: center;
  padding: 4rem 1rem
}

.case-photo {
  position: relative;
  max-width: 960px;
  margin: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.case-photo>img {
  width: 100%;
  display: block
}

.case-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(30, 0, 0, .85);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem;
}

.case-overlay blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  font-style: italic;
  max-width: 600px;
}

.case-overlay cite {
  display: block;
  margin-top: .45rem;
  font-weight: 700
}

.case-logo {
  flex: 0 0 160px;
  max-width: 30vw;
  height: auto;
  border: 3px solid #fff;
  border-radius: 6px;
}

@media(max-width:600px) {
  .case-overlay {
    flex-direction: column;
    align-items: flex-start;
    text-align: left
  }

  .case-logo {
    display: none
  }
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.metric {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 2.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric .counter {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--orange);
  line-height: .85
}

.metric small {
  margin-top: .3rem;
  font-size: .85rem;
  color: var(--gray-text)
}

.metric::before {
  content: '\f062';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
  position: absolute;
  top: 18px;
  right: 18px;
  color: #25D366;
}

.metric.negative::before {
  content: '\f063';
  color: var(--orange-hover)
}

.case-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
}

@media(min-width:992px) {
  .case-cards {
    flex-direction: row
  }
}

.case-cards article {
  flex: 1;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.3rem 1.6rem 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  position: relative;
}

.case-label,
.case-label-ok {
  position: absolute;
  top: -6px;
  left: 1.3rem;
  color: #fff;
  padding: .25rem .9rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .4px;
}

.case-label {
  background: #f02b15;
}

.case-label-ok {
  background: #25D366;
}

.case-cards ul {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0
}

.case-cards li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .55rem;
}

.case-cards article.acierto li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #25D366;
  position: absolute;
  left: 0;
  top: 0;
}

.case-cards article.reto li::before {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #f02b15;
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================================================
   TIMELINE "Cómo trabajamos"
   — LIMPIEZA: scoping de .step para no romper el wizard —
========================================================= */
.process {
  text-align: center;
  padding: 4rem 1rem
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 3rem auto;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: calc(50% - 2px);
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--blue-light);
  z-index: -1;
}

/* antes era .step (global) */
.process .step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s, transform .7s;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.process .step.visible {
  opacity: 1;
  transform: translateY(0)
}

.process .step-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.process .step h3 {
  margin: .5rem 0 1rem;
  font-size: 1.25rem;
  color: var(--blue-dark)
}

@media(min-width:768px) {
  .process-steps {
    flex-direction: row;
    justify-content: space-between
  }

  .process-steps::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px
  }

  .process .step {
    width: 220px;
    text-align: left
  }

  .process .step:nth-child(even) {
    transform: translateY(30px)
  }

  .process .step-icon {
    margin-bottom: .5rem
  }
}

/* =========================================================
   ANIMACIONES (únicas, sin duplicados)
========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

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

@keyframes pulse {

  0%,
  100% {
    transform: scale(1.2)
  }

  50% {
    transform: scale(1.6);
    opacity: .15
  }
}

/* Utilidad: Ocultar visualmente pero mantener en DOM (Honeypot/A11y) */
.hidden-visually {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----------  PORTFOLIO  -----------*/
#portfolio {
  padding: 4rem 1rem;
  background: var(--blue-light);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}


/* ===== FILTROS PORTFOLIO ===== */
.filters {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: none;
  border: 2px solid var(--blue-light);
  color: var(--gray-text);
  padding: .5rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: all .3s ease;
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ===== GRID PORTFOLIO ===== */
.proj-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: 1rem;
}

@media(min-width:768px) {
  .proj-track {
    overflow: visible;
    scroll-snap-type: none;
  }
}

.proj-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  transform: translateY(30px);
  opacity: 0;
  transition: transform .7s ease, opacity .7s ease;
  scroll-snap-align: start;
  display: block;
  /* Para el filtro */
}

/* Ocultar tarjetas filtradas */
.proj-card.filtered-out {
  display: none;
}

.proj-card.visible {
  opacity: 1;
  transform: none;
}

.proj-card picture,
.proj-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge de Caso de Éxito */
.case-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 106, 48, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}


.proj-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 80%, transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.proj-info h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  max-height: 2.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.proj-info .tagline {
  font-size: .9rem;
  opacity: .85;
}

/* ===== SECCIÓN SERVICIOS (limpia) ===== */
.serv-block {
  position: relative;
  padding: 5rem 1rem;
}

.serv-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: 1rem;
  scroll-behavior: smooth;
}

.serv-card {
  position: relative;
  min-width: 280px;
  scroll-snap-align: start;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .35s ease, box-shadow .35s ease, border .35s ease;
  flex-shrink: 0;
}

.serv-card a {
  color: inherit;
}

.serv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .26);
  border: 2px solid var(--orange);
}

.serv-card h3 {
  font-size: 1.25rem;
  margin-bottom: .35rem;
  color: var(--blue-dark);
}

.serv-card .pack-desc {
  color: var(--gray-text);
  margin-bottom: 1rem;
}

.serv-card ul {
  margin: .8rem 0;
  font-size: .88rem;
  line-height: 1.35rem;
  list-style: none;
  padding-left: 0;
}

.serv-card ul li {
  color: var(--gray-text);
  margin-bottom: .3rem;
}

.serv-card .pack-price {
  font-weight: 700;
  color: var(--orange);
  font-size: 1.3rem;
  text-align: center;
  margin-top: 1rem;
}

.serv-card .btn-ghost {
  align-self: center;
  margin: .6rem auto 0;
  display: block;
  text-align: center;
  width: fit-content;
}

.serv-card:hover .btn-ghost {
  border-color: var(--orange);
  color: var(--orange);
  background: transparent;
}

.serv-card:hover .btn-ghost:hover {
  background: var(--orange);
  color: #fff !important;
}


.track-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .9);
  color: var(--orange);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.track-btn.prev {
  left: .5rem;
}

.track-btn.next {
  right: .5rem;
}

@media (max-width: 991px) {
  .track-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .serv-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    overflow: visible;
    padding-inline: 0;
    max-width: 1200px;
    margin: 0 auto;
  }

  .serv-card {
    min-width: initial;
    max-width: 350px;
    flex: 0 1 350px;
  }

  /* Mostrar botones slider en desktop */
  .track-btn {
    display: flex;
  }
}

/* FIX: Stack cards on small screens to avoid overflow/cropping */
@media (max-width: 768px) {
  .serv-track {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .serv-card {
    min-width: 100%;
    margin-bottom: 1rem;
    scroll-snap-align: none;
  }

  .track-btn {
    display: none !important;
  }
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: .6rem auto 0;
  transform: scaleX(.3);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.serv-block:hover .section-title::after {
  transform: scaleX(1);
}

.serv-block:nth-of-type(odd) {
  background: #fafafa;
}

/* FAQ */
.faq {
  padding-block: 5rem;
  max-width: 780px;
  margin: auto;
}

.faq-item {
  border-bottom: 1px solid #e1e4e8;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-q i {
  transition: transform .3s ease;
}

.faq-q[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 0 1rem;
}

@media (prefers-reduced-motion: reduce) {

  .faq-a,
  .faq-q i {
    transition: none;
  }
}

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.7;
}

/* ===== Carrusel de portfolio ===== */
.carrusel {
  position: relative;
  padding: 3rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.carrusel .section-title {
  margin-bottom: 1.4rem;
}

.car-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 80vw);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem 3rem;
}

@media (min-width:992px) {
  .car-track {
    grid-auto-columns: minmax(360px, 1fr);
  }
}

.car-item {
  scroll-snap-align: center;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transition: transform .35s ease, box-shadow .35s ease;
  display: grid;
  grid-template-rows: auto 48px;
}

.car-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.car-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.car-item figcaption {
  display: grid;
  place-items: center;
  padding: .5rem .8rem;
  font-size: .95rem;
  color: var(--blue-dark);
  background: linear-gradient(145deg, #ffffff 0%, #f8faff 60%);
}

/* Botones navegación Slider (solo escritorio) */
.car-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--orange);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  z-index: 2;
}

.car-btn:hover {
  background: #fff;
}

.car-btn.prev {
  left: .5rem;
}

.car-btn.next {
  right: .5rem;
}

@media (max-width:600px) {
  .car-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

.car-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}

.car-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--blue-hover);
  opacity: .35;
  cursor: pointer;
  transition: transform .25s, opacity .25s, background .25s;
}

.car-dots button[aria-selected="true"] {
  background: var(--orange);
  opacity: 1;
  transform: scale(1.2);
}

.car-dots button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Imágenes responsivas dentro del post */
.blog-content img,
article.legal img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
}

/* ===== Herramientas (SEO / Paletas / Convert / Favtool) ===== */
#seogen,
#palettegen,
#convert,
#favtool {
  padding-inline: clamp(12px, 3vw, 28px);
}

#seogen .tool-card,
#palettegen .tool-card,
#convert .tool-card,
#favtool .tool-card {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--container-pad);
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius, 14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

#seogen .grid-2,
#palettegen .grid-2,
#convert .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width:900px) {

  #seogen .grid-2,
  #palettegen .grid-2,
  #convert .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

#seogen .field.right,
#palettegen .field.right,
#convert .field.right {
  justify-self: start;
}

@media (min-width:900px) {

  #seogen .field.right,
  #palettegen .field.right,
  #convert .field.right {
    justify-self: end;
  }
}

#convert input[type="file"],
#convert input[type="number"],
#convert input[type="text"],
#convert select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

#convert .pill {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: .25rem .5rem;
  border-radius: 8px;
}

#favtool .fv-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width:992px) {
  #favtool .fv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

#favtool .bt-head.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

#favtool .uploader {
  transition: border-color .2s ease, background .2s ease;
}

#favtool .uploader.dragover {
  border-color: var(--orange, #f59e0b);
  background: #fff7ed;
}

/* ===== Destacado blog en home ===== */
#blog-destacado {
  padding: 4rem 1rem;
  background: #fafafa;
  text-align: center;
}

.blog-card {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.blog-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-info {
  padding: 1.5rem;
  text-align: left;
}

.blog-info h3 {
  margin-bottom: .6rem;
  font-size: 1.4rem;
}

.blog-info p {
  margin-bottom: 1rem;
  color: var(--gray-text);
}

/* =========================================================
   CARDS DE BLOG (Harmonizado)
   ========================================================= */
.card-blog {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-blog:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--orange);
}

.card-blog img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-blog .card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-blog .card-content h3 {
  font-size: 1.15rem;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.card-blog .card-content p {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin-bottom: 0;
}



/* =========================================================
   BLOG POST UNIFICATION (Homogeneización)
========================================================= */
.blog-post-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.blog-badgetop {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #fff;
  background-color: var(--orange);
  /* Default fallback */
}

.blog-meta {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.blog-featured-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 16/9;
}

.blog-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #374151;
  /* Slate-700 for better readability */
}

.blog-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  color: var(--blue-dark);
}

.blog-content h3 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.8rem;
}

.blog-cta {
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 12px;
  margin-top: 4rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}

/* =========================================================
   MOBILE RESPONSIVENESS (Global Fixes)
   Added to fix padding, margins, and overflow issues.
========================================================= */
@media (max-width: 768px) {

  /* 1. Global Padding Reduction */
  section {
    padding: 3rem 1.5rem !important;
  }

  /* 2. Hero Section Adjustments */
  #hero,
  #hero2,
  #hero3,
  #hero4,
  #hero5,
  #hero6,
  #hero-profile {
    padding: 6rem 1.5rem 3rem !important;
    background-attachment: scroll !important;
    /* Fix parallax jank */
    background-position: center !important;
  }

  h1,
  #hero h1,
  #hero2 h1,
  #hero3 h1 {
    font-size: 2rem !important;
    /* Smaller headings */
  }

  /* 3. Grid Safety using generic selectors for common grid patterns */
  /* Force grids to single column on mobile if they use auto-fit with wide minmax */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* 4. Sobre Mí Specifics */
  .profile-img-container img {
    width: 120px !important;
    height: 120px !important;
  }

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

  .bio-text ul.check-list-simple {
    text-align: left;
    display: inline-block;
  }

  /* 5. General Image Safety */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 6. Blog Homogenization Mobile Tweaks */
  .blog-post-container {
    padding: 0 1.25rem !important;
    margin: 2rem auto !important;
  }

  .blog-content {
    font-size: 1.05rem !important;
    /* Slightly larger text for readability */
  }
}

/* Fix for overlapping scaled cards on mobile */
@media (max-width: 768px) {
  .pack.destacado {
    transform: none !important;
    /* Disable scaling to prevent overlap */
    margin: 1rem 0 !important;
    /* Add explicit margin */
    order: -1;
    /* Optional: Make it first if we wanted, but not requested. Keeping flow. */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    /* Tame shadow */
  }

  .pack:hover,
  .pack.destacado:hover {
    transform: none !important;
    /* Disable hover movement on touch */
  }

  .pack-cards {
    gap: 3rem !important;
    /* Improve spacing between cards */
    padding-bottom: 4rem;
    /* Space for FAB */
  }
}

/* Fixed Process Section for Mobile */
@media (max-width: 768px) {
  .process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 1rem;
  }

  .process-steps::before {
    /* Vertical line for mobile timeline */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.4rem;
    /* Align with icon center approximately */
    width: 2px;
    background: var(--blue-light);
    z-index: 0;
  }

  .process .step {
    width: 100% !important;
    margin: 0 !important;
    opacity: 1 !important;
    /* Force visible in case JS scroll reveal fails */
    transform: none !important;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =========================================================
   SUB-HERO (Páginas legales y secundarias)
========================================================= */
.sub-hero {
  padding: 4rem 2rem;
  background-color: var(--blue-light);
  text-align: center;
}

.sub-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

/* =========================================================
   POSICIONAMIENTO LOCAL (Google Maps)
========================================================= */
/* =========================================================
   Override / Ajustes para .serv-card con iconos
   (Sección Posicionamiento Local)
========================================================= */
.serv-card .service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
  display: block;
  text-align: center;
}

/* ===== Diagnóstico Reservas – Versión Premium ===== */

.diagnostic-section {
  background: var(--blue-light);
  padding: 5rem 1.5rem;
}

.diagnostic-wrapper {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.diagnostic-content {
  flex: 1 1 480px;
}

.diagnostic-content h2 {
  margin-bottom: 1rem;
}

.diagnostic-intro {
  font-size: 1.05rem;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.diagnostic-highlight {
  font-weight: 600;
  color: var(--blue-dark);
}

.diagnostic-card {
  flex: 1 1 420px;
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.diagnostic-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.diagnostic-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .9rem;
  color: var(--gray-text);
}

.diagnostic-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

.diagnostic-btn {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.diagnostic-note {
  font-size: .85rem;
  color: #777;
  margin-top: 1rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .diagnostic-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .diagnostic-card {
    width: 100%;
  }


}



/* ===============================
   DIAGNÓSTICO – versión estable
================================ */

.diagnostic-section {
  padding: 5rem 1.5rem;
  background: var(--blue-light);
  display: flex;
  justify-content: center;
}

.diagnostic-card {
  max-width: 780px;
  width: 100%;
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
  text-align: center;
  transition: transform .3s ease,
    box-shadow .3s ease;
}

/* =========================================================
   BLOG GRID RESTORATION & FIXES (Recovered from mi.css)
   ========================================================= */

/* Grid Principal del Blog */
.grid-blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

/* Asegurar que las imágenes no desborden */
.grid-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Cards del Blog (Refuerzo de estilos) */
.card-blog {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-blog:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--orange, #FF6A30);
}

.card-blog a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-blog img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-blog .card-content {
  padding: 1.5rem !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-blog span {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.card-blog h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.card-blog p {
  font-size: 0.95rem;
  color: #666;
  margin-top: auto;
  /* Push content up if needed, or just normal flow */
}

/* Ajustes Responsive */
@media (max-width: 768px) {
  .grid-blog {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* =========================================================
   BUTTON IMPROVEMENTS (CTA & GHOST)
   ========================================================= */

/* Fix for .btn-ghost spacing and visibility */
.btn-ghost {
  margin: 0;
  /* Remove auto margins that cause separation */
  background-color: rgba(255, 106, 48, 0.03);
  /* Subtle background for better visibility */
  border: 2px solid var(--orange);
  color: var(--orange);
}

.btn-ghost:hover {
  background: var(--orange);
  color: #fff;
}

/* CTA Container for better button grouping */
.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  /* Center buttons by default */
  align-items: center;
  margin-top: 2rem;
}

/* Left align CTAs inside blog posts if needed, or keep centered */
.blog-content .cta {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .cta {
    flex-direction: column;
    width: 100%;
  }

  .cta .btn-ghost,
  .cta .btn-primary {
    width: 100%;
    text-align: center;
    margin: 0;
  }
}

.diagnostic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .12);
}

.diagnostic-header {
  margin-bottom: 1rem;
}

.diagnostic-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .5rem 1.2rem;
  border-radius: 30px;
  box-shadow: 0 6px 18px rgba(255, 106, 48, .35);
}

.diagnostic-card h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.diagnostic-intro {
  color: var(--gray-text);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.diagnostic-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 520px;
  text-align: left;
}

.diagnostic-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .9rem;
  color: var(--gray-text);
}

.diagnostic-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

.diagnostic-btn {
  margin-top: 1.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(255, 106, 48, .25);
}

.diagnostic-note {
  font-size: .85rem;
  color: #777;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {

  .diagnostic-section {
    padding: 3.5rem 1.2rem;
  }

  .diagnostic-card {
    padding: 2.2rem 1.5rem;
  }

  .diagnostic-card h2 {
    font-size: 1.5rem;
  }
}

/* ===============================
   SECCIÓN PACKS (Renovada)
================================ */
#packs {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, #fff 0%, #f8faff 100%);
  text-align: center;
}

.pack-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  align-items: flex-start;
  /* Alineación superior para alturas naturales */
}

/* Flexbox para igualar alturas */
@media (min-width: 900px) {
  .pack-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    /* Estirar para igualar altura */
  }

  .pack {
    width: 320px;
    /* Ancho fijo para consistencia */
    flex: 0 0 320px;
  }

  .pack.destacado {
    width: 340px;
    flex: 0 0 340px;
    margin-top: -1rem;
    /* Pequeño lift visual */
  }
}

.pack {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  height: auto;
}

.pack:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Pack Destacado (Casa Rural Pro) */
.pack.destacado {
  background: #fff;
  border: 2px solid var(--orange);
  z-index: 2;
  box-shadow: 0 15px 45px rgba(255, 106, 48, 0.15);
  position: relative;
}

.pack.destacado:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(255, 106, 48, 0.2);
}

/* Tipografía y Contenido */
.pack h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

.pack-price {
  font-size: 1.1rem;
  color: var(--gray-text);
  margin: 1rem 0 1.5rem;
}

.pack-price strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--blue-dark);
  font-weight: 800;
  margin-block: 0.5rem;
}

.pack-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Listas */
.pack ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
  flex-grow: 1;
  /* Empuja el botón abajo */
}

.pack li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.8rem;
  color: #555;
  font-size: 0.95rem;
}

.pack li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Botones */
.pack .btn-ghost {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto;
  border: 2px solid var(--blue-dark);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 1rem;
  border-radius: 50px;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pack.destacado .btn-ghost {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 106, 48, 0.3);
}

.pack.destacado .btn-ghost:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 48, 0.4);
}

.pack:not(.destacado) .btn-ghost:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Packs */
@media (max-width: 900px) {
  .pack-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 2rem;
    /* Reduced gap */
  }

  .pack {
    width: 100%;
    margin: 0;
    padding: 2rem 1.5rem;
    /* More compact padding for mobile */
  }

  .pack.destacado {
    transform: none;
    margin: 0;
    width: 100%;
  }

  .pack.destacado:hover {
    transform: none;
  }
}

/* ====== SECCIÓN AUDIO PLAN DIGITAL (Redesign) ====== */
.audio-section {
  background: linear-gradient(to bottom, #f9f9f9, #fff);
  padding: 5rem 1.5rem;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.audio-container {
  max-width: 700px;
  margin: 0 auto;
}

.audio-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}

.audio-intro {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.audio-wrapper {
  background: #fff;
  padding: 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Sombra suave premium */
  display: inline-block;
  width: 100%;
  max-width: 550px;
  margin-bottom: 2rem;
}

.audio-wrapper audio {
  width: 100%;
  outline: none;
  display: block;
}

.audio-cta {
  margin-bottom: 3rem;
}

.audio-cta .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
  /* Sombra naranja */
}

/* Transcripción Colapsible */
.audio-transcription-details {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.audio-transcription-details summary {
  padding: 1rem;
  cursor: pointer;
  background-color: #fcfcfc;
  font-weight: 600;
  color: var(--blue-dark);
  list-style: none;
  /* Ocultar triángulo default en algunos navegadores */
  position: relative;
  text-align: center;
  transition: background 0.3s;
}

.audio-transcription-details summary:hover {
  background-color: #f0f0f0;
}

/* Custom indicator for details */
.audio-transcription-details summary::-webkit-details-marker {
  display: none;
}

.audio-transcription-details summary::after {
  content: '+';
  float: right;
  font-weight: bold;
  color: var(--orange);
}

.audio-transcription-details[open] summary::after {
  content: '-';
}

.transcription-content {
  padding: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  background: #fff;
}
/* =========================================
   SECCIÓN PROMOCIÓN - PACK TARJETAS PRO 500
   ========================================= */

.tarjetas-promo-section {
  padding: 5rem 1rem;
  background-color: #ffffff;
  font-family: inherit;
}

.tarjetas-promo-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.tarjetas-promo-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tarjetas-promo-image:hover img {
  transform: translateY(-5px);
}

.tarjetas-promo-content {
  color: var(--blue-dark);
  display: flex;
  flex-direction: column;
}

.tarjetas-promo-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  color: var(--blue-dark);
  letter-spacing: -0.5px;
}

.tarjetas-promo-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.tarjetas-promo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tarjetas-promo-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--blue-dark);
}

.tarjetas-promo-features li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--orange);
  padding-top: 2px;
}

.tarjetas-promo-price-block {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tarjetas-promo-price {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -1px;
}

.tarjetas-promo-price small {
  font-size: 1.25rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0;
}

.tarjetas-promo-delivery {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.tarjetas-promo-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-decoration: none;
}

@media screen and (max-width: 900px) {
  .tarjetas-promo-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }
  
  .tarjetas-promo-title {
    font-size: 2rem;
  }
  
  .tarjetas-promo-price {
    font-size: 2.75rem;
  }
}

@media screen and (max-width: 480px) {
  .tarjetas-promo-section {
    padding: 3rem 1rem;
  }

  .tarjetas-promo-container {
    padding: 1.5rem;
  }
}
