/* --- Variables Base --- */
:root {
  --bg: #1C2738;
  /* Fondo de paneles y footer */
  --text: #ffffff;
  --title: #ffffff;
  --muted: #a0aec0;
  --navy: #0c2d5a;
  --cyan: #1ba1e2;
  --cyan-light: #52c7ff;
  --line: rgba(255, 255, 255, 0.08);
  /* Sutil y elegante gris oscuro neutro */
  --glow: 0 10px 40px rgba(0, 0, 0, 0.7);
  /* Sombra elegante neutra sin azul */
  --accent-line: rgba(27, 161, 226, 0.4);
  /* Línea con brillo cian (para tarjetas/botones) */
  --accent-glow: 0 0 28px rgba(27, 161, 226, 0.35), 0 0 80px rgba(27, 161, 226, 0.15);
  /* Resplandor cian */
  --radius: 22px;
  --body-bg: #0B111A;
  /* Lienzo / Fondo de la web */
  --panel-bg: #1C2738;
  /* Fondo del carrusel y secciones */
  --card-bg: linear-gradient(180deg, #182232, #0d1522);
  /* Tarjetas con contraste azulado oscuro frío */
  --input-bg: rgba(255, 255, 255, .06);
  --pill-bg: rgba(255, 255, 255, .03);
  --pill-border: rgba(255, 255, 255, .08);
  --footer-title: var(--cyan-light);
}

body.light-mode,
html.light-mode body {
  --bg: #ffffff;
  --text: #1e293b;
  --title: #0c2d5a;
  --muted: #64748b;
  --navy: #0284c7;
  --line: rgba(12, 45, 90, 0.12);
  --glow: 0 8px 20px rgba(12, 45, 90, 0.08);
  --accent-line: rgba(12, 45, 90, 0.25);
  --accent-glow: 0 8px 20px rgba(12, 45, 90, 0.15);
  --body-bg: #f8fafc;
  --panel-bg: #ffffff;
  --card-bg: #ffffff;
  --input-bg: #f4f7f6;
  --pill-bg: #f4f7f6;
  --pill-border: rgba(12, 45, 90, 0.15);
  --footer-title: var(--navy);
  --cyan-light: var(--navy);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--body-bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  color: var(--title);
  transition: color 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100% - 40px, 1500px);
  margin: 0 auto;
}

/* --- Navegación --- */
.header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  /* Reducida altura de relleno */
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
  color: var(--title);
  background: #131a28;
  /* Unificado con el fondo del header inferior */
  border-radius: var(--radius) var(--radius) 0 0;
  /* Bordes superiores redondeados */
  margin-top: 15px;
  /* Separado del lienzo exterior */
  border: 1px solid var(--line);
  border-bottom: none;
}

body.light-mode .header-top-bar ,
html.light-mode body .header-top-bar {
  background: #ffffff;
  border-color: rgba(12, 45, 90, 0.12);
}

.header-top-bar a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  padding: 0 10px;
  height: 28px;
  /* Menor altura para elementos compactos */
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--title);
  font-weight: 500;
  /* Quitado el bold (800) a 500 */
  text-decoration: none;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  color: var(--title);
}

.top-separator {
  color: var(--line);
}

.hours-short {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
  /* Altura fija para que el header nunca se ensanche o varíe entre modo día/noche */
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  position: sticky;
  top: 0;
  background: #131a28;
  z-index: 100;
  transition: all 0.4s ease;
  margin-top: 0;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.light-mode .topbar ,
html.light-mode body .topbar {
  background: #ffffff;
  border-color: rgba(12, 45, 90, 0.12);
  box-shadow: 0 8px 20px rgba(12, 45, 90, 0.05);
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 100%;
  /* Ocupa el alto del contenedor */
}

.logo-light {
  display: none;
  height: 55px;
  /* Reducido a 55px para que no se perciba sobredimensionado en modo día */
  width: auto;
  object-fit: contain;
}

.logo-dark {
  display: block;
  height: 80px;
  /* Incrementado a 80px para que el logo en modo oscuro resalte y tenga el peso visual correcto */
  width: auto;
  object-fit: contain;
}

body.light-mode .logo-dark ,
html.light-mode body .logo-dark {
  display: none;
}

body.light-mode .logo-light ,
html.light-mode body .logo-light {
  display: block;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 20px;
  color: var(--title);
  background: transparent;
  font-weight: 500;
  /* Quitado el bold (800) a 500 */
  font-size: .9rem;
  transition: all .3s ease;
  cursor: pointer;
}

.filter-btn {
  font-weight: 500 !important;
  /* Asegura quitarle el bold a los botones de filtro de flota */
}

.nav-link:hover,
.nav-link.active,
.theme-toggle:hover,
.lang-btn:hover,
.header-top-bar a:hover {
  border-color: var(--cyan);
  background: rgba(27, 161, 226, 0.1);
  box-shadow: var(--accent-glow);
  color: var(--cyan) !important;
}

body.light-mode .nav-link:hover,
body.light-mode .theme-toggle:hover,
body.light-mode .lang-btn:hover,
body.light-mode .header-top-bar a:hover ,
html.light-mode body .nav-link:hover,
body.light-mode .theme-toggle:hover,
body.light-mode .lang-btn:hover,
body.light-mode .header-top-bar a:hover {
  color: var(--title) !important;
}

.nav-link.primary {
  border-color: var(--line);
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  box-shadow: var(--accent-glow);
  color: #fff !important;
}

.nav-link.primary:hover {
  color: #fff !important;
}

body.light-mode .nav-link.primary,
body.light-mode .nav-link.primary:hover,
html.light-mode body .nav-link.primary,
body.light-mode .nav-link.primary:hover {
  color: #ffffff !important;
}

/* --- Acciones Header (Tema y Selector de Idioma) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: var(--title);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

body.light-mode .theme-toggle .sun-icon ,
html.light-mode body .theme-toggle .sun-icon {
  display: none;
}

body.light-mode .theme-toggle .moon-icon ,
html.light-mode body .theme-toggle .moon-icon {
  display: block;
}

/* Selector de Idioma */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--title);
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  /* Quitado el bold (700) a 500 */
  font-size: 0.95rem;
  transition: all 0.3s ease;
  height: 42px;
}

.mobile-menu-actions {
  display: none;
}

.lang-btn:hover {
  box-shadow: var(--glow);
  border-color: var(--cyan);
}

.lang-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #131a28;
  /* Unificado con el fondo del header */
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  min-width: 120px;
  overflow: hidden;
  z-index: 200;
}

body.light-mode .lang-menu ,
html.light-mode body .lang-menu {
  background: #ffffff;
  border-color: rgba(12, 45, 90, 0.12);
  box-shadow: 0 10px 25px rgba(12, 45, 90, 0.15);
}

.lang-menu.show {
  display: flex;
}

.lang-item {
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
  color: var(--text);
  font-weight: 500;
  /* Quitado el bold (700) a 500 */
  font-size: 0.95rem;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.light-mode .lang-item ,
html.light-mode body .lang-item {
  color: #1e293b;
}

body.light-mode .lang-item:hover ,
html.light-mode body .lang-item:hover {
  background: rgba(12, 45, 90, 0.05);
}

.lang-flag {
  width: 20px;
  height: 14.5px;
  object-fit: cover;
  border-radius: 2px;
}

/* Menú Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  padding: 10px 0 25px;
}

.hero-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  /* Reseteado a var(--panel-bg) (color #1C2738) */
  box-shadow: var(--glow), 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px 40px;
  /* Aumentado padding superior e inferior de 10px a 20px */
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.05fr 420px;
  gap: 48px;
  align-items: center;
  padding: 35px 0 15px;
  width: 100%;
  animation: fadeEffect 0.8s ease-in-out;
}

.hero-slide.active {
  display: grid;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.carousel-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.hero-carousel-dots {
  display: flex;
  gap: 8px;
}

.hero-carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-carousel-dots .dot.active {
  opacity: 1;
  background: var(--cyan);
  width: 20px;
  border-radius: 4px;
}

.carousel-nav-btn {
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--title);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.carousel-nav-btn:hover {
  border-color: var(--cyan);
  background: rgba(27, 161, 226, 0.1);
  box-shadow: var(--glow);
  color: var(--cyan) !important;
}

.hero-slide .hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-slide .hero-right {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glow);
  border: 1px solid var(--line);
}

.hero-slide .hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cyan);
  z-index: 10;
  opacity: 0.6;
  display: flex;
  justify-content: center;
}

.scroll-indicator svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-8px);
  }

  60% {
    transform: translateY(-4px);
  }
}

.eyebrow {
  display: inline-flex;
  color: var(--cyan-light);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.accent {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(27, 161, 226, .4);
}

.subhead {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 22px 0 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.hero-proof .pill {
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .92rem;
  font-weight: 800;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: white;
  font-weight: 900;
  box-shadow: var(--glow);
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
  background: #fff;
  width: 22px;
  border-radius: 5px;
  box-shadow: 0 0 10px var(--cyan);
}

body.light-mode .dot ,
html.light-mode body .dot {
  background: rgba(12, 45, 90, 0.2);
}

body.light-mode .dot.active ,
html.light-mode body .dot.active {
  background: var(--title) !important;
  box-shadow: 0 0 10px rgba(12, 45, 90, 0.3);
}

/* --- Secciones Animadas (Scroll Reveal) --- */
.panel,
.hero-carousel-wrapper {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel.visible,
.hero-carousel-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.panel {
  border: 1px solid var(--line);
  box-shadow: var(--glow), 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Secciones Globales --- */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.05em;
  margin: 12px 0 30px;
  /* Incrementado margen inferior de 8px a 30px */
}

.panel {
  border-radius: var(--radius);
  background: var(--panel-bg);
  /* Reseteado a var(--panel-bg) (color #1C2738) para mayor contraste con las cards */
  padding: 30px;
  margin-bottom: 24px;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.about-panel {
  background: var(--card-bg) !important;
  /* Fuerza a usar el degradado de las cards para consistencia visual */
}

/* --- Sobre Nosotros --- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.15;
}

.about-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--glow);
  border: 1px solid var(--line);
  object-fit: cover;
  height: 380px;
}

/* --- Beneficios --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--card-bg);
  /* Cambiado de var(--input-bg) para unificar fondos de cards */
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
  border-color: var(--cyan);
}

.step .icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(27, 161, 226, .1);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.step strong {
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: block;
  color: var(--text);
}

.step span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Flota --- */
.filters-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#flota {
  margin-top: 50px;
  /* Desplaza la sección hacia abajo para evitar que el título se empotre con la anterior */
}

#flota .section-title {
  margin-top: 15px;
}

.plans-wrapper {
  position: relative;
  width: 100%;
}

.fleet-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--title);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: var(--glow);
}

.fleet-prev {
  left: -22px;
}

.fleet-next {
  right: -22px;
}

.fleet-arrow:hover {
  border-color: var(--cyan);
  background: rgba(27, 161, 226, 0.1);
  color: var(--cyan);
  box-shadow: var(--glow);
}

body.light-mode .fleet-arrow ,
html.light-mode body .fleet-arrow {
  background: #ffffff;
  color: var(--navy);
}

body.light-mode .fleet-arrow:hover ,
html.light-mode body .fleet-arrow:hover {
  background: rgba(12, 45, 90, 0.05);
  color: var(--navy);
  border-color: var(--navy);
}

@media (max-width: 900px) {
  .fleet-arrow {
    display: none;
  }
}

.plans {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 5px 25px 5px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.05);
  width: 100%;
}

.plans::-webkit-scrollbar {
  height: 8px;
}

.plans::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 99px;
}

.plans::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 99px;
  box-shadow: var(--glow);
}

.plan {
  position: relative;
  flex: 0 0 310px;
  scroll-snap-align: start;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.plan:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
}

.plan-header-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 8px;
  gap: 2px;
}

.plan-header-split h3 {
  margin: 0;
  font-size: 0.95rem; /* Reducido para que quepa */
  font-weight: 800;
  color: var(--title);
  line-height: 1.2;
}

.plan-header-split h3 span.accent {
  color: var(--cyan);
}

.plan-header-split .price-tag {
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.85rem; /* Reducido para que quepa */
  text-shadow: 0 0 10px rgba(27, 161, 226, 0.3);
  white-space: nowrap;
  margin-left: auto;
}

body.light-mode .plan-header-split h3 span.accent ,
html.light-mode body .plan-header-split h3 span.accent {
  color: var(--navy);
}

body.light-mode .plan-header-split .price-tag ,
html.light-mode body .plan-header-split .price-tag {
  color: var(--navy);
  text-shadow: none;
}

.plan-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  /* Cambiado de 1 / 1 (cuadrado) a 16 / 10 (panorámico) para ahorrar espacio vertical */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  background: #090e18;
}

body.light-mode .plan-img-wrap,
html.light-mode body .plan-img-wrap {
  border: none;
  background: transparent;
}

.plan-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plan p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.plan-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}

.plan-buttons .btn {
  flex: 1;
  min-height: 40px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 10px;
}

.plan-buttons .btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.plan-buttons .btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(27, 161, 226, 0.05);
  color: var(--cyan);
}

body.light-mode .plan-buttons .btn-secondary ,
html.light-mode body .plan-buttons .btn-secondary {
  color: var(--navy);
  border-color: var(--line);
}

body.light-mode .plan-buttons .btn-secondary:hover ,
html.light-mode body .plan-buttons .btn-secondary:hover {
  background: rgba(12, 45, 90, 0.05);
  border-color: var(--navy);
}

/* Modal de Detalles */
.car-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeInModal 0.4s ease-out;
}

/* --- Estilos del FAQ Accordion (SEO) --- */
#faq {
  margin-top: 80px;
  width: 100%;
}

.faq-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  width: 100%;
}

.faq-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 15px rgba(27, 161, 226, 0.15);
}

.faq-question svg {
  color: var(--muted);
}

.faq-item:hover .faq-question svg {
  color: var(--cyan);
}

body.light-mode .faq-item ,
html.light-mode body .faq-item {
  background: #ffffff !important;
  border-color: rgba(12, 45, 90, 0.12) !important;
}

body.light-mode .faq-item:hover ,
html.light-mode body .faq-item:hover {
  border-color: var(--navy) !important;
  box-shadow: 0 4px 12px rgba(12, 45, 90, 0.05);
}

body.light-mode .faq-item:hover .faq-question svg ,
html.light-mode body .faq-item:hover .faq-question svg {
  color: var(--navy);
}

@media (max-width: 900px) {
  .faq-section-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 10px 0 !important;
  }
}


.car-modal.show {
  display: flex;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--glow), 0 20px 50px rgba(0, 0, 0, 0.5);
  width: min(100% - 10px, 850px);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  color: var(--text);
}

body.light-mode .modal-content ,
html.light-mode body .modal-content {
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--title);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.close-modal-btn:hover {
  color: var(--cyan);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-main {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumb-img {
  width: 70px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  flex: 0 0 70px;
}

.thumb-img.active,
.thumb-img:hover {
  opacity: 1;
  border-color: var(--cyan);
}

body.light-mode .thumb-img.active,
body.light-mode .thumb-img:hover ,
html.light-mode body .thumb-img.active,
body.light-mode .thumb-img:hover {
  border-color: var(--navy);
}

.thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.modal-info h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: var(--title);
}

.modal-price {
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(27, 161, 226, 0.3);
}

body.light-mode .modal-price ,
html.light-mode body .modal-price {
  color: var(--navy);
  text-shadow: none;
}

.modal-info p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.modal-specs {
  width: 100%;
  margin-bottom: 20px;
}

.modal-specs h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  color: var(--title);
}

.modal-specs ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.8rem;
}

.modal-specs ul li {
  background: var(--input-bg);
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.modal-info .btn {
  width: 100%;
  min-height: 48px;
}

/* --- Formulario --- */
.login-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  background: var(--card-bg);
  /* Cambiado de var(--panel-bg) para que tenga el mismo color de las demás cards */
  box-shadow: var(--glow);
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: 9px;
  color: var(--text);
}

input,
select {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  font-size: 1rem;
  margin-bottom: 20px;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(27, 161, 226, .2);
}

option {
  background: var(--bg);
  color: var(--text);
}

body.light-mode option ,
html.light-mode body option {
  background: #fff;
}

/* --- Footer --- */
.footer {
  background: #131a28;
  /* Cambiado al mismo color de fondo del header para balancear el diseño */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 45px 30px 25px;
  margin-top: 80px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  color: var(--text);
  transition: background 0.4s ease, border-color 0.4s ease;
}

body.light-mode .footer ,
html.light-mode body .footer {
  background: #ffffff;
  border-color: rgba(12, 45, 90, 0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.footer-links-row a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links-row a:hover {
  color: var(--cyan);
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
}

a.contact-item:hover {
  color: var(--cyan);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--text);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: rgba(27, 161, 226, .1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 5px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* --- Media Queries --- */
@media (max-width: 900px) {
  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }

  .hero-slide .hero-left {
    align-items: center;
  }

  .hero-slide .hero-right img {
    height: auto;
    max-height: 400px;
  }

  .hero-carousel-wrapper {
    min-height: auto;
    padding-bottom: 20px;
  }

  .hero-proof {
    justify-content: center;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 300px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 850px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .header-actions .lang-switcher,
  .header-actions .theme-toggle {
    display: none !important;
  }

  .mobile-menu-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    width: 100%;
  }

  .mobile-menu-actions .lang-switcher {
    display: block;
  }

  .mobile-menu-actions .theme-toggle {
    display: flex;
  }

  .mobile-menu-actions .lang-switcher .lang-menu {
    top: auto;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.6);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .header-top-bar {
    flex-direction: row !important;
    justify-content: flex-end !important;
    padding: 6px 8px !important;
  }

  .hours-full {
    display: none;
  }

  .hours-short {
    display: inline;
  }

  .top-right {
    flex-direction: row;
    align-items: center;
    gap: 4px !important;
    width: auto !important;
    margin-left: auto !important;
  }

  .top-right .follow-text {
    display: none !important;
  }

  .top-right span,
  .top-right a {
    font-size: 0.75rem !important;
    padding: 0 2px !important;
    gap: 3px !important;
  }

  .top-right svg {
    width: 12px !important;
    height: 12px !important;
  }

  .steps {
    grid-template-columns: 1fr !important;
  }
}

/* --- Desktop Scroll Snapping & Section Height --- */
@media (min-width: 901px) {

  .panel,
  #flota,
  #reserva,
  #faq {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #nosotros,
  #beneficios {
    min-height: auto !important;
    /* Quita el min-height de 100vh para evitar el espacio sobrante arriba y abajo */
    padding: 30px !important;
  }

  #beneficios {
    margin-top: 100px !important;
    /* Desplaza la sección hacia abajo para evitar que el título se empotre con la anterior */
  }

  .hero-carousel-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-section {
    display: grid !important;
  }

  #flota {
    min-height: auto;
    /* Permite que la flota tome su altura natural compacta sin forzar exceso vertical */
    padding-bottom: 20px;
  }
}

/* --- Reserva Split Layout --- */
.reserva-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.reserva-info-panel h3 {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--title);
  font-weight: 700;
}

.reserva-info-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.reserva-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reserva-features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.reserva-features .feature-icon {
  font-size: 1.4rem;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.reserva-features .feature-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--title);
  margin-bottom: 4px;
  font-weight: 600;
}

.reserva-features .feature-text span {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

#faq {
  padding: 60px 0;
}

/* Responsivo para el formulario de reserva */
@media (max-width: 900px) {
  .hero-carousel-wrapper {
    margin: -20px auto 0 !important;
    /* Margen negativo exclusivo para móvil para juntarlo al header */
  }

  .reserva-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 10px 0;
  }
}

/* Ajustes finos para teléfonos móviles */
@media (max-width: 900px) {
  #reserva {
    padding: 10px 0 !important;
    margin: 0 !important;
  }
  #faq {
    padding: 10px 0 !important;
    margin: 0 !important;
  }
  #faq .section-title {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
  #faq-subtitle-centered {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 480px) {
  .hero-frame {
    padding: 0 15px 10px !important;
  }

  .plan {
    flex: 0 0 calc(100vw - 70px) !important;
    max-width: 290px;
  }

  .plans {
    padding: 10px 0 25px 0 !important;
  }

  .plan-buttons {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .plan-buttons .btn {
    width: 100% !important;
    min-height: 44px !important;
  }

  .plan-header-split {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }

  .plan-header-split h3 {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .plan-header-split .price-tag {
    font-size: 0.85rem;
    margin-top: 2px;
  }

  .hero-slide {
    padding: 15px 0 10px;
  }

  .subhead {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 15px 0 20px;
  }

  .hero-proof {
    gap: 8px;
    justify-content: center;
  }

  .hero-proof .pill {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .reserva-features {
    gap: 16px;
  }

  .reserva-features .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .btn {
    min-height: 48px !important;
    padding: 0 18px !important;
    font-size: 0.92rem !important;
    border-radius: 8px !important;
  }

  .footer {
    padding: 35px 20px 20px;
    gap: 20px;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 15px;
  }

  .footer-contact-row {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}


  .footer-contact-row {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}
  color: var(--title);
}
.post-body p {
  margin-bottom: 20px;
  color: var(--text);
  opacity: 0.9;
}
.post-body ul, .post-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}
.post-body li {
  margin-bottom: 10px;
  color: var(--text);
  opacity: 0.9;
}
.breadcrumbs a {
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: var(--cyan);
}

/* === EXPERIMENTO: rec-card bg === */
/* Original: background: var(--card-bg) — está en el inline style del HTML */
.rec-card {
  background: var(--body-bg) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease !important;
}
.rec-card:hover {
  border-color: var(--cyan) !important;
}

/* === FAQ items del blog (mismo fondo que rec-card) === */
/* Original: background: var(--card-bg) — está en el inline style del HTML */
.post-faq-section .faq-item {
  background: var(--body-bg) !important;
}
/* Responsive Blog Adjustments */
@media (max-width: 900px) {
  .blog-hero-content {
    padding: 20px 0 !important;
  }
  .blog-controls {
    padding: 15px !important;
  }
  .post-layout {
    padding: 20px !important;
  }
}
/* Carousel for Blog Posts */
.post-carousel-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 35px;
  border: 1px solid var(--line);
}
.post-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  aspect-ratio: 16 / 9;
}
.post-carousel::-webkit-scrollbar {
  display: none;
}
.post-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.post-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
}
.post-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.carousel-dots .dot.active {
  opacity: 1;
}
/* Layout and Sidebar for Blog Article */
.post-layout-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  align-items: start;
}
.post-sidebar-column {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-recommendations h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--title);
  margin-top: 0;
  margin-bottom: 15px;
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
}
.rec-card {
  display: flex;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.rec-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}
.rec-card-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.rec-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rec-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--title);
  line-height: 1.3;
  margin: 0;
}
@media (max-width: 900px) {
  .post-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .post-sidebar-column {
    position: static;
  }
}

/* === Estilos de Controles de Búsqueda y Filtros en el Blog (Task 4) === */
.blog-controls-bar input, .blog-controls-bar select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}
.blog-controls-bar input:hover, .blog-controls-bar select:hover {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 10px rgba(27, 161, 226, 0.15) !important;
}
.blog-controls-bar input:focus, .blog-controls-bar select:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 15px rgba(27, 161, 226, 0.25) !important;
}

/* === Ajustes compartidos: blog posts y footer === */
.post-main-column {
  min-width: 0;
}

.post-carousel {
  overflow-y: hidden !important;
}

.post-slide {
  min-width: 100% !important;
  max-width: 100% !important;
}

.post-slide img {
  display: block !important;
}

.post-main-column > .post-slide,
.post-main-column > .carousel-nav-btn {
  display: none !important;
}

.post-main-column > .carousel-dots ~ .carousel-dots {
  display: none !important;
}

@media (min-width: 901px) {
  .post-layout-grid {
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr) !important;
    align-items: start !important;
  }

  .post-sidebar-column {
    grid-column: 2 !important;
    align-self: start !important;
  }
}

.footer-contact-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px 24px !important;
}

.footer-contact-row > .contact-item:first-child {
  flex-basis: 100%;
  justify-content: center;
}

.footer-contact-links-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px 24px !important;
}

@media (max-width: 480px) {
  .footer-contact-row,
  .footer-contact-links-group {
    flex-direction: row !important;
  }

  .footer-contact-row > .contact-item:first-child {
    flex-basis: 100%;
  }
}

/* Correccion: indicadores del carrusel en entradas del blog */
.post-main-column > .carousel-dots {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.post-main-column > .carousel-dots .dot {
  background: var(--muted) !important;
  opacity: 0.45 !important;
}

.post-main-column > .carousel-dots .dot.active {
  background: var(--cyan) !important;
  opacity: 1 !important;
  width: 22px !important;
  border-radius: 999px !important;
}

/* Footer limpio centrado */
.footer-brand { order: 1 !important; }
.footer-links-row { order: 2 !important; }
.footer-contact-row { order: 3 !important; }
.social-icons { order: 4 !important; }
.footer-bottom { order: 5 !important; }

.footer-contact-links-group {
  order: 1 !important;
}

.footer-contact-row > a.contact-item[href*="maps"] {
  order: 2 !important;
}
.footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 22px !important;
  padding: 48px 32px 24px !important;
}

.footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
}

.footer-brand .brand-text {
  margin: 0 !important;
  line-height: 1.2 !important;
}

.footer-brand p {
  margin: 0 auto !important;
  max-width: 760px !important;
  text-align: center !important;
  line-height: 1.55 !important;
}

.footer-links-row {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px 34px !important;
  margin: 0 !important;
}

.footer-contact-row {
  width: 100% !important;
  max-width: 780px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px 30px !important;
  margin: 0 auto !important;
}

.footer-contact-links-group {
  display: contents !important;
}

.footer-contact-row > a.contact-item[href^="tel:"],
.footer-contact-row > a.contact-item[href^="mailto:"],
.footer-contact-links-group > a.contact-item[href^="tel:"],
.footer-contact-links-group > a.contact-item[href^="mailto:"] {
  order: 1 !important;
  flex: 0 1 auto !important;
}

.footer-contact-row > a.contact-item[href*="maps"] {
  order: 2 !important;
  flex: 0 0 100% !important;
}

.contact-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.35 !important;
}

.social-icons {
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  justify-self: center !important;
  gap: 16px !important;
  margin: 0 auto !important;
  transform: none !important;
  grid-area: auto !important;
}

.footer-bottom {
  width: min(100%, 980px) !important;
  display: block !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 18px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.footer-bottom p {
  margin: 0 !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .footer {
    padding: 38px 20px 22px !important;
    gap: 20px !important;
  }

  .footer-links-row {
    gap: 12px 20px !important;
  }

  .footer-contact-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .footer-contact-links-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .footer-contact-row > a.contact-item[href*="maps"] {
    flex-basis: auto !important;
  }
}


/* Ajuste visual: footer con vinetas y recomendaciones del blog */
.footer-links-row {
  gap: 10px 0 !important;
}

.footer-links-row a {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--muted) !important;
  text-decoration: none !important;
}

.footer-links-row a + a::before {
  content: "\2022";
  color: var(--cyan);
  opacity: 0.8;
  margin: 0 18px;
  font-weight: 800;
}

.sidebar-recommendations {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-recommendations h4 {
  margin: 0;
  border-left: 3px solid var(--cyan);
  padding-left: 12px;
  color: var(--title);
  font-size: 1.08rem;
  line-height: 1.25;
}

.rec-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-card {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.rec-card:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 161, 226, 0.55);
  box-shadow: 0 16px 34px rgba(27, 161, 226, 0.18);
}

.rec-card-img {
  width: 96px;
  height: 82px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--input-bg);
}

.rec-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rec-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rec-card-tag,
.rec-card-province {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.rec-card-tag {
  color: var(--cyan);
  background: rgba(27, 161, 226, 0.12);
  border: 1px solid rgba(27, 161, 226, 0.24);
}

.rec-card-province {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.rec-card-title {
  margin: 0 !important;
  color: var(--title);
  font-size: 0.95rem;
  line-height: 1.32;
  font-weight: 800;
}

body.light-mode .rec-card,
html.light-mode body .rec-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(8, 38, 76, 0.12);
  box-shadow: 0 12px 26px rgba(8, 38, 76, 0.08);
}

body.light-mode .rec-card-province,
html.light-mode body .rec-card-province {
  background: rgba(8, 38, 76, 0.04);
  border-color: rgba(8, 38, 76, 0.10);
}

@media (max-width: 640px) {
  .footer-links-row a + a::before {
    margin: 0 12px;
  }

  .rec-card {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 10px;
  }

  .rec-card-img {
    width: 88px;
    height: 78px;
  }
}


/* Ajuste fino: compartir en entradas */
.post-footer > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.post-footer > div:first-child .social-icons {
  gap: 8px !important;
  margin: 0 !important;
}

.post-footer > div:first-child .social-icons a {
  width: 42px !important;
  height: 42px !important;
}

.post-header [style*="gap: 16px"] {
  gap: 14px !important;
  flex-wrap: wrap !important;
}


/* Share buttons harmony */
.post-footer > div:first-child {
  align-items: center !important;
  gap: 12px !important;
}

.post-footer > div:first-child .social-icons {
  gap: 8px !important;
  margin: 0 !important;
}

.post-footer > div:first-child .social-icons a {
  width: 42px !important;
  height: 42px !important;
  color: var(--title) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: none !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.post-footer > div:first-child .social-icons a:hover,
.post-footer > div:first-child .social-icons a:focus-visible {
  color: var(--cyan) !important;
  background: rgba(27, 161, 226, 0.12) !important;
  border-color: rgba(27, 161, 226, 0.44) !important;
  transform: translateY(-1px) !important;
}

.post-footer > div:first-child .social-icons a.copied {
  color: #22c55e !important;
  border-color: rgba(34, 197, 94, 0.55) !important;
  background: rgba(34, 197, 94, 0.12) !important;
}

body.light-mode .post-footer > div:first-child .social-icons a,
html.light-mode body .post-footer > div:first-child .social-icons a {
  color: var(--title) !important;
  background: rgba(8, 38, 76, 0.045) !important;
  border-color: rgba(8, 38, 76, 0.12) !important;
}

body.light-mode .post-footer > div:first-child .social-icons a:hover,
html.light-mode body .post-footer > div:first-child .social-icons a:hover,
body.light-mode .post-footer > div:first-child .social-icons a:focus-visible,
html.light-mode body .post-footer > div:first-child .social-icons a:focus-visible {
  color: var(--cyan) !important;
  background: rgba(27, 161, 226, 0.10) !important;
  border-color: rgba(27, 161, 226, 0.38) !important;
}


/* Blog post color harmony */
.post-faq-section .faq-item,
.post-sidebar-column .rec-card {
  background: rgba(31, 45, 64, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.18) !important;
}

.post-faq-section .faq-item:hover,
.post-sidebar-column .rec-card:hover {
  background: rgba(36, 52, 73, 0.96) !important;
  border-color: rgba(27, 161, 226, 0.32) !important;
  box-shadow: 0 18px 38px rgba(2, 8, 23, 0.22) !important;
}

.post-faq-section .faq-question {
  color: var(--title) !important;
}

.post-sidebar-column .rec-card-tag,
.post-sidebar-column .rec-card-province {
  background: rgba(27, 161, 226, 0.10) !important;
  border-color: rgba(27, 161, 226, 0.18) !important;
}

.post-sidebar-column .rec-card-province {
  color: rgba(226, 236, 248, 0.82) !important;
}

.blog-cta {
  background: linear-gradient(135deg, rgba(16, 70, 116, 0.96), rgba(24, 139, 190, 0.92)) !important;
  border: 1px solid rgba(125, 211, 252, 0.20) !important;
  box-shadow: 0 18px 44px rgba(8, 47, 73, 0.26) !important;
}

.blog-cta .btn,
.blog-cta a.btn {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #08264c !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.16) !important;
}

.blog-cta .btn:hover,
.blog-cta a.btn:hover {
  background: #ffffff !important;
  transform: translateY(-1px) !important;
}

.post-footer > div:first-child .social-icons a {
  color: rgba(226, 236, 248, 0.92) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.post-footer > div:first-child .social-icons a:hover,
.post-footer > div:first-child .social-icons a:focus-visible {
  color: #7dd3fc !important;
  background: rgba(27, 161, 226, 0.13) !important;
  border-color: rgba(125, 211, 252, 0.42) !important;
}

body.light-mode .post-faq-section .faq-item,
html.light-mode body .post-faq-section .faq-item,
body.light-mode .post-sidebar-column .rec-card,
html.light-mode body .post-sidebar-column .rec-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(8, 38, 76, 0.12) !important;
  box-shadow: 0 12px 28px rgba(8, 38, 76, 0.08) !important;
}

body.light-mode .post-faq-section .faq-item:hover,
html.light-mode body .post-faq-section .faq-item:hover,
body.light-mode .post-sidebar-column .rec-card:hover,
html.light-mode body .post-sidebar-column .rec-card:hover {
  background: rgba(248, 251, 255, 0.98) !important;
  border-color: rgba(27, 161, 226, 0.30) !important;
}

body.light-mode .blog-cta,
html.light-mode body .blog-cta {
  background: linear-gradient(135deg, #eaf6ff, #d7f0ff) !important;
  border-color: rgba(27, 161, 226, 0.22) !important;
  color: #08264c !important;
  box-shadow: 0 18px 40px rgba(8, 38, 76, 0.10) !important;
}

body.light-mode .blog-cta h3,
html.light-mode body .blog-cta h3,
body.light-mode .blog-cta p,
html.light-mode body .blog-cta p {
  color: #08264c !important;
}

body.light-mode .blog-cta .btn,
html.light-mode body .blog-cta .btn,
body.light-mode .blog-cta a.btn,
html.light-mode body .blog-cta a.btn {
  background: #08264c !important;
  color: #ffffff !important;
  border-color: #08264c !important;
}

body.light-mode .post-footer > div:first-child .social-icons a,
html.light-mode body .post-footer > div:first-child .social-icons a {
  color: #08264c !important;
  background: rgba(8, 38, 76, 0.045) !important;
  border-color: rgba(8, 38, 76, 0.12) !important;
}


/* Blog post sections aligned with blog card palette */
.post-faq-section .faq-item,
.post-sidebar-column .rec-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--glow) !important;
}

.post-faq-section .faq-item:hover,
.post-sidebar-column .rec-card:hover {
  border-color: var(--cyan) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--glow) !important;
}

.post-faq-section .faq-item .faq-question,
.post-faq-section .faq-item .faq-answer,
.post-sidebar-column .rec-card-title {
  color: var(--title) !important;
}

.post-faq-section .faq-answer div,
.post-sidebar-column .rec-card-province {
  color: var(--muted) !important;
}

.post-sidebar-column .rec-card-tag {
  color: var(--cyan) !important;
  background: rgba(27, 161, 226, 0.12) !important;
  border-color: rgba(27, 161, 226, 0.24) !important;
}

.post-sidebar-column .rec-card-province {
  background: var(--pill-bg) !important;
  border-color: var(--pill-border) !important;
}

.blog-cta {
  background: linear-gradient(135deg, #12365c, #167fba) !important;
  border: 1px solid rgba(82, 199, 255, 0.24) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 36px rgba(27, 161, 226, 0.12) !important;
}

.blog-cta h3,
.blog-cta p {
  color: #ffffff !important;
}

body.light-mode .post-faq-section .faq-item,
html.light-mode body .post-faq-section .faq-item,
body.light-mode .post-sidebar-column .rec-card,
html.light-mode body .post-sidebar-column .rec-card {
  background: var(--card-bg) !important;
  border-color: var(--line) !important;
  box-shadow: var(--glow) !important;
}

body.light-mode .post-faq-section .faq-item:hover,
html.light-mode body .post-faq-section .faq-item:hover,
body.light-mode .post-sidebar-column .rec-card:hover,
html.light-mode body .post-sidebar-column .rec-card:hover {
  border-color: var(--cyan) !important;
}

body.light-mode .blog-cta,
html.light-mode body .blog-cta {
  background: linear-gradient(135deg, #ffffff, #eef8ff) !important;
  border-color: rgba(12, 45, 90, 0.12) !important;
  box-shadow: var(--glow) !important;
}

body.light-mode .blog-cta h3,
html.light-mode body .blog-cta h3,
body.light-mode .blog-cta p,
html.light-mode body .blog-cta p {
  color: var(--title) !important;
}


/* Blog post FAQ/sidebar cards without drop shadow */
.post-faq-section .faq-item,
.post-sidebar-column .rec-card,
.post-faq-section .faq-item:hover,
.post-sidebar-column .rec-card:hover {
  box-shadow: none !important;
}


/* Final polish: hover border only + blog filters alignment */
.post-faq-section .faq-item:hover,
.post-sidebar-column .rec-card:hover {
  background: var(--card-bg) !important;
  border-color: var(--cyan) !important;
  box-shadow: none !important;
}

body.light-mode .post-faq-section .faq-item:hover,
html.light-mode body .post-faq-section .faq-item:hover,
body.light-mode .post-sidebar-column .rec-card:hover,
html.light-mode body .post-sidebar-column .rec-card:hover {
  background: var(--card-bg) !important;
  border-color: var(--cyan) !important;
  box-shadow: none !important;
}

.blog-controls-bar {
  align-items: stretch !important;
  gap: 18px !important;
  padding: 18px !important;
}

.blog-controls-bar .search-wrapper,
.blog-controls-bar .select-wrapper {
  height: 54px !important;
  min-height: 54px !important;
  display: flex !important;
  align-items: center !important;
}

.blog-controls-bar input,
.blog-controls-bar select {
  height: 54px !important;
  min-height: 54px !important;
  line-height: normal !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.blog-controls-bar input {
  padding: 0 16px 0 52px !important;
}

.blog-controls-bar select {
  padding: 0 48px 0 20px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  text-align: left !important;
  text-align-last: left !important;
}

.blog-controls-bar .search-wrapper > svg {
  left: 18px !important;
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  transform: translateY(-50%) !important;
}

.blog-controls-bar .select-wrapper > svg {
  right: 18px !important;
  top: 50% !important;
  width: 16px !important;
  height: 16px !important;
  transform: translateY(-50%) !important;
}

.blog-controls-bar input:hover,
.blog-controls-bar select:hover {
  background: rgba(255, 255, 255, 0.055) !important;
}

body.light-mode .blog-controls-bar input,
html.light-mode body .blog-controls-bar input,
body.light-mode .blog-controls-bar select,
html.light-mode body .blog-controls-bar select {
  background: #f8fafc !important;
}

body.light-mode .blog-controls-bar input:hover,
html.light-mode body .blog-controls-bar input:hover,
body.light-mode .blog-controls-bar select:hover,
html.light-mode body .blog-controls-bar select:hover {
  background: #f8fafc !important;
}

@media (max-width: 760px) {
  .blog-controls-bar .search-wrapper,
  .blog-controls-bar .select-wrapper {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
}


/* Text alignment for blog posts */
.post-body p, .post-body ul, .post-body li { text-align: justify; }
