/* ============================================================
   MR NAILS — Estética: lujo editorial / art déco
   ============================================================ */

/* Fuentes auto-alojadas (variables, subconjunto latin) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-500-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-italic-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/outfit-300-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --noir: #0d0a07;
  --noir-2: #14100a;
  --noir-3: #1c1610;
  --gold: #c9a227;
  --gold-bright: #e8d5b5;
  --gold-deep: #8f7320;
  --ivory: #f5efe4;
  --muted: #b3a892;
  --line: rgba(201, 162, 39, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow-gold: 0 10px 40px rgba(201, 162, 39, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--noir);
  color: var(--ivory);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grano sutil sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--noir); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

em { font-style: italic; }
.gold-text {
  background: linear-gradient(100deg, #8f7320 0%, #e8d5b5 45%, #c9a227 70%, #f7ead0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(115deg, #a8841d, #d9b64a 45%, #a8841d);
  color: #171203;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(201, 162, 39, 0.4); }
.btn-ghost {
  border-color: var(--line);
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.04);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.1); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1rem; }
.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 1.1rem 0;
}
.site-header.scrolled {
  background: rgba(13, 10, 7, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.6rem 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(232, 213, 181, 0.18), transparent 60%);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg); box-shadow: var(--shadow-gold); }
.brand-text {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand-text em { color: var(--gold); }
.nav-desktop { display: flex; gap: 1.8rem; }
.nav-desktop a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-desktop a:hover { color: var(--gold-bright); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--gold-bright);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(13, 10, 7, 0.97);
  backdrop-filter: blur(16px);
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.nav-mobile.open { display: flex; animation: fadeDown 0.35s var(--ease); }
.nav-mobile a {
  padding: 0.9rem 0.2rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ivory);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}
.nav-mobile a.btn { font-family: var(--sans); font-size: 0.9rem; justify-content: center; margin-top: 1rem; border-bottom: none; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 8%, rgba(201, 162, 39, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 90%, rgba(143, 115, 32, 0.12), transparent 65%),
    var(--noir);
}
.hero-glow {
  position: absolute;
  width: min(70vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  filter: blur(10px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.7; transform: translate(-50%, -58%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -58%) scale(1.08); } }

.hero-arc {
  position: absolute;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.hero-arc-1 { width: min(120vw, 1100px); aspect-ratio: 1.9; top: -34%; left: 50%; transform: translateX(-50%); border-bottom: none; }
.hero-arc-2 { width: min(90vw, 820px); aspect-ratio: 1.9; top: -22%; left: 50%; transform: translateX(-50%); border-bottom: none; opacity: 0.55; }

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 7.2vw, 5.2rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
}
.hero-title em { font-weight: 500; font-style: italic; }
.hero-sub {
  max-width: 560px;
  margin: 0 auto 2.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.4rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 5vw, 4rem);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.hero-scroll {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 10px;
  background: var(--gold);
  border-radius: 3px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============ MARQUESINA ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--noir-2);
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.7rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============ SECCIONES ============ */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 1.5rem; position: relative; }
.section-dark {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 162, 39, 0.07), transparent 60%),
    var(--noir-2);
  border-top: 1px solid rgba(201, 162, 39, 0.08);
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}
.section-head { max-width: 640px; margin: 0 auto 3.6rem; text-align: center; }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-title em { color: var(--gold); }
.section-sub { color: var(--muted); font-size: 1.02rem; }
.ig-link { color: var(--gold-bright); border-bottom: 1px solid var(--gold); transition: color 0.3s; }
.ig-link:hover { color: var(--gold); }

/* ============ SERVICIOS ============ */
.services-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: linear-gradient(160deg, var(--noir-3), var(--noir-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -20%, rgba(201, 162, 39, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.55); box-shadow: var(--shadow-gold); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
  background: radial-gradient(circle at 30% 25%, rgba(232, 213, 181, 0.14), transparent 65%);
}
.card h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; }
.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.time { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.services-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

/* ============ GALERÍA ============ */
.gallery-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(201, 162, 39, 0.16), rgba(28, 22, 16, 0.9)),
    var(--noir-3);
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.gallery-item:hover { transform: translateY(-5px) scale(1.015); border-color: rgba(201, 162, 39, 0.6); box-shadow: var(--shadow-gold); }
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img.loaded { transform: scale(1.06); }
.gallery-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(232, 213, 181, 0.5);
  padding: 1rem;
  text-align: center;
}
.gallery-ph .ph-icon {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: rgba(201, 162, 39, 0.65);
}
.gallery-ph span { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; }
.gallery-item:nth-child(2n) { margin-top: 1.4rem; }
.gallery-cta { text-align: center; margin-top: 3rem; }

/* ============ DOMICILIOS ============ */
.steps-grid {
  max-width: 1000px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  background: linear-gradient(160deg, var(--noir-3), var(--noir-2));
  position: relative;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.55); }
.step-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(115deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.step h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
.coverage {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2.2rem;
  background: rgba(201, 162, 39, 0.04);
}
.coverage-text h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.4rem; }
.coverage-text p { color: var(--muted); max-width: 560px; }
.coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============ AGENDA ============ */
.booking-form {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(165deg, var(--noir-3), var(--noir-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.8rem, 5vw, 3rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-bottom: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ivory);
  background: rgba(13, 10, 7, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  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' stroke='%23C9A227' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field select option { background: var(--noir-2); color: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(179, 168, 146, 0.45); }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 90px; }
.form-error {
  color: #e78f8f;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.form-alt { text-align: center; margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.form-alt a { color: var(--gold-bright); border-bottom: 1px solid var(--gold); }

/* ============ TESTIMONIOS ============ */
.testimonials-grid {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testimonial {
  background: linear-gradient(160deg, var(--noir-3), var(--noir-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  position: relative;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}
.testimonial:hover { transform: translateY(-5px); border-color: rgba(201, 162, 39, 0.5); }
.testimonial::before {
  content: "“";
  position: absolute;
  top: 0.4rem; right: 1.4rem;
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(201, 162, 39, 0.25);
}
.stars { color: var(--gold); letter-spacing: 0.3em; font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial p { color: var(--muted); font-style: italic; font-size: 0.98rem; margin-bottom: 1.2rem; }
.testimonial footer { font-family: var(--serif); color: var(--gold-bright); font-size: 1.05rem; font-weight: 600; }

/* ============ CONTACTO ============ */
.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.4rem;
  background: linear-gradient(160deg, var(--noir-3), var(--noir-2));
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.6); box-shadow: var(--shadow-gold); }
.contact-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  background: radial-gradient(circle at 30% 25%, rgba(232, 213, 181, 0.14), transparent 65%);
}
.contact-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.contact-card p { color: var(--gold-bright); font-size: 1.05rem; }
.contact-card small { color: var(--muted); font-size: 0.8rem; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--noir);
  padding: 3.5rem 1.5rem 1.6rem;
}
.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.4rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-social { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-social a {
  color: var(--gold-bright);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.footer-social a:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.08); }
.footer-bottom {
  max-width: 1150px;
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ============ WHATSAPP FLOTANTE ============ */
.wa-fab {
  position: fixed;
  left: max(1.1rem, env(safe-area-inset-left));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 949;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.35s var(--ease);
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab-tag {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--noir-3);
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.wa-fab:hover .wa-fab-tag { opacity: 1; }
@media (max-width: 640px) {
  .wa-fab { width: 56px; height: 56px; }
  .wa-fab svg { width: 27px; height: 27px; }
  .wa-fab-tag { display: none; }
}

/* ============ AVISO PROACTIVO DEL CHAT ============ */
.chat-teaser {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: calc(max(1.1rem, env(safe-area-inset-bottom)) + 78px);
  z-index: 948;
  width: min(300px, calc(100vw - 2.2rem));
  background: linear-gradient(170deg, var(--noir-3), var(--noir-2));
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 16px 16px 6px 16px;
  padding: 0.95rem 2.2rem 0.95rem 1.1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), var(--shadow-gold);
  animation: chatIn 0.45s var(--ease);
}
.chat-teaser[hidden] { display: none; }
.chat-teaser p { font-size: 0.88rem; line-height: 1.5; color: var(--ivory); cursor: pointer; }
.chat-teaser strong { color: var(--gold); font-family: var(--serif); font-size: 1rem; }
.teaser-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
}
.teaser-close:hover { color: var(--gold-bright); }

/* ============ CHATBOT ============ */
.chat-fab {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 950;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #a8841d, #d9b64a);
  color: #171203;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-gold), 0 0 0 0 rgba(201, 162, 39, 0.4);
  animation: fabPulse 2.6s infinite;
  transition: transform 0.35s var(--ease);
}
.chat-fab:hover { transform: scale(1.07); }
.chat-fab svg { width: 28px; height: 28px; position: absolute; transition: transform 0.35s var(--ease), opacity 0.35s; }
.fab-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.chat-fab.open .fab-icon-chat { opacity: 0; transform: rotate(90deg) scale(0.5); }
.chat-fab.open .fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.chat-fab.open { animation: none; }
.fab-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #35d07f;
  border: 2px solid var(--noir);
}
@keyframes fabPulse {
  0% { box-shadow: var(--shadow-gold), 0 0 0 0 rgba(201, 162, 39, 0.45); }
  70% { box-shadow: var(--shadow-gold), 0 0 0 16px rgba(201, 162, 39, 0); }
  100% { box-shadow: var(--shadow-gold), 0 0 0 0 rgba(201, 162, 39, 0); }
}

.chat-panel {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: calc(max(1.1rem, env(safe-area-inset-bottom)) + 78px);
  z-index: 951;
  width: min(380px, calc(100vw - 2.2rem));
  height: min(580px, calc(100svh - 12rem));
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 40% at 50% -10%, rgba(201, 162, 39, 0.1), transparent 60%),
    linear-gradient(175deg, var(--noir-3), var(--noir-2));
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72), var(--shadow-gold);
  animation: chatIn 0.45s var(--ease);
}
.chat-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0.7;
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(24px) scale(0.95); } to { opacity: 1; transform: none; } }
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(168, 132, 29, 0.24), rgba(168, 132, 29, 0.04));
}
.chat-brand { display: flex; align-items: center; gap: 0.8rem; }
.chat-avatar {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--noir);
  background: linear-gradient(135deg, #d9b64a, #a8841d);
  flex: none;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
.chat-avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(232, 213, 181, 0.5);
}
.chat-brand strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; line-height: 1.2; }
.chat-brand small { color: var(--muted); font-size: 0.74rem; display: flex; align-items: center; gap: 0.4rem; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 8px #35d07f; animation: pulse 2s infinite; }
.chat-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.chat-close:hover { color: var(--gold-bright); border-color: var(--gold); transform: rotate(90deg); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.4) transparent;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, 0.35); border-radius: 6px; }
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 100%;
  animation: msgIn 0.4s var(--ease);
}
.msg-row.user { flex-direction: row-reverse; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.msg-avatar {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--noir);
  background: linear-gradient(135deg, #d9b64a, #a8841d);
  box-shadow: 0 3px 10px rgba(201, 162, 39, 0.3);
  margin-bottom: 1.1rem;
}
.msg-block { display: flex; flex-direction: column; max-width: 85%; }
.msg-row.user .msg-block { align-items: flex-end; }
.msg {
  padding: 0.72rem 0.95rem;
  border-radius: 17px;
  font-size: 0.93rem;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.msg strong { color: var(--gold-bright); font-weight: 600; }
.msg a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.msg.bot {
  background: rgba(201, 162, 39, 0.09);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  color: var(--ivory);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.msg.user {
  background: linear-gradient(120deg, #a8841d, #c9a227);
  color: #171203;
  border-bottom-right-radius: 6px;
  font-weight: 400;
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.28);
}
.msg-time {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: rgba(179, 168, 146, 0.6);
  margin: 0.28rem 0.35rem 0;
}
.cursor-blink { color: var(--gold); animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.msg.typing { display: flex; gap: 5px; align-items: center; padding: 0.95rem 1.15rem; }
.msg.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.5);
  animation: typingDot 1.2s infinite;
}
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-chips {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  overflow-x: auto;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent);
}
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button {
  flex: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.chat-chips button:hover { background: rgba(201, 162, 39, 0.16); border-color: var(--gold); transform: translateY(-1px); }
.chat-input {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ivory);
  background: rgba(13, 10, 7, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.chat-input input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15), 0 0 18px rgba(201, 162, 39, 0.15);
}
.chat-input button {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #d9b64a, #a8841d);
  color: #171203;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.chat-input button:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(201, 162, 39, 0.5); }
.chat-input button:disabled { opacity: 0.5; cursor: wait; transform: none; }
.chat-input svg { width: 19px; height: 19px; }

/* ============ REVELADO AL SCROLL ============ */
.hero-anim { animation: heroUp 0.9s var(--ease) both; }
.hero-eyebrow { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.28s; }
.hero-actions { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.55s; }
@keyframes heroUp {
  from { transform: translateY(26px); }
  to { transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2), .testimonials-grid .reveal:nth-child(2), .steps-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(3), .testimonials-grid .reveal:nth-child(3), .steps-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(2n) { margin-top: 0; }
  .gallery-item:nth-child(3n+2) { margin-top: 1.2rem; }
}

@media (max-width: 820px) {
  .nav-desktop, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .steps-grid, .testimonials-grid, .contact-grid { grid-template-columns: 1fr; }
  .coverage { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 1.1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .gallery-item:nth-child(3n+2) { margin-top: 0; }
  .gallery-item:nth-child(2n) { margin-top: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .stat strong { font-size: 1.6rem; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .chat-panel { height: min(540px, calc(100svh - 11rem)); }
}

@media (max-width: 380px) {
  .brand-text { font-size: 1.25rem; }
  .section-title { font-size: 1.9rem; }
}

/* Accesibilidad: respeta movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
