/* =========================================================
   Violeta Studio — estilos
   Estética: blanco, negro y dorado · vidrio sutil · elegante
   ========================================================= */

:root {
  --ink: #0c0c0c;
  --ivory: #fbf9f4;
  --sand: #f4efe5;
  --gold: #c6a15b;
  --gold-light: #e8d4a2;
  --gold-deep: #9a7431;
  --grad-gold: linear-gradient(115deg, #9a7431 0%, #d9bd80 28%, #f1e2b8 48%, #c6a15b 70%, #9a7431 100%);

  /* Contexto claro (por defecto) */
  --fg: #151515;
  --muted: #6b665d;
  --accent: #9a7431;
  --card: rgba(255, 255, 255, 0.66);
  --card-border: rgba(154, 116, 49, 0.18);
  --card-shadow: 0 30px 60px -36px rgba(70, 52, 20, 0.35);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --line: rgba(21, 21, 21, 0.1);

  --radius: 20px;
  --radius-lg: 28px;
  --container: 1180px;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-script: "Allura", cursive;
}

/* Contexto oscuro */
.dark, .hero, .footer, .marquee, .header {
  --fg: #f6f2e9;
  --muted: #aba495;
  --accent: #d9bd80;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(232, 212, 162, 0.18);
  --card-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 300 16px/1.7 var(--font-sans);
  color: var(--fg);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--fg); }
strong { font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: #fff; color: #000; padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { left: 8px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 860px; }

/* ---------- Vidrio ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--card-shadow), var(--inset);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: 500 .9rem/1.2 var(--font-sans); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-position .6s ease, background-color .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-gold); background-size: 220% 100%; background-position: 0% 0;
  color: #141008; box-shadow: 0 12px 30px -14px rgba(154, 116, 49, .8);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 40px -14px rgba(154, 116, 49, .95); }
.btn-ghost { background: transparent; border-color: rgba(232, 212, 162, .4); color: var(--fg); }
.btn-ghost:hover { background: rgba(232, 212, 162, .08); border-color: var(--gold-light); }
.btn-light { background: var(--grad-gold); background-size: 220% 100%; color: #141008; }
.btn-light:hover { background-position: 100% 0; }
.btn-lg { padding: 1rem 1.8rem; font-size: .95rem; }
.btn-sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Header / menú ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 0; transition: padding .25s ease; }
.header.scrolled { padding: 8px 0; }
.nav {
  width: min(100% - 32px, var(--container)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 16px; border-radius: 999px;
  background: rgba(12, 12, 12, .55);
}
.header.scrolled .nav { background: rgba(12, 12, 12, .82); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--fg); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); background: #0c0c0c;
  font: 500 1.15rem var(--font-serif); color: var(--gold-light);
}
.brand-text { font: 500 1.15rem var(--font-serif); letter-spacing: .04em; }
.brand-text em { font: 400 1.65rem var(--font-script); color: var(--gold); margin-left: 2px; }

.menu { list-style: none; display: flex; align-items: center; gap: .2rem; }
.menu a:not(.btn) {
  display: block; padding: .5rem .85rem; border-radius: 999px; text-decoration: none;
  font-size: .86rem; letter-spacing: .03em; color: var(--muted); transition: color .2s;
  position: relative;
}
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s ease;
}
.menu a:not(.btn):hover, .menu a.active:not(.btn) { color: var(--fg); }
.menu a:not(.btn):hover::after, .menu a.active:not(.btn)::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(232,212,162,.3); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--gold-light); transition: transform .25s, opacity .25s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero .eyebrow::before { display: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(198,161,91,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(198,161,91,0); } }
.grad { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.script { font: 400 clamp(2rem, 4vw, 2.8rem)/1 var(--font-script); color: var(--gold-light); margin: -.15em 0 .7em; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 54ch; }

/* ---------- Hero (negro) ---------- */
.hero {
  position: relative; padding: 150px 0 90px; overflow: hidden;
  background:
    radial-gradient(700px 500px at 85% 20%, rgba(198,161,91,.16), transparent 70%),
    radial-gradient(600px 500px at 0% 100%, rgba(198,161,91,.08), transparent 70%),
    #0b0b0b;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,212,162,.5), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.01em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li { padding: .45rem 1rem; border-radius: 999px; font-size: .8rem; letter-spacing: .03em; color: var(--muted); box-shadow: none; }

.hero-media { position: relative; margin: 0; padding: 10px; border-radius: var(--radius-lg); }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius-lg) - 8px);
  background: linear-gradient(135deg, #1a1a1a, #2e2a22);
}
.hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: inherit; z-index: -1;
  border: 1px solid rgba(232, 212, 162, .35);
}
.float-card {
  position: absolute; left: -30px; bottom: 40px; padding: 14px 20px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(12, 12, 12, .6);
}
.float-card strong { font-size: .9rem; color: var(--gold-light); }
.float-card span { font-size: .78rem; color: var(--muted); }

/* ---------- Marquee (negro) ---------- */
.marquee { overflow: hidden; background: #0b0b0b; padding: 18px 0; border-bottom: 1px solid rgba(232,212,162,.18); }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: scroll 42s linear infinite; }
.marquee span { font: 400 italic 1.3rem var(--font-serif); white-space: nowrap; color: var(--fg); }
.marquee i { font-style: normal; color: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section {
  position: relative; padding: 110px 0;
  background:
    radial-gradient(560px 420px at 8% 15%, rgba(232,212,162,.32), transparent 70%),
    radial-gradient(520px 420px at 95% 85%, rgba(198,161,91,.16), transparent 70%),
    var(--ivory);
}
.section.alt {
  background:
    radial-gradient(560px 420px at 92% 10%, rgba(232,212,162,.35), transparent 70%),
    var(--sand);
}
.section.dark {
  background:
    radial-gradient(640px 460px at 15% 0%, rgba(198,161,91,.14), transparent 70%),
    radial-gradient(520px 420px at 100% 100%, rgba(198,161,91,.08), transparent 70%),
    #0b0b0b;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.sub { color: var(--muted); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; display: flex; flex-direction: column; padding: 34px 28px; border-radius: var(--radius);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.service:hover { transform: translateY(-6px); border-color: rgba(198, 161, 91, .5); box-shadow: 0 40px 70px -40px rgba(70, 52, 20, .45), var(--inset); }
.service h3 { font-size: 1.4rem; }
.service p { color: var(--muted); font-size: .93rem; }
.service .btn { margin-top: auto; align-self: flex-start; }
.service-ico {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(198, 161, 91, .45); color: var(--gold-deep); margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(244,239,229,.6));
}
.service-ico svg { width: 28px; height: 28px; }
.meta { list-style: none; margin-bottom: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.meta li { font-size: .82rem; color: var(--fg); padding-left: 1.2rem; position: relative; }
.meta li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.tag {
  position: absolute; top: 20px; right: 20px; font-size: .66rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; padding: .32rem .75rem; border-radius: 999px; background: var(--grad-gold); color: #141008;
}
.service.featured { border-color: rgba(198, 161, 91, .5); }

.service.combo {
  --fg: #f6f2e9; --muted: #aba495; --line: rgba(255,255,255,.1);
  background:
    radial-gradient(400px 300px at 100% 0%, rgba(198,161,91,.25), transparent 70%),
    #0c0c0c;
  border-color: rgba(198,161,91,.4); color: var(--fg);
}
.service.combo .service-ico { background: transparent; color: var(--gold-light); }

/* ---------- Features (negro) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 32px 26px; border-radius: var(--radius); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.num {
  display: inline-block; font: 400 italic 2.2rem var(--font-serif);
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .6rem;
}

/* ---------- Estudio ---------- */
.studio { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.studio-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.studio-copy > p { color: var(--muted); }
.steps { list-style: none; counter-reset: s; margin: 1.8rem 0 2.2rem; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.steps li::before {
  content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 400 italic 1rem var(--font-serif); color: var(--gold-light); background: #0c0c0c; border: 1px solid var(--gold);
}
.steps strong { color: var(--fg); }
.studio-panel { padding: 34px; border-radius: var(--radius-lg); }
.studio-panel h3 { font-size: 1.45rem; }
.studio-panel p { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.chips li { padding: .38rem .9rem; border-radius: 999px; font-size: .82rem; background: rgba(255,255,255,.7); border: 1px solid rgba(198,161,91,.35); color: var(--fg); }
.note { font-size: .84rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 34px 20px 0; position: relative;
  font: 500 1.08rem var(--font-serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 300 1.6rem var(--font-sans); color: var(--gold); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }
.faq a { color: var(--gold-deep); }

/* ---------- Contacto (negro) ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.contact-copy > p { color: var(--muted); }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 1.6rem; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .ico { color: var(--gold); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-light); }

.form { padding: 34px; border-radius: var(--radius-lg); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(232,212,162,.2); background: rgba(255,255,255,.04); color: var(--fg);
  font: 300 1rem var(--font-sans); transition: border-color .2s, background .2s;
  -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' fill='none' stroke='%23c6a15b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field select option { background: #111; color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: rgba(171,164,149,.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.07); }
.field input[type="date"] { color-scheme: dark; min-height: 50px; }
.form-error { margin: 0; padding: .7rem 1rem; border-radius: 12px; background: rgba(198,161,91,.12); color: var(--gold-light); font-size: .88rem; }
.form-note { margin: 0; text-align: center; font-size: .78rem; color: var(--muted); }

/* ---------- Footer (negro) ---------- */
.footer { padding: 64px 0 100px; background: #080808; border-top: 1px solid rgba(232,212,162,.18); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer p { color: var(--muted); font-size: .9rem; margin-top: .8rem; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--gold-light); }
.footer .brand { color: var(--fg); }
.copy { text-align: center; color: var(--muted); font-size: .78rem; letter-spacing: .06em; margin: 44px 0 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-gold); background-size: 200% 100%; color: #141008;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 14px 34px -10px rgba(154, 116, 49, .8);
  transition: transform .25s ease;
}
.wa-float::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); z-index: -1;
  animation: ring 2.6s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }
.wa-tip {
  position: absolute; right: 72px; white-space: nowrap; padding: .5rem .95rem; border-radius: 999px;
  background: #0c0c0c; color: var(--gold-light); border: 1px solid rgba(232,212,162,.3);
  font-size: .82rem; letter-spacing: .02em;
  opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .menu {
    position: fixed; top: 84px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 14px;
    border-radius: 22px; background: rgba(12, 12, 12, .95);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(232,212,162,.2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-open .menu { opacity: 1; visibility: visible; transform: none; }
  .menu a:not(.btn) { padding: .85rem 1rem; font-size: 1rem; }
  .menu a:not(.btn)::after { left: 1rem; right: auto; width: 24px; bottom: .45rem; }
  .menu .btn { margin-top: 8px; width: 100%; padding: .95rem; }

  .hero { padding-top: 124px; }
  .hero-grid, .studio, .contact { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 460px; margin-inline: auto; }
  .hero-media::before { inset: 14px -10px -10px 14px; }
  .float-card { left: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
  .services, .features { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .form, .studio-panel { padding: 24px; }
  .service { padding: 28px 22px; }
  .brand-text { font-size: 1.02rem; }
  .brand-text em { font-size: 1.45rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
