﻿/* =========================================================
   Artevy Estilistas — estilos
   Personaliza colores y tipografías en :root
   ========================================================= */
:root {
  --bg: #faf8f4;
  --bg-alt: #f1eee8;
  --ink: #14110f;
  --ink-soft: #55504a;
  --line: #ddd8cf;
  --gold: #b79a62;
  --gold-dark: #8f7640;
  --green: #2f4a3a;
  --green-soft: #e6ece6;
  --dark: #14110f;

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Montserrat", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin-top: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted { color: var(--ink-soft); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7.5vw, 5.8rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
em { font-style: italic; color: var(--gold-dark); }
.eyebrow {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1.25rem;
}
.lead { font-size: 1.15rem; max-width: 34rem; }
h1 .eyebrow { display: block; }
.hero h1 .eyebrow { font-size: .75rem; line-height: 1.4; }
.lead-dark { max-width: 38rem; margin-inline: auto; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 1rem 2.2rem; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--ink); }
.btn-small { padding: .6rem 1.3rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.btn-gold:hover, .btn-gold:focus-visible { background: transparent; color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  color: #fff; transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled { background: rgba(250,248,244,.95); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.site-header, .site-header.scrolled { background: #000; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.logo-img { height: 58px; width: auto; }
.footer-img { width: 200px; height: auto; margin: 0 auto 1rem; }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo-mark { width: 40px; height: 40px; color: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500; letter-spacing: .06em; }
.logo-sub { font-size: .6rem; letter-spacing: .5em; text-transform: uppercase; margin-top: .3rem; }

.nav ul { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-header:not(.scrolled) .btn-small { background: transparent; border-color: rgba(255,255,255,.7); }
.site-header:not(.scrolled) .btn-small:hover { background: #fff; color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: inherit; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; background: #2a2622; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 30%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,17,15,.82) 0%, rgba(20,17,15,.45) 55%, rgba(20,17,15,.2) 100%); }
.hero-content { position: relative; padding-top: var(--header-h); }
.hero h1 em { color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.88); margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn:not(.btn-ghost) { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:not(.btn-ghost):hover { background: transparent; color: #fff; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; width: 1px; height: 56px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-hint span { display: block; width: 100%; height: 40%; background: var(--gold); animation: scrollLine 2.2s infinite var(--ease); }
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-text p { color: var(--ink-soft); }
.about-text .about-lead { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; color: var(--ink); margin-bottom: 1.5rem; }
.about-figure { margin: 0; aspect-ratio: 4/5; background: linear-gradient(160deg, #d9d2c4, #b8ad99); overflow: hidden; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pillars strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; }
.pillars span { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; display: block; margin-top: .3rem; }

/* Marcas */
.brands-intro { background: var(--bg-alt); padding-bottom: clamp(3rem, 6vw, 5rem); }
.brand-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; margin-top: 2.5rem; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.brand-strip li { position: relative; }
.brand-strip li + li::before { content: "·"; position: absolute; left: -1.8rem; color: var(--gold); }

/* Marcas: logotipos tipográficos provisionales (sustituir por los oficiales) */
.brand-strip { gap: 1rem; }
.brand-strip li + li::before { content: none; }
.wm { display: flex; align-items: center; justify-content: center; min-width: 230px; height: 96px; padding: 0 2rem; border: 1px solid var(--line); background: #fff; transition: border-color .3s, transform .4s var(--ease); }
.wm:hover { border-color: var(--gold); transform: translateY(-3px); }
.wm img { max-height: 36px; max-width: 100%; width: auto; }
.wm-goa img { max-height: 52px; }
.wm-bio span { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }
.wm-goa span { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 500; letter-spacing: .08em; color: var(--green); text-transform: lowercase; }
.wm-gold span { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); }

.brand { padding-block: clamp(3rem, 7vw, 6rem); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.brand--reverse .brand-figure { order: 2; }
.brand-figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; background: #cfc6b4; }
.brand-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.brand-figure:hover img { transform: scale(1.04); }
.brand-text p { color: var(--ink-soft); }

.brand--bio { background: var(--bg-alt); }
.brand--bio .brand-figure { background: linear-gradient(160deg, #e4ded3, #bdb3a1); }
.brand--goa { background: var(--green-soft); }
.brand--goa .brand-figure { background: linear-gradient(160deg, #a7bfa9, #4b6b57); }
.brand--goa .eyebrow, .brand--goa em, .brand--goa .checks li::before { color: var(--green); }
.brand--gold { background: var(--bg); }
.brand--gold .brand-figure { background: linear-gradient(160deg, #e0c58c, #8a6a35); }

.checks { margin-top: 1.5rem; }
.checks li { position: relative; padding: .55rem 0 .55rem 1.8rem; border-bottom: 1px solid rgba(20,17,15,.1); font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 10px; height: 1px; background: currentColor; color: var(--gold-dark); }

/* Prótesis */
.protesis { background: var(--dark); color: #efeae0; }
.protesis h2, .protesis h3 { color: #fff; }
.protesis em { color: var(--gold); }
.protesis .eyebrow { color: var(--gold); }
.protesis-head { max-width: 46rem; margin-bottom: 3.5rem; }
.lead-light { color: rgba(239,234,224,.75); font-size: 1.1rem; }
.protesis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { padding: 2.2rem; border: 1px solid rgba(183,154,98,.35); transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s; }
.card:hover { border-color: var(--gold); transform: translateY(-4px); background: rgba(255,255,255,.03); }
.card h3 { font-size: 1.8rem; }
.card p { color: rgba(239,234,224,.72); margin: 0; font-size: .95rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 4rem 0; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.steps span { font-family: var(--font-serif); font-size: 2.4rem; color: var(--gold); display: block; line-height: 1; }
.steps strong { display: block; margin-top: .6rem; font-weight: 500; color: #fff; }
.steps em { font-style: normal; font-size: .88rem; color: rgba(239,234,224,.65); }

/* Redes sociales */
a.social { display: inline-flex; align-items: center; gap: .45rem; vertical-align: middle; }
.contact a.social { border-bottom: 0; }
.soc-ico { width: 1.15em; height: 1.15em; flex: none; }
a.social:hover { color: var(--gold); }
.contact a.social:hover { color: var(--gold-dark); }

/* Opiniones */
.reviews { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--bg); border-top: 1px solid var(--line); }
.rating { font-size: 1.1rem; margin-bottom: 1rem; }
.rating .stars { color: var(--gold); letter-spacing: .15em; font-size: 1.3rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.8rem; }
.btn-ghost-dark { background: transparent; color: var(--ink); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { background: var(--ink); color: #fff; }

/* Preguntas frecuentes */
.faq { background: var(--bg-alt); }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.2rem 2rem 1.2rem 0; font-family: var(--font-serif); font-size: 1.35rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold-dark); font-size: 1.6rem; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0 0 1.3rem; color: var(--ink-soft); }
.faq-list a { border-bottom: 1px solid var(--gold); }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Servicios — filas grandes con flecha */
.lead-dark.left { margin-inline: 0; }
.service-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.service-list a { display: flex; align-items: baseline; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), color .3s; }
.service-list a { flex-wrap: wrap; row-gap: .3rem; }
.service-list span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .service-list span { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
  .service-list small { order: 3; flex-basis: 100%; font-size: .75rem; }
  .service-list i { margin-left: auto; }
}
.service-list span { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.service-list small { color: var(--ink-soft); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.service-list i { margin-left: auto; font-style: normal; font-size: 1.8rem; color: var(--gold-dark); transition: transform .4s var(--ease); }
.service-list a:hover { padding-left: 1rem; color: var(--gold-dark); }
.service-list a:hover i { transform: translateX(8px); }
.tagline { margin: 2.5rem 0 0; font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--ink-soft); }
.book-band { background: var(--bg-alt); padding-block: var(--section-y); }
.book-band p { color: var(--ink-soft); }
.book-phone { margin-top: 1.5rem; font-size: .95rem; }

/* Cookies */
.cookie-bar { position: fixed; left: 1rem; bottom: 1rem; max-width: 360px; z-index: 80; background: rgba(20,17,15,.94); color: #efeae0; padding: .6rem .8rem; font-size: .75rem; line-height: 1.4; display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.cookie-bar p { margin: 0; flex: 1 1 180px; }
.cookie-bar a { color: var(--gold); text-decoration: underline; }
.cookie-bar button { font: inherit; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; cursor: pointer; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.cookie-bar button.ok { background: var(--gold); border-color: var(--gold); color: var(--dark); }
@media (max-width: 560px) { .cookie-bar { left: .5rem; right: .5rem; bottom: .5rem; max-width: none; } }
/* Contacto */
.contact-head { margin-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.contact address { font-style: normal; }
.contact h3 { font-size: 1.7rem; }
.contact a:not(.btn) { border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.contact a:not(.btn):hover { color: var(--gold-dark); border-color: var(--gold-dark); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: .75rem; }
.hours th, .hours td { padding: .7rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 300; }
.hours td { text-align: right; }

.contact-form { display: grid; gap: 1.2rem; align-content: start; background: #fff; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .8rem 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; border-radius: 0; color: var(--ink); transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); }
.field .invalid { border-color: #b3382c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.check input { margin-top: .25rem; accent-color: var(--ink); }
.check input.invalid { outline: 2px solid #b3382c; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-wa { background: #25d366; border-color: #25d366; color: #0b2e18; }
.btn-wa:hover, .btn-wa:focus-visible { background: transparent; color: #128c4a; }
.btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.4em; color: var(--green); }

.map-wrap { margin-top: 4rem; }
.map-wrap .map { margin-top: 0; }
.map-link { margin: 1.5rem 0 0; text-align: center; }
.map { margin-top: 4rem; height: 420px; background: var(--bg-alt); filter: grayscale(.85) contrast(1.05); transition: filter .5s; }
.map:hover { filter: none; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Pie */
.site-footer { background: var(--dark); color: rgba(239,234,224,.75); padding-block: 3rem; text-align: center; }
.site-footer p { margin: 0 0 .4rem; }
.footer-logo { font-family: var(--font-serif); font-size: 1.8rem; color: #fff; letter-spacing: .06em; }
.footer-logo span { font-size: .6em; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.site-footer a:hover { color: var(--gold); }

/* ---------- Páginas legales ---------- */
.legal-page .site-header { position: sticky; }
.legal { max-width: 820px; padding-block: calc(var(--header-h) + 2rem) var(--section-y); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .5rem; }
.legal h2 { font-size: 1.7rem; margin: 2.5rem 0 .8rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.legal mark { background: #fff1b8; color: var(--ink); padding: 0 .25em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .8rem .8rem .8rem 0; border-bottom: 1px solid var(--line); }
.legal-table th { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); }
.legal-links a { margin: 0 .4rem; }
@media (max-width: 640px) { .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; } .legal-table thead { display: none; } .legal-table td { padding: .3rem 0; } .legal-table tr { padding: .8rem 0; border-bottom: 1px solid var(--line); } }

/* ---------- Revelado al scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .brand-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand--reverse .brand-figure { order: 0; }
  .brand-figure, .about-figure { aspect-ratio: 4/3; }
  .protesis-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); color: var(--ink);
    padding: 1.5rem var(--gutter) 2rem; box-shadow: 0 20px 30px rgba(0,0,0,.08);
    transform: translateY(-120%); transition: transform .45s var(--ease);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto; visibility: hidden;
  }
  .nav.open { visibility: visible; }
  .logo-img { height: 46px; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .nav .btn-small, .site-header:not(.scrolled) .nav .btn-small { color: #fff; background: var(--ink); border-color: var(--ink); }
  .site-header.menu-open { background: #000; color: #fff; }
}
@media (max-width: 560px) {
  .pillars, .steps { grid-template-columns: 1fr; }
  .map { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

