:root {
  --teal: #0a93aa;
  --teal-bright: #08b9d4;
  --teal-dark: #076f82;
  --teal-soft: #eaf9fb;
  --gold: #f6c344;
  --gold-dark: #dca329;
  --gold-soft: #fff8e8;
  --ink: #17242b;
  --text: #27363e;
  --muted: #66777f;
  --white: #ffffff;
  --surface: #f7fafb;
  --border: #dbe7ea;
  --shadow: 0 18px 50px rgba(23, 36, 43, .10);
  --shadow-hover: 0 22px 60px rgba(10, 147, 170, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1180px, 92%); margin: auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 231, 234, .85);
}
.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { width: 215px; height: 64px; object-fit: contain; object-position: left center; }
nav { display: flex; align-items: center; gap: 28px; }
nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 700;
  transition: color .25s ease;
}
nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--teal-bright);
  transition: width .25s ease;
}
nav a:hover { color: var(--teal); }
nav a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 17px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
}
.nav-cta:hover { background: var(--teal-dark); color: var(--white); }
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  color: var(--teal-dark);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 115px 0 105px;
  background:
    radial-gradient(circle at 92% 15%, rgba(246, 195, 68, .22), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f1fbfc 54%, #eaf8fa 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(10,147,170,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,147,170,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, transparent, #000 55%);
}
.hero-shape { position: absolute; border-radius: 28px; transform: rotate(45deg); }
.hero-shape-one { width: 150px; height: 150px; right: 7%; top: 14%; border: 28px solid rgba(8,185,212,.08); }
.hero-shape-two { width: 95px; height: 95px; right: 25%; bottom: 5%; border: 20px solid rgba(246,195,68,.10); }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow-gold { color: var(--gold-dark); }
h1, h2, h3 { color: var(--ink); }
h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.7vw, 5rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.14; letter-spacing: -.035em; }
h3 { line-height: 1.3; }
.hero-copy > p,
.centered p,
.business-intro p,
.about-grid p,
.contact-grid > div > p {
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-copy > p { max-width: 670px; }
.actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 23px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); color: var(--white); box-shadow: 0 12px 28px rgba(10,147,170,.24); }
.primary:hover { box-shadow: 0 16px 34px rgba(10,147,170,.32); }
.secondary { background: rgba(255,255,255,.82); color: var(--teal-dark); border: 1px solid rgba(10,147,170,.24); }
.secondary:hover { background: var(--white); }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.hero-points span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.hero-points span::before { content: "✓"; margin-right: 7px; color: var(--teal); font-weight: 900; }
.hero-card {
  padding: 32px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.card-label { color: var(--teal-dark); font-weight: 800; margin-bottom: 8px; }
.hero-card article { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 24px 0; border-top: 1px solid var(--border); }
.hero-card article > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
}
.hero-card article:nth-of-type(2) > span { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--ink); }
.hero-card h2 { margin-bottom: 5px; font-size: 1.28rem; letter-spacing: -.02em; }
.hero-card p { color: var(--muted); font-size: .94rem; }
.hero-card-link { display: inline-block; margin-top: 5px; color: var(--teal); text-decoration: none; font-weight: 800; }

.section { padding: 88px 0; }
.intro { padding-bottom: 58px; }
.centered { max-width: 800px; margin: auto; text-align: center; }
.centered h2 { margin-bottom: 17px; }
.business { padding: 100px 0; }
.consulting { background: linear-gradient(180deg, var(--teal-soft), #f7fcfd); }
.outsourcing { background: linear-gradient(180deg, var(--gold-soft), #fffdf8); }
.business-grid { display: grid; grid-template-columns: .8fr 1.35fr; gap: 62px; align-items: start; }
.business-intro { position: sticky; top: 115px; }
.number { display: block; margin-bottom: 14px; color: rgba(10,147,170,.15); font-size: 4.8rem; line-height: 1; font-weight: 900; }
.outsourcing .number { color: rgba(220,163,41,.20); }
.business-intro h2 { margin-bottom: 18px; }
.service-link { display: inline-block; margin-top: 25px; color: var(--teal-dark); font-weight: 800; text-decoration: none; }
.gold-link { color: var(--gold-dark); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  min-height: 205px;
  padding: 27px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(10,147,170,.10);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(23,36,43,.055);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(10,147,170,.38); box-shadow: var(--shadow-hover); }
.payroll-cards .card { border-color: rgba(220,163,41,.14); }
.payroll-cards .card:hover { border-color: rgba(220,163,41,.45); box-shadow: 0 22px 60px rgba(220,163,41,.15); }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.gold-icon { background: var(--gold-soft); color: var(--gold-dark); }
.card h3 { margin-bottom: 9px; font-size: 1.08rem; }
.card p, .steps p { color: var(--muted); }

.process { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 43px; }
.steps article { padding: 26px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; }
.steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: var(--white);
  font-weight: 800;
}
.steps article:nth-child(even) span { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--ink); }
.steps h3 { margin-bottom: 8px; }
.about { position: relative; overflow: hidden; }
.about::after { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; bottom: -140px; border-radius: 50%; background: rgba(8,185,212,.07); }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.tags span { padding: 9px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: .88rem; font-weight: 800; }

.contact {
  background:
    radial-gradient(circle at 5% 90%, rgba(246,195,68,.18), transparent 24%),
    linear-gradient(135deg, #f0fafc, #e7f6f8);
}
.contact-copy h2 { margin-bottom: 18px; }
.contact-note { display: grid; gap: 4px; margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--gold); background: rgba(255,255,255,.68); border-radius: 0 12px 12px 0; }
.contact-note strong { color: var(--ink); }
.contact-note span { color: var(--muted); font-size: .94rem; }
.contact-form { display: grid; gap: 16px; padding: 31px; background: var(--white); border: 1px solid rgba(10,147,170,.13); border-radius: 20px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: .92rem; font-weight: 800; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 9px; background: #fbfdfd; color: var(--text); font: inherit; transition: border .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-bright); box-shadow: 0 0 0 4px rgba(8,185,212,.10); }
textarea { resize: vertical; }
.form-message { color: var(--teal-dark); font-weight: 800; }

.footer { padding: 36px 0; background: var(--ink); color: var(--white); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-logo { width: 175px; height: 52px; object-fit: contain; object-position: left center; }
.footer p { color: rgba(255,255,255,.68); font-size: .9rem; }

@media (max-width: 900px) {
  .nav { min-height: 76px; }
  .logo { width: 185px; height: 56px; }
  .menu-button { display: block; }
  nav {
    position: absolute;
    top: 76px;
    right: 4%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(330px, 92%);
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  nav.open { display: flex; }
  nav a { padding: 5px 0; }
  .nav-cta { padding: 11px 16px; text-align: center; }
  .hero { padding: 85px 0 76px; }
  .hero-grid, .business-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .business-intro { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .footer-brand { align-items: flex-start; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(100% - 32px, 1180px); }
  .logo { width: 165px; }
  .hero { padding: 68px 0 60px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .section, .business { padding: 66px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-points { display: grid; gap: 8px; }
  .hero-card { padding: 24px; }
  .card { min-height: auto; }
  .footer-grid, .footer-brand { flex-direction: column; }
  .footer-logo { width: 155px; }
}


/* ==========================
   BOTÓN FLOTANTE WHATSAPP
========================== */
.whatsapp-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .30);
}

.whatsapp-button:focus-visible {
  outline: 4px solid rgba(37, 211, 102, .28);
  outline-offset: 4px;
}

.whatsapp-button img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.whatsapp-tooltip {
  position: absolute;
  right: 78px;
  width: max-content;
  max-width: 230px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.whatsapp-button:hover .whatsapp-tooltip,
.whatsapp-button:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 620px) {
  .whatsapp-button {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .whatsapp-button img {
    width: 38px;
    height: 38px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* ==========================
   RH CONSULTING - AJUSTES 2026
========================== */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.privacy-check {
  grid-template-columns: 22px 1fr !important;
  align-items: start;
  gap: 10px !important;
  font-weight: 600 !important;
  line-height: 1.45;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.privacy-check a,
.legal-card a,
.footer-links a {
  color: var(--teal-dark);
  font-weight: 800;
}

.form-helper {
  margin-top: -4px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.footer-legal {
  display: grid;
  justify-items: end;
  gap: 9px;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--white); }
.footer-location { margin-top: 3px; }

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  transform: rotate(-12deg);
}

/* Páginas legales */
.legal-page { background: var(--surface); }
.legal-page .header .nav { min-height: 78px; }
.legal-back { text-decoration: none; display: inline-flex; }
.legal-main { padding: 70px 0 85px; }
.legal-card {
  max-width: 920px;
  padding: 48px 52px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.legal-card p,
.legal-card li {
  color: var(--text);
}

.legal-card p { margin-top: 12px; }
.legal-card ul { margin: 12px 0 0 24px; }
.legal-card li { margin: 6px 0; }
.legal-updated { color: var(--muted) !important; margin-bottom: 28px; }

.legal-notice {
  display: grid;
  gap: 5px;
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--gold-soft);
}

.legal-notice strong { color: var(--ink); }
.legal-notice span { color: var(--muted); font-size: .94rem; }
.legal-footer { margin-top: 0; }

@media (max-width: 900px) {
  .footer-legal { justify-items: start; text-align: left; }
  .legal-card { padding: 38px 34px; }
}

@media (max-width: 620px) {
  .legal-page .logo { width: 150px; }
  .legal-back { padding: 9px 12px; font-size: .8rem; }
  .legal-main { padding: 34px 0 55px; }
  .legal-card { padding: 30px 22px; border-radius: 16px; }
  .legal-card h2 { margin-top: 28px; }
  .footer-links { gap: 10px 14px; }
  .whatsapp-icon { width: 38px; height: 38px; font-size: 1.7rem; }
}


/* Formulario de contacto conectado al servidor */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.contact-form button:disabled {
  opacity: .72;
  cursor: wait;
  transform: none;
}
.form-message.success { color: #087f5b; }
.form-message.error { color: #b42318; }

/* ==========================
   CONSENTIMIENTO DE COOKIES
========================== */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3000;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.cookie-banner--hidden { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
.cookie-banner__content {
  width: min(1180px, 100%);
  margin: auto;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #17242b;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
}
.cookie-banner strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.cookie-banner p { color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.45; }
.cookie-banner a { color: #8ee7f3; font-size: .86rem; font-weight: 800; }
.cookie-banner__actions, .cookie-panel__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}
.cookie-btn--primary { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); color: #fff; }
.cookie-btn--secondary { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.cookie-panel[hidden] { display: none; }
.cookie-panel { position: fixed; inset: 0; z-index: 3100; display: grid; place-items: center; padding: 18px; }
.cookie-panel__backdrop { position: absolute; inset: 0; background: rgba(9,20,25,.62); backdrop-filter: blur(5px); }
.cookie-panel__card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  padding: 30px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0,0,0,.28);
}
.cookie-panel__card h2 { margin-bottom: 10px; font-size: 1.65rem; }
.cookie-panel__card > p { color: var(--muted); }
.cookie-panel__close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 1.8rem; color: var(--muted); cursor: pointer; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-top: 1px solid var(--border); }
.cookie-option:first-of-type { margin-top: 20px; }
.cookie-option strong { display: block; color: var(--ink); }
.cookie-option span { color: var(--muted); font-size: .88rem; }
.cookie-status { white-space: nowrap; font-weight: 800; color: var(--teal-dark) !important; }
.cookie-switch { position: relative; flex: 0 0 auto; width: 50px; height: 28px; }
.cookie-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfdadd; cursor: pointer; transition: .2s; }
.cookie-switch span::after { content: ""; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: .2s; }
.cookie-switch input:checked + span { background: var(--teal); }
.cookie-switch input:checked + span::after { transform: translateX(22px); }
.cookie-panel__actions { margin-top: 18px; justify-content: flex-end; }
.cookie-panel__actions .cookie-btn--secondary { color: var(--teal-dark); border-color: var(--border); }
.cookie-modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner__content { align-items: stretch; flex-direction: column; gap: 14px; }
  .cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-banner__actions .cookie-btn--primary { grid-column: 1 / -1; }
  .cookie-panel__card { padding: 26px 20px; }
  .cookie-option { align-items: flex-start; }
  .cookie-panel__actions { display: grid; grid-template-columns: 1fr; }
}
