/* =========================================================
   RC Sistemas — hoja de estilos principal
   Paleta y tipografías tomadas del sitio original
   ========================================================= */

/* Fuentes alojadas en el sitio (Barlow y Barlow Condensed, licencia SIL OFL; subconjunto latino, cubre el español) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-condensed-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --color-navy-dark: #0a1e3c;   /* fondo de hero / footer / secciones oscuras */
  --color-primary: #13315c;     /* azul institucional (enlaces, acentos) */
  --color-accent: #ffb000;      /* botón principal / CTA */
  --color-ink: #1c1c1c;         /* texto principal */
  --color-ink-soft: #4a4a4a;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f6f9;
  --color-border: #e3e7ee;
  --radius: 4px;
  --radius-lg: 10px;
  --max-width: 1180px;
  --font-body: 'Barlow', Arial, Helvetica, sans-serif;
  --font-heading: 'Barlow Condensed', Arial, Helvetica, sans-serif;
  --shadow-card: 0 10px 30px rgba(10, 30, 60, 0.12);

  /* Encabezado: fondo y colores de los textos */
  --header-bg: #13315c;
  --header-border: rgba(255, 255, 255, 0.12);
  --header-text: #ffffff;
  --header-text-hover: var(--color-accent);
  --header-hover-bg: rgba(255, 255, 255, 0.10);
  --header-cta-bg: #0a1e3c;
  --header-cta-border: rgba(255, 255, 255, 0.45);
  --header-h: 72px;              /* alto del encabezado (baja a 56px al hacer scroll) */

  /* Seccion "¿Empezamos?": filtro azulado sobre la foto de fondo.
     - Mas oscuro: subir el ultimo numero de --cta-overlay (0 a 1).
     - Quitarlo: poner --cta-overlay: transparent;
     - Cambiar el tono: modificar los tres primeros numeros (R, G, B). */
  --cta-overlay: rgba(10, 40, 100, 0.65);
  --cta-photo-opacity: 0.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  overflow-x: hidden;   /* evita scroll lateral por las animaciones de entrada */
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-surface);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 12px;
}
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 22px; }
p { margin: 0 0 16px; color: var(--color-ink-soft); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}
.section { padding: 64px 0; }
.section--alt { background: var(--color-surface-alt); }
.section--dark {
  background: var(--color-navy-dark);
  color: #fff;
}
.section--dark p { color: rgba(255,255,255,0.75); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { color: var(--color-ink); }
.section--dark .section-head h2 { color: #fff; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  text-transform: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--accent { background: var(--color-accent); color: var(--color-ink); }
.btn--accent:hover { background: #e6a000; }
.btn--outline { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: #0e2848; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { --header-h: 56px; box-shadow: 0 8px 24px rgba(5, 15, 35, 0.35); }
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.25s ease;
}
.site-header__logo img { height: 40px; width: auto; transition: height 0.25s ease; }
.site-header.is-scrolled .site-header__logo img { height: 32px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--header-text);
  border-radius: var(--radius);
}
.main-nav a:hover { background: var(--header-hover-bg); color: var(--header-text-hover); }
.main-nav .has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 8px;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: flex; justify-content: space-between; padding: 10px 14px; color: var(--color-ink); }
.dropdown a:hover { background: var(--color-surface-alt); color: var(--color-primary); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px !important;
  background: var(--header-cta-bg);
  border: 1px solid var(--header-cta-border);
  color: #fff !important;
  font-weight: 700;
}
.header-cta img { height: 18px; width: auto; }
.header-cta:hover { background: var(--color-accent); border-color: var(--color-accent); }
.header-cta:hover img { filter: brightness(0); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--header-text);
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 12px;
    gap: 4px;
  }
  .main-nav.is-open .dropdown {
    display: block;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    padding-left: 14px;
  }
  .main-nav.is-open .dropdown a { color: var(--header-text); }
  .main-nav.is-open .dropdown a:hover { background: var(--header-hover-bg); color: var(--header-text-hover); }
}

/* Hero */
.hero {
  position: relative;
  background: var(--color-navy-dark);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero__content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 20px 72px;
}
.hero__content h1 { color: #fff; }
.hero__content .lead { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 520px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .stat { font-size: 14px; color: rgba(255,255,255,0.8); }
.hero-stats .stat strong { display: block; font-family: var(--font-heading); font-size: 22px; color: #fff; }
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.9); }

/* Tarjetas de soluciones (home) */
/* Foto arriba + panel azul abajo (ícono, título, texto y botón). 3 columnas en escritorio. */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cards-grid { grid-template-columns: 1fr; } }
.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background: var(--color-navy-dark);
  border: 1px solid rgba(10, 30, 60, 0.25);
  box-shadow: 0 6px 18px rgba(10, 30, 60, 0.12);
}
/* Dos formatos de foto: 282x194 en escritorio y 312x175 en celular (ver <picture> en index.html) */
.solution-card__media { overflow: hidden; aspect-ratio: 282 / 194; background: #061428; }
.solution-card__media picture { display: block; height: 100%; }
.solution-card__img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .solution-card__media { aspect-ratio: 312 / 175; } }
.solution-card__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.solution-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
/* Los PNG de los íconos ya son del amarillo del botón (#ffb000): no se les aplica ningún filtro */
.solution-card__icon { flex: none; width: 34px; height: 34px; object-fit: contain; }
.solution-card h3 { color: #fff; margin: 0; font-size: 22px; }
.solution-card p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 16px; }
.solution-card .more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Encabezado de sección alineado a la izquierda: píldora + título grande subrayado + texto al costado */
.section-head--row {
  max-width: none;
  margin: 0 0 36px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 28px;
  text-align: left;
}
.eyebrow--pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 16px;
  border-radius: 6px;
  background: var(--color-navy-dark);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.section-head--row h2 { margin: 0; font-size: clamp(40px, 6.4vw, 68px); color: var(--color-navy-dark); }
.section-head--row h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 5px;
  margin-top: 12px;
  background: var(--color-accent);
}
.section-head--row > p {
  flex: 1 1 260px;
  max-width: 420px;
  margin: 0 0 22px;
  padding-left: 24px;
  border-left: 3px solid var(--color-primary);
  font-size: 17px;
  color: var(--color-ink-soft);
}
.section-head--row > p strong { color: var(--color-navy-dark); }
@media (max-width: 700px) { .section-head--row > p { padding-left: 16px; margin-bottom: 0; } }
/* Logos de marcas / clientes */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0.8;
}
.logo-strip img { height: 32px; width: auto; object-fit: contain; }

/* Empresa / imagen + texto */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius-lg); }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.stat-row .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-primary);
}
.stat-row .stat span { font-size: 13px; color: var(--color-ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* Pasos numerados */
.steps { display: grid; gap: 20px; }
.step { position: relative; display: flex; gap: 20px; }
.step .num {
  position: relative;
  z-index: 2;
  flex: none;
  align-self: flex-start;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface-alt);   /* mismo fondo que la seccion, para tapar la linea */
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-primary);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.step strong { color: var(--color-ink); }
/* Linea que conecta un paso con el siguiente y se va completando al hacer scroll */
.step::before,
.step::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  width: 2px;
  z-index: 1;
}
.step::before { height: calc(100% + var(--step-gap, 20px)); background: var(--color-border); }
.step::after  { height: calc((100% + var(--step-gap, 20px)) * var(--fill, 0)); background: var(--color-accent); }
.step:last-child::before,
.step:last-child::after { display: none; }
.step.is-done .num { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink); transform: scale(1.06); }

/* Reseñas */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testimonial .stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial footer { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--color-ink); }
.testimonial footer span { display: block; font-weight: 400; color: var(--color-ink-soft); font-size: 13px; }
.rating-summary { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 8px; }
.rating-summary .score { font-family: var(--font-heading); font-size: 32px; }
.rating-summary .stars { color: var(--color-accent); letter-spacing: 2px; }
.social-row { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.social-row a { font-weight: 600; font-size: 14px; border: 1px solid var(--color-border); padding: 8px 16px; border-radius: var(--radius); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: '›'; color: var(--color-accent); font-weight: 700; display: inline-block; transition: transform 0.25s ease; }
.faq-list details[open] summary::before { transform: rotate(90deg); }
.faq-list details.is-closing summary::before { transform: none; }
.faq-list summary { transition: color 0.2s ease; }
.faq-list summary:hover { color: var(--color-primary); }
.faq-list .faq-answer { padding-top: 10px; color: var(--color-ink-soft); }

/* Cierre / CTA final */
.cta-band {
  position: relative;
  background: var(--color-navy-dark);
  color: #fff;
  text-align: center;
  padding: 72px 20px;
}
.cta-band__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: var(--cta-photo-opacity); z-index: 0;
}
/* Filtro azulado sobre la foto (se ajusta con --cta-overlay en :root) */
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--cta-overlay);
}
.cta-band__content { position: relative; z-index: 2; }
.cta-band p { color: rgba(255,255,255,0.88); }
.cta-band .btn { margin-top: 20px; }
.cta-band .phone { display: block; margin-top: 16px; font-weight: 700; font-size: 18px; }
.cta-band .addr { display: block; margin-top: 6px; color: rgba(255,255,255,0.7); font-size: 14px; }
/* Signos de "¿Empezamos?" en el amarillo de acento */
.qmark { color: var(--color-accent); }
/* Íconos de teléfono y ubicación (máscara: toman el amarillo de acento) */
.cta-band .phone a::before,
.cta-band .addr::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 8px;
  vertical-align: -0.18em;
  background: var(--color-accent);
  -webkit-mask: var(--cta-icon) center / contain no-repeat;
  mask: var(--cta-icon) center / contain no-repeat;
}
.cta-band .phone a { --cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E"); }
.cta-band .addr { --cta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E"); }

/* Formulario de contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}
@media (max-width: 850px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info dt { font-weight: 700; text-transform: uppercase; font-size: 12px; color: var(--color-ink-soft); margin-top: 20px; }
.contact-info dd { margin: 4px 0 0; font-size: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-field .hint { font-weight: 400; color: var(--color-ink-soft); font-size: 12px; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 10px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; }
.form-footnote { font-size: 13px; color: var(--color-ink-soft); margin-top: 8px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: 32px; border: 1px solid var(--color-border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Carrusel simple de imágenes */
.gallery {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius-lg);
}
.gallery img { scroll-snap-align: start; height: 260px; width: auto; flex: 0 0 auto; border-radius: var(--radius); }

/* Footer */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 750px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-grid h4 { font-family: var(--font-heading); text-transform: uppercase; color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a:hover { color: #fff; }

/* Listas con check */
.check-list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.check-list li::before { content: '›'; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }

/* Utilidades */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.two-col-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.product-item { text-align: center; }
.product-item img { width: auto; margin: 0 auto 12px; max-height: 160px; }
.product-item span { display: block; font-size: 13px; color: var(--color-ink-soft); margin-top: 6px; }

/* =========================================================
   DINAMISMO — animaciones e interacciones
   (la lógica está en js/main.js; todo se desactiva con
   "reducir movimiento" del sistema, ver el final del archivo)
   ========================================================= */

/* --- Hero: zoom lento de la foto + entrada escalonada del texto --- */
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__bg { animation: heroZoom 24s ease-in-out infinite alternate; will-change: transform; }
.hero__content > * { animation: riseIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.15s; }
.hero__content > *:nth-child(3) { animation-delay: 0.25s; }
.hero__content > *:nth-child(4) { animation-delay: 0.35s; }
.hero__content > *:nth-child(5) { animation-delay: 0.45s; }

/* --- Botones: elevación al pasar el mouse y latido en los CTA principales --- */
.btn { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 30, 60, 0.22); }
.btn:active { transform: none; box-shadow: none; }
.btn--accent:hover { box-shadow: 0 8px 22px rgba(255, 176, 0, 0.45); }
@keyframes ctaGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(255, 176, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0); }
}
.hero .btn--accent,
.cta-band .btn--accent { animation: ctaGlow 2.8s ease-out 1.6s infinite; }
.hero .btn--accent:hover,
.cta-band .btn--accent:hover { animation: none; }

/* --- Aparición al hacer scroll (las clases las agrega main.js) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
@media (min-width: 801px) {
  .reveal--left  { transform: translateX(-36px); }
  .reveal--right { transform: translateX(36px); }
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Números que cuentan --- */
.stat strong, .rating-summary .score { font-variant-numeric: tabular-nums; }

/* --- Tarjetas de soluciones --- */
.solution-card { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease; }
.solution-card__img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10, 30, 60, 0.3); }
.solution-card:hover .solution-card__img { transform: scale(1.08); }
.solution-card .more { transition: background 0.2s ease; }
.solution-card:hover .more { background: #ffc233; }
.solution-card.is-clickable { cursor: pointer; }
.solution-card .more .arrow { display: inline-block; transition: transform 0.25s ease; }
.solution-card:hover .more .arrow,
.solution-card .more:focus-visible .arrow { transform: translateX(7px); }

/* --- Menú: página activa --- */
.main-nav > a[aria-current="page"],
.main-nav > .has-dropdown > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-accent); }
.dropdown a[aria-current="page"] { color: var(--color-primary); font-weight: 700; background: var(--color-surface-alt); }
@media (max-width: 900px) {
  .main-nav.is-open .dropdown a[aria-current="page"] { color: var(--header-text-hover); background: var(--header-hover-bg); }
}

/* --- Carrusel (galerías de trabajos y reseñas) --- */
.carousel { position: relative; }
.carousel__track {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 auto; scroll-snap-align: start; }
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.carousel__btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.carousel__btn:hover { background: var(--color-accent); color: var(--color-ink); transform: scale(1.08); }
.carousel__dots { display: flex; align-items: center; gap: 8px; }
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(19, 49, 92, 0.25);
  transition: width 0.3s ease, background 0.3s ease;
}
.carousel__dot.is-active { width: 28px; background: var(--color-accent); }
.carousel.is-static .carousel__controls { display: none; }

/* Galería de trabajos: una foto por vez, ampliable */
.gallery.carousel__track { gap: 12px; border-radius: var(--radius-lg); }
.gallery.carousel__track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 1580 / 560;   /* las fotos traen 70px de margen blanco arriba y abajo: se recorta acá, sin tocar los archivos */
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: filter 0.3s ease;
}
.gallery.carousel__track img:hover { filter: brightness(1.07); }
@media (min-width: 701px) { .gallery.carousel__track img { cursor: zoom-in; } }
@media (max-width: 700px) {
  .gallery.carousel__track img { flex: 0 0 auto; width: auto; height: 220px; }
}

/* Reseñas: 3 por fila en escritorio, 1 con "asomo" en celular */
.testimonials.carousel__track { display: flex; gap: 24px; padding: 4px 2px 14px; }
.testimonials.carousel__track > .testimonial { flex: 0 0 calc((100% - 48px) / 3); }
@media (max-width: 900px) {
  .testimonials.carousel__track > .testimonial { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .testimonials.carousel__track > .testimonial { flex: 0 0 88%; }
}
.testimonials .testimonial { display: flex; flex-direction: column; }
.testimonials .testimonial footer { margin-top: auto; padding-top: 16px; }
.testimonial { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* --- Lightbox (ampliar fotos de la galería) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 16, 34, 0.93);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox__img {
  width: min(1280px, calc(100vw - 48px));
  height: auto;
  aspect-ratio: 1580 / 560;   /* mismo recorte que la galería */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__cap { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox__close { top: 16px; right: 16px; font-size: 30px; line-height: 1; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--color-accent); color: var(--color-ink); }
body.has-lightbox { overflow: hidden; }
@media (max-width: 700px) {
  .lightbox__nav { top: auto; bottom: 16px; margin-top: 0; }
}

/* --- Logos en movimiento continuo --- */
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-strip.is-marquee {
  display: block;
  overflow: hidden;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee var(--marquee-duration, 50s) linear infinite;
}
.logo-strip.is-marquee .logo-strip__track > img {
  flex: none;
  height: 72px;
  width: auto;
  margin-right: 28px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-strip.is-marquee .logo-strip__track > img:hover { opacity: 1; transform: scale(1.1); }
.logo-strip.is-marquee { padding: 10px 0; }
.logo-strip.is-marquee .logo-strip__track > img { border-radius: 12px; box-shadow: 0 2px 12px rgba(10, 30, 60, 0.1); }
.logo-strip.is-marquee:hover .logo-strip__track { animation-play-state: paused; }
@media (max-width: 700px) {
  .logo-strip.is-marquee .logo-strip__track > img { height: 56px; margin-right: 18px; }
}

/* --- Botón flotante de WhatsApp --- */
@keyframes waIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.8); opacity: 0; }
}
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  transform: scale(0);
  animation: waIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.9s forwards;
}
.wa-float__icon {
  position: relative;
  z-index: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}
.wa-float__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2.6s ease-out 2s infinite;
}
.wa-float__icon svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover .wa-float__icon { transform: scale(1.08); }
.wa-float__label {
  position: absolute;
  right: 72px;
  top: 50%;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label,
.wa-float.is-hint .wa-float__label { opacity: 1; transform: translate(0, -50%); }

/* --- Formulario: validación en vivo --- */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(19, 49, 92, 0.15);
}
.form-field.is-invalid input { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.15); }
.form-field.is-valid input { border-color: #2e9e5b; }
.form-field.is-valid > label::after { content: " ✓"; color: #2e9e5b; font-weight: 700; }
.field-msg { color: #c23a3a; font-size: 13px; margin-top: 6px; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form-field.is-shaking { animation: shake 0.4s ease; }
.form-status { margin: 14px 0 0; font-size: 14px; }
.form-status.is-ok { color: #23804a; font-weight: 600; }
.form-status a { text-decoration: underline; }

/* --- Hero: subtítulo con frase gancho --- */
.lead__hook {
  display: block;
  margin-bottom: 6px;
  color: var(--color-accent);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}
.hero__content .lead { max-width: 560px; }
.lead__hook + span { font-size: clamp(17px, 1.6vw, 20px); }

/* --- Íconos en los botones del hero (máscara: toman el color del texto) --- */
.btn--doc::before,
.btn--wa::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--btn-icon) center / contain no-repeat;
  mask: var(--btn-icon) center / contain no-repeat;
}
.btn--doc { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E"); }
.btn--wa  { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E"); }

/* --- Hero del inicio: texto a la izquierda + 4 rombos a la derecha --- */
.hero__content--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero__content--split > * { animation: none; }
.hero__text > * { animation: riseIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__text > *:nth-child(1) { animation-delay: 0.05s; }
.hero__text > *:nth-child(2) { animation-delay: 0.2s; }
.hero__text > *:nth-child(3) { animation-delay: 0.35s; }

/* --- Los 4 datos del hero ---------------------------------------------------
   Formato base ("celular"): franja horizontal de 4 columnas. Lo usan TODAS las páginas y
   el inicio en celular/tablet. Solo el inicio en escritorio (.hero-diamonds--rhombus)
   los muestra como 4 rombos: ver @media (min-width: 901px) más abajo. */
.hero-diamonds { width: 100%; max-width: 640px; }
.hero__content:not(.hero__content--split) > .hero-diamonds { margin-top: 36px; }
.hero-diamonds__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.diamond {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  animation: riseIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.diamond:first-child { border-left: 0; }
.diamond:nth-child(1) { animation-delay: 0.35s; }
.diamond:nth-child(2) { animation-delay: 0.5s; }
.diamond:nth-child(3) { animation-delay: 0.65s; }
.diamond:nth-child(4) { animation-delay: 0.8s; }
.diamond__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  text-align: center;
  color: #fff;
}
.diamond__inner strong {
  font-family: var(--font-heading);
  font-size: clamp(24px, 7.5vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}
.diamond__inner strong.diamond__text {
  font-size: clamp(11px, 3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
}
.diamond__kicker,
.diamond__label {
  font-size: clamp(9px, 2.4vw, 12px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.diamond__stars { color: var(--color-accent); font-size: clamp(9px, 2.4vw, 12px); letter-spacing: 1px; }

/* Formato PC, solo en el inicio: un cuadrado 2x2 girado 45° = 4 rombos. --s = lado de cada cuadrado. */
@keyframes diamondIn { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) {
  .hero-diamonds--rhombus {
    --s: 105px;                    /* 150px x 70% */
    --g: calc(var(--s) * 0.04);
    --dw: calc((var(--s) * 2 + var(--g)) * 1.4142);
    position: relative;
    width: var(--dw);
    max-width: none;
    height: var(--dw);
    margin: 0 auto;
  }
  .hero-diamonds--rhombus .hero-diamonds__grid {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--s) * 2 + var(--g));
    height: calc(var(--s) * 2 + var(--g));
    transform: translate(-50%, -50%) rotate(45deg);
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--g);
    padding-top: 0;
    border-top: 0;
  }
  .hero-diamonds--rhombus .diamond {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(10, 30, 60, 0.58);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    animation: diamondIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
  }
  .hero-diamonds--rhombus .diamond:hover { background: rgba(10, 30, 60, 0.82); border-color: var(--color-accent); transform: scale(1.04); }
  .hero-diamonds--rhombus .diamond__inner { transform: rotate(-45deg); gap: 3px; padding: 4px; }   /* contra-giro: el texto queda derecho */
  .hero-diamonds--rhombus .diamond__inner strong { font-size: clamp(30px, calc(var(--s) * 0.3), 46px); }
  .hero-diamonds--rhombus .diamond__inner strong.diamond__text {
    font-size: clamp(15px, calc(var(--s) * 0.125), 19px);
    letter-spacing: 0.1em;
  }
  .hero-diamonds--rhombus .diamond__kicker,
  .hero-diamonds--rhombus .diamond__label {
    font-size: clamp(9px, calc(var(--s) * 0.075), 12px);
    letter-spacing: 0.14em;
  }
  .hero-diamonds--rhombus .diamond__stars { font-size: clamp(10px, calc(var(--s) * 0.085), 13px); letter-spacing: 2px; }
}
@media (max-width: 900px) {
  .hero__content--split { grid-template-columns: 1fr; row-gap: 28px; padding-top: 64px; padding-bottom: 44px; }
}
@media (max-width: 600px) {
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* --- Respetar "reducir movimiento" del sistema --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text > *,
  .diamond,
  .hero__bg,
  .hero__content > *,
  .hero .btn--accent,
  .cta-band .btn--accent,
  .wa-float__icon::before { animation: none !important; }
  .wa-float { transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .solution-card, .solution-card__img, .btn, .testimonial { transition: none; }
}
