/* Adsfy — réplica estática del sitio original (IONOS) para Vercel.
   Medidas, colores y fuentes tomados del original a 1366px y 390px. */

@font-face { font-family: "Merriweather"; src: url("/assets/fonts/merriweather-400.woff?v=3") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff?v=3") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff?v=3") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #32cd32;
  --green-dark: #1c831c;
  --coral: #ff6347;
  --ink: #151515;
  --grey: #363636;
  --light: #f8f8f8;
  --white: #ffffff;
  --serif: "Merriweather", Georgia, serif;
  --poppins: "Poppins", Arial, Helvetica, sans-serif;
  --arial: Arial, Helvetica, sans-serif;
  /* escala de texto: 1 en escritorio, 0.875 tablet, 0.766 móvil (igual que el original) */
  --s: 1;
  --fs: calc(16px * var(--s));
  --h1: calc(40px * var(--s));
  --h2: calc(33px * var(--s));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--arial);
  font-size: var(--fs);
  line-height: normal;
  color: var(--ink);
  background: var(--light);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: normal; margin: 0; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
p, ul, ol { margin: 0; }
a { color: inherit; }

/* Bloques de texto (Poppins) */
.copy { font-family: var(--poppins); font-size: var(--fs); line-height: normal; }
.copy > * + * { margin-top: 1em; }
.copy > h1 + *, .copy > h2 + * { margin-top: 1.69em; }
.copy > .btn { margin-top: 1.5em; }
.copy strong { font-weight: 700; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--green); font-family: var(--arial); }
.site-header .bar { display: flex; align-items: center; justify-content: flex-end; height: 68px; padding: 0 32px 0 24px; }
.nav { display: flex; gap: 8px; }
.nav a {
  font-size: 16px; line-height: 18px; color: var(--ink); text-decoration: none;
  padding: 10px 12px 8px; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: rgba(21,21,21,.4); }
.nav a[aria-current="page"] { color: var(--grey); border-bottom-color: var(--ink); }
.nav-toggle { display: none; width: 32px; height: 32px; background: none; border: 0; padding: 4px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Botón ---------- */
.btn {
  display: inline-block; background: var(--coral); color: var(--ink);
  font-family: var(--arial); font-size: var(--fs); line-height: normal;
  padding: 9px; border-radius: 6px; text-decoration: none;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }

/* ---------- Cabeceras con imagen (hero y subpáginas) ---------- */
.banner {
  min-height: 720px; display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), var(--img);
  background-position: center; background-size: cover; background-attachment: fixed;
  padding: 60px 24px;
}
.banner h1 { color: var(--green); }
.banner-inner { width: 100%; max-width: 651px; }
.hero .banner-inner { padding-top: 19px; }
.hero .copy p { color: var(--light); }
.hero .copy > h1 + * { margin-top: 27px; }
.hero .copy > .btn { margin-top: 24px; }

/* ---------- Filas imagen / texto ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--light); }
.row .media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.row .copy { width: 59.6%; margin: 0 auto; padding: 44px 0 24px; }
.row h2 { color: var(--green-dark); }
.row.image-right .media { order: 2; }

/* ---------- Como trabalhamos ---------- */
.how {
  color: var(--light);
  background: linear-gradient(rgba(21,21,21,.5), rgba(21,21,21,.5)), url("/assets/img/como-trabalhamos.jpg?v=3") center / cover no-repeat var(--ink);
  padding: 58px 24px 115px;
}
.how-inner { max-width: 912px; margin: 0 auto; }
.how .copy { max-width: 448px; }
.how h1 { font-size: 38px; color: var(--green); }
.how .lead { font-family: var(--poppins); font-size: 16px; line-height: 41px; color: var(--green); }
.how .copy > h1 + .lead { margin-top: 27px; }
.how .copy > .lead + p { margin-top: 28px; }
.steps { padding-left: 40px; }

/* ---------- Bloque de contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--coral); color: var(--white); font-family: var(--arial); }
.contact-form { background: rgba(255,255,255,.2); padding: 24px 74px; }
.contact-info { display: flex; align-items: center; padding: 44px 65px 24px 66px; }
.contact-info > div { width: 100%; }
.contact.info-left .contact-info { order: -1; padding: 44px 49px 24px 42px; }
.contact.info-left .socials { margin-top: 58px; }
.contact-info h2 { color: var(--white); }
.contact-info h2 + p { margin-top: 27px; }
.contact-info p + p { margin-top: 16px; }
.contact-info a { color: var(--white); }

.field + .field { margin-top: 24px; }
.field label { display: block; margin-bottom: 8px; }
.field input, .field textarea {
  display: block; width: 100%; font: inherit; color: var(--white);
  background: transparent; border: 2px solid var(--white); border-radius: 8px;
  padding: 0 14px; height: 46px; outline: none;
}
.field textarea { height: 208px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.field .error { display: none; font-size: 14px; margin-top: 4px; color: #fff3b0; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #fff3b0; }

.consent { display: flex; gap: 8px; align-items: center; margin-top: 40px; line-height: 18px; cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0;
  border: 2px solid var(--white); border-radius: 4px; background: transparent; cursor: pointer;
}
.consent input:checked { background: var(--white); box-shadow: inset 0 0 0 3px #ff826b; }
.consent.invalid input { border-color: #fff3b0; }
.form-note { margin-top: 31px; line-height: 18px; }
.btn-send {
  display: block; width: 100%; height: 38px; margin-top: 17px; background: var(--green); color: var(--ink);
  border: 0; border-radius: 4px; font: inherit; cursor: pointer;
}
.btn-send:disabled { opacity: .6; cursor: wait; }
.form-status { margin-top: 10px; min-height: 1em; }
.form-status:empty { display: none; }
.form-status a { color: var(--white); }
.hp { position: absolute; left: -9999px; }

.socials { display: flex; gap: 16px; margin-top: 24px; padding-left: 8px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.socials svg { width: 32px; height: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--coral); color: var(--white); text-align: center; padding: 48px 24px; font-family: var(--arial); }
.site-footer p { line-height: 18px; max-width: 912px; margin: 0 auto; }

/* ---------- Texto legal ---------- */
.legal { max-width: 960px; margin: 0 auto; padding: 72px 24px; font-family: var(--arial); text-align: justify; }
.legal > * + * { margin-top: 16px; }
.legal ul { padding-left: 40px; }
.legal a { color: var(--green-dark); }

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

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  :root { --s: .875; }
  .row .copy { width: 80%; }
  .contact-form { padding: 24px 40px; }
  .contact-info, .contact.info-left .contact-info { padding: 24px 40px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  :root { --s: .765625; }
  .site-header .bar { height: 62px; padding: 0 24px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--green); max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a { padding: 16px 24px; border-bottom: 1px solid rgba(21,21,21,.12); }
  .nav a[aria-current="page"] { font-weight: 700; border-bottom-color: rgba(21,21,21,.12); }

  .banner { background-attachment: scroll; }
  .hero .copy > h1 + * { margin-top: 20px; }
  .hero .copy > .btn { margin-top: 21px; }
  .row, .contact { grid-template-columns: 1fr; }
  .row.image-right .media { order: 0; }
  .row .copy { width: auto; margin: 0; padding: 37px 24px 23px; }
  .copy > h1 + *, .copy > h2 + * { margin-top: 21px; }
  .copy > .btn { margin-top: 21px; }

  .how { padding: 52px 24px 156px; }
  .how .lead { line-height: 32px; }
  .how .copy > h1 + .lead { margin-top: 21px; }
  .how .copy > .lead + p { margin-top: 21px; }

  .contact-form { padding: 22px 32px 24px; }
  .contact-info, .contact.info-left .contact-info { padding: 36px 24px 24px; }
  .contact.info-left .socials { margin-top: 47px; }
  .contact.info-left .contact-info > div::after { content: ''; display: block; height: 0; }
  .contact-info h2 + p { margin-top: 21px; }
  .contact-info p + p { margin-top: 12px; }
  .field input { height: 42px; }
  .field textarea { height: 168px; }
  .consent { margin-top: 36px; line-height: 14px; }
  .form-note { margin-top: 27px; line-height: normal; }
  .btn-send { margin-top: 19px; }
  .site-footer p { line-height: normal; }
  .btn-send { height: 34px; }
  .socials { gap: 16px; margin-top: 21px; }
  .socials a { width: 27px; height: 27px; }
  .socials svg { width: 24px; height: 24px; }

  .site-footer { padding: 44px 24px; }
  .legal { padding: 67px 24px; }
  .legal > * + * { margin-top: 1em; }
}
