/* =========================================================
   Propuesta Dulce Pastel · hub con menú
   ========================================================= */

:root {
  --green: #6a7f54;
  --green-soft: #a9b89a;
  --forest: #2f3a27;
  --ink: #2b2a26;
  --ink-soft: #5d5a52;
  --cream: #fdf6ec;
  --sand: #f3e9da;
  --rose: #d9a59a;
  --rose-deep: #b9776a;
  --line: rgba(47, 58, 39, .14);
  --white: #fff;
  --side: 300px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Josefin Sans", system-ui, sans-serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0 0 .5em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--green); }
strong { font-weight: 500; color: var(--ink); }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--caps);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Menú lateral ---------- */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  padding: 36px 28px 28px;
  background: var(--forest);
  color: rgba(255, 255, 255, .65);
  z-index: 40;
  overflow-y: auto;
}
.side__brand { display: flex; align-items: center; gap: 16px; }
.side__brand img { width: 74px; flex: none; }
.side__brand strong { display: block; font-family: var(--caps); font-weight: 400; letter-spacing: .22em; text-transform: uppercase; font-size: .85rem; color: var(--white); }
.side__brand p { margin: 6px 0 0; font-size: .8rem; line-height: 1.5; }

.menu { display: grid; gap: 4px; margin: 44px 0 auto; }
.menu a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 4px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.menu a span { font-family: var(--serif); font-size: .95rem; color: var(--rose); }
.menu a:hover { background: rgba(255, 255, 255, .05); color: var(--white); }
.menu a.is-active { background: rgba(255, 255, 255, .09); color: var(--white); }
.menu a.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--rose);
}

.side__foot { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }
.side__foot p { margin: 0; letter-spacing: .2em; text-transform: uppercase; font-size: .62rem; }
.side__agency { width: 150px; height: auto; margin: 10px 0 8px; }

.menu-btn { display: none; }

/* ---------- Contenido ---------- */
.main { margin-left: var(--side); min-height: 100vh; }
.view[hidden] { display: none; }

/* Portada */
.hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--forest); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47, 58, 39, .1) 20%, rgba(47, 58, 39, .85)); }
.hero__in { position: relative; z-index: 1; padding: 60px 64px 56px; max-width: 980px; }
.hero__logo { width: 104px; margin-bottom: 26px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); border-radius: 50%; }
.hero .eyebrow { color: var(--rose); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 4.6vw, 4.2rem); max-width: 14em; margin: 0; }
.hero h1 em { color: var(--sand); }

.intro { max-width: 1060px; padding: 56px 64px 90px; }
.intro__lead { font-size: 1.12rem; max-width: 46em; margin: 0; }

.deal { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; margin-top: 44px; }
.deal__col { padding: 30px 32px; background: var(--forest); color: rgba(255, 255, 255, .85); border-radius: 6px; }
.deal__col .eyebrow { color: var(--rose); }
.deal__col--you { background: var(--white); color: var(--ink-soft); border: 1px solid var(--line); }
.deal__col--you .eyebrow { color: var(--green); }
.deal ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.deal li { position: relative; padding-left: 22px; font-size: 1rem; }
.deal li::before { content: "✓"; position: absolute; left: 0; color: var(--rose); }
.deal__col--you li::before { color: var(--green); }
.deal__plus { display: grid; place-items: center; width: 54px; font-family: var(--serif); font-size: 2.2rem; color: var(--green); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 54px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(47, 58, 39, .3); border-color: var(--green); }
.card__n { font-family: var(--serif); font-size: 2.6rem; color: var(--sand); line-height: 1; position: absolute; top: 20px; right: 26px; }
.card h2 { font-size: 1.65rem; padding-right: 50px; }
.card p { margin: 0 0 24px; font-size: .95rem; }
.card__go {
  margin-top: auto;
  font-family: var(--caps);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
}

/* Vistas con iframe */
.view--frame { display: flex; flex-direction: column; height: 100vh; }
.view__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 40px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.view__bar h2 { font-size: 1.75rem; margin: 0; }
.view__tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.device { display: inline-flex; border: 1px solid var(--line); border-radius: 40px; padding: 3px; background: var(--white); }
.device button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 40px;
  font-family: var(--caps);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: .3s var(--ease);
}
.device button.is-active { background: var(--forest); color: var(--white); }

.btn-line {
  padding: 10px 18px;
  border: 1px solid var(--forest);
  border-radius: 40px;
  font-family: var(--caps);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  transition: .3s var(--ease);
}
.btn-line:hover { background: var(--forest); color: var(--white); }

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  background: var(--sand);
  transition: padding .4s var(--ease);
}
.stage iframe { width: 100%; height: 100%; border: 0; background: var(--white); display: block; }

.stage.is-mobile { padding: 28px 0; }
.stage.is-mobile iframe {
  width: 390px;
  max-width: calc(100% - 32px);
  border-radius: 36px;
  border: 10px solid var(--forest);
  box-shadow: 0 40px 80px -40px rgba(47, 58, 39, .5);
}

/* ---------- Navegación de presentación ---------- */
.pager {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  background: var(--forest);
  color: rgba(255, 255, 255, .7);
  border-radius: 40px;
  box-shadow: 0 20px 40px -20px rgba(47, 58, 39, .5);
  font-size: .8rem;
  overflow: hidden;
}
.pager button {
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 1rem;
  transition: background .3s var(--ease), opacity .3s;
}
.pager button:hover:not(:disabled) { background: var(--rose-deep); }
.pager button:disabled { opacity: .3; cursor: default; }
.pager__count strong { font-family: var(--serif); font-weight: 500; color: var(--white); font-size: 1.05rem; }
.pager__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .1); }
.pager__bar span { display: block; height: 100%; width: 0; background: var(--rose); transition: width .5s var(--ease); }

.has-frame .pager { top: 24px; bottom: auto; right: 32px; box-shadow: none; }
.has-frame .view__bar { padding-right: 230px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .side {
    transform: translateX(-100%);
    transition: transform .45s var(--ease);
    width: min(320px, 86vw);
  }
  .side.is-open { transform: none; box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .4); }
  .main { margin-left: 0; }

  .menu-btn {
    display: block;
    position: fixed;
    top: 14px; right: 14px;
    z-index: 50;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--forest);
  }
  .menu-btn span { position: absolute; left: 14px; right: 14px; height: 1px; background: var(--white); transition: .35s var(--ease); }
  .menu-btn span:first-child { top: 19px; }
  .menu-btn span:last-child { top: 26px; }
  .menu-btn[aria-expanded="true"] span:first-child { top: 22.5px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { top: 22.5px; transform: rotate(-45deg); }

  .hero__in { padding: 90px 24px 40px; }
  .intro { padding: 40px 24px 60px; }
  .view__bar { padding: 22px 76px 18px 20px; }
  .has-frame .view__bar { padding-right: 76px; }
  .has-frame .pager { top: auto; bottom: 16px; right: 16px; transform: scale(.88); transform-origin: bottom right; }
  .view--frame { height: 100dvh; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .deal { grid-template-columns: 1fr; }
  .deal__plus { width: auto; height: 44px; }
  .view__bar h2 { font-size: 1.35rem; }
  .device { display: none; }
  .stage.is-mobile { padding: 0; }
  .stage.is-mobile iframe { width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
}
