/* =========================================================================
   JD RENTAL — Estilos de las páginas de contenido
   (eventos-para-comercios, quienes-somos, privacidad).
   Mismos colores, tipografías y componentes que index.html y las fichas
   de producto: navy + degradé azul/violeta, Space Grotesk + Inter.
   ========================================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f1332;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --navy: #0f1332;
  --navy-light: #161a3d;
  --navy-card: #1d2249;
  --blue: #4a9eff;
  --violet: #b94aff;
  --white: #ffffff;
  --gray: #a8b2d1;
  --gray-dark: #6b7591;
  --gradient: linear-gradient(135deg, #4a9eff 0%, #b94aff 100%);
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- HEADER (igual que el resto del sitio) ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 19, 50, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 120px; width: auto; }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0 auto;
  padding-right: 80px;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-arrow { width: 10px; height: 10px; flex-shrink: 0; opacity: 0.75; transition: transform 0.3s; }
.nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 25, 55, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray);
  border-radius: 8px;
  transition: all 0.2s;
  opacity: 0;
  transform: translateX(-8px);
}
.nav-dropdown:hover .nav-dropdown-menu a { opacity: 1; transform: translateX(0); }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: rgba(74, 158, 255, 0.12); color: white; }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* Con un ítem más en el menú, se achica el espaciado en pantallas medianas */
@media (max-width: 1280px) {
  .nav-links { gap: 26px; padding-right: 20px; }
}

/* ---------- MIGAS DE PAN ---------- */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 0;
  font-size: 14px;
  color: var(--gray);
}
.breadcrumb a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--white); }

/* ---------- HERO DE PÁGINA ---------- */
.page-hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 56px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(74, 158, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at 85% 40%, rgba(185, 74, 255, 0.14), transparent 55%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 50px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 18px;
  text-transform: uppercase;
  font-weight: 600;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 900px;
  margin: 0 auto 20px;
}
.page-hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--gray);
  max-width: 720px;
  margin: 0 auto 30px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- BOTONES ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(74,158,255,0.35); }
.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--violet); background: rgba(185, 74, 255, 0.1); }

/* ---------- SECCIONES ---------- */
.seccion { max-width: 1080px; margin: 0 auto; padding: 56px 32px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.seccion h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.seccion h3 { font-size: 1.2rem; margin-bottom: 8px; }
.seccion > p, .texto p { color: var(--gray); font-size: 1.02rem; margin-bottom: 14px; max-width: 820px; }
.texto ul, .texto ol { color: var(--gray); margin: 0 0 16px 22px; max-width: 820px; }
.texto li { margin-bottom: 8px; }
.texto strong { color: var(--white); }
.texto a, .seccion > p a { color: var(--blue); }

/* Tarjetas (mismo estilo que .info-card / .service-card) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* Tablas */
.tabla-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--navy-card);
}
.tabla-wrap table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.95rem; }
.tabla-wrap th, .tabla-wrap td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.tabla-wrap th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.03);
}
.tabla-wrap td { color: var(--gray); }
.tabla-wrap td:first-child { color: var(--white); font-weight: 600; }
.tabla-wrap tr:last-child td { border-bottom: none; }
.tabla-wrap a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* Pasos */
.pasos { list-style: none; counter-reset: paso; margin-top: 24px; max-width: 820px; }
.pasos li {
  counter-increment: paso;
  position: relative;
  padding: 6px 0 20px 60px;
  color: var(--gray);
}
.pasos li strong { color: var(--white); }
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Foto */
.foto { margin-top: 28px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.foto img { display: block; width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- PREGUNTAS FRECUENTES (mismo estilo que el home) ---------- */
.faq-list { max-width: 860px; margin-top: 24px; }
.faq-item {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(74, 158, 255, 0.2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 26px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--blue);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}
.faq-item .faq-respuesta { padding: 0 26px 22px; color: var(--gray); }

/* ---------- CTA FINAL ---------- */
.rental-cta {
  padding: 80px 32px;
  text-align: center;
  background: radial-gradient(ellipse at bottom, rgba(185, 74, 255, 0.1), transparent 60%);
}
.rental-cta h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.rental-cta p { color: var(--gray); max-width: 520px; margin: 0 auto 32px; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 32px;
}
.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-content img { height: 60px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: var(--gray-dark);
  font-size: 13px;
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4a9eff 0%, #b94aff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(74, 158, 255, 0.35);
  z-index: 999;
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: white; }
@keyframes waGradientPulse {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 8px 30px rgba(74, 158, 255, .4); }
  50% { background-position: 100% 50%; box-shadow: 0 10px 42px rgba(185, 74, 255, .7); }
}
.wa-float { background-size: 200% 200%; animation: waGradientPulse 2.2s ease-in-out infinite; }


/* =========================================================================
   Páginas de servicios, eventos, zonas y guías (texto largo, tablas,
   preguntas frecuentes y links internos). Mismos colores del sitio.
   ========================================================================= */
.page-hero .container { max-width: 900px; margin: 0 auto; }
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 28px;
  padding: 0;
  color: var(--gray);
  font-size: .9rem;
}
.hero-facts li::before { content: '✓ '; color: var(--blue); font-weight: 700; }

/* Texto largo */
.prose-wrap { padding: 20px 24px 40px; }
.prose {
  max-width: 820px;
  margin: 0 auto;
  color: #d5dbef;
  font-size: 1.04rem;
  line-height: 1.75;
}
.prose > section { padding: 0; }
.prose h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  color: var(--white);
  margin: 64px 0 18px;
}
.prose h2:first-child { margin-top: 24px; }
.prose h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin: 34px 0 10px;
}
.prose h4 { font-size: 1.05rem; color: var(--white); margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--white); }
.prose figure { margin: 28px 0; }
.prose figure img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.prose figcaption { color: var(--gray-dark); font-size: .85rem; margin-top: 8px; text-align: center; }

.table-wrap { overflow-x: auto; margin: 22px 0 26px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; }
.prose th { background: var(--navy-card); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }

.callout {
  background: linear-gradient(135deg, rgba(74,158,255,.10), rgba(185,74,255,.10));
  border: 1px solid rgba(74,158,255,.25);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }

.quote {
  border-left: 3px solid var(--violet);
  padding: 6px 0 6px 20px;
  margin: 26px 0;
  color: var(--white);
  font-style: italic;
}
.quote cite { display: block; font-style: normal; color: var(--gray); font-size: .9rem; margin-top: 6px; }

/* Tarjetas de links internos */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 22px 0 10px;
}
.link-card {
  display: block;
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 22px 22px 20px;
  text-decoration: none !important;
  color: var(--gray) !important;
  transition: transform .25s, border-color .25s;
}
.link-card:hover { transform: translateY(-3px); border-color: rgba(74,158,255,.35); }
.link-card h3, .link-card .lc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--white);
  margin: 0 0 6px;
  display: block;
}
.link-card p, .link-card .lc-text { font-size: .92rem; line-height: 1.55; margin: 0; display: block; }
.link-card .lc-more { display: inline-block; margin-top: 10px; color: var(--blue); font-size: .88rem; font-weight: 600; }

/* Pasos */
.steps { list-style: none; counter-reset: paso; margin: 22px 0 !important; padding: 0; }
.steps li {
  counter-increment: paso;
  position: relative;
  padding: 4px 0 14px 56px;
  margin: 0;
}
.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ con <details> (texto visible para Google sin depender de JS) */
.faq-sec { padding: 40px 24px 20px; }
.faq-sec .inner { max-width: 820px; margin: 0 auto; }
.faq-sec h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-bottom: 22px; }
.faq-d {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-d summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
}
.faq-d summary::-webkit-details-marker { display: none; }
.faq-d summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--blue);
  transition: transform .25s;
}
.faq-d[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-d summary h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
  color: var(--white);
}
.faq-d .faq-a { padding: 0 24px 20px; color: #d5dbef; line-height: 1.7; }
.faq-d .faq-a p { margin: 0 0 10px; }
.faq-d .faq-a a { color: var(--blue); }

/* Bloque de links relacionados */
.related-sec { padding: 40px 24px 10px; }
.related-sec .inner { max-width: 1080px; margin: 0 auto; }
.related-sec h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-bottom: 8px; text-align: center; }

/* Formulario de contacto (manda a WhatsApp) */
.form-wa {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 28px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-wa label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--gray); }
.form-wa .full { grid-column: 1 / -1; }
.form-wa input, .form-wa select, .form-wa textarea {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  font-size: .95rem;
}
.form-wa input:focus, .form-wa select:focus, .form-wa textarea:focus { outline: none; border-color: var(--blue); }
.form-wa button {
  grid-column: 1 / -1;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.form-wa .form-err { grid-column: 1 / -1; color: #ff8080; font-size: .85rem; display: none; }
@media (max-width: 600px) { .form-wa { grid-template-columns: 1fr; padding: 22px; } }

@media (max-width: 768px) {
  .page-hero { padding: 48px 20px 56px; }
  .prose { font-size: 1rem; }
  .prose h2 { margin-top: 52px; }
}


/* "La respuesta corta": resumen de 40-60 palabras al principio de cada página */
.respuesta-corta {
  margin: 8px 0 8px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(var(--navy-card), var(--navy-card)) padding-box, var(--gradient) border-box;
}
.respuesta-corta .rc-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}
.respuesta-corta p { color: var(--white); margin: 0; }
.respuesta-corta .rc-label + p { font-size: 1.04rem; line-height: 1.7; }


/* =========================================================================
   Grillas prolijas: las filas siempre quedan completas.
   3 recuadros -> 3 en fila · 4 -> 2 x 2 · 5 -> 3 + 2 a todo el ancho ·
   6 -> 3 x 2 · 7 o más -> 2 columnas (si son impares, el primero a todo el ancho). En celular, uno debajo del otro.
   ========================================================================= */
.cards, .link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cards:has(> :nth-child(2):last-child), .link-cards:has(> :nth-child(2):last-child),
.cards:has(> :nth-child(4):last-child), .link-cards:has(> :nth-child(4):last-child),
.cards:has(> :nth-child(8):last-child), .link-cards:has(> :nth-child(8):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards:has(> :nth-child(5):last-child), .link-cards:has(> :nth-child(5):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.cards:has(> :nth-child(5):last-child) > *, .link-cards:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
.cards:has(> :nth-child(5):last-child) > :nth-child(n+4), .link-cards:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
/* 7 o más recuadros -> 2 columnas; si son impares, el primero a todo el ancho */
.cards:has(> :nth-child(7)), .link-cards:has(> :nth-child(7)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards:has(> :nth-child(7)):has(> :last-child:nth-child(odd)) > :first-child,
.link-cards:has(> :nth-child(7)):has(> :last-child:nth-child(odd)) > :first-child { grid-column: 1 / -1; }
.cards > *, .link-cards > * { height: 100%; }
@media (max-width: 640px) {
  /* En celular: 2 columnas (4 recuadros = 2 y 2; 6 = 2 x 3; 8 = 2 x 4) */
  .cards, .link-cards,
  .cards:has(> :nth-child(4):last-child), .link-cards:has(> :nth-child(4):last-child),
  .cards:has(> :nth-child(8):last-child), .link-cards:has(> :nth-child(8):last-child),
  .cards:has(> :nth-child(5):last-child), .link-cards:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cards > *, .link-cards > * { grid-column: auto; }
  /* 3 recuadros: el primero a todo el ancho y los otros dos abajo */
  .cards:has(> :nth-child(3):last-child) > :first-child,
  .link-cards:has(> :nth-child(3):last-child) > :first-child,
  /* 5 recuadros: el primero a todo el ancho y 2 y 2 abajo */
  .cards:has(> :nth-child(5):last-child) > :first-child,
  .link-cards:has(> :nth-child(5):last-child) > :first-child { grid-column: 1 / -1; }
  .cards:has(> :nth-child(5):last-child) > :nth-child(n+2),
  .link-cards:has(> :nth-child(5):last-child) > :nth-child(n+2) { grid-column: auto; }
  /* 7 o más recuadros: 2 columnas; si son impares, el primero a todo el ancho */
  .cards:has(> :nth-child(7)), .link-cards:has(> :nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards:has(> :nth-child(7)) > :nth-child(n), .link-cards:has(> :nth-child(7)) > :nth-child(n) { grid-column: auto; }
  .cards:has(> :nth-child(7)):has(> :last-child:nth-child(odd)) > :first-child,
  .link-cards:has(> :nth-child(7)):has(> :last-child:nth-child(odd)) > :first-child { grid-column: 1 / -1; }
  .card, .link-card { padding: 18px 16px; border-radius: 16px; }
  .card h3, .link-card .lc-title, .link-card h3 { font-size: 1rem; }
  .card p, .link-card .lc-text, .link-card p { font-size: 0.86rem; line-height: 1.5; }
}


/* Logos de marcas (mismo estilo que el banner de marcas del home) */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: center;
  justify-items: center;
  margin: 24px 0 18px;
}
.logos-grid img {
  max-height: 55px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.65;
  transition: opacity 0.3s;
}
.logos-grid img:hover { opacity: 1; }
@media (max-width: 640px) { .logos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px 32px;
    border-top: 1px solid rgba(255,255,255,0.05);
    gap: 20px;
    margin: 0;
  }
  .nav-dropdown-menu { display: none; }
}
@media (max-width: 768px) {
  .logo img { height: 85px; }
  nav { padding: 8px 20px; }
  .breadcrumb { padding: 22px 20px 0; }
  .page-hero { padding: 36px 20px 40px; }
  .seccion { padding: 44px 20px; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
  .wa-float { bottom: 16px; right: 16px; }
  footer { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

/* Submenús de Servicios y Zonas */
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(8px); }
.nav-dropdown:focus-within .nav-dropdown-menu a { opacity: 1; transform: translateX(0); }
.nav-dropdown:focus-within .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu a.active { color: white; background: rgba(74, 158, 255, 0.12); }
/* En celular, las opciones se ven siempre debajo de cada ítem del menú */
@media (max-width: 1060px) {
.nav-links.mobile-open { max-height: calc(100vh - 120px); overflow-y: auto; }
.nav-links.mobile-open .nav-dropdown .nav-dropdown-menu {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  position: static; transform: none; opacity: 1; visibility: visible;
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 12px 0 0; min-width: 0;
}
.nav-links.mobile-open .nav-dropdown .nav-dropdown-menu a {
  opacity: 1; transform: none; padding: 7px 10px; font-size: 13px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
}
.nav-links.mobile-open .nav-dropdown-arrow { display: none; }
}

/* Fecha de revisión de las guías */
.actualizado { font-size: .85rem; color: var(--gray); margin: 10px 0 0; opacity: .85; }
