:root {
  --bg: #f4efec;
  --surface: #f8f4f1;
  --white: #ffffff;
  --text: #2f2927;
  --muted: #6e6460;
  --line: rgba(47, 41, 39, 0.08);

  --accent: #95536d;
  --accent-dark: #7f435c;
  --accent-soft: #e8ddd7;
  --gold: #c4a34c;
  --heading: #5d1f36;

  --shadow-soft: 0 18px 45px rgba(34, 24, 20, 0.08);
  --shadow-button: 0 12px 24px rgba(149, 83, 109, 0.22);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --container: 1200px;
  --section-space: 44px;
  --section-gap-line: 1px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

picture {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(100% - 28px, var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.section-divider {
  border-top: var(--section-gap-line) solid var(--line);
}

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 244, 241, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  max-width: 130px;
  line-height: 1.05;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent-dark);
  border: 1px solid rgba(149, 83, 109, 0.14);
  box-shadow: 0 10px 22px rgba(34, 24, 20, 0.08);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

.btn-full {
  width: 100%;
}

/* VISUAL BLOCKS */

.visual-block {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.section-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* STORY LOGIC */

.mariana-desktop-section {
  display: none;
}

.mariana-mobile,
.historia-mobile {
  display: block;
}

/* METHOD */

.method-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* EBOOK */

.ebook-shell {
  background: transparent;
}

.ebook-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  background: transparent;
}

.ebook-cover {
  display: flex;
  justify-content: center;
}

.ebook-cover-image {
  width: min(100%, 380px);
  height: auto;
  box-shadow: var(--shadow-soft);
}

.ebook-content {
  padding: 0;
}

.ebook-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ebook-title {
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.35rem;
  line-height: 0.95;
  font-weight: 600;
  color: var(--heading);
}

.ebook-text {
  margin-bottom: 26px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 620px;
}

.lead-form {
  display: grid;
  gap: 16px;
  max-width: 600px;
}

.field-group input {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(149, 83, 109, 0.14);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  color: var(--text);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.field-group input::placeholder {
  color: #b4a9a4;
}

.field-group input:focus {
  border-color: rgba(149, 83, 109, 0.45);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(149, 83, 109, 0.08);
}

.hidden-field {
  display: none;
}

/* FOOTER */

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* TABLET */

@media (min-width: 768px) {
  :root {
    --section-space: 60px;
  }

  .container {
    width: min(100% - 48px, var(--container));
  }

  .topbar-inner {
    min-height: 86px;
  }

  .brand {
    max-width: none;
    font-size: 1.55rem;
    line-height: 1;
  }

  .btn {
    min-height: 58px;
    padding: 16px 28px;
    border-radius: 16px;
  }

  .ebook-card {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 56px;
  }

  .ebook-cover {
    justify-content: flex-start;
  }

  .ebook-cover-image {
    width: 100%;
    max-width: 430px;
  }

  .ebook-title {
    font-size: 4.1rem;
  }

  .ebook-text {
    font-size: 1.02rem;
    max-width: 680px;
  }
}

/* DESKTOP */

@media (min-width: 992px) {
  :root {
    --section-space: 78px;
  }

  .topbar-inner {
    min-height: 92px;
  }

  .brand {
    font-size: 1.65rem;
  }

  .mariana-mobile,
  .historia-mobile {
    display: none;
  }

  .mariana-desktop-section {
    display: block;
  }

  .desktop-story-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 26px;
    align-items: start;
  }

  .method-cta-row {
    margin-top: 34px;
  }

  .ebook-title {
    font-size: 4.6rem;
  }

  .lead-form {
    gap: 18px;
  }

  .field-group input {
    min-height: 66px;
    font-size: 1.02rem;
  }

  .site-footer {
    padding: 30px 0 42px;
  }
}

/* LARGE DESKTOP */

@media (min-width: 1280px) {
  :root {
    --section-space: 92px;
  }

  .ebook-card {
    gap: 70px;
  }

  .ebook-title {
    font-size: 5rem;
  }
}
/* OCULTAR DESKTOP EN MOBILE */
.mariana-desktop {
  display: none;
}

/* MOSTRAR MOBILE */
.mariana-mobile,
.historia-mobile {
  display: block;
}

/* EN DESKTOP */
@media (min-width: 992px) {
  .mariana-mobile,
  .historia-mobile {
    display: none;
  }

  .mariana-desktop {
    display: block;
  }
}
/* HERO MOBILE AJUSTE */
@media (max-width: 480px) {

  .topbar-inner {
    min-height: 60px;
  }

  .brand {
    font-size: 0.85rem;
    max-width: 90px;
    line-height: 1;
  }

  .btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

}
@media (max-width: 480px) {

  .brand {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    max-width: none;
    white-space: nowrap;
  }

}