/* Shared: tokens, layout grid, header, buttons, forms, footer */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  src: url("../fonts/archivo-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  src: url("../fonts/archivo-italic-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* New premium plum-and-white color system */
  --deep-plum: #24104A;      /* Dark sections, footer */
  --action-violet: #5E2CA5;  /* Buttons and links */
  --logo-violet: #7B42C8;    /* Highlights on light backgrounds */
  --pale-water: #EEF5F8;     /* Light section backgrounds */
  --ink: #15131F;            /* Text */
  --white: #FFFFFF;          /* Main background */
  
  /* Semantic aliases */
  --purple: var(--action-violet);
  --purple-dark: #4A2285;
  --violet: var(--action-violet);
  --violet-dark: #4A2285;
  --violet-tint: var(--pale-water);
  --navy: var(--deep-plum);
  --text: var(--ink);
  --sky: var(--pale-water);
  --lavender: var(--pale-water);
  --grey: var(--pale-water);
  --off-white: var(--white);
  --line: rgba(36, 16, 74, 0.12);

  /* One content width for every section, so left and right edges always line up */
  --container: 1152px;
  --gutter: 20px;
  --section-space: clamp(56px, 7vw, 96px);

  /* Spacing steps: 4, 8, 12, 16, 20, 24, 28, 32, 40, 48, 64, 96, 128 px */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;

  /* Corners: small for fields and buttons, medium for panels, none on full-width photos */
  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-none: 0px;

  /* Shadows: only on things that sit above the page, such as menus and panels */
  --shadow-overlay: 0 16px 36px rgba(20, 16, 36, 0.14);
  --shadow-dropdown: 0 8px 24px rgba(20, 16, 36, 0.08);

  /* Interaction speeds: quick 150-250ms, larger 300-500ms */
  --timing-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --timing-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --timing-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  font-stretch: 100%;
  font-variation-settings: "wdth" 100;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--action-violet); }
a:hover { color: var(--logo-violet); }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-stretch: 115%;
  font-variation-settings: "wdth" 115;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-transform: none;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0; max-width: 70ch; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--action-violet); outline-offset: 3px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.bg-sky { background: var(--pale-water); }
.bg-lavender { background: var(--pale-water); }
.bg-grey { background: var(--pale-water); }
.bg-off { background: var(--white); }
.accent { color: var(--action-violet); }

.section-head { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.875rem, 3.5vw, 3rem); font-weight: 800; text-transform: none; }
.section-head p { margin-top: 15px; margin-inline: auto; text-wrap: balance; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--action-violet); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Header ---------- */
html { scroll-padding-top: 84px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--timing-fast);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-dropdown);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  min-height: 84px;
  transition: min-height var(--timing-fast);
}
.site-header.is-scrolled .header-inner {
  min-height: 68px;
}
.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand img {
  width: auto;
  height: 48px;
  max-width: 180px;
  object-fit: contain;
  transition: height var(--timing-fast);
}
.site-header.is-scrolled .brand img {
  height: 40px;
}
.site-nav ul { display: flex; gap: var(--space-8); }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-bottom: 2px solid transparent;
  color: var(--action-violet);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color var(--timing-fast), border-color var(--timing-fast);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--deep-plum);
  border-color: var(--deep-plum);
}
.btn-header {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-extra { display: none; }
.desktop-only { display: inline-flex; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 6px; background: var(--pale-water); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--action-violet); transition: transform var(--timing-fast), opacity var(--timing-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .desktop-only { display: none; }
}

@media (max-width: 767px) {
  .header-inner { min-height: 72px; }
  .brand img { height: 40px; }
  .js .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1001;
  }
  .js .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 1000;
    padding: 88px var(--gutter) 32px;
    overflow-y: auto;
    box-shadow: var(--shadow-overlay);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: var(--space-8); }
  .site-nav a {
    min-height: 48px;
    padding: 14px var(--space-16);
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    font-weight: 700;
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] {
    background: var(--pale-water);
    border-color: var(--line);
  }
  .nav-extra {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin-top: var(--space-24);
    padding-top: var(--space-24);
    border-top: 1px solid var(--line);
  }
  .nav-extra .btn-header {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
  .nav-phone-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .nav-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--pale-water);
  }
  .nav-phone-link.nav-whatsapp {
    color: #128c7e;
    border-color: rgba(37, 211, 102, 0.4);
  }
  html:not(.js) .header-inner { flex-direction: column; padding-block: 12px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  html:not(.js) .site-nav a { padding: 8px 10px; border: 0; font-size: .8rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--action-violet);
  color: #fff;
  font: 700 .9375rem/1.3 "Archivo", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(94, 44, 165, 0.25);
  transition: background-color var(--timing-fast), color var(--timing-fast), border-color var(--timing-fast), transform var(--timing-fast), box-shadow var(--timing-fast);
}
.btn:hover {
  background: #4A2285;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 44, 165, 0.38);
  color: #fff;
}
.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(94, 44, 165, 0.2);
}
.btn:focus-visible { outline: 3px solid var(--action-violet); outline-offset: 3px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-loading, .btn[aria-busy="true"] { opacity: .75; cursor: wait; }
.btn-pill { padding-inline: 35px; border-radius: 40px; background: var(--action-violet); text-transform: uppercase; letter-spacing: .5px; }
.btn-pill:hover { background: #4A2285; }

/* ---------- Selectors and Filters ---------- */
.selector-item, .filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 20px;
  border: 1.5px solid rgba(94,44,165,.2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: 600 .9375rem/1.3 "Archivo", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--timing-fast), border-color var(--timing-fast), color var(--timing-fast);
}
.selector-item:hover, .filter-chip:hover {
  border-color: var(--action-violet);
  background: var(--pale-water);
}
.selector-item.is-selected, .selector-item[aria-selected="true"],
.filter-chip.is-active, .filter-chip[aria-pressed="true"] {
  border-color: var(--action-violet);
  background: var(--action-violet);
  color: #fff;
}
.selector-item:focus-visible, .filter-chip:focus-visible {
  outline: 3px solid var(--action-violet);
  outline-offset: 2px;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  display: flex;
  align-items: center;
  min-height: 314px;
  padding-block: 48px;
  background: #111827 url("../img/banner-water.webp") center bottom / cover no-repeat;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.4); }
.page-banner h1 { max-width: 1000px; margin: 0 auto; color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.35; text-transform: none; }
.page-banner p { max-width: 820px; margin: 16px auto 0; color: #fff; text-wrap: balance; }

/* ---------- Forms ---------- */
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid rgba(94,44,165,.2);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 "Archivo", system-ui, sans-serif;
  transition: border-color var(--timing-fast), box-shadow var(--timing-fast);
}
.field textarea { min-height: 124px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235e2ca5' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  cursor: pointer;
  text-overflow: ellipsis;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action-violet); box-shadow: 0 0 0 3px rgba(94,44,165,.14); }
.field [aria-invalid="true"] { border-color: #c62828 !important; box-shadow: 0 0 0 3px rgba(198,40,40,.12) !important; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background-color: var(--pale-water); opacity: .6; cursor: not-allowed; }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-size: .9375rem; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status[data-type="error"] { color: #b42318; }
.form-status[data-type="success"] { color: #146c2e; }
.form-status a { display: inline-block; margin-top: 8px; color: var(--action-violet); }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px solid var(--action-violet); background: var(--deep-plum); color: #dcd7ea; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; padding-block: 60px 50px; }
.footer-logo { margin-bottom: 15px; color: #fff; font-size: 1.75rem; font-weight: 800; letter-spacing: 1px; line-height: 1.2; }
.footer-logo span { color: #bca4ea; }
.footer-brand p:last-child { max-width: 360px; line-height: 1.6; }
.footer-title { position: relative; margin-bottom: 22px; padding-bottom: 10px; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--pale-water); }
.site-footer li + li { margin-top: 12px; }
.site-footer a { color: inherit; font-weight: 500; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 3px; color: #bca4ea; }
.footer-contact address { font-style: normal; }
.footer-bottom { padding: 20px; border-top: 1px solid rgba(255,255,255,.08); background: #180932; color: #b3a9c7; font-size: .8125rem; font-weight: 500; letter-spacing: .5px; text-align: center; }

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p:last-child { margin-inline: auto; }
  .footer-title::after { left: 50%; transform: translateX(-50%); }
  .footer-contact li { display: block; }
  .footer-contact svg { margin: 0 auto 4px; display: block; }
}

/* ---------- WhatsApp button ---------- */
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 6px 18px rgba(0,0,0,.25); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 6px 18px rgba(0,0,0,.25); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 18px rgba(0,0,0,.25); }
}
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform var(--timing-fast), background-color var(--timing-fast);
  animation: waPulse 3s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  background: #20ba59;
}
.whatsapp-float svg { width: 28px; height: 28px; }
/* Leave room so the button never covers the footer copyright */
@media (max-width: 767px) { .footer-bottom { padding-bottom: 86px; } }

/* ---------- Scroll reveal (only when JavaScript runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
