/* =============================================================
   VARIABLES GENERALES DE DISEÑO
   Cambia aquí colores, tipografías, sombras y tamaños globales.
================================================================ */
:root {
  --navy: #062a59;
  --navy-dark: #031c3d;
  --blue: #145eea;
  --blue-light: #eaf1ff;
  --green: #18a957;
  --text: #111827;
  --muted: #5d6879;
  --line: #e2e8f0;
  --soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 31, 70, .11);
  --radius: 20px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; scroll-margin-top: 95px; }
.section--soft { background: var(--soft); }

/* =============================================================
   LOGO
================================================================ */

.logo{
    max-height:100px;
    width:auto;
}

/* =============================================================
   BOTONES
================================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 37, 78, .16); }
.btn--primary { color: var(--white); background: var(--blue); }
.btn--light { background: var(--white); color: var(--navy); border-color: #cfd9e8; }
.btn--whatsapp { background: var(--green); color: var(--white); }
.btn--small { width: 100%; min-height: 40px; padding: 0 12px; font-size: .84rem; }

/* =============================================================
   BARRA SUPERIOR Y ENCABEZADO
================================================================ */
.topbar { color: var(--white); background: var(--navy-dark); font-size: .78rem; }
.topbar__content { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(214,222,234,.8); backdrop-filter: blur(14px); }
.header__content { min-height: 74px; display: flex; align-items: center; gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex-shrink: 0; }
.brand__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 1.5rem; font-weight: 900; background: linear-gradient(145deg, var(--blue), var(--navy)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 1.65rem; letter-spacing: -.04em; }
.brand__text small { font-size: .55rem; margin-top: 5px; letter-spacing: .2em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: .87rem; font-weight: 750; transition: color .2s; }
.main-nav a:hover { color: var(--blue); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; }

/* =============================================================
   HERO PRINCIPAL
================================================================ */
.hero { min-height: 610px; display: grid; align-items: center; color: white; background: radial-gradient(circle at 82% 30%, rgba(24,92,200,.65), transparent 32%), linear-gradient(125deg, #041d40, #073c78 64%, #082d58); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; padding-block: 75px 105px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .73rem; font-weight: 900; letter-spacing: .1em; }
.eyebrow--light { color: #89b4ff; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.06; letter-spacing: -.045em; }
.hero h1 span { color: #ff4747; text-shadow: 0 2px 0 #fff; }
.hero__description { max-width: 620px; margin: 24px 0 30px; font-size: 1.08rem; color: #e3ecfa; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { min-height: 390px; position: relative; display: grid; place-items: center; }
.product-stack { width: 100%; height: 100%; position: relative; }
.stack-card { position: absolute; display: grid; place-items: center; text-align: center; padding: 20px; color: white; font-weight: 950; border-radius: 24px; box-shadow: 0 25px 60px rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.35); }
.stack-card small { font-weight: 500; }
.stack-card--1 { width: 310px; height: 220px; right: 28px; top: 8px; background: #111; font-size: 2.4rem; transform: rotate(3deg); }
.stack-card--2 { width: 285px; height: 190px; left: 5px; bottom: 25px; background: #e33a36; font-size: 2.1rem; transform: rotate(-6deg); }
.stack-card--3 { width: 250px; height: 170px; right: 5px; bottom: 0; background: linear-gradient(145deg, var(--blue), var(--navy)); font-size: 2rem; transform: rotate(7deg); }

/* =============================================================
   INDICADORES DE CONFIANZA
================================================================ */
.trust-strip { position: relative; margin-top: -62px; z-index: 4; }
.trust-grid { display: grid; grid-template-columns: repeat(5,1fr); padding: 22px; background: white; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid #e6ebf3; }
.trust-grid article { min-height: 70px; padding: 8px 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.trust-grid article:last-child { border-right: 0; }
.trust-grid strong { color: var(--navy); font-size: 1rem; }
.trust-grid span { color: var(--muted); font-size: .78rem; }

/* =============================================================
   ENCABEZADOS DE SECCIÓN
================================================================ */
.section-heading { max-width: 750px; margin: 0 auto 45px; text-align: center; }
.section-heading--left { margin-left: 0; text-align: left; }
.section-heading h2, .about-grid h2, .clients-section h2, .faq-grid h2, .cta h2 { margin: 0 0 12px; color: var(--navy-dark); font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p, .about-grid p, .faq-grid p { color: var(--muted); }

/* =============================================================
   CATEGORÍAS
================================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.category-card { min-height: 170px; padding: 24px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 18px; background: #f8fafc; border: 1px solid #edf1f6; transition: .25s; }
.category-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); background: white; }
.category-card span { font-size: 3.1rem; }
.category-card h3 { margin: 14px 0 0; font-size: .9rem; line-height: 1.35; }

/* =============================================================
   PROCESO
================================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 18px; }
.steps-grid article { position: relative; padding: 24px 16px; text-align: center; }
.steps-grid b { width: 43px; height: 43px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); box-shadow: 0 8px 18px rgba(20,94,234,.28); }
.steps-grid h3 { margin: 0 0 8px; font-size: .93rem; }
.steps-grid p { margin: 0; color: var(--muted); font-size: .78rem; }

/* =============================================================
   SOBRE NOSOTROS Y BENEFICIOS
================================================================ */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.about-grid > div:first-child .btn { margin-top: 16px; }
.benefits-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.benefits-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 16px; }
.benefits-grid span { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-weight: 900; }
.benefits-grid h3 { margin: 15px 0 4px; font-size: 1rem; }
.benefits-grid p { margin: 0; font-size: .85rem; }

/* =============================================================
   CARRUSEL DE PRODUCTOS
================================================================ */
.product-carousel { position: relative; }
.product-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 5); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px 2px 24px; }
.product-track::-webkit-scrollbar { display: none; }
.product-card { scroll-snap-align: start; overflow: hidden; background: white; border: 1px solid #e3e9f2; border-radius: 16px; box-shadow: 0 12px 26px rgba(5, 35, 72, .07); }
.product-card__image { position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 18px; border: 0; background: #f8fafc; cursor: zoom-in; overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.product-card__image:hover img { transform: scale(1.1); }
.product-card__image span { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%,12px); opacity: 0; padding: 6px 11px; border-radius: 20px; color: white; background: rgba(3,28,61,.86); font-size: .7rem; transition: .25s; white-space: nowrap; }
.product-card__image:hover span { opacity: 1; transform: translate(-50%,0); }
.product-card__content { padding: 18px; }
.product-card__content small { color: var(--blue); font-weight: 800; }
.product-card__content h3 { margin: 5px 0 3px; font-size: .95rem; }
.product-card__content p { margin: 0 0 14px; color: var(--muted); font-size: .8rem; }
.carousel-arrow { position: absolute; z-index: 4; top: 43%; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); box-shadow: 0 10px 25px rgba(20,94,234,.3); font-size: 2rem; cursor: pointer; }
.carousel-arrow--prev { left: -23px; }
.carousel-arrow--next { right: -23px; }

/* =============================================================
   CLIENTES
================================================================ */
.clients-section { padding: 72px 0; color: white; background: linear-gradient(120deg, var(--navy), var(--navy-dark)); }
.clients-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 50px; }
.clients-section h2 { color: white; }
.client-types { display: flex; flex-wrap: wrap; gap: 10px; }
.client-types span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 30px; font-size: .8rem; }
blockquote { margin: 0; padding: 32px; color: var(--text); background: white; border-radius: 16px; box-shadow: var(--shadow); }
blockquote p { margin: 8px 0; }
blockquote footer { color: var(--muted); font-size: .85rem; }
.stars { color: #ffb400; letter-spacing: 4px; }

/* =============================================================
   PREGUNTAS FRECUENTES
================================================================ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-grid .btn { margin-top: 16px; }
.faq-list details { margin-bottom: 10px; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.faq-list summary { padding: 17px 0; cursor: pointer; font-weight: 800; }
.faq-list p { margin-top: 0; font-size: .9rem; }

/* =============================================================
   CTA FINAL Y PIE DE PÁGINA
================================================================ */
.cta { padding: 72px 0; text-align: center; color: white; background: linear-gradient(rgba(3,28,61,.91), rgba(3,28,61,.91)), repeating-linear-gradient(45deg,#092f5f 0,#092f5f 15px,#0c376e 15px,#0c376e 30px); }
.cta h2 { color: white; }
.cta p { margin: 0 0 20px; color: #d8e3f4; }
.footer { color: #dbe6f5; background: #041b38; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 60px; padding: 58px 0; }
.brand--footer { color: white; }
.footer p { color: #9fb0c9; max-width: 380px; }
.footer h3 { color: white; font-size: .95rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid a:not(.brand) { color: #b9c8dc; font-size: .86rem; }
.footer-grid a:hover { color: white; }
.footer-bottom { padding: 15px 20px; text-align: center; color: #8fa3bd; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }

/* =============================================================
   MODAL PARA ZOOM
================================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal--open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1,12,27,.85); backdrop-filter: blur(5px); }
.modal__dialog { position: relative; z-index: 2; width: min(700px, 100%); padding: 32px; text-align: center; background: white; border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.modal__dialog img { width: 100%; max-height: 520px; object-fit: contain; background: #f8fafc; border-radius: 14px; }
.modal__dialog h3 { margin: 20px 0 2px; color: var(--navy); }
.modal__dialog p { margin: 0 0 18px; color: var(--muted); }
.modal__close { position: absolute; z-index: 3; top: 12px; right: 15px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: white; background: var(--navy-dark); font-size: 1.7rem; cursor: pointer; }

/* =============================================================
   DISEÑO RESPONSIVO
================================================================ */
@media (max-width: 1080px) {
  .header__content > .btn { display: none; }
  .main-nav { gap: 17px; }
  .categories-grid { grid-template-columns: repeat(4,1fr); }
  .steps-grid { grid-template-columns: repeat(3,1fr); }
  .product-track { grid-auto-columns: calc((100% - 40px) / 3); }
}

@media (max-width: 820px) {
  .topbar__content span:last-child { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav--open { display: flex; }
  .main-nav a { padding: 12px; }
  .hero__grid, .about-grid, .clients-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 340px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .categories-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 70px 0; }
  .hero__grid { padding: 60px 0 95px; }
  .hero__visual { min-height: 290px; }
  .stack-card--1 { width: 240px; height: 165px; }
  .stack-card--2 { width: 210px; height: 140px; }
  .stack-card--3 { width: 185px; height: 125px; }
  .trust-grid, .categories-grid, .steps-grid, .benefits-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-grid article { text-align: center; }
  .product-track { grid-auto-columns: 82%; }
  .carousel-arrow--prev { left: -8px; }
  .carousel-arrow--next { right: -8px; }
}


/* =============================================================
   CONTROLES ADICIONALES DEL VISOR CON ZOOM
================================================================ */
.modal__image-stage {
  width: 100%;
  height: min(58vh, 560px);
  overflow: auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f5f8fc;
  border: 1px solid #dde6f1;
}
.modal__image-stage img {
  width: min(100%, 620px);
  max-height: 520px;
  object-fit: contain;
  transform-origin: center;
  transition: transform .2s ease;
  cursor: zoom-in;
}
.zoom-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 10px;
}
.zoom-controls button {
  min-width: 44px;
  min-height: 40px;
  border: 1px solid #cbd8e8;
  border-radius: 10px;
  background: #fff;
  color: #092f66;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.zoom-controls button:hover { background: #edf4ff; }
.zoom-controls button:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 640px) {
  .modal__image-stage { height: 48vh; }
}


/* =========================================================
   RECURSOS GRÁFICOS LOCALES
   Estas reglas controlan iconos, banner, mapa e imagen CTA.
========================================================= */
.hero__image { width: min(100%, 720px); height: auto; display: block; border-radius: 28px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.22)); }
.category-card img { width: 72px; height: 72px; display: block; margin: 0 auto 16px; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.step-head img { width: 58px; height: 58px; }
.steps-grid article > b { display: none; }
.benefits-grid article img { width: 58px; height: 58px; margin-bottom: 10px; }
.coverage-card { min-width: 0; }
.mexico-map { width: 100%; max-width: 620px; height: auto; display: block; margin: 26px 0 22px; border-radius: 24px; box-shadow: 0 18px 45px rgba(5,48,98,.13); }
.cta { text-align: left; }
.cta__grid { display: grid; grid-template-columns: 1fr minmax(320px, .8fr); align-items: center; gap: 46px; }
.cta__content { max-width: 650px; }
.cta__image { width: 100%; max-width: 540px; justify-self: end; border-radius: 28px; box-shadow: 0 22px 50px rgba(0,0,0,.22); }
@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; text-align: center; }
  .cta__image { justify-self: center; max-width: 500px; }
  .mexico-map { margin-inline: auto; }
}
