/* ============================================================
   Visible Studio — styles.css
   Crema cálido (bone) + tinta (ink) + persimmon SOLO como acento
   ============================================================ */

:root {
  --bone: #F1ECE2;
  --sand: #E5DCCB;
  --sand-dark: #D9CDB6;
  --ink: #23201A;
  --ink-2: #4A453B;
  --khaki: #8C7E63;
  --khaki-dark: #6E624B;
  --persimmon: #D9552E;
  --persimmon-dark: #B8431F;
  --white: #FFFFFF;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 50px -28px rgba(35, 32, 26, 0.45);
  --shadow-card: 0 26px 70px -34px rgba(35, 32, 26, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bone); padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografía base ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
.dot { color: var(--persimmon); }

.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--khaki-dark);
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--persimmon); flex: none;
}
.kicker--light { color: var(--sand-dark); }

.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section__title { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 18ch; }
.section__sub { color: var(--ink-2); font-size: 1.15rem; margin-top: .6rem; max-width: 48ch; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--persimmon);
  --btn-fg: var(--bone);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.55rem;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .25s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--persimmon); outline-offset: 3px; }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--accent { background: var(--persimmon); color: var(--bone); box-shadow: 0 14px 30px -14px rgba(217, 85, 46, .7); }
.btn--accent:hover { background: var(--persimmon-dark); box-shadow: 0 18px 38px -14px rgba(217, 85, 46, .8); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--sand-dark); }
.btn--outline:hover { border-color: var(--ink); background: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn--ghost:hover { color: var(--persimmon); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: #100E0A; }

/* ---------- Logo wordmark ---------- */
.logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; display: inline-flex; align-items: baseline; }
.logo__visible { font-weight: 500; color: var(--ink); }
.logo__dot { font-weight: 700; color: var(--persimmon); margin: 0 1px; }
.logo__studio { font-weight: 300; color: var(--khaki); letter-spacing: .04em; }
.logo--light .logo__visible { color: var(--bone); }
.logo--light .logo__studio { color: var(--sand-dark); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: .9rem;
}
.nav.is-scrolled {
  background: rgba(241, 236, 226, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(217, 205, 182, .8);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__links { display: none; align-items: center; gap: 1.5rem; }
.nav__links a {
  font-family: var(--font-display); font-weight: 400; font-size: .95rem; color: var(--ink-2);
  position: relative; white-space: nowrap; transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--persimmon); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: none; }

/* Enlace destacado de Automatización (botón outline persimmon) */
.nav__flow {
  font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--persimmon-dark);
  border: 1.5px solid var(--persimmon); border-radius: 100px; padding: .42rem 1.05rem;
  background: rgba(217, 85, 46, .08);
  display: inline-flex; align-items: center; line-height: 1; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav__flow::after { display: none !important; }
.nav__flow:hover { background: var(--persimmon); color: var(--bone); transform: translateY(-1px); }
.nav__flow:hover .dot { color: var(--bone); }
.nav__flow.is-active { background: var(--persimmon); color: var(--bone); }
.nav__flow.is-active .dot { color: var(--bone); }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 10px;
}
.nav__toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: grid; gap: .25rem;
  position: fixed; top: 0; right: 0; width: min(82vw, 340px); height: 100dvh;
  background: var(--bone); padding: 6rem 2rem 2rem;
  transform: translateX(100%); transition: transform .42s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(35,32,26,.5); z-index: 90;
}
.nav__mobile.is-open { transform: translateX(0); }
.nav__mobile a:not(.btn) {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--ink);
  padding: .8rem 0; border-bottom: 1px solid var(--sand-dark);
}
.nav__mobile .btn { margin-top: 1.4rem; }
.nav__mobile .nav__flow {
  margin-top: 1.1rem; justify-content: center; font-size: 1.05rem;
  border: 1.5px solid var(--persimmon); border-radius: 100px; padding: .9rem 1rem; color: var(--ink);
}
.nav__mobile .nav__flow:hover { background: var(--persimmon); color: var(--bone); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__canvas, .hero__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.hero__fallback {
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(217,85,46,.18), transparent 46%),
    radial-gradient(60% 60% at 80% 20%, rgba(217,85,46,.10), transparent 60%),
    var(--bone);
}
.hero__canvas { opacity: 0; transition: opacity 1s ease; }
.hero__canvas.is-ready { opacity: 1; }

.hero__inner { position: relative; z-index: 2; padding-block: 7rem 4rem; max-width: 880px; }
.hero__title {
  font-size: clamp(2.7rem, 11vw, 6.2rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero__sub { font-size: clamp(1.08rem, 2.4vw, 1.4rem); color: var(--ink-2); max-width: 40ch; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__signature {
  margin-top: 3.2rem; font-family: var(--font-display); font-weight: 300; font-size: 1.15rem;
  color: var(--khaki-dark); letter-spacing: .02em;
}
.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--sand-dark); border-radius: 20px; display: none;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--persimmon);
  animation: scrolldot 1.6s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 35% { opacity: 1; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios__grid { display: grid; gap: 2.4rem; margin-top: 2.4rem; }
.servicios__lead { font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.5; color: var(--ink); max-width: 30ch; font-weight: 400; }
.servicios__lead { font-family: var(--font-display); font-weight: 300; }
.servicios__cards { display: grid; gap: 1.1rem; }
.card-soft {
  background: var(--sand); border: 1px solid var(--sand-dark); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-soft h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: .5rem; }
.card-soft p { color: var(--ink-2); font-size: 1rem; }
.card-soft__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(217, 85, 46, .12); color: var(--persimmon); margin-bottom: 1.1rem;
}

/* ============================================================
   PROCESO
   ============================================================ */
.proceso__steps { display: grid; gap: 1.1rem; margin-top: 2.6rem; }
.step {
  background: var(--white); border: 1px solid var(--sand-dark); border-radius: var(--radius);
  padding: 2rem 1.8rem; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.step__num { font-family: var(--font-display); font-weight: 300; font-size: 2.6rem; color: var(--persimmon); display: block; line-height: 1; margin-bottom: 1rem; }
.step h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: .4rem; }
.step p { color: var(--ink-2); }

/* ============================================================
   TRABAJOS
   ============================================================ */
.trabajos__group { font-family: var(--font-display); font-weight: 500; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--khaki-dark); margin: 3.2rem 0 1.3rem; }
.trabajos__grid { display: grid; gap: 1.4rem; }
.work {
  display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand);
  border: 1px solid var(--sand-dark); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.work__shot { aspect-ratio: 1280 / 800; overflow: hidden; background: linear-gradient(135deg, var(--sand), var(--sand-dark)); position: relative; }
.work__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.work:hover .work__shot img { transform: scale(1.04); }
.work__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; }
.work__name { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.work__tag { font-size: .78rem; letter-spacing: .04em; color: var(--khaki-dark); background: var(--bone); border: 1px solid var(--sand-dark); padding: .25rem .65rem; border-radius: 100px; white-space: nowrap; }

/* ============================================================
   PLANES
   ============================================================ */
.planes__grid { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
.plan {
  position: relative; background: var(--white); border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg); padding: 2.2rem 1.9rem 2rem;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.plan--featured { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.plan__label { font-family: var(--font-display); font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--khaki-dark); }
.plan--featured .plan__label { color: var(--sand-dark); }
.plan__name { font-family: var(--font-display); font-weight: 500; font-size: 2rem; margin: .15rem 0 .3rem; }
.plan__pitch { color: var(--ink-2); margin-bottom: 1.3rem; }
.plan--featured .plan__pitch { color: var(--sand); }
.plan__price { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; }
.plan__price-note { font-size: .9rem; color: var(--khaki-dark); margin: .35rem 0 1.4rem; }
.plan--featured .plan__price-note { color: var(--sand-dark); }
.plan__list { display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.plan__list li { position: relative; padding-left: 1.6rem; color: var(--ink-2); font-size: 1rem; }
.plan--featured .plan__list li { color: var(--sand); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--persimmon); }
.plan__cta { margin-top: auto; width: 100%; }
.plan__badge {
  position: absolute; top: 1.3rem; right: 1.3rem;
  background: var(--persimmon); color: var(--bone);
  font-family: var(--font-display); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 100px;
}
.planes__extra { margin-top: 1.8rem; display: grid; gap: .9rem; }
.addon, .garantia { background: var(--sand); border: 1px solid var(--sand-dark); border-radius: 14px; padding: 1.1rem 1.3rem; color: var(--ink-2); font-size: 1rem; }
.addon strong, .garantia strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   EL EXTRA (persimmon)
   ============================================================ */
.extra { padding-block: clamp(3rem, 8vw, 6rem); }
.extra__inner {
  background: var(--persimmon); color: var(--bone); border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4.5rem); text-align: center;
  box-shadow: 0 40px 90px -50px rgba(217, 85, 46, .9);
}
.extra__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 5vw, 2.8rem); color: var(--bone); margin-bottom: 1rem; }
.extra__text { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 52ch; margin: 0 auto 2rem; color: #FBEEE6; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios__grid { display: grid; gap: 1.3rem; margin-top: 2.6rem; }
.testimonio { background: var(--white); border: 1px solid var(--sand-dark); border-radius: var(--radius); padding: 1.9rem 1.7rem; }
.testimonio blockquote { font-family: var(--font-display); font-weight: 300; font-size: 1.2rem; line-height: 1.4; color: var(--ink); margin-bottom: 1.3rem; }
.testimonio figcaption { display: flex; flex-direction: column; }
.testimonio__name { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.testimonio__role { font-size: .9rem; color: var(--khaki-dark); }

/* ============================================================
   CONTACTO (ink)
   ============================================================ */
.contacto { padding-block: clamp(4rem, 9vw, 7rem); }
.contacto__inner {
  background: var(--ink); color: var(--bone); border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 7vw, 5rem); position: relative; overflow: hidden;
}
.contacto__inner::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid var(--persimmon); opacity: .14;
}
.contacto__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 5vw, 3rem); color: var(--bone); margin-bottom: .7rem; }
.contacto__sub { color: var(--sand); margin-bottom: 2rem; font-size: 1.1rem; }
.contacto__list { display: grid; gap: 1rem; margin-top: 2.4rem; position: relative; z-index: 1; }
.contacto__list li { display: flex; flex-direction: column; gap: .15rem; padding-top: 1rem; border-top: 1px solid rgba(217,205,182,.22); }
.contacto__list span { font-family: var(--font-display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--khaki); }
.contacto__list a { font-size: 1.15rem; color: var(--bone); transition: color .25s var(--ease); }
.contacto__list a:hover { color: var(--persimmon); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--sand); padding-block: 2.6rem; }
.footer__inner { display: grid; gap: .7rem; text-align: center; justify-items: center; }
.footer__tag { font-family: var(--font-display); font-weight: 300; color: var(--sand-dark); }
.footer__contact { font-size: .92rem; color: var(--khaki); }
.footer__meta { font-size: .82rem; color: var(--khaki); letter-spacing: .04em; }

/* ============================================================
   REVEAL (scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 620px) {
  .servicios__cards { grid-template-columns: 1fr 1fr; }
  .testimonios__grid { grid-template-columns: 1fr 1fr; }
  .contacto__list { grid-template-columns: 1fr 1fr 1fr; }
  .contacto__list li { border-top: none; padding-top: 0; }
  .footer__inner { grid-template-columns: auto 1fr auto; text-align: left; align-items: center; }
  .footer__tag { justify-self: start; }
  .footer__contact { grid-column: 1 / -1; text-align: center; }
  .footer__meta { grid-column: 1 / -1; text-align: center; }
}

@media (min-width: 760px) {
  .hero__scroll { display: block; }
  .proceso__steps { grid-template-columns: repeat(3, 1fr); }
  .trabajos__grid { grid-template-columns: 1fr 1fr; }
  .planes__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .planes__extra { grid-template-columns: 1fr 1fr; }
  .testimonios__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .servicios__grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 4rem; }
  .servicios__lead { max-width: none; }
  .trabajos__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: auto auto auto 1fr; }
  .footer__contact { grid-column: auto; justify-self: center; }
  .footer__meta { grid-column: auto; justify-self: end; text-align: right; }
}

/* Footer layout tidy on desktop */
@media (min-width: 960px) {
  .footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; text-align: left; }
}
