/* MSV Group :: site.css -- hoja unica del sitio publico.
   Sistema visual: tipografia Inter/Oswald, paleta de marca profundizada,
   elevacion/sombra consistente y microinteracciones (scroll-reveal, header
   que se compacta, hover con movimiento) para un registro de consultora/
   certificadora industrial internacional. */

:root {
  /* marca */
  --brand: #2a6bab;
  --brand-600: #1d567e;
  --brand-700: #163f5c;
  --brand-100: #eaf2fa;
  --brand-300: #77aad9;

  /* acentos (iconos de Home) */
  --accent-red: #db545a;
  --accent-gold: #c99a1f;
  --accent-purple: #2f2b66;
  --accent-teal: #07635e;

  /* neutros */
  --ink: #12161c;
  --ink-soft: #38424d;
  --grey-100: #f6f7f9;
  --grey-150: #eef1f4;
  --grey-200: #e1e6ea;
  --grey-300: #ccd3da;
  --grey-500: #8992a0;
  --grey-700: #4b5563;
  --white: #ffffff;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15,23,32,.06), 0 1px 4px rgba(15,23,32,.08);
  --shadow-md: 0 10px 24px rgba(15,23,32,.09), 0 2px 6px rgba(15,23,32,.06);
  --shadow-lg: 0 24px 48px rgba(15,23,32,.16), 0 6px 16px rgba(15,23,32,.08);

  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(.22,.68,.14,1);
  --dur: .3s;

  /* textura sutil tipo "plano tecnico", para bandas oscuras */
  --pattern-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Cpath d='M42 0H0v42' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1rem/1.7 var(--font-body);
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6rem; line-height: 1.18; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: .35rem; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- eyebrow (rotulo pequeno reutilizable) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; display: inline-block; flex: none; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 32px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; cursor: pointer; border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg { width: 15px; height: 15px; fill: currentColor; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; transform: translateY(-2px); }

/* revelado al hacer scroll -- activado por js/site.js via IntersectionObserver;
   sin JS (o con prefers-reduced-motion) el contenido queda simplemente visible */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* cascada suave para grupos de tarjetas/acordeon (tope en 6 para que
   nunca se sienta lento en paginas con muchos items) */
.cards .card.reveal:nth-child(2) { transition-delay: .08s; }
.cards .card.reveal:nth-child(3) { transition-delay: .16s; }
.cards .card.reveal:nth-child(4) { transition-delay: .24s; }
.cards .card.reveal:nth-child(5) { transition-delay: .32s; }
.cards .card.reveal:nth-child(6) { transition-delay: .4s; }
.cards .card.reveal:nth-child(7) { transition-delay: .48s; }
.faq .faq__item.reveal:nth-child(2) { transition-delay: .06s; }
.faq .faq__item.reveal:nth-child(3) { transition-delay: .12s; }
.faq .faq__item.reveal:nth-child(4) { transition-delay: .18s; }
.faq .faq__item.reveal:nth-child(5) { transition-delay: .24s; }
.faq .faq__item.reveal:nth-child(6) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- header / nav ---------- */
.site-header {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding var(--dur) var(--ease);
}
.site-header.is-scrolled .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
.site-logo img { width: 190px; transition: width var(--dur) var(--ease); }

.site-nav { display: flex; align-items: center; }
.site-nav__toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.site-nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: block;
  position: relative;
  padding: 10px 18px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--brand-700); background: var(--brand-100); }
.site-nav__link.is-active { color: var(--brand-700); }
.site-nav__link.is-active::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px;
  height: 2px; background: var(--brand);
}
.site-nav__link.site-nav__link--cta {
  background: var(--brand); color: #fff; margin-left: 10px; padding: 10px 22px;
}
.site-nav__link.site-nav__link--cta:hover { background: var(--brand-700); color: #fff; }
.site-nav__link.site-nav__link--cta::after { display: none; }
.site-nav__submenu {
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 320px;
  margin: 8px 0 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-200);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.site-nav__item:hover > .site-nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__submenu li a {
  display: block; padding: 10px 14px; color: var(--ink-soft); font-size: .9rem;
  font-weight: 500; border-radius: var(--radius-sm); transition: background var(--dur), color var(--dur);
}
.site-nav__submenu li a:hover { background: var(--brand-100); color: var(--brand-700); }
.site-nav__panel { display: none; }
.site-nav__close { display: none; }
.site-nav__overlay { display: none; }

@media (max-width: 991px) {
  .site-nav__toggle { display: block; }
  .site-nav__list--desktop { display: none; }
  .site-nav__panel {
    position: fixed;
    top: 0; right: 0;
    width: min(88vw, 360px);
    height: 100%;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 200;
    overflow-y: auto;
    padding: 64px 0 30px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav__panel.is-open { transform: translateX(0); }
  .site-nav__panel .site-nav__list { flex-direction: column; text-align: center; gap: 2px; padding: 0 12px; }
  .site-nav__panel .site-nav__link { color: rgba(255,255,255,.85); padding: 15px 20px; }
  .site-nav__panel .site-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
  .site-nav__panel .site-nav__link.is-active { color: var(--brand-300); }
  .site-nav__panel .site-nav__link.is-active::after { background: var(--brand-300); }
  .site-nav__panel .site-nav__link.site-nav__link--cta {
    background: var(--brand); color: #fff; margin: 10px auto 0; max-width: 220px;
  }
  .site-nav__panel .site-nav__submenu {
    position: static; background: rgba(255,255,255,.05); border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; margin: 4px 0 10px;
  }
  .site-nav__panel .site-nav__submenu li a { color: rgba(255,255,255,.7); }
  .site-nav__panel .site-nav__submenu li a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .site-nav__close {
    display: block;
    position: absolute;
    top: 16px; right: 18px;
    border: 0; background: none;
    color: #fff; font-size: 1.8rem;
    line-height: 1; cursor: pointer;
  }
  .site-nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(9,12,16,.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease);
    z-index: 150;
  }
  .site-nav__overlay.is-open { opacity: 1; visibility: visible; }
}

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--brand-700), var(--ink) 130%); }
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 76px 24px 44px;
  display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 44px;
}
.footer-brand img { width: 168px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: .92rem; line-height: 1.75; max-width: 320px; margin: 0; }
.footer-col h4 {
  color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 20px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-col address {
  font-style: normal; color: rgba(255,255,255,.65); font-size: .92rem; line-height: 1.85;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col address a { color: rgba(255,255,255,.65); }
.footer-col address a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: rgba(255,255,255,.4); font-size: .8rem; letter-spacing: .01em;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom__links { display: flex; align-items: center; gap: 20px; }
.footer-bottom .footer-bottom__admin { color: rgba(255,255,255,.3); font-size: .76rem; }
.footer-bottom .footer-bottom__admin:hover { color: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; padding: 60px 24px 32px; }
  .footer-brand p { margin: 0 auto; }
  .footer-col address { align-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: 50% 50%;
  background-image:
    linear-gradient(185deg, rgba(10,16,24,.25) 0%, rgba(10,16,24,.55) 65%, rgba(10,16,24,.82) 100%),
    var(--hero-img);
}
.hero__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px 56px; width: 100%; }
.hero__title {
  position: relative;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  letter-spacing: .01em;
  margin: 0;
  padding-top: 22px;
  max-width: 900px;
}
.hero__title::before {
  content: '';
  position: absolute;
  top: 0; left: 2px;
  width: 64px; height: 4px;
  background: var(--brand-300);
}
.hero__eyebrow { color: var(--brand-300); margin-bottom: 16px; }
.hero__subtitle {
  color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65;
  max-width: 620px; margin: 18px 0 0; font-weight: 400;
}
.hero__actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 767px) { .hero { min-height: 340px; } }

@keyframes msv-hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow, .hero__title, .hero__subtitle, .hero__actions { animation: msv-hero-in .8s var(--ease) both; }
.hero__title { animation-delay: .08s; }
.hero__subtitle { animation-delay: .16s; }
.hero__actions { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__actions { animation: none; }
}

/* ---------- secciones de contenido ---------- */
.section { padding: 88px 24px; }
.section--grey { background: var(--grey-100); }
.section__inner { max-width: 1280px; margin: 0 auto; }
.section__inner--narrow { max-width: 820px; }
.section__eyebrow { color: var(--brand); justify-content: center; width: 100%; margin-bottom: 16px; }
.section__lead {
  text-align: center; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem); color: var(--ink);
  margin: 0 auto 44px; max-width: 760px; letter-spacing: .01em;
}
@media (max-width: 767px) { .section { padding: 56px 20px; } }

/* ---------- introduccion en 2 columnas + tarjeta de puntos clave
   (paginas de servicio: texto a la izquierda, lista destacada a la derecha) --- */
.intro-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 56px; align-items: start;
  max-width: 1280px; margin: 0 auto;
}
.intro-grid__text { font-size: 1.05rem; }
.highlights {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.highlights::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand);
}
.highlights__title {
  font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand-700); margin: 0 0 22px;
}
.highlights ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.highlights li {
  display: flex; gap: 13px; align-items: flex-start; margin: 0; font-size: .96rem;
  line-height: 1.5; color: var(--ink-soft);
}
.highlights li::before {
  content: ''; flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 2px;
  background: var(--brand); transform: rotate(45deg);
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- franja de confianza (logos de clientes/socios) ---------- */
.trust { padding: 8px 24px 100px; text-align: center; }
.trust__label {
  color: var(--grey-500); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; margin: 0 0 34px;
}
.trust__row {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 38px 52px;
}
.trust__row img {
  max-height: 44px; width: auto; max-width: 128px;
  filter: grayscale(1) opacity(.5); transition: filter var(--dur) var(--ease);
}
.trust__row img:hover { filter: grayscale(0) opacity(1); }

/* ---------- banda de llamado a la accion ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600) 120%);
  padding: 90px 24px;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern-grid); opacity: .6; }
.cta-band__inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-band h2 {
  color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 16px;
}
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 580px; margin: 0 auto 34px; }

/* ---------- teaser "quienes somos" (Home) ---------- */
.teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 104px 24px;
}
.teaser__media { position: relative; }
.teaser__media::before {
  content: ''; position: absolute; top: -20px; left: -20px; width: 130px; height: 130px;
  border: 6px solid var(--brand-100); border-radius: var(--radius); z-index: 0;
}
.teaser__media img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.teaser__stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.teaser__stat strong { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--brand-700); line-height: 1; }
.teaser__stat span { color: var(--grey-500); font-size: .85rem; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; gap: 40px; padding: 72px 24px; } .teaser__media { order: -1; } }

/* ---------- acordeon ---------- */
.faq { margin: 0 auto; max-width: 980px; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq__item:has(.faq__link[aria-expanded="true"]) { box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.faq__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 26px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq__link:hover { color: var(--brand-700); }
.faq__link[aria-expanded="true"] { color: var(--brand-700); }
/* el chevron SVG se estiliza directamente como insignia circular: no
   requiere un div envolvente adicional en las 8 paginas que usan acordeon */
.faq__icon {
  flex: none; box-sizing: border-box;
  width: 30px; height: 30px; padding: 9px; border-radius: 50%;
  background: var(--grey-150); fill: var(--brand-700);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), fill var(--dur) var(--ease);
}
.faq__link[aria-expanded="true"] .faq__icon { background: var(--brand); fill: #fff; transform: rotate(180deg); }
.faq__pane {
  max-height: 0; overflow: hidden; padding: 0 26px;
  transition: max-height .45s var(--ease), padding-bottom .45s var(--ease);
}
.faq__pane.is-open { max-height: 3000px; padding-bottom: 28px; }
.faq__pane img { margin: 12px 0; border-radius: var(--radius-sm); }
.faq__pane :last-child { margin-bottom: 0; }
.faq__pane table { font-size: .92rem; }

/* ---------- carrusel (Home) ---------- */
.hero-carousel {
  position: relative; overflow: hidden;
  background-image: url('/images/home/home06.jpeg');
  background-size: cover; background-position: 50% 50%;
}
.hero-carousel::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(9,13,18,.55) 0%, rgba(9,13,18,0) 45%);
}
.hero-carousel__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 50%;
  opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 6s linear; z-index: 0;
}
.hero-carousel__slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-carousel__viewport { position: relative; height: min(78vh, 620px); min-height: 380px; }
.hero-carousel__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  max-width: 1280px; margin: 0 auto; padding: 0 24px 64px;
}
.hero-carousel__content .hero__title { color: #fff; max-width: 760px; padding-top: 22px; }
@media (max-width: 767px) { .hero-carousel__content { padding-bottom: 40px; } }
.hero-carousel__control {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3); cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: background var(--dur) var(--ease);
}
.hero-carousel__control:hover { background: rgba(255,255,255,.28); }
.hero-carousel__control svg { width: 16px; height: 16px; fill: #fff; }
.hero-carousel__control--prev { left: 24px; }
.hero-carousel__control--next { right: 24px; transform: translateY(-50%) rotate(180deg); }
.hero-carousel__dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-carousel__dots button {
  width: 26px; height: 3px; border-radius: 2px; border: 0; background: rgba(255,255,255,.4);
  cursor: pointer; padding: 0; transition: background var(--dur) var(--ease);
}
.hero-carousel__dots button.is-active { background: #fff; }

/* ---------- tarjetas (Home) ---------- */
.cards {
  max-width: 1280px; margin: -64px auto 0; position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 24px;
}
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 34px 24px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-decoration: none; color: inherit; border-top: 3px solid var(--card-color, var(--brand));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 54px rgba(15,23,32,.18); }
.card__icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--card-color, var(--brand));
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform var(--dur) var(--ease);
}
.card:hover .card__icon { transform: scale(1.08); }
.card__icon svg { width: 30px; height: 30px; fill: currentColor; }
.card__label { color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.35; }
@media (max-width: 991px) { .cards { grid-template-columns: repeat(2, 1fr); margin-top: -40px; } }
@media (max-width: 575px) { .cards { grid-template-columns: 1fr; } }

/* ---------- galeria + lightbox (About) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.gallery__item {
  border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 10px;
  cursor: zoom-in; aspect-ratio: 4/3; overflow: hidden; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--brand-300); }
.gallery__item img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.lightbox {
  position: fixed; inset: 0; background: rgba(8,11,15,.94);
  display: none; align-items: center; justify-content: center; z-index: 1000;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff;
  cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center; transition: background var(--dur) var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- pagina de contacto ---------- */
.contact { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 88px 24px; }
.contact__details { display: flex; flex-direction: column; gap: 18px; }
.contact__details img { width: 240px; margin-bottom: 14px; }
.contact__row { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; color: var(--ink-soft); }
.contact__row svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: var(--brand); }
.contact__map { min-height: 360px; background: var(--grey-150); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (max-width: 767px) { .contact { grid-template-columns: 1fr; padding: 56px 20px; } }

.msv-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.msv-form input, .msv-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm);
  font: inherit; background: var(--white); color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.msv-form input::placeholder, .msv-form textarea::placeholder { color: var(--grey-500); }
.msv-form input:focus, .msv-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100);
}
.msv-form button {
  align-self: flex-start; padding: 14px 34px; border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-weight: 600; letter-spacing: .01em; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.msv-form button:hover { background: var(--brand-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.msv-form button[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.msv-form .msv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Nombres de clase heredados: msv-form.js los consulta directamente
   (querySelector('.u-form-send-success'/'-error')) y no se modifico
   ese archivo, asi que estas dos clases se mantienen tal cual. */
.u-form-send-success, .u-form-send-error {
  display: none; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500;
}
.u-form-send-success { background: #eaf7ee; color: #1e6b34; border: 1px solid #cdeed7; }
.u-form-send-error { background: #fdecec; color: #a3282c; border: 1px solid #f7d3d3; }

/* ---------- rich text (dentro de secciones de texto y del acordeon) ---------- */
.rich { color: var(--ink-soft); font-size: 1.02rem; }
.rich h4, .rich h5 { color: var(--ink); margin-top: 1.4rem; }
.rich ul, .rich ol { margin-bottom: 1rem; }
.rich p:last-child { margin-bottom: 0; }
.rich table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .92rem; border-radius: var(--radius-sm); overflow: hidden; }
.rich table th, .rich table td { border: 1px solid var(--grey-200); padding: 10px 14px; text-align: left; vertical-align: top; }
.rich table th { background: var(--brand); color: #fff; font-weight: 600; }
.rich table tbody tr:nth-child(even) { background: var(--grey-100); }
