:root {
  --navy: #0b2340;
  --navy-mid: #12345a;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --bg: #f7f5ef;
  --card: #ffffff;
  --text: #122033;
  --muted: #5b6b7c;
  --line: #e4ddd0;
  --wa: #25d366;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-mid);
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

main {
  flex: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 0.75rem;
}

@media (min-width: 860px) {
  .nav-inner {
    height: 76px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.brand img {
  height: 46px;
  width: auto;
  display: block;
}

@media (min-width: 860px) {
  .brand img {
    height: 56px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.menu-btn {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--navy);
  padding: 0.35rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 0 0.85rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  filter: brightness(1.06);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-mid);
}

.btn-wa {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgb(255 255 255 / 55%);
}

.cta-band .btn-wa,
.mobile-menu .btn-wa {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.hero-actions,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero {
  position: relative;
  color: #fff;
  padding: 6.2rem 0 5.2rem;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(11 35 64 / 18%) 0%, rgb(11 35 64 / 55%) 58%, rgb(8 20 38 / 88%) 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-logo-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 0.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
}

.hero p {
  margin: 0 0 1.5rem;
  color: #d7e4ef;
  font-size: 1.08rem;
  max-width: 38rem;
}

.eyebrow {
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.section {
  padding: 4.2rem 0;
}

.section-photo {
  padding: 0;
}

.section h2 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.lead {
  color: var(--muted);
  max-width: 720px;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.6rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 8px 24px rgb(11 35 64 / 5%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card {
  position: relative;
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
}

.photo-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.photo-card .photo-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 2.4rem 1.3rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgb(8 20 38 / 94%));
}

.photo-card .photo-copy h3,
.photo-card .photo-copy p {
  color: #fff;
}

.card h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
}

.photo-card .photo-copy h3 {
  color: #fff;
}

.split-visual {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  min-height: 360px;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.split-visual .copy {
  background: var(--navy);
  color: #fff;
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-visual .copy h2,
.split-visual .copy p {
  color: #fff;
}

.split-visual .copy p {
  color: #d7e4ef;
}

@media (min-width: 860px) {
  .split-visual {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.steps-row {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

@media (min-width: 800px) {
  .steps-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps-row article {
  background: #fff;
  padding: 1.5rem 1.2rem;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.steps-row article:hover {
  transform: none;
  background: #fffdf6;
}

.steps-row .n {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgb(11 35 64 / 8%);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.trust span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 22%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 2.6rem 0;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.1rem;
  color: #d7e4ef;
}

.card h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3ead0;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.step {
  counter-increment: steps;
}

.step .icon-badge::after {
  content: none;
}

.list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.chips span {
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.split-visual.light .copy {
  background: #fff;
}

.split-visual.light .copy h2,
.split-visual.light .copy p {
  color: var(--text);
}

.split-visual.light .copy p {
  color: var(--muted);
}

.split-visual.light .chips span {
  background: #f3ead0;
  border-color: #e8d48b;
  color: var(--navy);
}

.split-visual.reverse img {
  order: 2;
}

@media (min-width: 860px) {
  .split-visual.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.page-head {
  background:
    linear-gradient(180deg, rgb(11 35 64 / 72%), rgb(11 35 64 / 88%)),
    url("images/hero-acceso.png") center / cover no-repeat;
  color: #fff;
  padding: 4.2rem 0 3.4rem;
}

.page-head h1 {
  margin: 0 0 0.45rem;
}

.page-head p {
  margin: 0;
  color: #d7e4ef;
  max-width: 720px;
}

.contact-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}

.contact-block p {
  margin: 0.35rem 0;
}

.director {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.director img.escudo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
}

.firma {
  width: 160px;
  display: block;
  margin: 0.8rem 0 0.2rem;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.wa-float {
  display: none;
}

.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 61;
  min-width: 58px;
  height: 58px;
  padding: 0 0.85rem 0 0.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(11 35 64 / 22%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-fab img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 5.2rem;
  z-index: 62;
  width: min(380px, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgb(11 35 64 / 18%);
  overflow: hidden;
}

.chat-head {
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chat-head img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.chat-head div {
  flex: 1;
  line-height: 1.2;
}

.chat-head small {
  display: block;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-log {
  height: 300px;
  overflow: auto;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fbf8f1;
}

.chat-photo {
  margin: 0;
  max-width: 92%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.chat-photo img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.chat-log p {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 92%;
}

.from-bot {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
}

.from-user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

.chat-opt {
  border: 1px solid var(--gold);
  background: #fff8e8;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--navy);
  text-decoration: none;
}

.chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0 0.75rem 0.7rem;
  background: #fff;
}

.chat-form input {
  flex: 1;
}

.chat-form button {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

footer {
  background: var(--navy);
  color: #c9d6e3;
  padding: 2rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

.footer-brand img {
  height: 50px;
}

footer a {
  color: var(--gold-soft);
}

.legal {
  color: var(--text);
}

.legal-doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.5rem 2.4rem;
  box-shadow: 0 8px 24px rgb(11 35 64 / 5%);
}

@media (min-width: 800px) {
  .legal-doc {
    padding: 2.6rem 3rem 3rem;
  }
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.4rem;
}

.legal-toc {
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 0 0 2rem;
}

html[data-theme="dark"] .legal-toc {
  background: #122033;
}

.legal-toc strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--navy);
}

html[data-theme="dark"] .legal-toc strong {
  color: #f3ead0;
}

.legal-toc a {
  display: block;
  text-decoration: none;
  color: var(--navy-mid);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.2rem 0;
}

.legal-doc h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.2rem;
  color: var(--navy);
}

html[data-theme="dark"] .legal-doc h2 {
  color: #f3ead0;
}

.legal-doc p,
.legal-doc li {
  color: var(--text);
}

.legal-doc ol,
.legal-doc ul {
  padding-left: 1.2rem;
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.ok {
  background: #e8f6ee;
  border: 1px solid #b7e0c5;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid #8b95a1;
  border-radius: 999px;
  background: #6b7280;
  color: #f3f4f6;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  z-index: 41;
}

.cal-embed {
  padding: 0;
  overflow: hidden;
  min-height: 720px;
  border-color: #d1d5db;
  box-shadow: 0 8px 24px rgb(17 24 39 / 6%);
}

.cal-embed:hover {
  transform: none;
  box-shadow: 0 8px 24px rgb(17 24 39 / 6%);
}

.cal-embed iframe,
#cal-inline {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #fff;
}

#cal-inline {
  overflow: auto;
}

html[data-theme="dark"] {
  --bg: #08141f;
  --card: #122033;
  --text: #e8eef4;
  --muted: #9eb0c2;
  --line: #2a3d52;
}

html[data-theme="dark"] .nav {
  background: rgb(8 20 32 / 94%);
}

html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .menu-btn,
html[data-theme="dark"] .mobile-menu a,
html[data-theme="dark"] .section h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .theme-toggle {
  background: #4b5563;
  border-color: #9ca3af;
  color: #f3f4f6;
}

html[data-theme="dark"] .steps-row article,
html[data-theme="dark"] .split-visual.light .copy,
html[data-theme="dark"] .chat-panel,
html[data-theme="dark"] .chat-quick,
html[data-theme="dark"] .chat-form,
html[data-theme="dark"] .from-bot {
  background: #122033;
}

html[data-theme="dark"] .steps-row article:hover {
  background: #1a2d44;
}

html[data-theme="dark"] .split-visual.light .copy h2,
html[data-theme="dark"] .split-visual.light .copy p {
  color: #e8eef4;
}

html[data-theme="dark"] .chat-log {
  background: #0c1a28;
}

html[data-theme="dark"] .cal-embed {
  border-color: #4b5563;
  background: #111827;
}

html[data-theme="dark"] .cal-embed iframe {
  background: #111827;
}
