/* =========================================================
   OrangeIA · Hoja de estilos
   Colores de la marca en :root. Para ajustar el espaciado
   general cambia --section-space y --gap.
   ========================================================= */

:root {
  /* Paleta oficial */
  --orange: #FF7900;        /* Naranja: botones y acentos */
  --navy: #0B3D91;          /* Azul celeste oscuro: títulos y fondos */
  --green: #2EAD4A;         /* Verde hoja: detalles */

  /* Variantes para que el texto se lea bien */
  --navy-deep: #072A66;     /* texto sobre botones naranjas y pie de página */
  --orange-text: #B35300;   /* naranja para textos pequeños sobre blanco */
  --orange-soft: #FF9A3D;   /* naranja para textos pequeños sobre azul */

  --ink: #1F2937;           /* texto principal */
  --muted: #5B6575;         /* texto secundario */
  --bg: #FFFFFF;
  --bg-alt: #F4F6FA;        /* fondo de secciones alternas */
  --line: #E1E6EF;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Montserrat", "Inter", system-ui, sans-serif;   /* tipografía de la marca */

  --radius: 12px;
  --max-width: 1120px;
  --section-space: 64px;
  --gap: 22px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 0.9em; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: flex-end;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;   /* igual que el archivo original del logo */
}
.logo-mark { width: 1.2em; height: 1.2em; margin-right: -0.06em; margin-bottom: 0.02em; flex-shrink: 0; }
.logo-text { padding-bottom: 0.1em; }
.logo-ia { color: var(--orange); margin-left: 0.15em; }
.logo-light { color: #fff; font-size: 1.35rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: #FF8C26; border-color: #FF8C26; box-shadow: 0 6px 18px rgba(255, 121, 0, 0.3); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }

.btn-small { padding: 0.45em 1.15em; font-size: 0.95rem; }
.btn-large { padding: 0.85em 2.2em; font-size: 1.05rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(11, 61, 145, 0.07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Portada ---------- */
.hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 121, 0, 0.10), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(46, 173, 74, 0.08), transparent 40%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.hl { color: var(--orange); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 0 50% 0 50%;   /* forma de hoja */
  background: var(--green);
}
.eyebrow-light { color: var(--orange-soft); }

.lead { font-size: 1.13rem; color: var(--muted); max-width: 40em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.93rem;
  color: var(--muted);
}
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before,
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

.hero-photo { position: relative; margin: 0; isolation: isolate; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 82% center;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(11, 61, 145, 0.18);
}
.hero-photo::before {           /* aro naranja decorativo, como el logo */
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 110px;
  height: 110px;
  border: 14px solid var(--orange);
  border-radius: 50%;
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -20px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(11, 61, 145, 0.16);
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
}
.hero-badge strong { font-family: var(--font-title); font-size: 1.6rem; color: var(--navy); }

/* ---------- Secciones ---------- */
.section { padding: var(--section-space) 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.9em; }
.section-intro { color: var(--muted); max-width: 44em; margin: -0.6em 0 1.8em; font-size: 1.08rem; }

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Negocios como el tuyo */
.biz {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 61, 145, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.biz:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11, 61, 145, 0.12); }
.biz img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.biz-body { padding: 18px 18px 20px; }
.biz-body p { color: var(--muted); font-size: 0.97rem; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FFF1E5;
  color: var(--orange-text);
}

/* Servicios */
.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 24px 16px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 10px 30px rgba(11, 61, 145, 0.09); transform: translateY(-3px); }
.card > p { color: var(--muted); }
.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-text);
  margin-bottom: 8px;
}

.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 7px; font-size: 0.97rem; }

/* ---------- Proceso ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-deep);
  font-family: var(--font-title);
  font-weight: 700;
}
.steps p { color: var(--muted); margin: 0; }

/* ---------- Nosotros (fondo azul) ---------- */
.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #DCE4F2;
}
.section-dark .section-title { color: #fff; }
.section-dark::after {           /* hoja verde decorativa, como en la papelería de la marca */
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 200px;
  height: 200px;
  background: var(--green);
  border-radius: 0 100% 0 100%;
  opacity: 0.9;
}
.about { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }

.badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

/* ---------- Contacto y formulario ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-alt { color: var(--muted); font-size: 0.95rem; }

.form {
  display: grid;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 500; color: var(--navy); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #C5CDDA;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.form .invalid { border-color: #B91C1C; }

.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-size: 0.92rem; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }

.form .option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.form .option input { margin-top: 0.3em; accent-color: var(--orange); }
.form .consent { font-size: 0.9rem; }

.form .btn { justify-self: start; }

.hidden-field { position: absolute; left: -9999px; }

.form-status { margin: 0; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: #166534; }
.form-status.error { color: #B91C1C; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-deep); color: #B5C2DA; padding: 26px 0; font-size: 0.9rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }

/* ---------- Página de texto (aviso de privacidad) ---------- */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal .placeholder { background: #FFF1E5; padding: 0 4px; border-radius: 4px; }

/* ---------- Tabletas ---------- */
@media (max-width: 960px) {
  .hero-inner, .about, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 460px; margin: 0 auto; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- Celulares ---------- */
@media (max-width: 720px) {
  :root { --section-space: 48px; }
  .container { padding: 0 16px; }
  .hero { padding: 32px 0 48px; }

  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(11, 61, 145, 0.08);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3, .steps, .form-row, .options { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .biz-body { padding: 14px; }
  .biz-body p { font-size: 0.92rem; }

  .hero-photo::before { width: 80px; height: 80px; border-width: 10px; top: -10px; right: -6px; }
  .hero-badge { left: 12px; bottom: 12px; max-width: 240px; padding: 10px 14px; }
  .section-dark::after { width: 120px; height: 120px; right: -30px; bottom: -40px; }

  .form { padding: 20px 16px; }
  .form .btn { justify-self: stretch; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* Respeta a quien prefiere menos animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
