/* =========================
   Yessy Yes - style.css
   Minimal / Beauty / Pastel
   ========================= */

/* ---- Reset / Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Palette */
  --bg: #fbf9ff;
  --surface: #ffffff;
  --text: #15131a;
  --muted: #6a6375;
  --border: rgba(20, 14, 28, 0.10);

  /* Brand (pastel purple / pink) */
  --brand: #7c5cff;
  --brand-2: #ff6fb1;
  --brand-soft: rgba(124, 92, 255, 0.14);

  /* Shadows */
  --shadow-sm: 0 8px 24px rgba(20, 14, 28, 0.08);
  --shadow-md: 0 14px 40px rgba(20, 14, 28, 0.12);

  /* Layout */
  --radius: 18px;
  --radius-sm: 14px;
  --container: 1100px;

  /* Typography */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Logo sizes (control fácil) */
  --logo-header: 54px;   /* header mobile */
  --logo-header-lg: 64px;/* header desktop */
  --logo-hero: 140px;    /* logo grande hero */
  --logo-hero-lg: 160px; /* hero desktop */
  --logo-footer: 54px;   /* footer */
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(124, 92, 255, 0.10), transparent 55%),
    radial-gradient(900px 500px at 85% 20%, rgba(255, 111, 177, 0.10), transparent 55%),
    var(--bg);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Container */
main {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* =========================
   Header / Nav
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);

  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.logo-link {
  justify-self: center;
  text-decoration: none;
}

.logo {
  height: var(--logo-header);
  width: auto;
  object-fit: contain;
  background: transparent;
}

/* Hero logo */
.logo--hero {
  height: var(--logo-hero);
  margin: 0 auto 0.6rem;
}

/* CTA */
.cta {
  justify-self: end;
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.25);
  transition: transform 120ms ease, filter 120ms ease;
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

/* Menu button */
.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.menu-btn::before {
  content: "≡";
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}

.menu-btn.open::before { content: "✕"; }

/* Nav dropdown */
.nav {
  grid-column: 1 / -1;
  display: none;
  padding: 0.25rem 0 0.75rem;
}

.nav.open { display: block; }

.nav__list {
  list-style: none;
  padding: 0.75rem;
  margin: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 0.4rem;
}

.nav__link {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  color: var(--text);
  font-weight: 650;
  transition: background 120ms ease, transform 120ms ease;
}

.nav__link:hover { background: var(--brand-soft); }

.nav__link.active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(255, 111, 177, 0.14));
  border: 1px solid rgba(124, 92, 255, 0.20);
}

/* Desktop header */
@media (min-width: 820px) {
  .site-header {
    grid-template-columns: auto auto 1fr auto;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
  }

  .menu-btn { display: none; }
  .logo-link { justify-self: start; }
  .logo { height: var(--logo-header-lg); }

  .nav {
    display: block;
    padding: 0;
    grid-column: auto;
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    justify-content: flex-end;
  }

  .nav__link {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
  }

  .logo--hero { height: var(--logo-hero-lg); }
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 750;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.22);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.26);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

/* =========================
   Hero
   ========================= */
.hero { padding: 1.25rem 0 0.75rem; }

.hero__card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.1rem;
  text-align: center;
}

.hero__kicker {
  margin: 0.25rem 0 0.6rem;
  color: var(--muted);
  font-weight: 650;
}

.hero__title {
  margin: 0.1rem 0 0.6rem;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  letter-spacing: -0.02em;
}

.hero__text {
  margin: 0 auto 1rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   Sections
   ========================= */
.section {
  margin-top: 1.25rem;
  padding: 1.15rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.section h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.section p { margin: 0.2rem 0 0.9rem; color: var(--muted); }

.section-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

/* =========================
   Work grid (cards)
   ========================= */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

/* La tarjeta */
.work-card {
  position: relative;
  margin: 0;              /* figure trae margin por defecto */
  border-radius: 18px;
  cursor: pointer;
}

/* Imagen base */
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(20, 14, 28, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

/* Hover: sube + zoom sutil (en una sola transformación) */
.work-card:hover img {
  transform: translateY(-18px) scale(1.02);
  box-shadow: 0 18px 44px rgba(20, 14, 28, 0.18);
}

/* Nota blanca elegante */
.work-note {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) translateY(12px);

  width: calc(100% - 2rem);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(20, 14, 28, 0.08);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;

  box-shadow: 0 16px 40px rgba(20, 14, 28, 0.14);
  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card:hover .work-note {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Texto de la nota (sutil, elegante) */
.work-note h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.work-note p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 560px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 920px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================
   Demo (video)
   ========================= */
.demo {
  margin-top: 1.25rem;
  padding: 1.15rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.demo h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.demo p { margin: 0.2rem 0 0.9rem; color: var(--muted); }

.demo__media {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(20, 14, 28, 0.12);
}

.demo__video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* =========================
   Steps (cita)
   ========================= */
.steps {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.steps li { margin: 0.5rem 0; color: var(--muted); }
.steps strong { color: var(--text); }

/* =========================
   Footer
   ========================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  margin-top: 1.5rem;
}

.footer__content {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  text-align: center;
  display: grid;
  gap: 0.6rem;
}

.footer__text {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.footer__small {
  font-weight: 600;
  font-size: 0.95rem;
}

.logo--footer {
  height: var(--logo-footer);
  margin: 0 auto;
  opacity: 0.92;
}

/* Accessibility: focus */
:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.35);
  outline-offset: 3px;
  border-radius: 12px;
}








