/* AAV Gestoría — design system
   Colors: navy #1F2A44, burgundy #972A34 (hover #7F202A), bg #F6F5F3 / #FFFFFF, subtitle #666B68
   Type: Segoe UI Semibold (headings) / Segoe UI Regular (body) with system fallbacks */

:root {
  --navy: #1F2A44;
  --navy-ink: #16213a;
  --burgundy: #972A34;
  --burgundy-hover: #7F202A;
  --bg: #F6F5F3;
  --white: #FFFFFF;
  --subtitle: #666B68;
  --border: #E4E1DB;
  --success: #2E7D4F;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(31, 42, 68, 0.06);
  --shadow-lg: 0 12px 32px rgba(31, 42, 68, 0.12);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-hover); }
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--white); }
.eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.6em;
}
.lead {
  color: var(--subtitle);
  font-size: 1.1rem;
  max-width: 62ch;
}
.subtitle { color: var(--subtitle); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--burgundy); color: var(--burgundy); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand__text { color: var(--white); line-height: 1.15; }
.brand__name { font-weight: 600; font-size: 1.05rem; display: block; }
.brand__role { font-size: 0.76rem; color: #C9CDD8; display: block; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: #E7E9EE;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--burgundy);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 6px; font-size: 0.85rem; }
.lang-switch a {
  color: #C9CDD8;
  padding: 4px 7px;
  border-radius: 5px;
  font-weight: 600;
}
.lang-switch a.is-active { background: rgba(255,255,255,0.14); color: var(--white); }
.lang-switch a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  width: 42px;
  height: 38px;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 20px 18px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { gap: 10px; }
}

/* Hero */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, #26335494 60%, var(--navy) 100%), var(--navy);
  color: var(--white);
  padding: 68px 0 56px;
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { color: #D6D9E2; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 18px;
}
.hero-note { color: #AEB4C2; font-size: 0.9rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--subtitle); flex-grow: 1; }
.card .btn { margin-top: 12px; align-self: flex-start; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(151, 42, 52, 0.09);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 8px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card--featured { border-color: var(--burgundy); box-shadow: var(--shadow-lg); position: relative; }
.price-card--featured::before {
  content: "Recomendado";
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
html[lang="ru"] .price-card--featured::before { content: "Рекомендуем"; }
.price-card h3 { margin-bottom: 4px; }
.price-card__price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 16px;
}
.price-card p { color: var(--subtitle); font-size: 0.95rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
table.rates { width: 100%; border-collapse: collapse; min-width: 480px; }
table.rates th, table.rates td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
table.rates th { background: var(--bg); color: var(--navy); font-weight: 600; }
table.rates td:last-child, table.rates th:last-child { white-space: nowrap; font-weight: 600; color: var(--burgundy); }
table.rates tr:last-child td { border-bottom: none; }

.note-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--subtitle);
  font-size: 0.92rem;
  margin: 20px 0;
}

/* Anchor quick menu */
.quick-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}
.quick-menu-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 8px;
}
.quick-menu-rows .quick-menu { margin: 0; }
.quick-menu a {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
}
.quick-menu a:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--subtitle); font-size: 0.8rem; margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(151, 42, 52, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.checkbox-field input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.checkbox-field label { font-weight: 400; font-size: 0.88rem; color: var(--subtitle); }
.form-msg { display: none; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-top: 16px; }
.form-msg.is-visible { display: block; }
.form-msg--ok { background: #E9F5EE; color: var(--success); }
.form-msg--err { background: #FBEAEC; color: var(--burgundy); }

/* Booking panel */
.booking-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: fit-content;
}
.booking-panel h2, .booking-panel h3 { color: var(--white); }
.booking-panel p { color: #C9CDD8; font-size: 0.92rem; margin-bottom: 4px; }
.booking-panel .btn { margin-top: 8px; }
.booking-panel small { color: #97A0B4; font-size: 0.78rem; }
.booking-panel .badge { background: rgba(255,255,255,0.14); color: var(--white); }
.booking-panel--standalone { max-width: 480px; margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 6px solid var(--navy);
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}
@media (max-width: 860px) { .profile-photo { max-width: 340px; } }

/* Contact info list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci-icon {
  width: 38px; height: 38px; border-radius: 8px; background: rgba(31,42,68,0.06);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy); font-weight: 600;
}
.contact-list strong { display: block; }
.contact-list span { color: var(--subtitle); font-size: 0.92rem; }

/* Featured resource / file cards */
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}
@media (max-width: 760px) { .resource-card { grid-template-columns: 1fr; text-align: left; } }
.resource-card__icon {
  width: 56px; height: 56px; border-radius: 12px; background: rgba(151,42,52,0.09);
  color: var(--burgundy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem;
}
.resource-card__actions { display: flex; flex-direction: column; gap: 10px; }
.resource-card--premium { border-color: var(--border); background: var(--bg); }
.resource-card--muted { background: #ECEAE5; border-color: #DAD6CC; box-shadow: none; }
.resource-card__icon--muted { background: rgba(31,42,68,0.08); color: var(--navy); }
.notify-strip__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.notify-strip__form .field input { background: var(--white); }
.notify-strip__consent { margin: 12px 0 0; }
.notify-strip__form .form-msg { margin-top: 10px; }
.price-tag { font-weight: 600; color: var(--burgundy); font-size: 1.05rem; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(31,42,68,0.08);
  color: var(--navy);
  margin-bottom: 10px;
}
.badge--free { background: rgba(46,125,79,0.12); color: var(--success); }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  margin: 8px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C9CDD8; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* Footer */
.site-footer { background: var(--navy-ink); color: #C9CDD8; padding: 52px 0 24px; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 14px; }
.site-footer .brand__text .brand__name { color: var(--white); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #C9CDD8; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #8891A3;
}
.footer-bottom a { color: #8891A3; }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links button {
  background: none; border: none; color: #8891A3; font-family: var(--font); font-size: 0.82rem; cursor: pointer; padding: 0;
}
.footer-legal-links button:hover { color: var(--white); }

/* Legal pages */
.legal-doc h2 { margin-top: 1.6em; }
.legal-doc { max-width: 78ch; }
.legal-doc .updated { color: var(--subtitle); font-size: 0.88rem; margin-bottom: 2em; }

/* Breadcrumb-ish page header */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.page-hero p { max-width: 60ch; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  z-index: 100;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 0.88rem; color: var(--subtitle); margin-bottom: 14px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 33, 58, 0.55);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal.is-visible { display: flex; }
.cookie-modal__panel {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
}
.cookie-cat { border-bottom: 1px solid var(--border); padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cookie-cat:last-of-type { border-bottom: none; }
.cookie-cat h4 { margin: 0 0 4px; font-size: 0.98rem; }
.cookie-cat p { margin: 0; font-size: 0.85rem; color: var(--subtitle); }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: #C9CDD8; border-radius: 999px; cursor: pointer; transition: background .15s;
}
.switch .track::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: transform .15s;
}
.switch input:checked + .track { background: var(--burgundy); }
.switch input:checked + .track::before { transform: translateX(20px); }
.switch input:disabled + .track { background: var(--navy); opacity: 0.5; cursor: not-allowed; }
.cookie-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: grid; gap: 10px; }
.small { font-size: 0.85rem; color: var(--subtitle); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--white); padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }
