/* Adiplast – Landing Ceras (v2) */
:root {
  --blue: #234089;
  --navy: #14275a;
  --ink: #1b2440;
  --muted: #5b6482;
  --cream: #fbf6ea;
  --line: #e4e7f0;
  --amber: #f5a912;
  --amber-d: #d98f00;
  --green: #11877a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 39, 90, .10);
  --shadow-lg: 0 24px 60px rgba(20, 39, 90, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--navy); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 12px; padding: .85rem 1.5rem; min-height: 48px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(35, 64, 137, .28); }
.btn-primary:hover { background: var(--navy); }
.btn-success { background: var(--amber); color: var(--navy); box-shadow: 0 8px 20px rgba(245, 169, 18, .35); }
.btn-success:hover { background: var(--amber-d); }
.btn-lg { width: 100%; font-size: 1.05rem; }
.btn-light { background: #fff; color: var(--navy); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.site-header img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav ul a:hover { color: var(--blue); }
.main-nav .btn { padding: .55rem 1.1rem; min-height: 42px; font-size: .92rem; color: #fff; }

/* Layout principal: contenido + formulario lateral */
.page { position: relative; overflow: clip; }
.page::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 780px; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #fff 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .35)),
    url("../img/fondo-ceras.jpg") center / cover no-repeat;
}
.layout {
  display: grid; gap: 0 56px; align-items: start;
  grid-template-columns: minmax(0, 1fr) 410px;
  grid-template-areas: "hero aside" "content aside";
}
.hero { grid-area: hero; padding: 64px 0 40px; }
.content { grid-area: content; }
.aside { grid-area: aside; padding: 40px 0 48px; align-self: stretch; }

/* Hero */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--blue);
  background: #fff; border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 99px; margin-bottom: 1.25rem;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; margin-bottom: 1rem; }
.hero .lead { font-size: 1.15rem; color: var(--ink); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-img img { mix-blend-mode: multiply; width: 100%; max-height: 420px; object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 2rem; max-width: 560px; }
.stat { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.stat strong { display: block; font-size: 1.35rem; color: var(--blue); line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--muted); }

/* Secciones */
section { padding: 56px 0; }
.content section { padding: 48px 0; }
.kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--amber-d); margin-bottom: .6rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }

.about { display: grid; gap: 28px; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 7; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.callout p { margin: 0; font-size: 1.15rem; font-weight: 600; max-width: 38ch; color: #fff; }
.callout strong { color: var(--amber); }

/* Características */
.features-bg { background: var(--cream); border-radius: 24px; padding: 40px !important; }
.features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.features li {
  display: flex; align-items: center; gap: .65rem; background: #fff; border-radius: 12px;
  padding: .9rem 1rem; font-weight: 600; box-shadow: 0 2px 8px rgba(20, 39, 90, .06);
}
.features i { color: var(--blue); font-size: 1.2rem; }

/* Tipos */
.types-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; margin-bottom: 2rem; }
.types-intro img { border-radius: var(--radius); box-shadow: var(--shadow); }
.types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.type-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.type-card img { width: 100%; aspect-ratio: 800 / 482; object-fit: cover; }
.type-card .body { padding: 1.1rem 1.25rem 1.4rem; }
.type-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.type-card p { font-size: .93rem; color: var(--muted); margin: 0; }
.type-card strong { color: var(--ink); }

.type-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
.type-card:last-child:nth-child(odd) img { width: 50%; aspect-ratio: auto; }
.type-card:last-child:nth-child(odd) .body { align-self: center; }

.cta-band {
  margin-top: 2.5rem; text-align: center; padding: 2.5rem 1.5rem; border-radius: 24px;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 1.25rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band .btn { width: auto; }
.partner { padding: 40px 0 8px; text-align: center; }
.partner img { margin-inline: auto; max-width: 198px; }

/* Formulario lateral */
.form-card {
  position: sticky; top: 84px; background: #fff; border-radius: 20px; padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-top: 5px solid var(--amber);
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.form-card h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.form-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.form-group { margin-bottom: .6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.form-control {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #f7f8fc;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem; min-height: 46px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control::placeholder { color: #8189a5; }
.form-control:focus { outline: 0; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(35, 64, 137, .12); }
textarea.form-control { resize: vertical; min-height: 64px; }
.form-card label.hint { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; }
.form-card .g-recaptcha { margin: .6rem 0; transform: scale(.9); transform-origin: 0 0; height: 70px; }
.privacy { font-size: .75rem; color: var(--muted); text-align: center; margin: .75rem 0 0; }
.privacy i { color: var(--green); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.copyright { padding: 14px 0; }

/* Barra móvil */
.mobile-bar {
  display: none; position: fixed; inset: auto 0 0 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 39, 90, .10);
  transition: transform .3s;
}
.mobile-bar.hide { transform: translateY(110%); }
.mobile-bar .btn { width: 100%; }

/* Ajustes WhatsApp flotante (sobre css/whatsapp.css) */
.p-4 { padding: 1.25rem; }
.mb-3 { margin-bottom: .75rem; }
.contenedorWhatsapp { bottom: auto; right: auto; }
.buttonWhatsapp { bottom: 20px; width: 75px; height: 55px; }
.buttonWhatsapp:before { top: 0; }
.inputWhatsapp {
  bottom: 88px; right: 16px; transform: none !important; margin-top: 0; text-align: left;
  border-radius: 14px; overflow: hidden auto; max-height: calc(100vh - 110px); box-shadow: var(--shadow-lg); width: 300px;
}
.inputWhatsapp .btn { width: 100%; }
#toggleWhatsapp:checked ~ .inputWhatsapp { display: block; }

/* Animación de entrada */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .type-card { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 0 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { display: none; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "aside" "content"; }
  .main-nav ul { display: none; }
  .hero { padding: 36px 0 24px; }
  .aside { padding: 8px 0 24px; }
  .form-card { position: static; max-height: none; }
  .mobile-bar { display: block; }
  body { padding-bottom: 72px; }
  .buttonWhatsapp { bottom: 84px; }
  .inputWhatsapp { bottom: 152px; max-height: calc(100vh - 170px); }
  .page::before { height: 620px; }
}
@media (max-width: 600px) {
  .types-grid, .types-intro { grid-template-columns: 1fr; }
  .type-card:last-child:nth-child(odd) { flex-direction: column; }
  .type-card:last-child:nth-child(odd) img { width: 100%; aspect-ratio: 800 / 482; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .features-bg { padding: 24px !important; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav .btn { display: none; }
}
