/* ==========================================================================
   Residencia Colombres — hoja de estilos
   Diseño original: proyecto "Landing page Residencia Colombres" (Claude Design).
   Los estilos venían inline por nodo; acá están tokenizados y agrupados.
   ========================================================================== */

:root {
  /* Paleta ---------------------------------------------------------------- */
  --bg: #F7F5F1;
  --bg-tint: #F8EEEB;
  --bg-tint-strong: #F3E4E0;

  --ink: #3D3A36;
  --ink-soft: #5F5B55;
  --ink-soft-alt: #59554F;
  --ink-muted: #6E6A64;
  --ink-label: #5C5852; /* labels chicos: contraste reforzado sobre --bg */

  --accent: #A9807B;
  --accent-dark: #7E514C;
  --accent-darker: #63403C;
  --accent-mid: #6B5450;
  --accent-light: #B4837D;
  --accent-soft: #C99C96;
  --accent-pale: #D3AEA8;
  --accent-hair: #DCBDB8;
  --selection: #F2E1DE;

  --footer-bg: #332F2C;
  --footer-title: #F4F1EB;
  --footer-ink: #DED8CF;
  --footer-link: #DAD5CC;
  --footer-body: #B4AEA4;
  --footer-legal: #BDB6AB; /* aclarado desde #ABA49A por contraste */

  --line: rgba(61, 58, 54, .10);
  --line-strong: rgba(61, 58, 54, .14);
  --line-form: rgba(61, 58, 54, .16);
  --line-input: rgba(61, 58, 54, .28);
  --line-accent: rgba(169, 128, 123, .24);
  --line-accent-soft: rgba(169, 128, 123, .22);
  --line-footer: rgba(255, 255, 255, .14);

  /* Tipografía ------------------------------------------------------------ */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Helvetica, sans-serif;
  --font-icons: 'Material Symbols Outlined';

  /* Ritmo ----------------------------------------------------------------- */
  --pad-y: clamp(64px, 8vw, 130px);
  --pad-x: clamp(24px, 5vw, 84px);
  --gap-col: clamp(36px, 5vw, 86px);
  --maxw: 1320px;

  --ease: .25s ease;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 100%; overflow-x: hidden; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover { color: var(--ink); }

input,
textarea,
select,
button { font: inherit; color: inherit; }

img { display: block; }

::selection { background: var(--selection); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes rcRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 0;
  color: var(--bg);
}

/* Tipografías compartidas -------------------------------------------------- */

.eyebrow {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.14;
  text-wrap: pretty;
}

.body-text {
  margin: 0;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.body-text--alt { color: var(--ink-soft-alt); }

.icon {
  font-family: var(--font-icons);
  font-weight: 200;
  font-size: 22px;
  line-height: 1;
  color: var(--accent-light);
  font-variation-settings: 'wght' 200, 'opsz' 24;
}

.icon--card { font-size: 25px; color: var(--accent); }
.icon--team { font-size: 26px; color: var(--accent); }
.icon--inline { font-size: 18px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(247, 245, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand__logo {
  height: 50px;
  width: auto;
  flex: 0 0 auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-label);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav__link { color: var(--ink-label); }
.nav__link:hover { color: var(--ink); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--accent-soft);
  background: var(--bg-tint);
  color: var(--accent-darker);
  letter-spacing: .14em;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.nav__cta:hover {
  background: var(--accent);
  color: #FDF8F6;
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-input);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__icon {
  font-family: var(--font-icons);
  font-weight: 200;
  font-size: 26px;
  line-height: 1;
  font-variation-settings: 'wght' 200, 'opsz' 24;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px clamp(20px, 5vw, 64px) 22px;
    /* Opaco, no translúcido: el H1 del hero se leía por detrás del panel. */
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  /* El menú arranca visible y JS lo colapsa al cargar. Al revés (oculto por
     defecto, visible con data-open) dejaría la navegación inalcanzable en
     mobile si el JS no corre. */
  .nav[data-open='false'] { display: none; }

  .nav__link {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta {
    justify-content: center;
    margin-top: 18px;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 132px) var(--pad-x) clamp(56px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
}

.hero__branch {
  position: absolute;
  top: -8%;
  right: clamp(-30px, 4vw, 120px);
  height: 118%;
  width: auto;
  opacity: .42;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.2vw, 30px);
  animation: rcRise .9s ease both;
}

.hero__eyebrow { color: var(--ink-label); }

.hero__title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__lead {
  margin: 0;
  max-width: 52ch;
  font-weight: 300;
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.8;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 38px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.hero__cta { margin-top: 8px; }

/* --------------------------------------------------------------------------
   Franja de statement
   -------------------------------------------------------------------------- */

.statement {
  padding: clamp(46px, 5.4vw, 84px) var(--pad-x);
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}

.statement__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.statement__rule {
  display: block;
  width: 52px;
  height: 1px;
  background: var(--accent-hair);
}

.statement__quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

.statement__meta {
  margin: 0;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-mid);
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   El hogar
   -------------------------------------------------------------------------- */

.home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: var(--gap-col);
  align-items: center;
  padding: var(--pad-y) var(--pad-x);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
}

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.collage img {
  width: 100%;
  object-fit: cover;
}

.collage__wide {
  grid-column: 1 / -1;
  height: clamp(280px, 34vw, 440px);
}

.collage__small { height: clamp(160px, 20vw, 250px); }

/* --------------------------------------------------------------------------
   Nosotros
   -------------------------------------------------------------------------- */

.about {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg-tint-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: var(--gap-col);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}

.about__img {
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */

.services { padding: var(--pad-y) var(--pad-x); }

.services__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4vw, 64px);
}

.services__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: clamp(28px, 4vw, 70px);
  align-items: end;
}

.services__head-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.services__intro {
  margin: 0;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line-accent);
  border: 1px solid var(--line-accent);
}

.card {
  flex: 1 1 285px;
  background: var(--bg);
  padding: clamp(26px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tint-strong);
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .01em;
}

.card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.team {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.team__title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.team__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.team__item {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-tint);
  border: 1px solid var(--line-accent-soft);
  padding: 24px 20px;
}

.team__item p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */

.gallery {
  padding: 0 0 clamp(10px, 2vw, 20px);
  border-top: 1px solid var(--line);
}

.gallery__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.gallery__strip img {
  flex: 1 1 250px;
  min-width: 0;
  width: 100%;
  height: clamp(220px, 26vw, 380px);
  object-fit: cover;
  filter: saturate(.94);
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.contact {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg-tint-strong);
  border-top: 1px solid var(--line);
}

.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__lead { max-width: 44ch; }

.contact__data {
  display: grid;
  gap: 20px;
  margin-top: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line-form);
}

.contact__item {
  display: grid;
  gap: 6px;
}

.contact__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.contact__value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
}

.contact__value:hover { color: var(--accent); }

/* Formulario --------------------------------------------------------------- */

.form {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.form__fields {
  display: grid;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-label);
}

.field input,
.field select,
.field textarea {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line-input);
  background: transparent;
  font-weight: 300;
  font-size: 16px;
  outline: none;
  transition: border-color var(--ease);
}

.field textarea {
  line-height: 1.6;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--accent); }

.form__submit { margin-top: 6px; }

.form__note {
  margin: 0;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Honeypot: invisible para humanos, pero sin display:none ni hidden, que los
   bots detectan. Fuera de la pantalla y fuera del orden de tabulación. */
.form__trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__error {
  margin: 0;
  padding: 12px 14px;
  background: #F8EEEB;
  border-left: 2px solid var(--accent);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--accent-darker);
}

.form__error[hidden] { display: none; }

.btn:disabled {
  cursor: default;
  opacity: .6;
}

.btn:disabled:hover { background: var(--ink); }

.form__success {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.form__success[hidden] { display: none; }

.form__success-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.2;
}

.form__success-text {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.form__reset {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-label);
  text-decoration: underline;
  cursor: pointer;
}

.form__reset:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: clamp(56px, 6vw, 88px) var(--pad-x) 34px;
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(30px, 4vw, 70px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__brand { gap: 16px; }

.footer__lockup {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--footer-title);
}

.footer__tagline {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-pale);
}

.footer__about {
  margin: 0;
  max-width: 34ch;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--footer-body);
}

.footer__label {
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-pale);
}

.footer__item {
  font-weight: 300;
  font-size: 16px;
  color: var(--footer-link);
}

a.footer__item:hover { color: #FFFFFF; }

.footer__legal {
  max-width: var(--maxw);
  margin: clamp(40px, 5vw, 70px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-footer);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--footer-legal);
}
