:root {
  --teal: #84cec8;        /* color de marca */
  --teal-dark: #2b7f78;   /* texto/botones con buen contraste */
  --teal-soft: #edf8f7;
  --navy: #12556f;
  --navy-deep: #0d3f53;
  --green: #9bbf2f;
  --ink: #1d2b31;
  --muted: #5b6b71;
  --line: #e2ecec;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 85, 111, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--teal-dark); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* botones */
.btn {
  display: inline-block; background: var(--teal-dark); color: #fff; text-decoration: none;
  padding: .75em 1.9em; border-radius: 999px; font-weight: 500; border: 2px solid var(--teal-dark);
  transition: background .2s, transform .2s; cursor: pointer; font: inherit; font-weight: 500;
}
.btn:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); }
.btn-sm { padding: .45em 1.2em; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--teal-dark); }
.btn-outline:hover { color: #fff; }

/* encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--teal-dark); border-color: var(--teal); }
.lang { font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.lang:hover { color: var(--teal-dark); border-color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .logo img { height: 46px; }
  .header-inner { min-height: 70px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .nav .lang { align-self: flex-start; margin-top: 12px; }
}

/* portada */
.hero { position: relative; min-height: clamp(380px, 62vh, 640px); display: flex; align-items: center; overflow: hidden; color: #fff; }
.slides, .slide { position: absolute; inset: 0; }
.slide { background: var(--navy) center/cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide.team { background-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,63,83,.86) 0%, rgba(13,63,83,.62) 55%, rgba(13,63,83,.2) 100%); }
.hero-text { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; margin-bottom: .2em; }
.hero h1 span { color: var(--teal); }
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.45rem); margin-bottom: 1.4em; }
.hero .btn { background: var(--teal); border-color: var(--teal); color: var(--navy-deep); font-weight: 600; }
.hero .btn:hover { background: #fff; border-color: #fff; }

/* secciones */
.section { padding: clamp(48px, 7vw, 90px) 0; }
.tint { background: var(--teal-soft); }
.lead { font-size: 1.12rem; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split-img img { margin: 0 auto; border-radius: var(--radius); }
.form-split { align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split-img img { max-height: 380px; width: auto; } }
blockquote { margin: 1em 0 0; padding: 18px 24px; border-left: 4px solid var(--teal); background: var(--teal-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.2rem; font-weight: 600; color: var(--navy); }

.page-head { position: relative; padding: clamp(70px, 10vw, 120px) 0; background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; color: #fff; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,63,83,.85), rgba(13,63,83,.35)); }
.page-head .wrap { position: relative; }
.page-head h1 { margin: 0; max-width: 760px; }

/* productos */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin-bottom: 32px; }
.pcard { background: #fff; border: 1px solid transparent; border-radius: var(--radius); padding: 18px 18px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pimg { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pimg img { max-height: 100%; width: auto; object-fit: contain; }
.pcard h3 { margin: 4px 0 0; font-weight: 500; flex-grow: 1; }
.pcard .btn { margin-top: 6px; }

.clients img { margin: 0 auto; }

/* blog */
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-bottom: 32px; }
.bcard { background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.bcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bimg { aspect-ratio: 4/3; overflow: hidden; background: var(--teal-soft); }
.bimg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.btxt { padding: 16px 20px 20px; }
.btxt time, .post time { font-size: .85rem; color: var(--muted); }
.btxt h3 { margin: 4px 0 0; font-size: 1.05rem; }
.btxt .sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.post figure { margin: 24px 0 0; }
.post figure img { border-radius: var(--radius); margin: 0 auto; box-shadow: var(--shadow); }
.back { text-decoration: none; font-weight: 500; }

.insta .handle { font-size: 1.2rem; font-weight: 600; color: var(--navy); }

/* nosotros */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .mgrid { grid-template-columns: 1fr; } }
.mcard { background: #fff; border-radius: var(--radius); padding: 32px 28px; text-align: center; box-shadow: var(--shadow); }
.icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; }
.icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.values { list-style: none; padding: 0; margin: 0; font-weight: 600; color: var(--navy); line-height: 2.2; }
.policy { padding-left: 1.3em; }
.policy li { margin-bottom: .7em; }
.team-band img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 25%; }

/* contacto y formularios */
.contact-cards { display: grid; gap: 16px; }
.ccard { display: block; padding: 22px 24px; border-radius: var(--radius); background: var(--teal-soft); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
a.ccard:hover { border-color: var(--teal); }
.ccard span { display: block; font-size: .85rem; color: var(--muted); }
.ccard strong { font-size: 1.12rem; color: var(--navy); word-break: break-word; }
.mailform { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.mailform label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.mailform input, .mailform textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfdcdc; border-radius: 10px; background: #fafcfc; width: 100%; }
.mailform input:focus, .mailform textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); background: #fff; }
.mailform .btn { justify-self: start; }
.note { font-size: .85rem; color: var(--muted); margin: 0; }
.map iframe { display: block; width: 100%; height: 400px; border: 0; filter: grayscale(.2); }

/* pie */
.site-footer { background: var(--navy); color: #d7e8ec; padding: 60px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer img { height: 56px; width: auto; margin-bottom: 16px; }
.site-footer h2 { color: var(--teal); font-size: 1.05rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding: 18px 20px; font-size: .82rem; color: #a9c6cf; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
#form, #main { scroll-margin-top: 110px; }
