/* ===== IA Medical Solutions — Landing v2 (deepseek) ===== */
:root {
  --blue: #2C5AA0;
  --blue-deep: #1d3f74;
  --green: #00A86B;
  --navy: #22303f;
  --line: #dbe4ee;
  --muted: #61748a;
  --bg: #f5f8fc;
  --grad: linear-gradient(135deg, #2C5AA0, #00A86B);
  --wrap: 1160px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html { overflow-x: hidden; }
body {
  font-family: Outfit, system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.5;
  position: relative;
}
/* ambiente: manchas suaves de marca */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -5%, rgba(0,168,107,.12), transparent 60%),
    radial-gradient(55vw 40vw at 5% 10%, rgba(44,90,160,.12), transparent 60%),
    radial-gradient(50vw 50vw at 50% 110%, rgba(44,90,160,.08), transparent 60%);
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* ---- botones (feedback Emil) ---- */
.btn {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 700;
  padding: 14px 28px; border-radius: 13px;
  box-shadow: 0 10px 24px rgba(44,90,160,.28);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(44,90,160,.36); }
}
.btn--ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.btn--sm { padding: 10px 20px; font-size: 14px; border-radius: 11px; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--lg { padding: 17px 34px; font-size: 17px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(219,228,238,.9);
}
.nav { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.nav__brand { margin-right: auto; }
.nav__brand img { height: 42px; }
.nav__links { display: flex; gap: 26px; list-style: none; font-size: 15px; font-weight: 500; color: #43566b; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--blue); } }
.nav__toggle {
  display: none; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
}
.nav__toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .28s var(--ease-out), opacity .2s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 22px 56px; }
.hero__title { font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.02em; font-weight: 700; }
.hero__title em { font-style: normal; color: #0b7a52; }
.lead { font-size: 18px; color: var(--muted); margin: 20px 0 26px; max-width: 540px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 13.5px; color: #5b6f84; font-weight: 500; }
.hero__meta span { width: 4px; height: 4px; border-radius: 50%; background: #b9c8d8; }
.hero__media img { border-radius: 22px; box-shadow: 0 30px 70px rgba(30,55,95,.24); }

/* ---- secciones ---- */
.sec { padding: 96px 0; }
.sec--alt { background: #fff; }
.sec--cta { padding-bottom: 120px; }
.sec-title { font-size: clamp(1.8rem, 3.1vw, 2.6rem); letter-spacing: -.02em; font-weight: 700; }
.sec-sub { color: var(--muted); margin: 10px 0 40px; font-size: 16px; }

/* ---- grid / cards ---- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid--mod { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.grid--mod > .card { flex: 1 1 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(30,55,95,.14); border-color: #c9d8e8; }
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.card p { font-size: 13.5px; color: var(--muted); }
.ico { display: inline-flex; margin-bottom: 14px; }
.ico svg { width: 30px; height: 30px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card--pain .ico svg { stroke: #E74C3C; }
.card--good .ico svg { stroke: var(--green); }
.card--pain h3 { color: #c0392b; }

.shot { margin-top: 16px; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); background: #eef4fa; }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .shot img { transform: scale(1.05); }
}

/* ---- chips ---- */
/* ---- integraciones ---- */
.icard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: left;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .icard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30,55,95,.12); } }
.icard svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.icard__tag { display: inline-block; font-weight: 800; letter-spacing: .06em; color: var(--blue); font-size: 13px; margin-bottom: 6px; }
.icard h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.icard p { font-size: 13.5px; color: var(--muted); }
.chips { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 30px;
  font-weight: 700; letter-spacing: .06em; color: var(--blue); font-size: 15px;
  box-shadow: 0 8px 18px rgba(44,90,160,.07);
}

/* ---- precio ---- */
.price {
  max-width: 420px; margin: 34px auto 0; text-align: center; background: #fff;
  border: 2px solid var(--blue); border-radius: 22px; padding: 34px;
  box-shadow: 0 18px 40px rgba(44,90,160,.16);
}
.price__amount { font-size: 46px; font-weight: 800; color: var(--blue); letter-spacing: -.03em; }
.price__amount span { font-size: 16px; color: #8ea2b6; font-weight: 500; }
.price__list { list-style: none; text-align: left; font-size: 14px; color: #566a80; margin: 20px 0 24px; display: grid; gap: 10px; }
.price__list li { padding-left: 22px; position: relative; }
.price__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---- contacto ---- */
.contact {
  background: linear-gradient(135deg, #2C5AA0 0%, #22303f 100%); color: #eaf2fa;
  border-radius: 24px; padding: 38px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
  box-shadow: 0 26px 60px rgba(30,50,80,.28);
}
.contact > * { min-width: 0; }
.contact h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; margin-bottom: 10px; }
.contact__copy p { color: #d7e6f5; }
.contact__data { display: grid; gap: 12px; }
.contact__data a {
  display: flex; align-items: center; gap: 14px; min-width: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 14px 16px; border-radius: 14px;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .contact__data a:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); } }
.contact__ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
}
.contact__txt { display: flex; flex-direction: column; min-width: 0; }
.contact__k { font-size: 11px; color: #8ee6c4; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact__v { font-weight: 600; color: #fff; font-size: 15px; overflow-wrap: anywhere; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 44px 0 34px; text-align: center; background: #fff; }
.site-footer__logo { height: 40px; margin: 0 auto 14px; }
.site-footer__name { font-weight: 700; color: var(--navy); font-size: 16px; }
.site-footer__tag { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.site-footer__links { display: flex; gap: 12px 26px; justify-content: center; flex-wrap: wrap; margin: 20px 0 22px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 9px; color: #45596e; font-size: 14px; font-weight: 500;
  transition: color 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .site-footer__links a:hover { color: var(--blue); } }
.site-footer__links svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__copy { font-size: 12.5px; color: #7b8da0; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---- reveal (scroll) ---- */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* ---- menú drawer (estilo tienda, colores de marca) ---- */
.menu__scrim { position: fixed; inset: 0; background: rgba(10,20,35,.5); opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease-out), visibility 300ms; z-index: 55; }
.menu__scrim.is-open { opacity: 1; visibility: visible; }
.menu { position: fixed; top: 0; left: 0; height: 100dvh; width: min(330px, 87vw);
  background: linear-gradient(165deg, #2C5AA0 0%, #234c86 46%, #0e7a5e 100%);
  color: #fff; z-index: 60; padding: 20px 20px 24px; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  transform: translateX(-105%); transition: transform 420ms cubic-bezier(0.32,0.72,0,1); overflow-y: auto; }
.menu.is-open { transform: none; }
.menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.menu__head img { height: 40px; background: #fff; border-radius: 12px; padding: 6px 10px; }
.menu__close { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 38px; height: 38px;
  border-radius: 11px; font-size: 20px; line-height: 1; cursor: pointer; }
.menu__promo { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 22px; }
.menu__promo strong { display: block; font-size: 15px; margin-bottom: 3px; }
.menu__promo span { font-size: 12.5px; color: #d7e6f5; }
.menu__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65);
  margin: 0 0 8px 4px; font-weight: 700; }
.menu__list { display: flex; flex-direction: column; gap: 2px; }
.menu__list a { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 500; transition: background 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .menu__list a:hover { background: rgba(255,255,255,.12); } }
.menu__list svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.menu__cta { margin-top: auto; background: #fff; color: var(--blue); text-align: center; font-weight: 700;
  padding: 15px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .menu__cta:hover { transform: translateY(-2px); } }
html.menu-open { overflow: hidden; }
[id] { scroll-margin-top: 84px; }
@media (min-width: 961px) { .menu, .menu__scrim { display: none; } }


/* ---- controles del carrusel (móvil) ---- */
.carousel-nav { display: none; }
@media (max-width: 560px) {
  .carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
  .carousel-nav__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--blue); font-size: 22px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(44,90,160,.12);
    transition: transform 160ms var(--ease-out); }
  .carousel-nav__btn:active { transform: scale(0.94); }
  .carousel-nav__dots { display: flex; gap: 7px; }
  .carousel-nav__dot { width: 8px; height: 8px; border-radius: 999px; background: #c7d5e4; border: 0; padding: 0;
    cursor: pointer; transition: width 220ms var(--ease-out), background 220ms var(--ease-out); }
  .carousel-nav__dot.is-active { background: var(--green); width: 22px; }
}

/* ===== responsive ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .hero__media { order: 2; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--mod > .card { flex: 1 1 calc(50% - 10px); max-width: calc(50% - 10px); }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; padding: 28px 22px; gap: 18px; }
  .contact__data a { padding: 12px 14px; }
  .contact__v { font-size: 14px; }
  .sec { padding: 72px 0; }

  .nav { position: relative; }
  .nav__toggle { display: flex; order: -1; }
  .nav__links { display: none; }
  .nav__brand { order: 2; margin-left: auto; margin-right: 0; }
  .nav__brand img { height: 62px; }
}

@media (max-width: 560px) {
  /* Secciones con imágenes -> carrusel deslizable (swipe) */
  .grid--3, .grid--5 {
    display: flex; flex-wrap: nowrap; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 -22px; padding: 6px 0 10px; scroll-padding-inline: 14%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .grid--3::-webkit-scrollbar, .grid--5::-webkit-scrollbar { display: none; }
  .grid--3 > .card, .grid--5 > .card {
    flex: 0 0 72%; max-width: 72%; scroll-snap-align: center;
    transition: transform 400ms var(--ease-out), opacity 400ms var(--ease-out);
  }
  .grid--3 > .card:first-child, .grid--5 > .card:first-child { margin-left: 14%; }
  .grid--3 > .card:last-child, .grid--5 > .card:last-child { margin-right: 14%; }
  .grid--3 > .card:not(.is-center), .grid--5 > .card:not(.is-center) { transform: scale(.94); opacity: .6; }
  .grid--3 > .card.is-center, .grid--5 > .card.is-center { transform: scale(1); opacity: 1; }
  .grid--mod > .card { flex: 1 1 100%; max-width: 100%; }
  .grid--4 { grid-template-columns: 1fr; }
  .site-footer__links { flex-direction: column; align-items: center; gap: 12px; }
  .sec { padding: 60px 0; }
  .hero { padding-bottom: 40px; }
}
