/*
  IDENTIDAD: colores recuperados de assets/css/theme-ambrela.css en ambrela.com.ar.
  Azul principal #6086a1; gris #323232; fondo claro #f9f9f9; texto #131313.
  El azul oscuro es una variación del principal para asegurar contraste.
  Logo y favicon originales, guardados localmente en assets/.
*/
:root {
  /* Colores corporativos y variaciones para texto, foco y contacto destacado. */
  --brand: #6086a1;
  --brand-strong: #3f627b;
  --brand-hover: #324f64;
  --brand-soft: #edf2f5;
  --text: #131313;
  --text-secondary: #323232;
  --text-muted: #5d636a;

  /* Fondos, bordes y botones. */
  --background: #f9f9f9;
  --button-background: #ffffff;
  --button-border: #dce3e8;
  --primary-text: #ffffff;
  --primary-caption: #e6eef4;
  --focus: #324f64;
  --button-shadow: 0 3px 14px rgb(50 50 50 / 4%);

  /* Ancho de la columna, forma y separación de los botones. */
  --page-width: 540px;
  --button-radius: 16px;
  --button-gap: 11px;
  --section-gap: 26px;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 0%, rgb(96 134 161 / 11%), transparent 55%),
    var(--background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgb(96 134 161 / 18%);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--button-background);
  color: var(--text);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  width: min(100% - 36px, var(--page-width));
  margin-inline: auto;
  padding-top: 34px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

.profile {
  margin-bottom: 28px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: 224px;
  max-width: 85%;
  height: auto;
  margin: 0 auto 19px;
}

h1 {
  margin: 0 0 6px;
  color: var(--text-secondary);
  font-size: clamp(1.25rem, 5vw, 1.45rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.profile p {
  margin: 0;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.6;
  text-wrap: balance;
}

.link-section + .link-section { margin-top: var(--section-gap); }

h2 {
  margin: 0 0 11px;
  padding-inline: 3px;
  color: var(--brand-strong);
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.link-list {
  display: grid;
  gap: var(--button-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li { min-width: 0; }

.link-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 15px;
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  background: var(--button-background);
  box-shadow: var(--button-shadow);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.icon-frame {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.icon,
.arrow {
  display: block;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow { width: 18px; height: 18px; color: var(--brand-strong); }

.link-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.link-text {
  display: block;
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.link-caption {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.5;
}

/* WhatsApp mantiene el azul de la identidad, con mayor contraste y protagonismo. */
.link-primary {
  border-color: var(--brand-strong);
  color: var(--primary-text);
  background: var(--brand-strong);
  box-shadow: 0 5px 16px rgb(63 98 123 / 15%);
}

.link-primary .icon-frame {
  color: var(--primary-text);
  background: rgb(255 255 255 / 12%);
}

.link-primary .arrow { color: var(--primary-text); }
.link-primary .link-caption { color: var(--primary-caption); }

/* Mapa adaptable al ancho de la columna, con acceso directo a Google Maps. */
.location-section { margin-top: var(--section-gap); }

.map-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  background: var(--button-background);
  box-shadow: var(--button-shadow);
}

.location-map {
  display: block;
  width: 100%;
  height: clamp(250px, 65vw, 320px);
  border: 0;
}

.map-card .link-button {
  border: 0;
  border-top: 1px solid var(--button-border);
  border-radius: 0;
  box-shadow: none;
}

.map-card .link-button:focus-visible,
.location-map:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -4px;
}

.footer {
  margin-top: 29px;
  padding-top: 20px;
  border-top: 1px solid var(--button-border);
  color: var(--text-muted);
  text-align: center;
}

.footer address {
  margin: 0;
  font-size: .76rem;
  font-style: normal;
  line-height: 1.7;
  text-wrap: balance;
}

.footer p { margin: 9px 0 0; font-size: .69rem; }

/* Efectos discretos, solo cuando hay un puntero preciso. */
@media (hover: hover) and (pointer: fine) {
  .link-button:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 18px rgb(50 50 50 / 8%);
    transform: translateY(-2px);
  }
  .link-primary:hover {
    border-color: var(--brand-hover);
    background: var(--brand-hover);
  }
  .map-card .link-button:hover {
    border-color: var(--button-border);
    background: var(--brand-soft);
    box-shadow: none;
    transform: none;
  }
}

@media (min-width: 600px) {
  .page { padding-top: 48px; padding-bottom: 34px; }
  .link-button { gap: 15px; padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .link-button { transition: none; }
  .link-button:hover { transform: none; }
}

@media (forced-colors: active) {
  .link-button, .icon-frame, .map-card { border: 1px solid ButtonText; }
  a:focus-visible { outline-color: Highlight; }
}
