/* ============================================================
   1. ESTILOS GENERALES
   ============================================================ */

/* Por defecto, la navbar está arriba y el body tiene padding para ella */
body {
  padding-top: 35px; /* Altura de la navbar */
  overflow-x: hidden;
  background-color: var(--cy-bg, #f4f7f6);
  color: var(--cy-text, #111816);
  font-family: var(--cy-font-body, Montserrat, sans-serif);
}

html {
  scroll-behavior: smooth;
}

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [role='button'],
  [tabindex]:not([tabindex='-1'])
):focus-visible {
  outline: 3px solid var(--cy-focus-ring, rgba(49, 152, 157, 0.35));
  outline-offset: 2px;
}

.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-color: var(--cy-surface-alpha, rgb(255 255 255 / 95%));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cy-border, rgb(0 0 0 / 10%));
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  box-sizing: border-box;
  transition:
    top 0.4s ease-out,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clase para ocultar la navbar al hacer scroll hacia abajo */
.custom-navbar.header-hidden {
  transform: translateY(-100%);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--cy-brand, #37284f);
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--cy-brand, #37284f);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 12px;
  border-radius: 20px;
  display: inline-block;
  background-color: transparent;
}

.nav-link:hover {
  color: var(--cy-teal, #31989d);
}

.nav-link:not(.nav-cta).clicked {
  background-color: #3dbc8b;
  color: white !important;
  animation: fade-out-click-navbar 1.5s ease-in-out forwards;
}

@keyframes fade-out-click-navbar {
  0% {
    background-color: #3dbc8b;
    color: white;
  }

  60% {
    background-color: #3dbc8b;
    color: white;
  }

  100% {
    background-color: transparent;
    color: var(--cy-brand, #37284f);
  }
}

.nav-cta {
  background-color: var(--cy-brand, #37284f);
  color: white !important;
  padding: 12px 24px;
  border-radius: 25px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--cy-purple-dark, #2a1f3d);
  transform: translateY(-2px);
  color: white !important;
}

/* Progressive enhancement: perceptually nicer hover colors (no hardcoded "dark purple"). */
@supports (background-color: color-mix(in oklch, black, white)) {
  .nav-cta:hover {
    background-color: color-mix(in oklch, var(--cy-brand, #37284f) 88%, #000 12%);
  }

  [data-theme='dark'] .nav-cta:hover {
    background-color: color-mix(in oklch, var(--cy-brand, #9b85c4) 88%, #fff 12%);
  }
}

.nav-theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cy-border, rgb(0 0 0 / 10%));
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cy-surface, #fff);
  color: var(--cy-brand, #37284f);
  cursor: pointer;
  transition:
    transform var(--cy-duration-fast, 0.15s) var(--cy-ease-default, ease),
    background-color var(--cy-duration-fast, 0.15s) var(--cy-ease-default, ease),
    color var(--cy-duration-fast, 0.15s) var(--cy-ease-default, ease);
}

.nav-theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--cy-brand-soft, #ece7f1);
}

.nav-theme-toggle:focus-visible {
  outline: 2px solid var(--cy-focus-ring, rgba(49, 152, 157, 0.35));
  outline-offset: 2px;
}

/* Blog tag pages: minimal header with theme toggle. */
.blog-tag-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 95px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(18, 25, 33, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

[data-theme='light'] .blog-tag-navbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.blog-tag-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.blog-tag-back {
  color: var(--cy-text, #e8ecf0);
  text-decoration: none;
  font-weight: 700;
}

[data-theme='light'] .blog-tag-back {
  color: var(--cy-text, #0f1419);
}

.blog-tag-back:hover {
  color: var(--cy-teal, #31989d);
}

/* CTA activo (ej. página Blog) */
.nav-cta.active {
  background-color: var(--color-terciario, #31989d) !important;
  color: #fff !important;
  border-color: var(--color-terciario, #31989d) !important;
}

.nav-cta::after {
  display: none;
}

/* ============================================================
   3. AJUSTES DE POSICIÓN DINÁMICA (Hello Bar)
   ============================================================ */

:root {
  --navbar-height: 75px;
  --indicator-bar-height: 32px;
  --hello-bar-height: 110px;
  --public-hero-space-top: clamp(8.3rem, 14.8vh, 10.6rem);
  --public-hero-safe-offset: clamp(1rem, 2vh, 1.35rem);
  --public-hero-space-bottom: clamp(4.85rem, 7.1vh, 5.95rem);
  --public-hero-stack-gap: clamp(1rem, 2.4vw, 1.65rem);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Por defecto, la navbar está arriba y el body tiene padding para ella */
body {
  padding-top: var(--navbar-height);
}

.custom-navbar {
  top: 0;
  transition:
    top 0.4s ease-out,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- CUANDO LA HELLO BAR ESTÁ ACTIVA --- */

/* 1. El cuerpo necesita más padding para no quedar tapado */
body.has-hello-bar {
  padding-top: calc(var(--hello-bar-height) + var(--navbar-height)) !important;
}

/* 2. La navbar baja para ubicarse debajo de la hello-bar */
body.has-hello-bar .custom-navbar {
  top: var(--hello-bar-height);
}

/* --- RESPONSIVE BASE (Menú Hamburguesa y Layout General) --- */
@media (width <= 768px) {
  :root {
    --hello-bar-height: 70px;
  } /* Valor base, será sobrescrito por V6 */

  .custom-navbar {
    height: 75px;
  }

  .logo-img {
    height: 50px;
  }

  .hamburger {
    display: block !important;
  }

  /* Cuando hay hello bar activa en móvil ajustamos el padding-top usando la variable */
  body.has-hello-bar {
    padding-top: calc(var(--hello-bar-height) + 75px) !important;
  }

  body.has-hello-bar .custom-navbar {
    top: var(--hello-bar-height);
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background-color: var(--cy-surface, white) !important;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgb(0 0 0 / 10%);
    z-index: 10;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu .nav-link:not(.nav-cta) {
    margin: 10px 0;
    padding: 10px 16px;
    border-radius: 25px;
    background-color: transparent;
    color: var(--cy-brand, #37284f) !important;
    transition: all 0.3s ease;
  }

  .nav-theme-toggle {
    margin-top: 8px;
  }

  .nav-menu .nav-link:not(.nav-cta).clicked {
    background-color: #3dbc8b !important;
    color: white !important;
    animation: fadeOutClick 2s ease-in-out forwards;
  }
}

/* --- 1. LIMPIEZA TOTAL DE MÁRGENES --- */
body,
#page,
.site,
.site-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* --- 2. CONTENEDOR HERO (PEGADO ARRIBA) --- */
#inicio {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  box-sizing: border-box;
  scroll-margin-top: calc(
    var(--hello-bar-height) + var(--indicator-bar-height) + var(--navbar-height) + 18px
  );
}

.hero-section {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: min(92vh, 900px);
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: var(--public-hero-space-top) 5% var(--public-hero-space-bottom);
}

/* Capa Morada Corporativa (Overlay) */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(10 30 60 / 85%) 0%, rgb(10 30 60 / 70%) 100%);
  z-index: 1;
}

/* --- 3. CONTENIDO (EL QUE BAJAMOS) --- */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(90%, 960px);
  margin: auto auto 0;
  padding-top: var(--public-hero-safe-offset);
  text-align: center;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--public-hero-stack-gap);
}

.hero-title {
  font-family: Montserrat, sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  z-index: 10;
  max-width: 15ch;
  text-wrap: balance;
}

.highlight-text {
  color: #e67542;
}

.hero-subtitle {
  font-family: Montserrat, sans-serif;
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0;
  max-width: 46rem;
  color: #fff;
  opacity: 0.95;
  text-wrap: pretty;
}

.hero-btn {
  display: inline-block;
  background-color: #e67542;
  color: #fff;
  text-decoration: none;
  padding: 20px 50px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgb(230 117 66 / 40%);
  border: 2px solid #e67542;
  font-family: Montserrat, sans-serif;
  margin-top: 0.25rem;
}

.hero-btn:hover {
  background-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgb(230 117 66 / 60%);
  color: #fff;
  border-color: #fff;
}

/* --- 4. AJUSTE PARA CELULAR --- */
@media (width <= 768px) {
  .hero-section {
    min-height: 690px;
    padding: clamp(6.9rem, 13.8vh, 7.9rem) 6% clamp(4.15rem, 7vh, 5rem);
  }

  .hero-title {
    font-size: 2.2rem;
    max-width: 13ch;
  }

  .hero-content {
    width: min(100%, 42rem);
  }
}

/* Ajuste tablet */
@media (width >= 601px) and (width <= 1024px) {
  .hero-section {
    min-height: 760px;
    padding-bottom: 5rem;
  }
}

/* --- SECCIÓN NOSOTROS (RESTAURADA) --- */
.about-section {
  padding: 100px 5%;
  background-color: var(--white, #fff);
  font-family: var(--fuente-principal, sans-serif);
  scroll-margin-top: 90px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* --- COLUMNA IZQUIERDA: IMAGEN --- */
.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgb(55 40 79 / 15%);
  height: 100%;
  min-height: 400px;
}

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

.about-image-wrapper:hover .about-img {
  transform: scale(1.03);
}

/* --- COLUMNA DERECHA: TEXTO --- */
.about-text-content {
  text-align: left;
  position: relative;
}

.about-eyebrow {
  color: var(--color-secundario, #e67542);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.about-title {
  color: var(--color-principal, #37284f);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 25px;
}

.about-description {
  color: var(--text-light, #555);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 30px;
}

/* LISTA DE TICKETS */
.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-list li {
  position: relative;
  padding-left: 35px;
  font-weight: 600;
  color: var(--color-principal, #37284f);
  font-size: 1.05rem;
}

/* El Ticket SVG Naranja */
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e67542'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Botón */
.about-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--color-principal, #37284f);
  border: 2px solid var(--color-principal, #37284f);
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.about-btn:hover {
  background-color: var(--color-principal, #37284f);
  color: white;
}

/* --- OPTIMIZACIÓN CELULAR --- */
@media (width <= 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }
}

@media (width <= 768px) {
  .about-section {
    padding: 0;
    margin-top: 30px;
    margin-bottom: 50px;
  }

  .about-image-wrapper {
    display: none;
  }

  .about-text-content {
    background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 60px 30px;
    overflow: hidden;
    border-radius: 0;
  }

  .about-text-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(55 40 79 / 90%);
    z-index: 1;
  }

  .about-text-content > * {
    position: relative;
    z-index: 2;
  }

  .about-title {
    color: #fff !important;
    font-size: 2rem;
  }

  .about-description {
    color: #e0e0e0 !important;
  }

  .about-list li {
    color: #fff !important;
  }

  .about-eyebrow {
    color: var(--color-secundario, #e67542) !important;
  }

  .about-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  }

  .about-btn {
    border-color: #fff;
    color: #fff;
  }

  .about-btn:hover {
    background-color: #fff;
    color: var(--color-principal, #37284f);
  }
}

/* --- VARIABLES Y SERVICIOS --- */
:root {
  --color-principal: #37284f; /* Morado */
  --color-secundario: #e67542; /* Naranja */
  --color-terciario: #31989d; /* Calipso */
  --color-exito: #3dbc73; /* Verde */
  --bg-light: #f4f7f6;
  --white: #fff;
  --text-light: #666;
  --gap: 20px;

  /* Altura de la hello bar (usar en padding / posicion del navbar) */
  --hello-bar-height: 110px;
  --indicator-bar-height: 32px;

  /* Aliases hacia tokens compartidos */
  /* Nota: en dark mode, --cy-brand se ajusta a un lila mas claro para contraste. */
  --color-principal: var(--cy-brand, var(--cy-purple, #37284f));
  --color-secondary: var(--color-principal);
  --color-secundario: var(--cy-accent, var(--cy-orange, #e67542));
  --color-terciario: var(--cy-teal, #31989d);
  --color-exito: var(--cy-green, #3dbc73);
  --bg-light: var(--cy-bg, #f4f7f6);
  --white: var(--cy-surface, #fff);
  --text-light: var(--cy-text-muted, #666);
}

body {
  font-family: var(--cy-font-body, Montserrat, sans-serif);
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--color-principal);
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- WRAPPER --- */
.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: visible;
}

/* --- VENTANA DE RECORTE --- */
.carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

/* --- RIEL --- */
.carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  flex-wrap: nowrap;
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

/* --- TARJETAS --- */
.service-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgb(0 0 0 / 8%);
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid transparent;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: calc((100% - (2 * var(--gap))) / 3);
  opacity: 0.5;
  transform: scale(0.9);
}

/* CLASE ACTIVA (CENTRO) */
.service-card.active-card {
  opacity: 1;
  transform: scale(1);
  border-bottom: 3px solid var(--color-principal);
  box-shadow: 0 10px 25px rgb(55 40 79 / 20%);
  z-index: 2;
}

/* RESPONSIVE SERVICIOS */
@media (width <= 992px) {
  .service-card {
    width: calc((100% - var(--gap)) / 1.5);
  }
}

@media (width <= 600px) {
  .service-card {
    width: 85%;
  }

  .carousel-wrapper {
    padding: 0;
  }

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

.service-img-box {
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}

.service-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  align-items: center;
}

.service-card h3 {
  color: var(--color-principal);
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.5;
  font-size: 0.85rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-learn-more {
  padding: 8px 25px;
  border: 2px solid var(--color-principal);
  background: transparent;
  color: var(--color-principal);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  margin-top: auto;
}

.btn-learn-more:hover {
  background: var(--color-principal);
  color: var(--white);
}

@supports (background: color-mix(in oklch, black, white)) {
  .btn-learn-more:hover {
    background: color-mix(in oklch, var(--color-principal) 88%, #000 12%);
  }

  [data-theme='dark'] .btn-learn-more:hover {
    background: color-mix(in oklch, var(--color-principal) 88%, #fff 12%);
  }
}

.btn-service-detail {
  padding: 8px 25px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  margin-top: 14px;
  text-decoration: none;
  display: inline-block;
}

.btn-service-detail:hover {
  background: var(--cy-surface, #fff);
  color: var(--color-principal, #37284f);
}

[data-theme='dark'] .btn-service-detail:hover {
  background: var(--cy-surface, #1f2833);
  color: var(--cy-accent, var(--color-principal, #bba7ff));
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-whatsapp, #25d366);
  border-color: var(--color-whatsapp, #25d366);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark, #20b858);
  border-color: var(--color-whatsapp-dark, #20b858);
  color: #fff;
}

.service-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.services-plans-cta {
  padding: 8px 0 0;
}

.services-plans-cta-banner {
  background: linear-gradient(
    120deg,
    var(--cy-brand, #37284f) 0%,
    color-mix(in srgb, var(--cy-brand, #37284f) 70%, #000000 30%) 100%
  );
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 12px 28px rgb(55 40 79 / 18%);
}

.services-plans-cta-kicker {
  margin: 0 0 4px;
  color: rgb(255 255 255 / 78%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-plans-cta-title {
  margin: 0;
  color: var(--color-secundario, #e67542);
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 800;
}

.services-plans-cta-row {
  justify-content: center;
  margin-top: 14px;
}

.plans-link-btn {
  background-color: var(--color-secundario, #e67542) !important;
  color: #fff !important;
  border: 2px solid var(--color-secundario, #e67542) !important;
}

.plans-link-btn:hover {
  background-color: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
}

.service-blog-section {
  padding: 0 5% 70px;
}

.service-blog-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--cy-surface, #faf9fd);
  border: 1px solid var(--cy-border, rgb(55 40 79 / 14%));
  border-radius: 16px;
  padding: 28px 24px;
}

.service-blog-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-secundario, #e67542);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-blog-title {
  margin: 0 0 8px;
  color: var(--color-principal, #37284f);
  font-size: 1.55rem;
}

.service-blog-description {
  margin: 0;
  color: var(--text-light, #5b5b6b);
  line-height: 1.65;
}

.service-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.service-blog-link {
  border: 1px solid var(--cy-border, rgb(55 40 79 / 14%));
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--color-principal, #37284f);
  text-decoration: none;
  font-weight: 600;
  background: var(--white, #fff);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.service-blog-link:hover {
  border-color: rgb(230 117 66 / 55%);
  color: var(--color-secundario, #e67542);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(55 40 79 / 10%);
}

.service-blog-cta {
  margin-top: 18px;
  justify-content: flex-start;
}

.blog-cluster-section {
  margin: 18px 0 24px;
  background: var(--cy-surface, #faf9fd);
  border: 1px solid var(--cy-border, rgb(55 40 79 / 10%));
  border-radius: 16px;
  padding: 22px;
}

.blog-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.blog-cluster-card {
  display: block;
  border: 1px solid var(--cy-border, rgb(55 40 79 / 14%));
  border-radius: 12px;
  padding: 16px;
  background: var(--cy-surface, #fff);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.blog-cluster-card:hover {
  transform: translateY(-2px);
  border-color: rgb(230 117 66 / 50%);
  box-shadow: 0 12px 20px rgb(55 40 79 / 10%);
}

.blog-cluster-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-secundario, #e67542);
}

.blog-cluster-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--color-principal, #37284f);
}

.blog-cluster-card p {
  margin: 0;
  color: var(--text-light, #5b5b6b);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pricing-section {
  padding: 80px 0;
  background: var(--cy-surface, #fff);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.pricing-card {
  background: var(--cy-surface, #fff);
  border: 1px solid var(--cy-border, rgb(55 40 79 / 12%));
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: var(--cy-shadow-md, 0 10px 25px rgb(55 40 79 / 8%));
  position: relative;
}

.pricing-card h3 {
  margin: 0 0 8px;
  color: var(--color-principal, #37284f);
  font-size: 1.35rem;
}

.pricing-price {
  margin: 0 0 16px;
  color: var(--color-secundario, #e67542);
  font-size: 1.2rem;
  font-weight: 800;
}

.pricing-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text-light, #555);
  line-height: 1.7;
}

.pricing-ideal {
  margin: 0;
  color: var(--text-light, #666);
  font-size: 0.92rem;
  font-weight: 600;
}

.pricing-card-featured {
  border-color: rgb(230 117 66 / 50%);
  transform: translateY(-6px);
}

.pricing-badge {
  display: inline-block;
  background: var(--color-secundario, #e67542);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.pricing-note-box {
  border: 1px solid var(--cy-border, rgb(55 40 79 / 14%));
  border-radius: 14px;
  padding: 20px;
  background: var(--cy-surface, #faf9fd);
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
  margin: 0 auto;
  text-align: center;
}

.pricing-note-box h4 {
  margin: 0 0 10px;
  color: var(--color-principal, #37284f);
  text-align: center;
}

.pricing-note-list {
  margin: 0 auto 10px;
  padding-left: 20px;
  color: var(--text-light, #555);
  line-height: 1.7;
  display: inline-block;
  text-align: left;
}

.pricing-note {
  margin: 0;
  color: var(--text-light, #666);
  font-size: 0.95rem;
}

.pricing-cta-row {
  margin-top: 20px;
  justify-content: center;
}

@media (width >= 769px) {
  .plans-hero .hero-content {
    max-width: 760px;
  }
}

.plans-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1920&q=80');
}

.service-hero {
  background-position: center center;
}

.service-hero-contabilidad {
  background-image: url('https://images.unsplash.com/photo-1554224154-26032ffc0d07?auto=format&fit=crop&w=1920&q=80');
}

.service-hero-remuneraciones {
  background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1920&q=80');
}

.service-hero-termino {
  background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1920&q=80');
}

.service-hero-tributaria {
  background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1920&q=80');
}

.section-heading-start {
  text-align: left;
}

@media (width <= 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-card-featured {
    transform: none;
  }

  .service-blog-section {
    padding: 0 5% 50px;
  }

  .service-blog-wrapper {
    padding: 22px 16px;
  }

  .service-blog-grid {
    grid-template-columns: 1fr;
  }

  .service-blog-title {
    font-size: 1.35rem;
  }

  .blog-cluster-grid {
    grid-template-columns: 1fr;
  }
}

/* --- OVERLAY --- */
.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 10;
  text-align: center;
  align-items: center;
}

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

.service-overlay-brand {
  background-color: rgba(55, 40, 79, 0.96);
}

.service-overlay-accent {
  background-color: rgba(230, 117, 66, 0.96);
}

.service-overlay-teal {
  background-color: rgba(49, 152, 157, 0.96);
}

.service-overlay-success {
  background-color: rgba(61, 188, 115, 0.96);
}

.service-overlay h3 {
  color: white;
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-overlay p {
  color: white;
  font-size: 0.9rem;
  line-height: 1.6;
}

.close-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  background: none;
  border: none;
  padding: 0;
}

/* --- CONTROLES --- */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 2px solid var(--color-principal);
  color: var(--color-principal);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgb(0 0 0 / 10%);
}

.carousel-btn:hover {
  background: var(--color-principal);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.btn-prev {
  left: 0;
}

.btn-next {
  right: 0;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 12px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.4;
}

.carousel-indicator.active {
  opacity: 1;
  transform: scale(1.4);
}

/* --- ESTILOS GENERALES CONTACTO --- */
.contact-section {
  background-color: var(--cy-bg, #f9f9fb);
  padding: 40px 5% 80px;
  font-family: Montserrat, sans-serif;
  position: relative;
  z-index: 1;
  scroll-margin-top: 100px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* --- INFO Y MAPA --- */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-title {
  color: var(--cy-brand, #37284f);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1;
}

.contact-text {
  color: var(--cy-text-muted, #666);
  margin-bottom: 10px;
}

.info-card {
  background: var(--cy-surface, white);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: var(--cy-shadow-sm, 0 4px 15px rgb(0 0 0 / 5%));
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background-color: var(--cy-brand, #37284f);
  color: var(--cy-text-inverse, white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-data h4 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cy-brand, #37284f);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-data p {
  margin: 2px 0 0;
  color: var(--cy-text, #555);
  font-weight: 600;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.phone-inline-copy {
  margin: 0;
}

.btn-whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #3dbc73;
  color: white !important;
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.3s;
  box-shadow: 0 4px 8px rgb(61 188 115 / 20%);
}

.btn-whatsapp-inline:hover {
  background-color: #34a363;
  transform: translateY(-2px);
}

.conversion-flow-card {
  background: var(--cy-surface, white);
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: var(--cy-shadow-sm, 0 4px 15px rgb(0 0 0 / 5%));
  border-left: 4px solid #e67542;
}

.conversion-flow-card h4 {
  margin: 0 0 10px;
  color: var(--cy-brand, #37284f);
  font-size: 1rem;
}

.conversion-flow-list {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--cy-text-muted, #555);
  line-height: 1.6;
}

.conversion-flow-sla {
  margin: 0;
  color: var(--cy-brand, #37284f);
  font-size: 0.86rem;
  font-weight: 600;
}

/* --- FORMULARIO --- */
.contact-form-card {
  background: var(--cy-surface, white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--cy-shadow-lg, 0 15px 40px rgb(0 0 0 / 8%));
  border-top: 5px solid #e67542;
}

.form-group {
  margin-bottom: 20px;
}

.form-group-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--cy-brand, #37284f);
  font-size: 0.9rem;
}

.form-label-mini {
  display: block;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--cy-brand, #37284f);
  font-size: 0.82rem;
  line-height: 1.2;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brief-grid > div {
  display: flex;
  flex-direction: column;
}

@media (width >= 901px) {
  .brief-grid .form-label-mini {
    display: block;
    min-height: 38px;
    margin-bottom: 6px;
  }

  .brief-grid .form-select {
    min-height: 40px;
  }
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--cy-border, #ddd);
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  font-family: inherit;
  background: var(--cy-surface, #fff);
  color: var(--cy-text, #111816);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--cy-text-muted, #6c757d);
  opacity: 0.9;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 3px solid var(--cy-focus-ring, rgba(49, 152, 157, 0.35));
  outline-offset: 2px;
  border-color: var(--cy-focus-border, var(--cy-accent, #e67542));
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--cy-brand, #37284f);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  margin-top: 10px; /* Separación visual en móvil */
}

.submit-btn:hover {
  background-color: #e67542;
  transform: translateY(-2px);
}

.form-sla-note {
  margin: 10px 2px 0;
  color: var(--text-light, #555);
  font-size: 0.82rem;
  line-height: 1.4;
}

.trust-section {
  padding: 85px 0;
  background: linear-gradient(180deg, var(--cy-surface, #fff) 0%, var(--cy-bg, #f7f7fb) 100%);
}

.trust-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.trust-kpi-card {
  background: var(--cy-surface, #fff);
  border: 1px solid var(--cy-border, rgb(55 40 79 / 10%));
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--cy-shadow-sm, 0 8px 20px rgb(0 0 0 / 4%));
}

.trust-kpi-card h3 {
  margin: 0 0 8px;
  color: var(--color-principal, #37284f);
  font-size: 1.1rem;
}

.trust-kpi-card p {
  margin: 0;
  color: var(--text-light, #555);
  line-height: 1.5;
}

.trust-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.trust-block-card {
  background: var(--cy-surface, #fff);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--cy-border, rgb(55 40 79 / 10%));
  box-shadow: var(--cy-shadow-sm, 0 8px 20px rgb(0 0 0 / 4%));
}

.trust-block-card h3 {
  margin: 0 0 12px;
  color: var(--color-principal, #37284f);
  font-size: 1.1rem;
}

.trust-case-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light, #555);
  line-height: 1.7;
}

.trust-case-list li {
  margin-bottom: 8px;
}

.testimonial-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--cy-border, rgb(55 40 79 / 10%));
}

.testimonial-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.testimonial-item p {
  margin: 0 0 6px;
  color: var(--text-light, #3f3f55);
  line-height: 1.55;
  font-style: italic;
}

.testimonial-item span {
  color: var(--color-principal, #37284f);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.team-mini-card {
  background: var(--cy-surface, #fff);
  border-radius: 14px;
  border: 1px solid var(--cy-border, rgb(55 40 79 / 10%));
  padding: 18px;
}

.team-mini-card h4 {
  margin: 0 0 8px;
  color: var(--color-principal, #37284f);
  font-size: 1rem;
}

.team-mini-card p {
  margin: 0;
  color: var(--text-light, #555);
  line-height: 1.5;
}

.trust-cta-row {
  justify-content: center;
}

.legal-section {
  padding: clamp(7.9rem, 12vh, 10rem) 5% clamp(4rem, 7vw, 5.5rem);
  background: var(--cy-bg, #f9f9fb);
}

.legal-container {
  max-width: 960px;
  margin: 0 auto;
}

.legal-container h1 {
  margin: 0 0 10px;
  color: var(--color-principal, #37284f);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.08;
  max-width: 16ch;
  text-wrap: balance;
}

.legal-updated {
  margin: 0 0 28px;
  color: var(--text-light, #666);
  font-size: 0.92rem;
}

.legal-card {
  background: var(--cy-surface, #fff);
  border: 1px solid var(--cy-border, rgb(55 40 79 / 12%));
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.legal-card h2 {
  margin: 0 0 8px;
  color: var(--color-principal, #37284f);
  font-size: 1.1rem;
}

.legal-card p {
  margin: 0;
  color: var(--text-light, #555);
  line-height: 1.65;
  text-wrap: pretty;
}

.legal-card a {
  color: #e67542;
  font-weight: 700;
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

/* AJUSTE MÓVIL CONTACTO */
@media (width <= 900px) {
  .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .contact-info-wrapper {
    display: contents;
  }

  .contact-info-wrapper > div:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .contact-info-wrapper .info-card:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    padding: 12px 15px;
    min-height: 130px;
    justify-content: flex-start;
  }

  .contact-info-wrapper .info-card:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
    flex-direction: column;
    padding: 12px 15px;
    min-height: 130px;
    justify-content: flex-start;
  }

  .contact-info-wrapper .info-card .info-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-bottom: 5px;
    align-self: flex-start;
  }

  .contact-info-wrapper .info-card .info-data {
    width: 100%;
  }

  .contact-info-wrapper .info-card .info-data h4 {
    font-size: 0.75rem;
    margin-bottom: 3px;
  }

  .contact-info-wrapper .info-card .info-data p {
    font-size: 0.65rem;
    overflow-wrap: anywhere;
    margin: 0;
    line-height: 1.3;
  }

  .phone-row {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 3px;
  }

  .btn-whatsapp-inline {
    padding: 5px 10px;
    font-size: 0.75rem;
    gap: 5px;
  }

  .conversion-flow-card {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 16px;
  }

  .brief-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brief-grid .form-label-mini {
    height: auto;
    min-height: 0;
    margin-bottom: 7px;
  }

  .contact-form-card {
    grid-column: 1 / -1;
    grid-row: 4;
    padding: 30px 20px;
  }

  .contact-title {
    font-size: 2.2rem;
    text-align: center;
  }

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

  .legal-section {
    padding: 82px 5% 55px;
  }

  .legal-container h1 {
    font-size: 1.75rem;
  }
}

@media (width <= 1024px) {
  .trust-kpi-grid,
  .team-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-block-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 768px) {
  .trust-section {
    padding: 65px 0;
  }

  .trust-kpi-grid,
  .team-mini-grid {
    grid-template-columns: 1fr;
  }

  .services-plans-cta {
    padding-top: 0;
  }

  .services-plans-cta-banner {
    border-radius: 12px;
    padding: 18px 14px;
  }

  .services-plans-cta-title {
    font-size: 1.2rem;
  }

  .services-plans-cta-row {
    margin-top: 10px;
  }

  .plans-link-btn {
    background-color: var(--color-secundario, #e67542) !important;
    border-color: var(--color-secundario, #e67542) !important;
    color: #fff !important;
  }
}

/* MODAL ÉXITO */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(55 40 79 / 85%);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-card {
  background: var(--cy-surface, white);
  color: var(--cy-text, #111816);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
}

.modal-icon {
  font-size: 3.5rem;
  color: var(--cy-success, #3dbc73);
  margin-bottom: 15px;
}

.modal-title {
  color: var(--cy-text, #111816);
  font-size: 1.8rem;
  margin: 0 0 10px;
}

.modal-desc {
  color: var(--cy-text-muted, #666);
  margin: 0 0 25px;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG: corporate, modern blog cards (uses root vars)
   ═══════════════════════════════════════════════════════════════ */

.blog-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(230, 117, 66, 0.04), transparent);
}
.blog-hero .hero-inner {
  position: relative;
  max-width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  /* Viewport for slides: keep overflow hidden here so translating the track reveals slides */
  overflow: hidden;
}

/* Mask the left/right edges with a subtle gradient to hide peeks of adjacent slides */
.blog-hero .hero-inner::before,
.blog-hero .hero-inner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 25;
  pointer-events: none; /* don't block UI interactions */
}
.blog-hero .hero-inner::before {
  left: 0;
  /* Más oscuro: sutil sombreado hacia el interior para ocultar peeks */
  background: linear-gradient(to right, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
}
.blog-hero .hero-inner::after {
  right: 0;
  /* Más oscuro: sutil sombreado hacia el interior para ocultar peeks */
  background: linear-gradient(to left, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
}
.blog-hero .hero-track {
  display: flex;
  gap: 18px;
  /* Track should be visible and translated as a whole */
  overflow: visible;
  /* Allow pointer events for horizontal drag while preserving vertical scroll */
  touch-action: pan-y;
  cursor: grab;
  transition: transform 0.5s ease;
  will-change: transform;
}
.blog-hero .hero-track.dragging {
  cursor: grabbing;
}

/* Indicators (dots) */
.blog-hero .hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 30;
}
.blog-hero .hero-indicators .hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
  box-shadow: none;
}
.blog-hero .hero-indicators .hero-dot.active {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.12);
  opacity: 1;
}
.blog-hero .hero-slide {
  min-width: 100%;
  border-radius: 12px;
  position: relative;
  background-color: var(--cy-surface, #fff);
  color: var(--page-text, #1e293b);
  aspect-ratio: 1200 / 630;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.blog-hero .hero-slide-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 768px) {
  .blog-hero .hero-slide {
    border-radius: 0;
  }
}
.blog-hero .hero-slide .overlay {
  width: 100%;
  padding: 26px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.45));
  color: #fff;
}
.blog-hero .hero-slide h3 {
  margin: 0 0 6px;
  font-size: 24px;
}
.blog-hero .hero-controls {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 6px;
}
.blog-hero .hero-controls button {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.blog .news-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 18px;
}

/* Filters for tags/categories above the news-panel */
.blog .filters {
  margin: 18px 0 8px;
  padding: 8px 16px;
  background: transparent;
}
.blog .filters .filters-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.blog .filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.blog .filter-chip {
  background: rgba(55, 40, 79, 0.06);
  border: 1px solid rgba(55, 40, 79, 0.06);
  color: var(--cy-brand, #37284f);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
}
.blog .filter-chip.active {
  background: var(--cy-brand, #37284f);
  color: #fff;
  border-color: var(--cy-brand, #37284f);
}
.blog .filter-clear {
  background: transparent;
  border: none;
  color: #e67542;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
}

/* Desktop layout: force 3 columns on wide screens for PC */
@media (min-width: 1100px) {
  .blog .news-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ensure tablet+desktop (>=992px) show 3 columns for blog -- placed late to override earlier rules */
@media (min-width: 992px) {
  .blog .news-panel {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.blog .post-card {
  background: var(--color-card-bg, #fff);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 12px 30px rgba(10, 10, 20, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.blog .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(10, 10, 20, 0.12);
}
.blog .post-card::before {
  content: '';
  height: 6px;
  display: block;
  background: linear-gradient(
    90deg,
    var(--color-primary, #e67542),
    var(--color-primary-dark, #d66532)
  );
}
.blog .post-media {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.blog .post-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog .post-title {
  margin: 0;
  font-size: 18px;
  color: var(--color-secondary, #37284f);
  font-weight: 700;
}
.blog .post-excerpt {
  margin: 0;
  color: var(--color-text-gray, #666);
}

[data-theme='dark'] body.app.blog .post-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: var(--cy-border, #2a3440);
}

[data-theme='dark'] body.app.blog .post-title {
  color: var(--cy-text, #e8ecf0);
}

[data-theme='dark'] body.app.blog .post-excerpt {
  color: var(--cy-text-muted, #8a97a5);
}
.blog .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.blog .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .blog .post-media {
    height: 160px;
  }
}

.blog .news-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.blog .post-card {
  background: var(--color-card-bg, #fff);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 12px 30px rgba(10, 10, 20, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.blog .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(10, 10, 20, 0.12);
}
.blog .post-card::before {
  content: '';
  height: 6px;
  display: block;
  background: linear-gradient(
    90deg,
    var(--color-primary, #e67542),
    var(--color-primary-dark, #d66532)
  );
}
.blog .post-media {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.blog .post-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog .post-title {
  margin: 0;
  font-size: 18px;
  color: var(--color-secondary, #37284f);
  font-weight: 700;
}
.blog .post-excerpt {
  margin: 0;
  color: var(--color-text-gray, #666);
}
.blog .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.blog .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .blog .post-media {
    height: 160px;
  }
}

/* Progressive enhancement: container queries for post cards (blog index + tag pages). */
@supports (container-type: inline-size) {
  .blog .post-card {
    container-type: inline-size;
  }

  @container (max-width: 360px) {
    .blog .post-content {
      padding: 14px;
    }

    .blog .post-title {
      font-size: 16px;
    }

    .blog .post-meta {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .blog .author-avatar {
      width: 42px;
      height: 42px;
    }
  }
}

/* keep footer marker */

/* --- ESTILOS FOOTER --- */
.main-footer {
  /* Public footer: keep it neutral/black in both themes (brand lilac was too light in dark). */
  background-color: #000;
  color: #fff;
  padding: 60px 5% 30px;
  font-family: Montserrat, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-areas:
    'brand explora conectemos'
    'brand legal legal';
  gap: 40px;
  align-items: start;
}

.footer-container > div:first-child {
  grid-area: brand;
}

.footer-container > div:nth-child(2) {
  grid-area: explora;
}

.footer-container > div:nth-child(3) {
  grid-area: legal;
}

.footer-container > div:nth-child(4) {
  grid-area: conectemos;
}

.footer-container > div:not(:first-child) {
  align-self: start;
}

.footer-logo-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
  align-self: start;
}

.footer-logo-bg {
  background: var(--cy-surface, white);
  padding: 15px;
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
}

.footer-logo-img {
  height: 52.5px;
  width: auto;
}

.footer-brand-copy {
  margin: 0;
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #e67542;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 20px;
  display: inline-block;
  background-color: transparent;
}

/* Safety override: ensure footer links are visible on all pages */
.main-footer .footer-links a {
  color: rgb(255 255 255 / 95%) !important;
}

/* Asegurar que el hover recupere el naranja corporativo */
.main-footer .footer-links a:hover {
  color: var(--color-secundario, #e67542) !important;
  text-decoration: none !important;
}

.footer-links a:hover {
  color: #e67542;
}

.footer-links a.clicked {
  background-color: #3dbc8b;
  color: white !important;
  animation: fade-out-click-footer 1.5s ease-in-out forwards;
}

@keyframes fade-out-click-footer {
  0% {
    background-color: #3dbc8b;
    color: white;
  }

  60% {
    background-color: #3dbc8b;
    color: white;
  }

  100% {
    background-color: transparent;
    color: rgb(255 255 255 / 80%);
  }
}

.footer-socials {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgb(255 255 255 / 10%);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:active {
  background-color: #3dbc8b !important;
  transform: translateY(-3px);
}

.social-icon:focus-visible {
  outline: 3px solid var(--cy-focus-ring, rgba(49, 152, 157, 0.35));
  outline-offset: 4px;
}

.social-icon.whatsapp:hover {
  background-color: #25d366;
  transform: translateY(-3px);
}

.social-icon.instagram:hover {
  background-color: #e4405f;
  transform: translateY(-3px);
}

.social-icon.linkedin:hover {
  background-color: #0077b5;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  text-align: center;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 60%);
}

@media (width <= 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'explora'
      'conectemos'
      'legal';
    text-align: center;
  }

  .footer-logo-bg,
  .footer-socials {
    margin: 0 auto;
  }

  .footer-logo-box {
    align-items: center;
    text-align: center;
  }

  .footer-logo-box p {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-links a {
    padding: 8px 12px;
    margin: 5px 3px;
    color: rgb(255 255 255 / 80%) !important;
    transition: none;
  }

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

@media (width <= 1024px) and (width > 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'brand brand'
      'explora conectemos'
      'legal legal';
    gap: 30px;
  }
}

/* =========================================
   HELLO BAR STYLES
   ========================================= */
.hello-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hello-bar-height);
  background-color: #3dbc73;
  color: #fff;
  display: flex;
  align-items: stretch;
  justify-content: center;
  z-index: 1000002;
  box-shadow: none;
  transition:
    transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.8s ease;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  pointer-events: none;
}

.hello-bar::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0;
  background-color: inherit;
  z-index: 1000001;
}

.hello-bar.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1000004;
}

.hello-bar.leaving {
  opacity: 0;
  visibility: visible;
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1000003;
}

.hello-bar.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================
   ECONOMIC TICKER BAR
   ========================================= */
.economic-ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--indicator-bar-height);
  background: var(--cy-surface-alpha, rgb(255 255 255 / 96%));
  border-bottom: 1px solid var(--cy-border, rgb(0 0 0 / 6%));
  box-shadow: var(--cy-shadow-md, 0 6px 20px rgb(0 0 0 / 5%));
  backdrop-filter: blur(6px);
  z-index: 1000001;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cy-brand, var(--color-principal, #37284f));
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  white-space: nowrap;
  animation: ticker-scroll 25s linear infinite;
  will-change: transform;
}

.ticker-item {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-item strong {
  font-weight: 700;
  color: var(--cy-brand, var(--color-principal, #37284f));
}

.ticker-value {
  font-weight: 500;
  color: var(--cy-text-muted, rgb(55 40 79 / 85%));
}

.ticker-item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgb(0 0 0 / 18%);
  margin-left: 18px;
}

[data-theme='dark'] .ticker-item::after {
  background: rgb(255 255 255 / 22%);
}

.economic-ticker.paused .ticker-track,
.economic-ticker:hover .ticker-track {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker-track {
    animation: none;
    transform: translateX(0);
  }
}

@media (width <= 768px) {
  .ticker-item {
    font-size: 0.66rem;
  }
  .ticker-track {
    gap: 16px;
  }
}

/* --- POSICIONAMIENTO CON HELLO BAR --- */
body.has-hello-bar .economic-ticker {
  top: var(--hello-bar-height);
}

/* --- OFFSET GLOBAL NAVBAR + CONTENIDO --- */
body.has-indicator-bar {
  padding-top: calc(75px + var(--indicator-bar-height)) !important;
}

body.has-indicator-bar .custom-navbar {
  top: var(--indicator-bar-height);
}

body.has-hello-bar.has-indicator-bar {
  padding-top: calc(var(--hello-bar-height) + var(--indicator-bar-height) + 75px) !important;
}

body.has-hello-bar.has-indicator-bar .custom-navbar {
  top: calc(var(--hello-bar-height) + var(--indicator-bar-height));
}

body.home-premium-ready .hero-section::before,
body.home-premium-ready .hero-content {
  transition:
    transform 900ms var(--ease-out-quint),
    opacity 700ms var(--ease-out-quart);
  will-change: transform;
}

body.home-premium-ready .hero-section::before {
  transform: scale(1.02)
    translate3d(calc(var(--hero-shift-x, 0px) * -0.35), calc(var(--hero-shift-y, 0px) * -0.35), 0);
}

body.home-premium-ready .hero-content {
  transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0);
}

body.home-premium-ready .hero-content > * {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  animation: hero-rise-in 720ms var(--ease-out-quint) forwards;
}

body.home-premium-ready .hero-content > :nth-child(1) {
  animation-delay: 80ms;
}

body.home-premium-ready .hero-content > :nth-child(2) {
  animation-delay: 180ms;
}

body.home-premium-ready .hero-content > :nth-child(3) {
  animation-delay: 280ms;
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 720ms var(--ease-out-quart),
    transform 720ms var(--ease-out-quart);
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body.home-premium-ready .about-image-wrapper,
body.home-premium-ready .service-card,
body.home-premium-ready .trust-kpi-card,
body.home-premium-ready .team-mini-card {
  transition:
    transform 320ms var(--ease-out-quart),
    box-shadow 320ms var(--ease-out-quart),
    border-color 320ms var(--ease-out-quart);
}

body.home-premium-ready .about-image-wrapper:hover,
body.home-premium-ready .service-card:hover,
body.home-premium-ready .trust-kpi-card:hover,
body.home-premium-ready .team-mini-card:hover {
  transform: translate3d(0, -6px, 0);
}

body.home-premium-ready .hero-btn,
body.home-premium-ready .about-btn,
body.home-premium-ready .service-blog-link,
body.home-premium-ready .social-icon {
  transition:
    transform 240ms var(--ease-out-quart),
    box-shadow 240ms var(--ease-out-quart),
    background-color 240ms var(--ease-out-quart),
    color 240ms var(--ease-out-quart),
    border-color 240ms var(--ease-out-quart);
}

body.home-premium-ready .hero-btn:hover,
body.home-premium-ready .about-btn:hover,
body.home-premium-ready .service-blog-link:hover,
body.home-premium-ready .social-icon:hover {
  transform: translate3d(0, -3px, 0);
}

@keyframes hero-rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Renta2026 */
#hello-bar {
  background-color: transparent !important;
  background-image: url('img/at2026-scaled.webp');
  background-size: cover;
  background-position: center 37.5%;
  background-repeat: no-repeat;
  color: #fff;
  box-shadow: 0 8px 30px rgb(0 0 0 / 25%);
  overflow: hidden;
}

#hello-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgb(61 188 115 / 78%) 0%, rgb(61 188 115 / 62%) 100%);
  pointer-events: none;
}

/* Scanner360 */
#hello-bar-2 {
  background-color: transparent !important;
  background-image: url('img/SCANNER 360 HELLOBAR.webp');
  background-size: cover;
  background-position: center 42.5%;
  background-repeat: no-repeat;
  color: #fff;
  box-shadow: 0 8px 30px rgb(0 0 0 / 25%);
  overflow: hidden;
}

#hello-bar-2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgb(33 122 138 / 80%) 0%, rgb(33 122 138 / 70%) 100%);
  pointer-events: none;
}

.hello-content {
  position: relative;
  z-index: 2;
}

/* Unificación de fuente para hello-bar botones (blog y sitio principal) */
#hello-bar .hello-btn,
#hello-bar-2 .hello-btn {
  background-color: var(--color-primary, #e67542) !important;
  color: #fff !important;
  border-color: rgb(230 117 66 / 95%) !important;
  box-shadow: 0 8px 30px rgb(230 117 66 / 18%);
  font-family: Montserrat, sans-serif !important;
}

#hello-bar .hello-content p strong {
  background: linear-gradient(90deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
  text-shadow: 0 0 18px rgb(61 188 115 / 90%);
  color: #fff;
}

#hello-bar-2 .hello-content p strong {
  font-size: 1rem;
}

#hello-bar .hello-content p {
  margin-left: 1ch;
  margin-right: 2ch;
}

#hello-bar-2 .hello-btn {
  background-color: var(--color-secundario, #e67542) !important;
  color: #fff !important;
  border-color: rgb(230 117 66 / 95%) !important;
  box-shadow:
    0 8px 30px rgb(230 117 66 / 25%),
    0 0 18px rgb(230 117 66 / 12%);
}

#hello-bar-2 .hello-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgb(230 117 66 / 35%),
    0 0 28px rgb(230 117 66 / 25%);
  background-color: color-mix(in srgb, var(--color-secundario, #e67542) 85%, #fff 15%);
  color: #fff !important;
  border-color: rgb(230 117 66 / 100%) !important;
}

@media (width <= 768px) {
  #hello-bar-2 {
    background-color: var(--color-terciario, #31989d) !important;
  }

  #hello-bar-2 .hello-btn {
    background-color: var(--color-secundario, #e67542) !important;
  }
}

/* Desktop layout */
.hello-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  color: #fff !important;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  box-sizing: border-box;
}

.hello-content p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
}

.hello-content p strong {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgb(49 152 157 / 4%), rgb(49 152 157 / 1%));
  text-shadow:
    0 0 22px rgb(49 152 157 / 100%),
    0 0 45px rgb(49 152 157 / 56%);
  transition: text-shadow 0.2s ease;
  white-space: nowrap;
}

.hello-btn {
  display: inline-block;
  min-width: 190px;
  padding: 9px 22px;
  background-color: var(--color-terciario, #31989d);
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid rgb(49 152 157 / 95%);
  box-shadow:
    0 13px 48px rgb(49 152 157 / 40%),
    0 0 29px rgb(49 152 157 / 19%);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.hello-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgb(49 152 157 / 35%),
    0 0 28px rgb(49 152 157 / 25%);
  background-color: color-mix(in srgb, var(--color-terciario, #31989d) 85%, #fff 15%);
  color: #fff;
  border-color: rgb(49 152 157 / 100%);
}

.hello-close {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: rgb(255 255 255 / 70%);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: none;
}

.hello-close:hover {
  color: white;
}

.hello-logo {
  height: 85px;
  width: auto;
  display: inline-block;
  margin-right: 15px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

/* ============================================================
   CRONÓMETRO CUENTA REGRESIVA - ESTILOS
   ============================================================ */
.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  flex-grow: 1;
  height: 100%;
  line-height: 1;
  margin: 22px 0 0;
  padding: 0 4px;
  perspective: 1200px;
  will-change: transform;
  flex-direction: column;
}

.countdown-label {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.95;
  margin: 0;
  padding: 3px 6px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  flex-shrink: 0;
  color: #fff;
  line-height: 1;
  background: #000;
  border-radius: 3px;
  border: 1px solid rgb(255 255 255 / 20%);
  text-shadow:
    0 2px 8px rgb(255 255 255 / 50%),
    0 0 10px rgb(255 255 255 / 40%);
  animation: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

@media (width >= 769px) {
  .countdown-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
}

.countdown-display {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 1.9rem;
  font-weight: 900;
  color: #a02020;
  letter-spacing: 1.5px;
  flex-shrink: 0;
  margin: 0;
  padding: 4px 10px;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    rgb(160 32 32 / 15%) 0%,
    rgb(160 32 32 / 8%) 30%,
    rgb(160 32 32 / 12%) 70%,
    rgb(160 32 32 / 6%) 100%
  );
  border: 2px solid rgb(160 32 32 / 30%);
  border-radius: 5px;
  box-shadow:
    inset 0 2px 4px rgb(255 255 255 / 30%),
    inset 0 -2px 4px rgb(0 0 0 / 10%),
    0 4px 12px rgb(160 32 32 / 30%);
  text-shadow:
    0 0 5px rgb(160 32 32 / 80%),
    0 0 10px rgb(160 32 32 / 60%);
  transform: translateZ(15px) rotateX(2deg);
  animation:
    float-number 3.5s cubic-bezier(0.37, 0, 0.63, 1) infinite,
    glow-pulse 4s ease-in-out infinite,
    tilt-3d 5s ease-in-out infinite;
  position: relative;
  backdrop-filter: blur(3px);
}

.countdown-display::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 25%) 0%, transparent 100%);
  border-radius: 2px 2px 0 0;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes float-number {
  0%,
  100% {
    transform: translateZ(15px) rotateX(2deg) translateY(0);
  }

  50% {
    transform: translateZ(15px) rotateX(2deg) translateY(-2px);
  }
}

@keyframes tilt-3d {
  0%,
  100% {
    transform: translateZ(15px) rotateX(2deg) rotateY(0deg);
  }

  50% {
    transform: translateZ(15px) rotateX(2deg) rotateY(2deg);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 2px 4px rgb(255 255 255 / 30%),
      0 4px 12px rgb(255 51 51 / 30%);
  }

  50% {
    box-shadow:
      inset 0 3px 6px rgb(255 255 255 / 40%),
      0 6px 16px rgb(255 51 51 / 40%);
  }
}

/* ==========================================================================
   SOLUCIÓN DEFINITIVA V3.9.1: GRID ASIMÉTRICO (Alineación Perfecta)
   ========================================================================== */

@media (width <= 768px) {
  /* 1. ALTURA MAESTRA (Intocable) */
  :root {
    --hello-bar-height: 135px !important;
  }

  #hello-bar,
  #hello-bar-2 {
    height: var(--hello-bar-height) !important;
    min-height: var(--hello-bar-height) !important;
    max-height: var(--hello-bar-height) !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* --- 2. BOTONES --- */
  .hello-btn {
    padding: 11px 16px !important;
    font-size: 0.85rem !important;
    min-width: 140px !important;
    margin: 0;
    position: static;
    transform: none;
    max-width: none;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
    line-height: 1.1;
  }

  /* --- 3. BARRA RENTA (VERDE) - LA MAGIA DEL GRID --- */
  #hello-bar .hello-content {
    display: grid !important;

    /* Col 1: Logo (automático) | Col 2: El resto (Botón/Cronómetro) */
    grid-template-columns: min-content 1fr !important;

    /* AQUÍ ESTÁ EL TRUCO: 
           65% arriba para el botón (lo empuja hacia el centro)
           35% abajo para el cronómetro */
    grid-template-rows: 64% 36% !important;
    height: 100% !important;
    padding: 0 16px !important; /* Margen de seguridad lateral */
    gap: 0 !important;
    align-items: start !important;
  }

  /* Logo: Centrado verticalmente ocupando todo el alto */
  #hello-bar .hello-logo {
    grid-column: 1;
    grid-row: 1 / -1; /* Ocupa las dos filas */
    align-self: center !important;
    height: 55px !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* Botón: Alineado al FONDO de la fila superior (línea del 64%) */
  #hello-bar .hello-btn {
    grid-column: 2;
    grid-row: 1;
    place-self: end end !important; /* Pegado a la derecha */ /* Pegado a la línea divisoria */
    margin-bottom: 2px !important; /* Pequeño respiro */
  }

  /* Cronómetro: Alineado al TECHO de la fila inferior */
  #hello-bar .countdown-container {
    grid-column: 1 / -1;
    grid-row: 2;
    place-self: start start !important; /* Movido a la izquierda */ /* Colgando de la línea divisoria */

    /* Limpieza de márgenes para evitar desbordes */
    margin-top: 2px !important;
    margin-left: 25px !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    flex-direction: row !important;
    gap: 0 !important;
  }

  #hello-bar .hello-close {
    display: none !important;
  }

  /* Texto "DIAS RESTANTES" */
  .countdown-label {
    font-size: clamp(0.55rem, 2.5vw, 0.7rem) !important;
    margin: 0 !important;
    opacity: 0.9 !important;
  }

  /* Números */
  .countdown-display {
    font-size: clamp(1rem, 5vw, 1.25rem) !important;
    padding: 1px 6px !important;
  }

  /* --- 4. BARRA SCANNER (AZUL) - FLEX SIMPLE --- */
  #hello-bar-2 {
    display: flex !important;
    align-items: center !important;
    background-position: center 45% !important;
  }

  #hello-bar-2 .hello-content {
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important; /* Mismo padding que Renta */
  }

  #hello-bar-2 .hello-logo {
    flex-shrink: 0;
    margin-right: 0;
    height: 60px;
  }

  #hello-bar-2 .hello-btn {
    flex-shrink: 0;
  }

  /* Ocultar textos extra en móvil */
  #hello-bar .hello-content p,
  #hello-bar-2 .hello-content p {
    display: none !important;
  }

  /* --- 5. SEGURIDAD PANTALLAS PEQUEÑAS (IPHONE SE / FOLD) --- */
  @media (width <= 380px) {
    .hello-logo {
      height: 35px !important;
    }

    .hello-btn {
      min-width: 100px !important;
      font-size: 0.75rem !important;
      padding: 8px 10px !important;
    }

    /* Ajuste fino si se aprieta mucho */
    .countdown-display {
      font-size: 0.9rem !important;
    }
  }
}

/* Final override: asegurar 3 columnas para posts en tablet/desktop */
@media (min-width: 992px) {
  .app.blog .news-panel {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
  }
}

/* Ajuste: cuando hay hello-bar activa, bajar el hero del blog para que no lo tape la navbar */
body.has-hello-bar .app.blog .blog-hero {
  margin-top: 0 !important;
}

body.has-hello-bar.has-indicator-bar .app.blog .blog-hero {
  margin-top: 0 !important;
}

/* ============================================================
   MODAL STYLES
   ============================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-overlay[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  background: var(--cy-surface, white);
  color: var(--cy-text, #111816);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay[aria-hidden='false'] .modal-content-wrapper {
  transform: scale(1);
}

.modal-content {
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10001;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.modal-close-btn i {
  color: var(--cy-text, #333);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .modal-content-wrapper {
    width: 95vw;
    max-height: 95vh;
  }

  .modal-content {
    padding: 1rem;
    max-height: 85vh;
  }
}

/* Estilos para CTA Instagram */
.insta-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
  padding: 10px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.insta-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.insta-cta i {
  font-size: 16px;
}

/* Estilos para CTA WhatsApp */
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #25d366 0%, #20b858 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta i {
  font-size: 16px;
}

/* Public site cleanup 2026-03-20b: remove AI-style accent stripes */
.conversion-flow-card,
.contact-form-card {
  border: 1px solid rgb(230 117 66 / 16%);
}

.blog .post-card::before {
  content: none;
  display: none;
}

.blog .post-card {
  border: 1px solid rgb(19 24 32 / 8%);
}

/* Public footer system 2026-03-20c: unified footer across public site */
.main-footer {
  background: #020202;
  color: rgb(255 255 255 / 96%);
  padding: clamp(4.2rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem) 1.6rem;
  font-family: Montserrat, sans-serif;
}

.main-footer .footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) minmax(160px, 0.7fr) minmax(220px, 0.9fr);
  grid-template-areas:
    'brand explora conectemos'
    'brand explora legal';
  column-gap: clamp(2.5rem, 5vw, 6.5rem);
  row-gap: 1.5rem;
  align-items: start;
}

.main-footer .footer-container > div:first-child {
  grid-area: brand;
}

.main-footer .footer-container > div:nth-child(2) {
  grid-area: explora;
}

  .main-footer .footer-container > div:nth-child(3) {
    grid-area: legal;
    margin-top: -0.85rem;
  }

.main-footer .footer-container > div:nth-child(4) {
  grid-area: conectemos;
}

.main-footer .footer-logo-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  padding-top: 0.2rem;
}

.main-footer .footer-logo-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 15px;
  border-radius: 12px;
  background: #1d2430;
  border: 1px solid rgb(255 255 255 / 6%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.main-footer .footer-logo-link {
  display: inline-flex;
}

.main-footer .footer-logo-img {
  display: block;
  width: auto;
  height: 52.5px;
  max-height: 52.5px;
  object-fit: contain;
}

[data-theme='light'] .main-footer .footer-logo-bg {
  background: #f2f5fa;
  border-color: rgb(19 24 32 / 10%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%);
}

[data-theme='dark'] .main-footer .footer-logo-bg {
  background: #1d2430;
  border-color: rgb(255 255 255 / 6%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.main-footer .footer-brand-copy {
  max-width: 320px;
  margin: 0;
  color: rgb(255 255 255 / 76%);
  font-size: 0.98rem;
  line-height: 1.55;
}

.main-footer .footer-title {
  margin: 0 0 0.95rem;
  color: #e67542;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-footer .footer-links li {
  margin: 0 0 0.7rem;
}

.main-footer .footer-links a {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgb(255 255 255 / 95%) !important;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.9;
  text-decoration: none;
}

.main-footer .footer-links a:hover {
  color: #e67542 !important;
  text-decoration: none;
}

.main-footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
  align-items: center;
}

.main-footer .social-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 7%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.main-footer .social-icon:hover,
.main-footer .social-icon:focus-visible {
  transform: translateY(-1px);
}

.main-footer .social-icon.whatsapp:hover {
  background: rgb(37 211 102 / 14%);
  border-color: rgb(37 211 102 / 28%);
  color: #fff;
}

.main-footer .social-icon.instagram:hover {
  background: rgb(228 64 95 / 14%);
  border-color: rgb(228 64 95 / 28%);
  color: #fff;
}

.main-footer .social-icon.linkedin:hover {
  background: rgb(0 119 181 / 14%);
  border-color: rgb(0 119 181 / 28%);
  color: #fff;
}

.main-footer .footer-bottom {
  max-width: 1320px;
  margin: clamp(3rem, 5vw, 4rem) auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgb(255 255 255 / 9%);
  text-align: center;
  color: rgb(255 255 255 / 62%);
  font-size: 0.92rem;
}

.main-footer .footer-bottom p {
  margin: 0;
}

@media (width <= 900px) {
  .main-footer .footer-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'explora'
      'conectemos'
      'legal';
    row-gap: 1.9rem;
  }

  .main-footer .footer-logo-box,
  .main-footer .footer-container > div:nth-child(2),
  .main-footer .footer-container > div:nth-child(3),
  .main-footer .footer-container > div:nth-child(4) {
    text-align: center;
    align-items: center;
    justify-self: center;
  }

  .main-footer .footer-brand-copy {
    text-align: center;
  }

  .main-footer .footer-socials {
    justify-content: center;
  }

  .main-footer .footer-links a {
    line-height: 1.8;
  }
}
