/* --- Selector de tema --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--toggle-border, rgba(255,255,255,.2));
  border-radius: 8px;
  background: var(--toggle-bg, rgba(255,255,255,.05));
  color: var(--toggle-text, inherit);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.theme-toggle:hover {
  background: var(--toggle-hover, rgba(255,255,255,.1));
}

.theme-icon {
  font-size: 16px;
  line-height: 1;
}

html[data-theme="light"] {
  --black: #f7f5ed;
  --black-soft: #ebe7dc;
  --cream: #f4f1e8;
  --cream-dark: #ebe7dc;
  --text: #171817;
  --muted: #66635c;
  --line: #d2ccbe;
  --white: #111313;
  --toggle-border: #d2ccbe;
  --toggle-bg: rgba(17,19,19,.04);
  --toggle-text: #171817;
  --toggle-hover: rgba(17,19,19,.08);
}

html[data-theme="dark"] {
  --black: #111313;
  --black-soft: #1b1d1c;
  --cream: #171918;
  --cream-dark: #1e2120;
  --text: #f2efe7;
  --muted: #aaa69e;
  --line: #373a37;
  --white: #f7f5ed;
  --toggle-border: #454945;
  --toggle-bg: rgba(255,255,255,.04);
  --toggle-text: #f2efe7;
  --toggle-hover: rgba(255,255,255,.1);
}

html[data-theme="light"] body {
  background: var(--cream);
  color: var(--text);
}

html[data-theme="light"] body.page-home header {
  background: rgba(247,245,237,.96);
  border-bottom-color: var(--line);
}

html[data-theme="light"] body.page-home .brand,
html[data-theme="light"] .brand {
  color: var(--text);
}

html[data-theme="light"] body.page-home nav a {
  color: var(--text);
}

html[data-theme="light"] body.page-home .menu {
  border-color: var(--line);
  color: var(--text);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .why,
html[data-theme="light"] .contact {
  background: #e9e5db;
  color: var(--text);
}

html[data-theme="light"] .hero .lead,
html[data-theme="light"] .why .section-head p,
html[data-theme="light"] .why-item p,
html[data-theme="light"] .contact-copy {
  color: var(--muted);
}

html[data-theme="light"] .btn-outline {
  border-color: #aaa69d;
  color: var(--text);
}

html[data-theme="light"] .contact-info a {
  color: var(--text);
}

html[data-theme="light"] body.page-service header,
html[data-theme="light"] body.page-contact header,
html[data-theme="light"] body.page-projects header,
html[data-theme="light"] body.page-privacy header {
  background: #f7f5ed;
  color: var(--text);
  border-bottom-color: var(--line);
}

html[data-theme="light"] body.page-service header a,
html[data-theme="light"] body.page-contact header a,
html[data-theme="light"] body.page-projects header a,
html[data-theme="light"] body.page-privacy header a {
  color: var(--text);
}

html[data-theme="light"] body.page-contact nav a,
html[data-theme="light"] body.page-projects nav a {
  color: var(--muted);
}

html[data-theme="light"] body.page-service nav a {
  color: var(--muted);
}

html[data-theme="light"] body.page-privacy .back {
  color: var(--text);
}

html[data-theme="light"] body.page-home footer,
html[data-theme="light"] footer {
  background: #e2ded4;
  color: var(--muted);
}

html[data-theme="dark"] body.page-home footer {
  background: #0b0d0c;
}

html[data-theme="dark"] body.page-service header,
html[data-theme="dark"] body.page-contact header,
html[data-theme="dark"] body.page-projects header,
html[data-theme="dark"] body.page-privacy header {
  background: var(--black);
}

html[data-theme="light"] .step,
html[data-theme="light"] body.page-contact .box {
  background: rgba(255,255,255,.5);
}

@media (max-width: 900px) {
  html[data-theme="light"] body.page-home nav {
    background: #f7f5ed;
    border-color: var(--line);
  }

  html[data-theme="light"] body.page-home nav a {
    border-bottom-color: var(--line);
  }
}

/* --- Selector de idioma --- */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--toggle-border, rgba(255,255,255,.2));
  border-radius: 8px;
  background: var(--toggle-bg, rgba(255,255,255,.05));
}

.language-switcher button {
  min-width: 30px;
  min-height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--toggle-text, inherit);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  opacity: .65;
}

.language-switcher button:hover,
.language-switcher button[aria-pressed="true"] {
  opacity: 1;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--toggle-hover, rgba(255,255,255,.1));
}

/* ========================================================================== */

/* --- Montserrat local --- */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Aravena Reformas y Pintura — Hoja de estilos global
   ========================================================================== */

/* --- 1. Variables & Root --- */
:root {
  --gold-accessible: #765700;
  --gold-accessible-hover: #624900;
  --gold-focus: #005fcc;
  --black: #111313;
  --black-soft: #1b1d1c;
  --gold: #c9972f;
  --gold-light: #e5b343;
  --cream: #f4f1e8;
  --cream-dark: #ebe7dc;
  --text: #171817;
  --muted: #77736a;
  --line: #d8d1c1;
  --white: #f7f5ed;
  --max: 1120px;
}

body.page-service,
body.page-projects {
  --max: 900px;
}

body.page-contact {
  --max: 800px;
}

body.page-privacy {
  --max: 820px;
}

/* --- 2. Base & Reset --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.page-service,
body.page-contact,
body.page-projects,
body.page-privacy {
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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;
}

/* --- 3. Tipografía & Layout común --- */
h1, h2, h3, p {
  margin-top: 0;
}

h1, h2 {
  font-weight: 700;
  letter-spacing: -.025em;
}

.eyebrow {
  font-size: 11px;
  line-height: 1;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

body.page-service .wrap,
body.page-contact .wrap,
body.page-projects .wrap {
  width: min(var(--max), calc(100% - 32px));
}

@media (max-width: 600px) {
  body.page-home .wrap {
    width: min(var(--max), calc(100% - 28px));
  }
}

/* --- 4. Encabezado y Navegación Principal (Home) --- */
body.page-home header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 19, 19, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(9px);
}

body.page-home .nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  font-family: "Montserrat", Arial, sans-serif;
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-name {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.05;
}

.brand-name span {
  font-family: "Montserrat", Arial, sans-serif;
  display: block;
  margin-top: 4px;
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: .18em;
}

body.page-home nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

body.page-home nav a {
  font-size: 13px;
  font-weight: 600;
  color: #eee;
  text-decoration: none;
}

body.page-home nav a:hover {
  color: var(--gold-light);
}

body.page-home .menu {
  display: none;
  border: 1px solid #444;
  background: transparent;
  color: #fff;
  border-radius: 7px;
  padding: 8px 11px;
  font: inherit;
}

/* --- 5. Botones y Llamadas a la acción (Global & Home) --- */
.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
}

.nav-cta:hover {
  background: var(--gold-light);
}

body.page-home .btn {
  min-height: 48px;
  padding: 0 20px;
  font-size: 13px;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline {
  border: 1px solid #535754;
  color: #fff;
  background: transparent;
}

/* --- 6. Secciones de la Página Principal (Home) --- */
body.page-home h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  margin-bottom: 20px;
}

body.page-home h2 {
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1.08;
  margin-bottom: 14px;
}

.section {
  padding: 82px 0;
}

.hero {
  background: var(--black);
  color: #fff;
  padding: 74px 0 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: center;
}

.hero .lead {
  max-width: 570px;
  color: #c7c4bd;
  font-size: 17px;
  margin: 0 0 28px;
}

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

.hero-brand {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: auto;
  border-radius: 22px;
  object-fit: contain;
}

.intro {
  background: var(--cream);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}

.intro-copy {
  max-width: 720px;
}

.intro-copy p {
  color: var(--muted);
  font-size: 16px;
}

.intro-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.point {
  border-top: 2px solid var(--gold);
  padding-top: 16px;
}

.point h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

.point p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.services {
  background: var(--cream-dark);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
}

.service {
  border-top: 2px solid var(--gold);
  padding-top: 17px;
}

.service-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--gold);
}

.service h3 {
  font-size: 19px;
  line-height: 1.2;
  margin: 10px 0 7px;
}

.service h3 a {
  text-decoration: none;
}

.service h3 a:hover {
  color: var(--gold);
}

.service p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.why {
  background: var(--black);
  color: #fff;
}

.why .section-head p {
  color: #bbb8b0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-item {
  border-top: 2px solid var(--gold);
  padding-top: 17px;
}

.why-item h3 {
  font-size: 18px;
  margin: 8px 0 7px;
}

.why-item p {
  color: #b9b6af;
  font-size: 14px;
  margin: 0;
}

.process {
  background: var(--cream);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .28);
}

.step b {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}

.step h3 {
  font-size: 18px;
  margin: 9px 0 6px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.areas {
  background: var(--cream-dark);
}

.area-box {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
  max-width: 820px;
}

.area-box p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.contact {
  background: var(--black);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.contact h2 {
  margin: 10px 0 12px;
}

.contact-copy {
  max-width: 660px;
  color: #bdbab2;
  margin: 0;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
}

.contact-info strong {
  display: block;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-info a {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

body.page-home footer,
footer {
  background: #0b0d0c;
  color: #8e8b84;
  padding: 24px 0;
  font-size: 11px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: #aaa69e;
  text-decoration: none;
}

/* --- 7. Encabezado común para Páginas Secundarias (Servicios, Contacto, Proyectos) --- */
body.page-service header,
body.page-contact header,
body.page-projects header {
  background: var(--black);
  color: #fff;
  padding: 20px 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.page-service header .wrap,
body.page-contact header .wrap,
body.page-projects header .wrap {
  position: relative;
}

body.page-service header > .wrap > .theme-toggle,
body.page-contact header > .wrap > .theme-toggle {
  position: absolute;
  top: 0;
  right: 0;
}

body.page-service header a,
body.page-contact header a,
body.page-projects header a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

body.page-service header a {
  letter-spacing: .06em;
}

body.page-service nav,
body.page-contact nav,
body.page-projects nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

body.page-service nav {
  margin-top: 22px;
}

body.page-contact nav,
body.page-projects nav {
  margin-top: 20px;
}

body.page-service nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

body.page-contact nav a,
body.page-projects nav a {
  color: #bbb;
  text-decoration: none;
}

body.page-service main,
body.page-contact main,
body.page-projects main {
  padding: 70px 0;
}

body.page-service h1,
body.page-contact h1,
body.page-projects h1 {
  font-weight: 700;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

/* --- 8. Páginas de Servicios (Alisado, Pintura, Muebles, Pladur, Reformas) --- */
body.page-service h1,
body.page-projects h1,
body.page-contact h1 {
  margin: 12px 0 22px;
}

body.page-service h2 {
  font-size: 30px;
  line-height: 1.1;
  margin-top: 52px;
}

body.page-service .lead,
body.page-projects .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 760px;
}

body.page-service .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 35px;
}

body.page-service .card {
  border-top: 2px solid var(--gold);
  padding-top: 15px;
}

body.page-service .card h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

body.page-service .card p {
  margin: 0;
  color: var(--muted);
}

body.page-service .cta,
body.page-projects .cta {
  margin-top: 52px;
  padding: 28px;
  background: var(--black);
  color: #fff;
  border-radius: 12px;
}

body.page-service .btn,
body.page-projects .btn {
  display: inline-flex;
  margin-top: 15px;
  padding: 13px 20px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 800;
}

/* --- 9. Página de Contacto --- */
body.page-contact .box {
  margin-top: 35px;
  padding: 28px;
  background: #fff8;
  border-top: 2px solid var(--gold);
}

body.page-contact a.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 20px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 800;
}

/* --- 10. Página de Proyectos --- */
body.page-projects .note {
  margin-top: 32px;
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, .35);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

html[data-theme="light"] body.page-projects .note {
  background: #ebe7dc;
}

html[data-theme="dark"] body.page-projects .note {
  background: var(--black-soft);
}

body.page-projects .note h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

body.page-projects .note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* --- 11. Política de Privacidad --- */
body.page-privacy header {
  background: var(--black);
  color: #fff;
  border-bottom: 1px solid #2b2f2d;
}

body.page-privacy .nav {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

body.page-privacy .brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
}

body.page-privacy .back {
  color: #eee;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--gold);
}

body.page-privacy main {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 70px 0 90px;
}

body.page-privacy h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0 0 10px;
}

body.page-privacy .updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 38px;
}

body.page-privacy .notice {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: #ebe7dc;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 38px;
}

body.page-privacy section {
  margin: 0 0 34px;
}

body.page-privacy h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

body.page-privacy p,
body.page-privacy li {
  font-size: 15px;
}

body.page-privacy p {
  margin: 0 0 12px;
}

body.page-privacy ul {
  padding-left: 21px;
}

body.page-privacy footer {
  border-top: 1px solid var(--line);
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* --- 12. Media Queries / Responsive --- */
@media (max-width: 900px) {
  .hero-grid,
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    order: -1;
    max-width: 380px;
  }

  .service-grid,
  .why-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.page-home nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 14px;
    background: var(--black);
    border: 1px solid #303432;
    border-radius: 10px;
  }

  body.page-home nav.open {
    display: flex;
  }

  body.page-home nav a {
    padding: 12px 0;
    border-bottom: 1px solid #292d2c;
  }

  body.page-home nav a:last-child {
    border-bottom: 0;
  }

  body.page-home .menu {
    display: block;
  }

  body.page-home .nav-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 58px 0 64px;
  }

  .section {
    padding: 62px 0;
  }

  .hero .lead {
    font-size: 15px;
  }

  .buttons .btn {
    width: 100%;
  }

  .service-grid,
  .why-grid,
  .process-grid,
  .intro-points {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    max-width: 340px;
  }

  body.page-service .grid {
    grid-template-columns: 1fr;
  }

  body.page-service main,
  body.page-contact main,
  body.page-projects main {
    padding: 48px 0;
  }
}


/* Mejor contraste para texto de apoyo y acentos. */
:root {
  --muted: #5f5c55;
}

html[data-theme="light"] {
  --accent-text: #765700;
}

html[data-theme="dark"] {
  --accent-text: #e5b343;
  --muted: #aaa69e;
}

.eyebrow,
.service-num,
.step b {
  color: var(--accent-text);
}

html[data-theme="light"] .hero .lead,
html[data-theme="light"] .why .section-head p,
html[data-theme="light"] .why-item p {
  color: #c7c4bd;
}

html[data-theme="light"] .contact-copy {
  color: #5f5c55;
}
/* ==========================================================================
   Accesibilidad
   ========================================================================== */

/* Skip link: permite saltar directamente al contenido con teclado/lector de pantalla. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

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

/* Nunca ocultar el indicador de foco para usuarios de teclado. */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--gold-focus);
  outline-offset: 3px;
}

:where(a, button, input, select, textarea, summary):focus:not(:focus-visible) {
  outline: none;
}

/* El dorado original (#c9972f) no ofrece suficiente contraste con texto blanco
   cuando se utiliza como fondo. Este tono se usa en controles con texto blanco. */
.btn-gold,
.nav-cta,
body.page-service .btn,
body.page-contact a.btn {
  background: var(--gold-accessible);
}

.btn-gold:hover,
.nav-cta:hover,
body.page-service .btn:hover,
body.page-contact a.btn:hover {
  background: var(--gold-accessible-hover);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- SEO content enhancements --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a {
  color: inherit;
  text-underline-offset: 3px;
}
.breadcrumbs span[aria-hidden="true"] {
  opacity: .55;
}
body.page-service h2,
body.page-projects h2,
body.page-contact h2 {
  margin-top: 48px;
  margin-bottom: 12px;
}
body.page-service p,
body.page-projects p,
body.page-contact p {
  max-width: 78ch;
}
body.page-service .grid {
  margin-bottom: 18px;
}
body.page-service .card p {
  max-width: 55ch;
}


/* ==========================================================================
   Responsive + contraste — revisión móvil
   ========================================================================== */

/* El color de texto siempre se adapta al fondo del tema. */
html[data-theme="light"] body.page-privacy header,
html[data-theme="light"] body.page-privacy .brand,
html[data-theme="light"] body.page-privacy .back {
  color: var(--text);
}

html[data-theme="light"] body.page-privacy .brand,
html[data-theme="light"] body.page-privacy .back {
  color: var(--text);
}

html[data-theme="dark"] body.page-privacy .notice {
  background: var(--black-soft);
  color: var(--muted);
}

html[data-theme="light"] body.page-privacy .notice {
  background: var(--cream-dark);
  color: var(--muted);
}

html[data-theme="dark"] body.page-contact .box {
  background: var(--black-soft);
  color: var(--text);
}

html[data-theme="light"] body.page-contact .box {
  background: #ebe7dc;
  color: var(--text);
}

html[data-theme="dark"] body.page-projects .note {
  color: var(--muted);
}

/* Evita texto blanco heredado en bloques claros. */
html[data-theme="light"] body.page-service main,
html[data-theme="light"] body.page-contact main,
html[data-theme="light"] body.page-projects main,
html[data-theme="light"] body.page-privacy main {
  color: var(--text);
}

html[data-theme="light"] body.page-service .cta,
html[data-theme="light"] body.page-projects .cta {
  color: var(--white);
}

html[data-theme="light"] body.page-service .cta strong,
html[data-theme="light"] body.page-projects .cta strong {
  color: var(--white);
}

/* Cabeceras secundarias: controles y navegación coherentes con ambos temas. */
html[data-theme="light"] body.page-service header,
html[data-theme="light"] body.page-contact header,
html[data-theme="light"] body.page-projects header,
html[data-theme="light"] body.page-privacy header {
  background: #f7f5ed;
  color: var(--text);
  border-bottom-color: var(--line);
}

html[data-theme="dark"] body.page-service header,
html[data-theme="dark"] body.page-contact header,
html[data-theme="dark"] body.page-projects header,
html[data-theme="dark"] body.page-privacy header {
  background: var(--black);
  color: var(--text);
}

html[data-theme="light"] body.page-service header a,
html[data-theme="light"] body.page-contact header a,
html[data-theme="light"] body.page-projects header a,
html[data-theme="light"] body.page-privacy header a {
  color: var(--text);
}

html[data-theme="dark"] body.page-service header a,
html[data-theme="dark"] body.page-contact header a,
html[data-theme="dark"] body.page-projects header a,
html[data-theme="dark"] body.page-privacy header a {
  color: var(--white);
}

html[data-theme="light"] body.page-service nav a,
html[data-theme="light"] body.page-contact nav a,
html[data-theme="light"] body.page-projects nav a {
  color: var(--muted);
}

html[data-theme="dark"] body.page-service nav a,
html[data-theme="dark"] body.page-contact nav a,
html[data-theme="dark"] body.page-projects nav a {
  color: #d2d0ca;
}

/* Los controles nunca heredan un color incorrecto del header. */
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .language-switcher {
  color: var(--text);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .language-switcher {
  color: var(--text);
}

/* ==========================================================================
   Móvil
   ========================================================================== */

@media (max-width: 900px) {
  .wrap,
  body.page-service .wrap,
  body.page-contact .wrap,
  body.page-projects .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  /* Home: cabecera compacta sin desbordamiento. */
  body.page-home .nav {
    min-height: 64px;
    gap: 8px;
  }

  body.page-home .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.page-home .brand-name {
    font-size: 12px;
    letter-spacing: .06em;
  }

  body.page-home .brand-name span {
    font-size: 8px;
    letter-spacing: .12em;
  }

  body.page-home .menu {
    flex: none;
  }

  body.page-home .theme-toggle,
  body.page-home .language-switcher {
    flex: none;
  }

  /* Páginas interiores: cabecera en dos filas y navegación desplazable. */
  body.page-service header > .wrap,
  body.page-contact header > .wrap,
  body.page-projects header > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
  }

  body.page-service header > .wrap > .theme-toggle,
  body.page-contact header > .wrap > .theme-toggle {
    position: static;
  }

  body.page-service header nav,
  body.page-contact header nav,
  body.page-projects header nav {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
    padding: 2px 0 4px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.page-service header nav::-webkit-scrollbar,
  body.page-contact header nav::-webkit-scrollbar,
  body.page-projects header nav::-webkit-scrollbar {
    display: none;
  }

  body.page-service header nav a,
  body.page-contact header nav a,
  body.page-projects header nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 4px 0;
  }

  body.page-service main,
  body.page-contact main,
  body.page-projects main {
    padding: 44px 0 58px;
  }

  body.page-service h1,
  body.page-contact h1,
  body.page-projects h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.06;
  }

  body.page-service h2,
  body.page-projects h2,
  body.page-contact h2 {
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.12;
    margin-top: 38px;
  }

  body.page-service .lead,
  body.page-projects .lead {
    font-size: 17px;
  }

  body.page-service .cta,
  body.page-projects .cta {
    padding: 22px;
    margin-top: 40px;
  }

  body.page-service .cta .btn,
  body.page-projects .cta .btn,
  body.page-contact a.btn {
    width: 100%;
    text-align: center;
  }

  body.page-privacy .nav {
    width: min(1120px, calc(100% - 28px));
    min-height: 0;
    padding: 14px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  body.page-privacy .brand {
    min-width: 0;
    font-size: 12px;
  }

  body.page-privacy .back {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 12px;
  }

  body.page-privacy main {
    width: min(var(--max), calc(100% - 28px));
    padding: 46px 0 64px;
  }

  body.page-privacy h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  body.page-privacy p,
  body.page-privacy li {
    font-size: 14px;
  }

  .breadcrumbs {
    margin-bottom: 22px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  body.page-home .nav {
    gap: 6px;
  }

  body.page-home .brand-mark {
    width: 34px;
    height: 34px;
  }

  /* El texto de los controles ocupa demasiado espacio en pantallas estrechas. */
  .theme-toggle {
    min-width: 38px;
    width: 38px;
    padding: 0;
  }

  .theme-toggle .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-switcher {
    padding: 2px;
  }

  .language-switcher button {
    min-width: 27px;
    min-height: 28px;
    padding: 0 5px;
    font-size: 10px;
  }

  body.page-home .menu {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }

  body.page-home nav {
    top: 64px;
    left: 14px;
    right: 14px;
  }

  body.page-home h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.03;
  }

  body.page-home h2 {
    font-size: clamp(29px, 8vw, 38px);
  }

  .hero {
    padding: 46px 0 54px;
  }

  .section {
    padding: 54px 0;
  }

  .hero .lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-brand {
    max-width: 300px;
    border-radius: 16px;
  }

  .buttons {
    gap: 10px;
  }

  .buttons .btn {
    width: 100%;
  }

  .service-grid,
  .why-grid,
  .process-grid,
  .intro-points {
    grid-template-columns: 1fr;
  }

  .contact-info {
    gap: 18px;
    flex-direction: column;
  }

  body.page-service header > .wrap,
  body.page-contact header > .wrap,
  body.page-projects header > .wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
  }

  body.page-service header,
  body.page-contact header,
  body.page-projects header {
    padding: 14px 0;
  }

  body.page-service header > .wrap > a,
  body.page-contact header > .wrap > a,
  body.page-projects header > .wrap > a {
    font-size: 12px;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-service header nav,
  body.page-contact header nav,
  body.page-projects header nav {
    gap: 17px;
    font-size: 12px;
  }

  body.page-privacy .nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  body.page-privacy .brand {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-privacy .back {
    margin-top: 2px;
  }

  body.page-privacy .notice {
    padding: 14px 15px;
    font-size: 13px;
  }

  body.page-privacy section {
    margin-bottom: 28px;
  }

  body.page-privacy footer {
    padding: 26px 14px;
  }
}


/* Evita desbordamientos horizontales provocados por URLs, correos o textos largos. */
body.page-service main,
body.page-contact main,
body.page-projects main,
body.page-privacy main {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  body.page-home .nav-cta {
    display: none;
  }

  body.page-home .brand {
    max-width: calc(100% - 132px);
  }

  body.page-contact .box {
    padding: 20px;
  }

  body.page-contact .box a:not(.btn),
  body.page-privacy main a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}




/* Accents on dark hero/sections must remain readable in light theme. */
.hero .eyebrow,
.why .eyebrow {
  color: #e5b343;
}

/* Accesibilidad: contraste WCAG AA para textos y acentos en ambos temas. */
html[data-theme="light"] .brand-name > span,
html[data-theme="light"] .hero .eyebrow,
html[data-theme="light"] .why .eyebrow {
  color: #624900;
}

html[data-theme="light"] .hero .lead,
html[data-theme="light"] .why .section-head p,
html[data-theme="light"] .why-item p {
  color: #4f4d47;
}

html[data-theme="light"] body.page-home footer,
html[data-theme="light"] footer {
  color: #4f4d47;
}

html[data-theme="light"] .footer a {
  color: #383832;
}

html[data-theme="dark"] body.page-home footer,
html[data-theme="dark"] footer {
  color: #d2d0ca;
}

html[data-theme="dark"] .footer a {
  color: #f2efe7;
}

#aravenaAccept {
  color: #171817 !important;
}


/* El texto dorado de contacto también debe contrastar en el tema claro. */
html[data-theme="light"] .contact-info strong {
  color: #624900;
}


/* Service-page content grids: stack cards before tablet widths to avoid
   cramped, visually unbalanced columns on phones and narrow browser windows. */
body.page-service main .grid > .card {
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 760px) {
  body.page-service main .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body.page-service main .grid > .card {
    width: 100%;
  }
}

/* Featured work and planning links on the homepage */
.resource-feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--black-soft);
}

.resource-feature img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 20rem;
  object-fit: cover;
  object-position: center 58%;
}

.resource-feature-copy {
  align-self: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.resource-feature-copy p {
  margin: .75rem 0 1.25rem;
}

.resource-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.resource-groups > div {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.resource-groups ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

.resource-groups a {
  display: inline-block;
  padding-block: .3rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 650px) {
  .resource-feature,
  .resource-groups {
    grid-template-columns: 1fr;
  }

  .resource-feature img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Painting rates and documented work */
.hero-price { margin-top: 1.25rem; max-width: 38rem; font-size: .9rem; line-height: 1.6; }
.hero-price strong, .hero-price a { display: block; }
.hero-price a, .service-price a, .service-work > a, .quote-example a { text-decoration: underline; text-underline-offset: .2em; }
.service-price, .quote-example { margin: 2rem 0; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-left: 4px solid #b27b16; border-radius: 12px; background: var(--black-soft); color: var(--text); }
body.page-service .service-price h2, body.page-service .quote-example h2 { margin-top: 0; }
.pricing-section { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.price-intro, .price-calculation { font-weight: 700; }
.surface-note { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--black-soft); }
.price-table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .95rem; }
.price-table caption { text-align: left; padding-bottom: .75rem; color: var(--muted); }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 1rem; border-bottom: 1px solid var(--line); }
.price-table thead { background: var(--black-soft); }
.price-table th[scope="row"] { width: 64%; font-weight: 600; }
.price-table small { display: block; margin-top: .4rem; font-size: .9rem; font-weight: 400; line-height: 1.55; }
.price-table td strong { display: block; }
.pricing-conditions { font-size: .95rem; }
.service-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.service-photo-grid figure { margin: 0; }
.service-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.service-photo-grid figcaption { margin-top: .6rem; font-size: .9rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 600px) {
  .price-table th, .price-table td { padding: .8rem .4rem; overflow-wrap: anywhere; }
  .price-table th[scope="row"] { width: 58%; }
  .service-photo-grid { grid-template-columns: 1fr; }
}

/* Consistent company logo at the top right of interior pages. */
body:is(.page-service, .page-contact, .page-projects, .page-privacy) .site-header {
  padding: 16px 0;
}
body:is(.page-service, .page-contact, .page-projects, .page-privacy) .site-header > .wrap {
  display: block;
}
.site-header .header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.site-header .header-top .brand {
  order: 3;
  margin-left: auto;
  flex-direction: row-reverse;
  flex: 0 1 auto;
  min-width: 0;
  gap: 10px;
  text-align: right;
  overflow: visible;
}
.site-header .brand-mark { width: 44px; height: 44px; }
.site-header .brand-name { min-width: 0; }
.site-header .header-top .language-switcher { order: 1; flex: none; }
.site-header .header-top .theme-toggle { order: 2; position: static; flex: none; }
.site-header nav { margin-top: 16px; }
@media (max-width: 600px) {
  .site-header .header-top { gap: 7px; }
  .site-header .header-top .brand { gap: 8px; }
  .site-header .brand-mark { width: 38px; height: 38px; }
  .site-header .brand-name { font-size: 12px; letter-spacing: .04em; }
  .site-header .brand-name span { font-size: 8px; letter-spacing: .08em; }
}
