/* ==========================================================
   Mueblería Tencio — sistema de diseño
   Basado en el análisis de ebanostudio.co:
   UI monocromática, esquinas rectas, la fotografía pone el color,
   titulares bold pesados vs. navegación liviana con tracking,
   movimiento reservado a crossfades lentos y hovers.
   ========================================================== */

@font-face {
  font-family: "Madefor Display";
  src: url("../assets/fonts/madefor-display.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Madefor Text";
  src: url("../assets/fonts/madefor-text.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Madefor Text";
  src: url("../assets/fonts/madefor-text-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Color */
  --bg: #FFFFFF;
  --text: #000000;
  --dark: #404040;
  --band: #CCCCCC;
  --surface: #ECEDED;
  --border-card: #808080;
  --muted: #5C5C5C;
  --nav-glass: rgba(255, 255, 255, .74);
  --glass: rgba(255, 255, 255, .38);
  --glass-hover: rgba(0, 0, 0, .67);
  --wa: #25D366;

  /* Tipografía */
  --font-display: "Madefor Display", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Madefor Text", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(3.25rem, 11vw, 8.5625rem);   /* 137px */
  --fs-h2: clamp(2.25rem, 5vw, 3.5rem);         /* 56px  */
  --fs-subtitle: clamp(1.25rem, 2.2vw, 1.5625rem); /* 25px */
  --fs-quote: clamp(1.125rem, 2vw, 1.4375rem);  /* 23px  */
  --fs-card: clamp(1.5rem, 2.4vw, 1.8125rem);   /* 29px  */
  --fs-label: clamp(1.75rem, 3vw, 2.375rem);    /* 38px  */
  --fs-body: 1rem;                               /* 16/24 */

  /* Forma y layout */
  --radius: 0;
  --radius-pill: 999px;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 95px;

  /* Movimiento */
  --t-hover: .2s ease;
  --t-card: .4s ease-in-out;
  --t-header: .3s ease;
  --t-crossfade: 1s ease-in-out;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--text); color: var(--bg); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.section-subtitle {
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-subtitle);
  line-height: 1.4;
  margin-top: 6px;
}
.section-text { max-width: 60ch; line-height: 1.5; margin-top: 20px; }

/* ==========================================================
   1. NAVBAR
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color var(--t-header);
}
.site-header.is-scrolled { background: var(--bg); }
.site-header__inner {
  height: 100%;
  max-width: 1320px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 32px;
}

.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; flex-shrink: 0; }
.logo__main { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: .08em; }
.logo__sub { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: .34em; margin-top: 5px; padding-left: .34em; }
/* Sobre el hero el logo va en blanco; al hacer scroll vuelve a negro */
.site-header:not(.is-scrolled) .logo,
.site-header:not(.is-scrolled) .header-wa { color: var(--bg); }
.site-header:not(.is-scrolled) .burger span { background: var(--bg); }

.menu { margin-left: auto; }
.menu__list {
  list-style: none; margin: 0; padding: 0 8px;
  display: flex; align-items: center;
  height: 42px;
  background: var(--nav-glass);
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.menu__list > li { position: relative; height: 100%; display: flex; align-items: center; }
.menu__link {
  display: block;
  padding: 10px clamp(10px, 1.6vw, 24px);
  font-size: 16px; font-weight: 400; letter-spacing: .05em;
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: text-decoration-color var(--t-hover);
}
/* Corrección vs. Ébano: el hover no pone el texto en blanco sobre la barra clara */
.menu__link:hover, .menu__link:focus-visible { text-decoration-color: currentColor; }

.dropdown {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--bg); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  opacity: 0; visibility: hidden;
  transition: opacity .1s ease .05s, visibility 0s linear .15s;
}
.menu__item--dropdown:hover .dropdown,
.menu__item--dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transition: opacity .1s ease .05s, visibility 0s;
}
.dropdown__link { display: block; padding: 10px 20px; font-size: 15px; letter-spacing: .03em; text-decoration: none; transition: color var(--t-hover), background-color var(--t-hover); }
.dropdown__link:hover, .dropdown__link:focus-visible { color: var(--dark); background: var(--surface); }

.header-wa { display: flex; color: var(--text); transition: color var(--t-header), opacity var(--t-hover); }
.header-wa:hover { opacity: .7; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.burger span { display: block; width: 26px; height: 1.5px; background: var(--text); transition: transform var(--t-hover), background-color var(--t-header); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg);
  padding: 24px var(--gutter);
  overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu__link {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 9vw, 2.75rem); letter-spacing: -.02em; line-height: 1.1;
  padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--surface);
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--bg); }
body.menu-open .site-header .logo,
body.menu-open .site-header .header-wa { color: var(--text); }
body.menu-open .site-header .burger span { background: var(--text); }

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .menu { display: none; }
  .burger { display: flex; }
  .header-wa { margin-left: auto; }
  .burger { margin-left: 4px; }
  .logo__main { font-size: 26px; }
}

/* ==========================================================
   Slideshow genérico (hero + editorial) — crossfade
   ========================================================== */
.slideshow { position: relative; overflow: hidden; background: var(--dark); }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-crossfade), visibility 0s linear 1s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--t-crossfade), visibility 0s; z-index: 1; }
.slide__media { width: 100%; height: 100%; object-fit: cover; }

.slideshow__arrow {
  position: absolute; top: 50%; z-index: 5;
  transform: translateY(-50%);
  width: 44px; height: 64px; padding: 12px;
  border: 0; background: none; color: var(--bg); cursor: pointer;
  opacity: .85; transition: opacity var(--t-hover);
}
.slideshow__arrow svg { width: 18px; height: 39px; }
.slideshow__arrow:hover { opacity: 1; }
.slideshow__arrow--prev { left: clamp(4px, 3vw, 40px); }
.slideshow__arrow--next { right: clamp(4px, 3vw, 40px); }

.slideshow__dots {
  position: absolute; z-index: 5; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.slideshow__dot {
  width: 22px; height: 22px; padding: 8px; border: 0; background: none; cursor: pointer;
}
.slideshow__dot::before {
  content: ""; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); transition: background-color var(--t-hover);
}
.slideshow__dot[aria-selected="true"]::before { background: var(--bg); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 40px; padding: 8px 26px;
  border: 1px solid var(--bg); border-radius: var(--radius-pill);
  background: transparent; color: var(--bg);
  font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-hover), color var(--t-hover), border-color var(--t-hover);
}
.pill:hover, .pill:focus-visible { background: var(--bg); color: var(--text); }
.pill--light { font-weight: 400; font-size: 14px; letter-spacing: .08em; }
.pill--glass {
  background: var(--glass);
  font-weight: 400; font-size: 14px; letter-spacing: .12em;
}
.pill--glass:hover, .pill--glass:focus-visible { background: var(--glass-hover); border-color: transparent; color: var(--bg); }
.pill--arrow svg { width: 37px; height: 10px; transition: width var(--t-hover); }
.pill--arrow:hover svg, .pill--arrow:focus-visible svg { width: 42px; }

/* ==========================================================
   2. HERO
   ========================================================== */
.hero .slideshow { height: min(100svh, 804px); min-height: 520px; }
/* velo suave arriba (legibilidad del nav) y abajo (legibilidad del pill) */
.hero .slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35) 100%);
}
.hero .pill {
  position: absolute; z-index: 2; left: 50%; bottom: 64px;
  transform: translateX(-50%);
  min-width: 142px;
}

/* ==========================================================
   3. BANDA DE CITA
   ========================================================== */
.quote-band {
  background: var(--band);
  min-height: 350px;
  display: grid; place-items: center;
  padding: 72px var(--gutter);
}
.quote-band__text p {
  max-width: 680px; margin-inline: auto;
  font-size: var(--fs-quote); line-height: 1.8; letter-spacing: -.01em;
  text-align: center; text-wrap: balance;
}

/* ==========================================================
   4. SLIDESHOW EDITORIAL
   ========================================================== */
.slideshow--feature { height: clamp(540px, 92svh, 855px); }
.slideshow--feature .slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%);
}
.slide--dark::after { background: rgba(64, 64, 64, .47) !important; }
.feature__content {
  position: absolute; z-index: 2; inset: auto 0 0 0;
  max-width: 1320px; margin-inline: auto;
  padding: 0 var(--gutter) clamp(64px, 9vw, 110px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.feature__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-hero); line-height: 1.1; letter-spacing: -.02em;
  text-transform: uppercase; color: var(--bg);
}
.slideshow--feature .slideshow__dots { left: auto; right: var(--gutter); transform: none; bottom: clamp(64px, 9vw, 110px); }

/* ==========================================================
   5. PROYECTOS — intro asimétrica + tarjetas
   ========================================================== */
.projects { padding: clamp(80px, 11vw, 140px) 0 clamp(80px, 10vw, 120px); }
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title ."
    ". rule"
    ". text";
  column-gap: 48px;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.intro__title {
  grid-area: title;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em;
}
.intro__rule {
  grid-area: rule; justify-self: start;
  width: 284px; max-width: 100%; height: 3px; background: var(--text);
  margin: 32px 0 44px -120px;
}
.intro__text { grid-area: text; max-width: 52ch; line-height: 1.5; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 40% 60%;
  grid-template-rows: minmax(0, 1fr);
  aspect-ratio: 605 / 399;
  border-radius: var(--radius);
}
.project-card--a .project-card__panel { background: linear-gradient(160deg, #BFBFBF 0%, #9A9CA0 100%); }
.project-card--b .project-card__panel { background: linear-gradient(160deg, #BFBFBF 0%, #CDB795 100%); }
.project-card--c .project-card__panel { background: linear-gradient(160deg, #BFBFBF 0%, #B08A62 100%); }
.project-card--d .project-card__panel { background: linear-gradient(160deg, #BFBFBF 0%, #9C7556 100%); }
.project-card__panel { position: relative; overflow: hidden; color: var(--bg); }
.project-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px clamp(18px, 2vw, 28px);
  transform: translateY(calc(100% - var(--title-h, 80px)));
  transition: transform var(--t-card);
}
.project-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-card); line-height: 1.15; letter-spacing: -.01em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.project-card__details { font-size: 15px; line-height: 1.45; margin-bottom: 18px; opacity: 0; transition: opacity .3s ease-out; }
.project-card .pill--glass { font-size: 13px; font-weight: 700; letter-spacing: .06em; border-width: 2px; border-radius: 20px; opacity: 0; transition: opacity var(--t-card), background-color var(--t-hover), color var(--t-hover), border-color var(--t-hover); }
.project-card__photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; }

.project-card:hover .project-card__body,
.project-card:focus-within .project-card__body { transform: translateY(0); }
.project-card:hover .project-card__details,
.project-card:focus-within .project-card__details,
.project-card:hover .pill--glass,
.project-card:focus-within .pill--glass { opacity: 1; }

/* En pantallas táctiles no hay hover: se muestra todo */
@media (hover: none) {
  .project-card__body { transform: none; }
  .project-card__details, .project-card .pill--glass { opacity: 1; }
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; grid-template-areas: "title" "rule" "text"; }
  .intro__rule { margin: 28px 0 28px 64px; width: 180px; }
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .project-card { grid-template-columns: 1fr; grid-template-rows: auto 220px; aspect-ratio: auto; }
  .project-card__panel { order: 2; min-height: 230px; }
  .project-card__photo { order: 1; height: 220px; }
}

/* ==========================================================
   6. CATÁLOGO — carrusel
   ========================================================== */
.catalog { background: var(--surface); padding: clamp(80px, 10vw, 110px) 0; }
.carousel { margin-top: 48px; }
.carousel__track {
  --card-w: 306px;
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__card {
  flex: 0 0 var(--card-w);
  aspect-ratio: 306 / 321;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--band);
}
.carousel__card img { width: 100%; height: 100%; object-fit: cover; }
.carousel__controls { display: flex; gap: 8px; margin-top: 20px; }
.carousel__arrow {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: none; cursor: pointer; color: var(--text);
  transition: opacity var(--t-hover);
}
.carousel__arrow:disabled { opacity: .25; cursor: default; }
.catalog__cta { margin-top: 40px; }

.btn-dark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 195px; height: 45px; padding: 0 28px;
  background: var(--dark); color: var(--bg);
  border: 1px solid var(--dark); border-radius: var(--radius);
  font-size: 14px; letter-spacing: .06em; text-decoration: none;
  transition: background-color var(--t-hover), color var(--t-hover);
}
.btn-dark:hover, .btn-dark:focus-visible { background: var(--bg); color: var(--dark); }

@media (max-width: 560px) {
  .carousel__track { --card-w: 74vw; }
}

/* ==========================================================
   7. SERVICIOS — tarjetas verticales foto → video
   ========================================================== */
.services { padding: clamp(80px, 11vw, 130px) 0; }
.service-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 452px));
  gap: 28px; margin-top: 48px;
}
.service-card--offset { transform: translateY(6px); }
.service-card {
  position: relative; overflow: hidden;
  aspect-ratio: 452 / 534;
  border-radius: var(--radius);
  color: var(--bg);
  background: var(--dark);
}
.service-card__photo,
.service-card__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.service-card__video { opacity: 0; transition: opacity var(--t-card); }
.service-card.is-hover .service-card__video { opacity: 1; }
.service-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 65%);
}
.service-card__label {
  position: absolute; z-index: 2; left: 18px; top: 28px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-label); line-height: 1.4;
}
.service-card__body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 28px 28px 30px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.service-card__text { font-style: italic; font-size: 17px; line-height: 1.45; max-width: 32ch; }

@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card--offset { transform: none; }
}

/* ==========================================================
   8. BLOQUE DE VIDEO
   ========================================================== */
.video-block { position: relative; background: var(--text); height: clamp(420px, 60vw, 591px); overflow: hidden; }
.video-block__video { width: 100%; height: 100%; object-fit: cover; }
.video-block__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: var(--gutter);
  background: rgba(0, 0, 0, .45);
  color: var(--bg); text-align: center;
  transition: opacity var(--t-card);
}
.video-block.is-playing .video-block__overlay { opacity: 0; pointer-events: none; }
.video-block__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em;
  max-width: 16ch; text-wrap: balance;
}
.video-block__play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 4px; border: 0; background: none; color: var(--bg); cursor: pointer;
  font-size: 18px;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px;
  transition: text-decoration-color var(--t-hover);
}
.video-block__play:hover { text-decoration-color: currentColor; }
.video-block.no-video .video-block__play { display: none; }

/* ==========================================================
   9. NOSOTROS
   ========================================================== */
.about {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.about__text {
  padding: clamp(80px, 14vw, 240px) clamp(24px, 6vw, 96px) clamp(80px, 14vw, 240px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.about__text p { line-height: 1.6; max-width: 52ch; margin-top: 20px; text-align: justify; hyphens: auto; }
.steps { margin: 20px 0 0; padding-left: 1.4em; max-width: 52ch; }
.steps li { line-height: 1.6; padding: 6px 0; border-bottom: 1px solid var(--surface); }
.steps li::marker { font-family: var(--font-display); font-weight: 700; }
.about__photo { position: relative; min-height: 420px; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__text { padding: 80px var(--gutter) 56px; }
  .about__text p { text-align: left; }
  .about__photo { min-height: 0; aspect-ratio: 4 / 5; }
}

/* ==========================================================
   10. CONTACTO
   ========================================================== */
.contact { padding: clamp(80px, 11vw, 130px) 0 clamp(80px, 10vw, 110px); }
.contact__title { text-align: center; }
.contact__intro { max-width: 56ch; margin: 20px auto 0; text-align: center; line-height: 1.6; font-size: 18px; }
.contact__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin: 64px auto 56px; max-width: 980px;
}
.contact__heading { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-subtitle); line-height: 1.3; margin-bottom: 12px; }
.contact__cols p { line-height: 1.8; }
.pending { color: var(--muted); font-style: italic; }
.contact__cols a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.map-slot {
  max-width: 980px; height: 350px; margin: 0 auto 72px;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--muted); font-size: 15px; letter-spacing: .06em;
}
.map-slot iframe { width: 100%; height: 100%; border: 0; }

.quote-form { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.quote-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 10px 12px;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--text); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 0; }
.field [aria-invalid="true"] { border-width: 2px; }
.quote-form__error { color: #A10000; font-size: 15px; }
.btn-submit {
  width: 100%; height: 48px; border: 1px solid var(--text); border-radius: var(--radius);
  background: var(--text); color: var(--bg); cursor: pointer;
  font-size: 16px; letter-spacing: .04em;
  transition: background-color var(--t-hover), color var(--t-hover);
}
.btn-submit:hover, .btn-submit:focus-visible { background: var(--bg); color: var(--text); }
.quote-form__note { font-size: 14px; color: var(--muted); margin-top: -8px; }

@media (max-width: 760px) {
  .contact__cols { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .quote-form__row { grid-template-columns: 1fr; }
}

/* ==========================================================
   11. FOOTER + WHATSAPP FLOTANTE
   ========================================================== */
.site-footer { padding: 18px var(--gutter); text-align: center; font-size: 13px; color: var(--muted); }
.site-footer__social { margin-top: 6px; }
.site-footer a { color: inherit; text-underline-offset: 3px; }
.site-footer__credit { margin-top: 14px; }
.credit-badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: 5px 12px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 12px; letter-spacing: .04em; text-decoration: none;
  opacity: .75; transition: opacity var(--t-hover);
}
.credit-badge strong { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.credit-badge:hover, .credit-badge:focus-visible { opacity: 1; }

.wa-float {
  position: fixed; z-index: 90; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: transform var(--t-hover);
}
.wa-float:hover { transform: scale(1.06); }

/* ==========================================================
   Movimiento reducido
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
