/* ====================================================================
   Rivadeneyra y Asociados — Hoja de estilos principal
   Paleta legal elegante: azul marino / dorado / blanco
   ==================================================================== */

:root {
  --navy:        #0d0d0d;   /* negro (antes azul marino) */
  --navy-dark:   #000000;
  --navy-light:  #262626;
  --gold:        #6b6f77;   /* gris (antes dorado) */
  --gold-light:  #868b93;
  --white:       #ffffff;
  --off-white:   #f6f4ef;
  --gray:        #6b7280;
  --gray-light:  #e5e7eb;
  --text:        #1f2733;

  --font-serif: "Times New Roman", Times, Georgia, serif;
  --font-sans:  "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --radius: 6px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-title p { color: var(--gray); max-width: 640px; margin: 1rem auto 0; }
.section-dark .section-title p { color: rgba(255,255,255,0.8); }

.divider {
  width: 70px; height: 3px; background: var(--gold);
  margin: 1rem auto 0; border-radius: 2px;
}

/* ---------- Botones ---------- */
.btn-brochure-footer{
  padding: 0.85rem 1rem!important;
  font-size: 0.6rem!important;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(107,111,119,0.4); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ====================================================================
   HEADER / NAV
   ==================================================================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: transparent;
  transition: var(--transition);
}
.header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width); margin: 0 auto;
}
.navbar .logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--white); font-weight: 500; font-size: 0.92rem;
  position: relative; transition: var(--transition);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { color: var(--white); padding: 0.6rem 1.4rem; }
.nav-links .btn::after { display: none; }

/* ---------- Dropdown "Nuestros servicios" ---------- */
.dropdown { position: relative; }
.dropdown-toggle i { font-size: 0.7rem; margin-left: 0.3rem; transition: var(--transition); }
.dropdown:hover .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--navy); list-style: none; padding: 0.5rem 0;
  border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); border-top: 2px solid var(--gold);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
  display: block; padding: 0.6rem 1.25rem; font-size: 0.9rem; color: var(--white);
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover, .dropdown-menu a.active { background: rgba(255,255,255,0.06); color: var(--gold-light); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--white); transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================================================================
   HERO / BANNER
   ==================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.85)),
              url("../img/hero.png") center/cover no-repeat;
  color: var(--white);
}
.hero-inner { max-width: 760px; padding-top: 4rem; }
.hero .eyebrow {
  color: var(--gold-light); letter-spacing: 3px; text-transform: uppercase;
  font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 1rem;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.2rem; }
.hero p { font-size: 20px; color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 560px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Banner interno para subpáginas */
.page-banner {
  position: relative; padding: 9rem 0 4rem;
  background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)),
              url("../img/hero.png") center/cover no-repeat;
  color: var(--white); text-align: center;
}
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-banner .breadcrumb { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 0.75rem; }
.page-banner .breadcrumb a:hover { color: var(--gold-light); }

/* ====================================================================
   TARJETAS DE SERVICIOS (estilo APEX)
   ==================================================================== */
.cards-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(4, 1fr);
}
.service-card {
  position: relative; overflow: hidden;
  background: var(--white); padding: 2.5rem 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
  transition: var(--transition); border-top: 3px solid transparent;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-10px) scale(1);
  border-top-color: var(--gold);
  box-shadow: 0 18px 40px rgba(13,13,13,0.18);
}
.service-card .icon {
  width: 70px; height: 70px; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white); border-radius: 50%; color: var(--gold); font-size: 1.8rem;
  transition: var(--transition);
}
.service-card:hover .icon {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.08);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.25rem; }
.service-card .link { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-top: auto; }
.service-card .link:hover { color: var(--navy); }
.service-card .link i { transition: transform 0.25s ease; }
.service-card:hover .link i { transform: translateX(5px); }

/* ---------- Focus / features ---------- */
.features-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.feature { text-align: center; }
.feature .icon { font-size: 3.4rem; color: var(--gold); margin-bottom: 0; line-height: 1; }
.feature h4 { font-size: 1.1rem; margin-bottom: 0.2rem; margin-top: 0.3rem; }
.feature p { color: var(--gray); font-size: 0.9rem; }
.section-dark .feature p { color: rgba(255,255,255,0.75); }

/* ====================================================================
   NOTICIAS
   ==================================================================== */
.news-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); }
.news-card .thumb { height: 200px; background: var(--navy-light); position: relative; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .date {
  position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: var(--white);
  padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 600; border-radius: 4px;
}
.news-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.news-card p { color: var(--gray); font-size: 0.9rem; flex: 1; }
.news-card .link { color: var(--gold); font-weight: 600; font-size: 0.85rem; margin-top: 1rem; }

/* Cuerpo de las tarjetas del carrusel más compacto */
.news-carousel .news-card .body { padding: 0.75rem 1.25rem 1.1rem; }
.news-carousel .news-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; line-height: 1.3; color: var(--navy); }
.news-carousel .news-card p { font-size: 0.85rem; flex: 0 0 auto; margin-bottom: 0.6rem; color: var(--gray); }
.news-carousel .news-card .link { margin-top: auto; color: var(--gold); }
.news-carousel .news-card .thumb { height: auto; aspect-ratio: 1 / 1; background: var(--off-white); }
.news-carousel .news-card .thumb img { object-fit: contain; }

/* ====================================================================
   CARRUSEL DE NOTICIAS
   ==================================================================== */
.news-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.news-viewport {
  overflow: hidden;
  flex: 1;
  width: 100%;
}
.news-track {
  display: flex;
  gap: 1.75rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
/* Cada tarjeta ocupa 1/3 del ancho visible (3 al frente), restando el gap */
.news-carousel .news-card {
  flex: 0 0 calc((100% - 2 * 1.75rem) / 3);
  min-width: 0;
}

/* Flechas de navegación */
.news-arrow {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 2;
}
.news-arrow:hover { background: var(--gold-light); transform: scale(1.08); }
.news-arrow:disabled { opacity: 0.4; cursor: default; transform: none; }

/* Indicadores (dots) */
.news-dots {
  position: absolute;
  bottom: -2.2rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.news-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.news-dots button.active { background: var(--gold); width: 26px; border-radius: 5px; }

/* ====================================================================
   CERTIFICACIONES / DISTINTIVOS
   ==================================================================== */
.certs-grid {
  display: grid; gap: 1.5rem; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.cert {
  text-align: center; padding: 2rem 1rem; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition);
}
.cert:hover { transform: translateY(-5px); }
.cert .icon { font-size: 2.6rem; color: var(--gold); margin-bottom: 0.75rem; }
.cert .icon--logo { height: 72px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.cert .icon--logo img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }
.cert .icon--logo-lg img { transform: scale(1.45); }
.cert h4 { font-size: 1rem; color: var(--navy); }
.cert p { font-size: 0.82rem; color: var(--gray); margin-top: 0.25rem; }

/* Variante sobre fondo oscuro */
.section-dark .cert {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: none;
}
.section-dark .cert:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(107, 111, 119, 0.5);
}
.section-dark .cert .icon { color: var(--gold-light); }
.section-dark .cert h4 { color: var(--white); }
.section-dark .cert p { color: rgba(255, 255, 255, 0.65); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; gap: 2rem; text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat .num { font-family: var(--font-serif); font-size: 3rem; color: var(--gold-light); font-weight: 700; }
.stat .label { text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* ====================================================================
   CONTACTO Y UBICACIÓN
   ==================================================================== */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-item .icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item h4 { font-family: var(--font-sans); font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { color: var(--gray); font-size: 0.92rem; }
.contact-item a:hover { color: var(--gold); }

.contact-form-wrap { max-width: 640px; margin: 0 auto; }
.contact-form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form .field { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-light);
  border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.92rem; transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; text-align: center; }
.form-status:empty { margin-top: 0; }
.form-status--ok { color: #1a7f37; }
.form-status--error { color: #c0392b; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 3rem; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1.2fr; margin-bottom: 2.5rem; }
.footer .logo img { height: 40px; margin-bottom: 1rem; }
.footer p { font-size: 0.9rem; }
.footer h4 { color: var(--white); font-family: var(--font-sans); font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { font-size: 0.9rem; transition: var(--transition); }
.footer ul a:hover { color: var(--gold-light); padding-left: 4px; }
.footer .social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer .social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition);
}
.footer .social a:hover { background: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem;
  text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/* ====================================================================
   WHATSAPP FLOTANTE
   ==================================================================== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 1100;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  transition: var(--transition); animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ====================================================================
   CTA banner
   ==================================================================== */
.cta {
  background: linear-gradient(rgba(0,0,0,0.92), rgba(0,0,0,0.92)), url("../img/hero.png") center/cover fixed;
  color: var(--white); text-align: center; padding: 5rem 0;
}
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 2rem; }

/* ---------- Contenido texto subpáginas ---------- */
.content-block { display: block; max-width: 800px; margin: 0 auto; text-align: center; }
.content-block h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.content-block p { color: var(--gray); margin-bottom: 1rem; text-align: justify; }

/* Bloque de dos columnas: texto izquierda / imagen derecha */
.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.content-split__text { text-align: left; }
.content-split__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; color: var(--navy); }
.content-split__text p { color: var(--gray); margin-bottom: 1rem; text-align: justify; }
.content-split__media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

/* Variante full-bleed: la imagen abarca toda la mitad de la pantalla */
.section--flush { padding: 0; }
.content-split--full { max-width: none; gap: 0; align-items: stretch; }
.content-split--full .content-split__text { padding: 4rem 4.5rem; align-self: center; }
.content-split--full .content-split__text p { font-size: 20px; }
.content-split--full .content-split__media { align-self: stretch; }
.content-split--full .content-split__media img { max-height: none; min-height: 100%; border-radius: 0; box-shadow: none; }

/* Botón de descarga bajo el check-list */
.download-btn { margin-top: 1rem; }
.download-btn i { margin-right: 0.5rem; }

@media (max-width: 768px) {
  .content-split { grid-template-columns: 1fr; gap: 2rem; }
  .content-split__media { order: -1; }
}
@media (max-width: 768px) {
  .content-split--full .content-split__text { padding: 0 1.5rem; }
  .content-split--full .content-split__media img { max-height: 320px; min-height: auto; }
}

.check-list { list-style: none; margin: 1rem 0; text-align: left; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: 0.6rem; color: var(--text); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ====================================================================
   ANIMACIONES (reveal on scroll)
   ==================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Aparición escalonada (cascada) de las tarjetas de servicio */
.cards-grid { perspective: 1200px; }
.cards-grid .service-card.reveal {
  opacity: 0;
  transform: translateY(70px) scale(0.85) rotateX(-18deg);
  transform-origin: center bottom;
  transition: opacity 0.7s ease,
              transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cards-grid .service-card.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}
.cards-grid .service-card.reveal:nth-child(1) { transition-delay: 0s; }
.cards-grid .service-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.cards-grid .service-card.reveal:nth-child(3) { transition-delay: 0.3s; }
.cards-grid .service-card.reveal:nth-child(4) { transition-delay: 0.45s; }

/* Destello que recorre la tarjeta al aparecer */
.cards-grid .service-card.reveal::after {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.cards-grid .service-card.reveal.visible::after {
  animation: card-shine 1s ease-out forwards;
}
.cards-grid .service-card.reveal:nth-child(1).visible::after { animation-delay: 0.5s; }
.cards-grid .service-card.reveal:nth-child(2).visible::after { animation-delay: 0.65s; }
.cards-grid .service-card.reveal:nth-child(3).visible::after { animation-delay: 0.8s; }
.cards-grid .service-card.reveal:nth-child(4).visible::after { animation-delay: 0.95s; }
@keyframes card-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  /* Carrusel: 2 noticias al frente */
  .news-carousel .news-card { flex: 0 0 calc((100% - 1.75rem) / 2); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 75%; max-width: 320px;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 6rem 2rem 2rem; gap: 1.5rem; transition: right 0.35s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .header { background: var(--navy); }
  .hero { min-height: 90vh; }
  .section { padding: 3.5rem 0; }

  /* Dropdown en móvil: acordeón por clic */
  .dropdown { width: 100%; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; border-top: none;
    padding: 0.25rem 0 0 1rem; max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .dropdown.open .dropdown-menu { max-height: 400px; }
  .dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
  .dropdown-menu a { padding: 0.5rem 0; }

  /* Carrusel: 1 noticia al frente en móvil/tablet pequeña */
  .news-carousel .news-card { flex: 0 0 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .navbar .logo img { height: 34px; }
  /* Carrusel: flechas más pequeñas en móvil */
  .news-arrow { width: 38px; height: 38px; font-size: 0.85rem; }
}
