/* =============================================================
   AptoAdministración.com — Estilos
   Paleta: blanco + azul oscuro + verde
   ============================================================= */

/* ---------- Variables ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fb;
  --color-bg-soft: #eef3f9;

  --color-blue: #0f2a47;
  --color-blue-2: #1a3a5f;
  --color-blue-3: #2a4a72;
  --color-blue-soft: #e6edf5;

  --color-green: #1e8e5a;
  --color-green-2: #156b43;
  --color-green-soft: #e6f4ec;

  --color-text: #1a2a3a;
  --color-muted: #5a6b7b;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  --color-white: #ffffff;
  --color-danger: #c0392b;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 42, 71, 0.06);
  --shadow: 0 6px 18px rgba(15, 42, 71, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 42, 71, 0.12);

  --container: 1160px;
  --gutter: 24px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;

  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--color-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-green); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-blue);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; }

ul { padding: 0 0 0 1.1em; margin: 0 0 1em; }
ul li { margin-bottom: 0.4em; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
  transform: translateY(0);
  transition: transform 300ms ease, opacity 300ms ease;
}
.cookie-banner.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1 1 360px;
  margin: 0;
  font-size: 0.95rem;
}
.cookie-banner__text a {
  color: #9dd9bd;
  text-decoration: underline;
}
.cookie-banner__text a:hover { color: #ffffff; }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.97rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn--primary:hover {
  background: var(--color-green-2);
  border-color: var(--color-green-2);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--outline {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.btn--outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}
.cookie-banner .btn--outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}
.cookie-banner .btn--outline:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-color: #ffffff;
}
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue);
  font-weight: 800;
  text-decoration: none;
}
.brand:hover { color: var(--color-blue); }
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand__text { display: flex; align-items: baseline; gap: 2px; }
.brand__name { font-size: 1.05rem; }
.brand__tag { color: var(--color-green); font-size: 0.9rem; font-weight: 600; }
.brand--light { color: #ffffff; }
.brand--light:hover { color: #ffffff; }
.brand--light .brand__mark {
  background: var(--color-white);
  color: var(--color-blue);
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-menu li { margin: 0; }
.nav-menu a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-blue);
}
.nav-menu a.nav-cta {
  background: var(--color-green);
  color: var(--color-white);
  padding: 9px 16px;
  margin-left: 6px;
}
.nav-menu a.nav-cta:hover {
  background: var(--color-green-2);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--color-blue);
  margin: 4px auto;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(30, 142, 90, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(15, 42, 71, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  padding: 80px 0 70px;
  border-bottom: 1px solid var(--color-border);
}
.hero__inner { max-width: 820px; }
.hero__eyebrow {
  display: inline-block;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}
.hero__title span {
  background: linear-gradient(90deg, var(--color-green) 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 28px;
  max-width: 640px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 70px 0;
  background: var(--color-white);
}
.section--light { background: var(--color-bg-alt); }
.section--alt { background: var(--color-bg-soft); }
.section--contact {
  background:
    linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 100%);
}

.section__head { text-align: center; margin-bottom: 44px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-green);
  margin: 0 0 8px;
}
.section__title { margin: 0 0 12px; }
.section__sub { color: var(--color-muted); margin: 0; font-size: 1.02rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--color-blue-soft);
}
.card h3 { margin-bottom: 8px; }
.card h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
.card p { color: var(--color-muted); margin: 0; font-size: 0.97rem; }

/* ---------- Checklist ---------- */
.checklist {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.checklist h3 { margin-bottom: 14px; }
.checklist ul { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--color-text);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ---------- Callout ---------- */
.callout {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-2) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  align-self: start;
}
.callout h3 { color: var(--color-white); margin-bottom: 10px; }
.callout p { color: rgba(255,255,255,0.92); margin: 0; }
.callout--green {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-2) 100%);
}

/* ---------- List icons ---------- */
.list-icons { list-style: none; padding: 0; margin: 0; }
.list-icons li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.list-icons__dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: var(--color-green);
  border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 0 4px rgba(30, 142, 90, 0.15);
}

/* ---------- Contact form ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact__intro h2 { margin-bottom: 10px; }
.contact__info {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.contact__info li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-green);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact__form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row--2 > div { display: flex; flex-direction: column; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-blue);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(30, 142, 90, 0.18);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row--submit { margin-bottom: 0; }
.form-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

/* ---------- Page hero (politicas) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-blue-2) 100%);
  color: var(--color-white);
  padding: 70px 0 50px;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0; }
.page-hero .section__eyebrow {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

/* ---------- Legal (politicas) ---------- */
.legal {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.legal__nav {
  position: sticky;
  top: 100px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.legal__nav h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-green);
  margin-bottom: 12px;
}
.legal__nav ol { padding-left: 1.1em; margin: 0; }
.legal__nav li { margin-bottom: 8px; }
.legal__nav a {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
}
.legal__nav a:hover { color: var(--color-blue); text-decoration: underline; }

.legal__content {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.legal__content section { margin-bottom: 30px; }
.legal__content section:last-child { margin-bottom: 0; }
.legal__content h2 {
  font-size: 1.25rem;
  color: var(--color-blue);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-green);
  display: inline-block;
}
.legal__content ul { padding-left: 1.1em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-blue);
  color: rgba(255,255,255,0.85);
  margin-top: 60px;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #ffffff; }
.site-footer h4 {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 32px;
}
.site-footer__desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin: 14px 0 0;
  max-width: 360px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li {
  margin-bottom: 8px;
  font-size: 0.93rem;
}
.site-footer__contact li strong { color: #ffffff; }

.site-footer__bottom {
  background: rgba(0,0,0,0.18);
  padding: 16px 0;
  font-size: 0.88rem;
}
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__bottom p { margin: 0; color: rgba(255,255,255,0.7); }
.site-footer__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer__legal li { margin: 0; }

/* ---------- Subsection (dentro de Construcción) ---------- */
.subsection {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-blue);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-green);
  display: inline-block;
}
.section-lead {
  color: var(--color-muted);
  font-size: 1.02rem;
  max-width: 820px;
  margin: 0 0 22px;
}

/* ---------- CTA callout (full width) ---------- */
.cta-callout {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-callout h3 { margin-bottom: 6px; }
.cta-callout p { margin: 0; }
.cta-callout .btn { flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: none;
    gap: 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a {
    display: block;
    padding: 12px var(--gutter);
    border-radius: 0;
  }
  .nav-menu a.nav-cta {
    margin: 8px var(--gutter);
    text-align: center;
  }
  .site-header__inner { position: relative; }

  .hero { padding: 50px 0 50px; }
  .section { padding: 50px 0; }
  .section__head { margin-bottom: 32px; }
  .legal__content { padding: 24px 20px; }
  .contact__form { padding: 22px 18px; }
  .cta-callout { flex-direction: column; text-align: center; }
  .subsection { font-size: 1.2rem; margin-top: 36px; }
}

@media (max-width: 480px) {
  .hero__bullets { gap: 12px; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 3px solid rgba(30, 142, 90, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}
