:root {
  --bg: #f7f1e8;
  --bg-soft: #fffaf3;
  --text: #2f302b;
  --muted: #6f665c;
  --green: #34452d;
  --green-soft: #e8eddf;
  --brown: #9b6c3d;
  --border: rgba(120, 86, 49, 0.22);
  --shadow: 0 24px 70px rgba(73, 52, 32, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 241, 232, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 600;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 1rem;
}

.main-nav a:hover {
  color: var(--green);
}

.hero {
  min-height: 74vh;
  display: flex;
  align-items: center;
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.hero-home {
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 0.46) 0%, rgba(247, 241, 232, 0.34) 48%, rgba(247, 241, 232, 0.62) 100%),
    url("../assets/images/home/studiore-hero-bg.png") center / cover no-repeat;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brown);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--green);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-content p {
  max-width: 680px;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--green);
  font-size: 1rem;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: var(--green);
  background: rgba(255, 250, 243, 0.8);
}

.section {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.split > div {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.86);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.site-footer {
  padding: 34px clamp(20px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  background: var(--green);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.page-hero {
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.page-hero div {
  max-width: 840px;
}

.content-placeholder {
  padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 72px);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cards-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.6rem);
  }

  .hero-content p {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }
}

.instagram-section {
  background:
    radial-gradient(circle at top right, rgba(155, 108, 61, 0.11), transparent 34%),
    var(--bg);
}

.instagram-card {
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.instagram-card h3 {
  margin-bottom: 8px;
}

.instagram-card p {
  margin-bottom: 0;
}

.button-inline {
  margin-top: 20px;
}

@media (max-width: 760px) {
  .instagram-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .instagram-card .button {
    width: 100%;
  }
}

.home-feature-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.image-card-link {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 44px rgba(73, 52, 32, 0.11);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.image-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 69, 45, 0.34);
  box-shadow: 0 24px 56px rgba(73, 52, 32, 0.16);
}

.image-card-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 900px) {
  .home-feature-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-home {
    background-position: center top;
  }

  .home-feature-cards {
    gap: 18px;
  }

  .image-card-link {
    border-radius: 20px;
  }
}

.inner-page {
  min-height: 100vh;
  background: var(--bg);
}

.inner-hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 0.84) 0%, rgba(247, 241, 232, 0.78) 48%, rgba(247, 241, 232, 0.88) 100%),
    url("../assets/images/home/studiore-hero-bg.png") center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.inner-hero-content {
  max-width: 860px;
}

.inner-hero h1 {
  margin-bottom: 24px;
}

.inner-empty {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
  background: var(--bg-soft);
}

.empty-card {
  max-width: 920px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.empty-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .inner-hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
    background-position: center top;
  }
}

.restoration-list-section,
.restoration-content {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.restoration-list {
  display: grid;
  gap: 28px;
}

.restoration-list-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.restoration-list-image {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #efe8dd;
}

.restoration-list-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.restoration-list-body h2 a {
  color: inherit;
}

.restoration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.restoration-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(52, 69, 45, 0.08);
  color: var(--green);
  border: 1px solid rgba(52, 69, 45, 0.14);
  font-size: 0.95rem;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.restoration-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.summary-card,
.restoration-text-card,
.note-card,
.cta-panel {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.summary-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.summary-card p {
  margin-bottom: 0;
}

.restoration-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  margin-bottom: 34px;
}

.restoration-section {
  margin-top: 34px;
}

.detail-list,
.step-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.restoration-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.gallery-card-large {
  grid-column: 1 / -1;
}

.gallery-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 680px;
}

.gallery-card figcaption {
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 980px) {
  .restoration-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restoration-list-card,
  .restoration-layout,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .restoration-summary-grid,
  .restoration-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-card-large {
    grid-column: auto;
  }

  .restoration-list-card {
    padding: 18px;
  }

  .summary-card,
  .restoration-text-card,
  .note-card,
  .cta-panel {
    padding: 20px;
  }
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-contact-link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .footer-contact-link {
    width: fit-content;
  }
}

/* Fondo específico para móvil/tablet */
@media (max-width: 900px) {
  .hero-home,
  .inner-hero {
    background:
      linear-gradient(
        180deg,
        rgba(247, 241, 232, 0.58) 0%,
        rgba(247, 241, 232, 0.72) 42%,
        rgba(247, 241, 232, 0.86) 100%
      ),
      url("../assets/images/home/studiore-hero-bg-mobile.png") center center / cover no-repeat;
  }
}

/* Ajuste fino para móviles estrechos */
@media (max-width: 560px) {
  .hero-home,
  .inner-hero {
    background:
      linear-gradient(
        180deg,
        rgba(247, 241, 232, 0.64) 0%,
        rgba(247, 241, 232, 0.78) 48%,
        rgba(247, 241, 232, 0.90) 100%
      ),
      url("../assets/images/home/studiore-hero-bg-mobile.png") center center / cover no-repeat;
  }
}

/* Mejora bloque Instagram home */
.instagram-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: stretch;
}

.instagram-home-copy {
  max-width: 760px;
}

.instagram-home-copy h2 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.instagram-home-copy p {
  max-width: 700px;
}

.instagram-profile-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.instagram-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brown);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.instagram-profile-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.instagram-profile-card p {
  margin-bottom: 0;
}

.instagram-profile-card .button {
  width: fit-content;
}

/* CTA visible para tarjetas pulsables en móvil */
.image-card-link {
  position: relative;
}

.mobile-card-cta {
  display: none;
}

@media (max-width: 900px) {
  .instagram-home-panel {
    grid-template-columns: 1fr;
  }

  .instagram-profile-card .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .mobile-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 16px;
    color: #fff;
    background: var(--green);
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
  }

  .image-card-link {
    border: 2px solid rgba(52, 69, 45, 0.18);
  }

  .image-card-link::after {
    content: "›";
    position: absolute;
    right: 16px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    pointer-events: none;
  }
}

@media (max-width: 560px) {
  .instagram-home-copy h2 {
    font-size: clamp(2.1rem, 13vw, 3.4rem);
  }

  .instagram-profile-card {
    padding: 24px;
  }
}

/* Mejora visual de tarjetas pulsables en móvil */
@media (max-width: 760px) {
  .image-card-link {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(73, 52, 32, 0.16);
    border: 2px solid rgba(52, 69, 45, 0.16);
    background: #f8f3ec;
  }

  .image-card-link img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    background: rgba(52, 69, 45, 0.96);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
  }

  .mobile-card-cta::after {
    content: "→";
    font-size: 1.1rem;
    line-height: 1;
  }
}

.restoration-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 30px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.9);
  color: var(--green);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.category-pill:hover,
.category-pill.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}

.restoration-card-button {
  padding: 0;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.restoration-card-button:focus-visible,
.category-pill:focus-visible {
  outline: 3px solid rgba(52, 69, 45, 0.28);
  outline-offset: 4px;
}

.restoration-detail-anchor {
  padding-top: 0;
}

.restoration-dynamic-detail {
  scroll-margin-top: 120px;
}

.restoration-detail-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

@media (max-width: 760px) {
  .restoration-category-filter {
    gap: 10px;
  }

  .category-pill {
    width: 100%;
  }

  .restoration-dynamic-detail {
    scroll-margin-top: 90px;
  }
}

.learning-list-section,
.learning-content {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.learning-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.learning-list-card {
  display: flex;
  min-height: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.learning-list-body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.learning-list-body .hero-actions {
  margin-top: auto;
}

.learning-detail-anchor {
  padding-top: 0;
}

.learning-dynamic-detail {
  scroll-margin-top: 120px;
}

.learning-article-card {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.learning-section-block + .learning-section-block {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.learning-section-block h3 {
  margin-bottom: 12px;
}

.learning-section-block p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .learning-list {
    grid-template-columns: 1fr;
  }

  .learning-dynamic-detail {
    scroll-margin-top: 90px;
  }
}

@media (max-width: 560px) {
  .learning-list-card {
    padding: 22px;
  }

  .learning-article-card {
    padding: 24px;
  }
}

.learning-list-card {
  overflow: hidden;
  padding: 0;
}

.learning-list-image {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.learning-list-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.learning-list-image:hover img {
  transform: scale(1.03);
}

.learning-list-body {
  padding: 28px;
}

.learning-hero-image {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.learning-hero-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  display: block;
}

.affiliate-box {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(155, 108, 61, 0.11), transparent 34%),
    rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.affiliate-box-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.affiliate-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.affiliate-product-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 22px;
  background: rgba(247, 241, 232, 0.72);
  border: 1px solid rgba(120, 86, 49, 0.2);
}

.affiliate-product-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.affiliate-product-card p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.affiliate-product-card .button {
  margin-top: auto;
  width: fit-content;
}

@media (max-width: 980px) {
  .affiliate-products-grid {
    grid-template-columns: 1fr;
  }

  .affiliate-product-card .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .learning-list-body {
    padding: 22px;
  }

  .affiliate-box {
    padding: 24px;
  }
}

.affiliate-footer-disclosure {
  max-width: 760px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 760px) {
  .affiliate-footer-disclosure {
    text-align: left;
    font-size: 0.86rem;
  }
}

.services-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.services-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 2.2rem;
  line-height: 1;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card p {
  margin-bottom: 18px;
}

.service-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.process-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
}

.process-step h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.process-step p {
  margin-bottom: 0;
  font-size: 1rem;
}

.services-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 48px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(155, 108, 61, 0.11), transparent 34%),
    rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.services-cta-panel > div:first-child {
  max-width: 760px;
}

.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .services-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .services-cta-actions,
  .services-cta-actions .button {
    width: 100%;
  }
}

.about-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.about-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-story-card {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.about-story-card p {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.8;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-value-card {
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.about-value-card span {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 2.2rem;
  line-height: 1;
}

.about-value-card h3 {
  margin-bottom: 12px;
}

.about-value-card p {
  margin-bottom: 0;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.about-split > div:first-child,
.about-note {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.about-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(155, 108, 61, 0.12), transparent 36%),
    rgba(255, 250, 243, 0.94);
}

.about-note h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.about-manifesto {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.manifesto-list p {
  margin: 0;
  padding: 18px 22px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(73, 52, 32, 0.06);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.about-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 48px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(52, 69, 45, 0.12), transparent 34%),
    rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.about-cta-panel > div:first-child {
  max-width: 760px;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .about-values-grid,
  .about-split {
    grid-template-columns: 1fr;
  }

  .about-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .manifesto-list p {
    border-radius: 22px;
    text-align: left;
  }

  .about-cta-actions,
  .about-cta-actions .button {
    width: 100%;
  }
}

.contact-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.contact-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.contact-form,
.contact-side-card,
.contact-final-card {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label,
.form-check {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(120, 86, 49, 0.22);
  background: rgba(247, 241, 232, 0.72);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 170px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(52, 69, 45, 0.7);
  box-shadow: 0 0 0 4px rgba(52, 69, 45, 0.12);
  background: rgba(255, 250, 243, 0.98);
}

.form-field input[type="file"] {
  padding: 12px;
  cursor: pointer;
}

.form-help,
.form-status {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 24px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.contact-submit {
  width: fit-content;
}

.form-status {
  padding: 14px 16px;
  margin-top: 18px;
  border-radius: 16px;
  background: rgba(52, 69, 45, 0.08);
  border: 1px solid rgba(52, 69, 45, 0.16);
}

.contact-side-card {
  position: sticky;
  top: 100px;
}

.contact-side-card h3 {
  margin-bottom: 18px;
}

.contact-tips {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-note {
  margin-top: 28px;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(155, 108, 61, 0.12), transparent 36%),
    rgba(247, 241, 232, 0.78);
  border: 1px solid rgba(120, 86, 49, 0.18);
}

.contact-note h4 {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 1.2rem;
}

.contact-note p {
  font-size: 1rem;
}

.contact-final-card {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.contact-final-card p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit,
  .contact-note .button {
    width: 100%;
  }

  .contact-final-card {
    text-align: left;
  }
}

.admin-page {
  min-height: 100vh;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(circle at top left, rgba(155, 108, 61, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(52, 69, 45, 0.14), transparent 34%),
    var(--bg);
}

.admin-login-card {
  width: min(100%, 520px);
  padding: clamp(30px, 5vw, 48px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(73, 52, 32, 0.16);
}

.admin-login-heading {
  margin-bottom: 28px;
}

.admin-login-heading h1 {
  margin-bottom: 12px;
}

.admin-alert {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #7a2d20;
  background: rgba(160, 62, 40, 0.1);
  border: 1px solid rgba(160, 62, 40, 0.22);
  font-weight: 700;
}

.admin-login-button {
  width: 100%;
  margin-top: 6px;
}

.admin-login-note {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.admin-dashboard-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.admin-action-card {
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.admin-action-card span {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 2.2rem;
  line-height: 1;
}

.admin-action-card h3 {
  margin-bottom: 12px;
}

.admin-action-card p {
  margin-bottom: 22px;
}

.admin-action-card button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .admin-actions-grid {
    grid-template-columns: 1fr;
  }
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-admin-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.admin-home-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.admin-home-link:hover {
  color: var(--brown);
  transform: translateX(-3px);
}

.footer-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(52, 69, 45, 0.42);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-app-link:hover {
  background: rgba(52, 69, 45, 0.72);
  border-color: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.app-install-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.app-install-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.app-install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-install-card,
.app-note-card {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.app-install-icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 2.4rem;
  line-height: 1;
}

.app-install-card ol {
  margin: 20px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.app-install-card li + li {
  margin-top: 8px;
}

.app-note-card {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 900px) {
  .app-install-grid {
    grid-template-columns: 1fr;
  }

  .app-note-card {
    text-align: left;
  }
}

.admin-editor-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.admin-editor-form {
  margin: 0;
}

.admin-success {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #244024;
  background: rgba(52, 69, 45, 0.12);
  border: 1px solid rgba(52, 69, 45, 0.24);
  font-weight: 700;
}

.admin-product-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-product-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(247, 241, 232, 0.72);
  border: 1px solid rgba(120, 86, 49, 0.18);
}

.admin-product-item h4 {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 1.05rem;
}

.admin-product-item p {
  margin-bottom: 8px;
  font-size: 0.94rem;
}

.admin-product-item code {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(52, 69, 45, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .admin-editor-layout {
    grid-template-columns: 1fr;
  }
}

/* Ajuste móvil para tarjetas de Aprende */
@media (max-width: 760px) {
  .learning-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .learning-list-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
  }

  .learning-list-image {
    width: 100%;
    flex: none;
    display: block;
    border-bottom: 1px solid var(--border);
  }

  .learning-list-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
  }

  .learning-list-body {
    width: 100%;
    padding: 22px;
  }

  .learning-list-body .eyebrow {
    margin-bottom: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.13em;
  }

  .learning-list-body h2 {
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
    line-height: 1.04;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .learning-list-body p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .learning-list-body .restoration-tags {
    margin-bottom: 20px;
  }

  .learning-list-body .hero-actions,
  .learning-list-body .hero-actions .button {
    width: 100%;
  }
}

/* Ajuste extra para móviles estrechos */
@media (max-width: 430px) {
  .learning-list-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .learning-list-body h2 {
    font-size: clamp(1.45rem, 7.5vw, 1.85rem);
  }

  .learning-list-body {
    padding: 20px;
  }
}

.admin-form-block {
  margin: 34px 0;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 24px;
  background: rgba(247, 241, 232, 0.56);
  border: 1px solid rgba(120, 86, 49, 0.16);
}

.admin-form-block h2 {
  margin-bottom: 10px;
}

.admin-form-block > p {
  margin-bottom: 22px;
}

.admin-repeat-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid rgba(120, 86, 49, 0.16);
}

.admin-repeat-card + .admin-repeat-card {
  margin-top: 18px;
}

.admin-repeat-card h3 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 1.25rem;
}

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-checkbox-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid rgba(120, 86, 49, 0.18);
  cursor: pointer;
}

.admin-checkbox-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.admin-checkbox-card span {
  display: grid;
  gap: 4px;
}

.admin-checkbox-card strong {
  color: var(--green);
}

.admin-checkbox-card small {
  color: var(--muted);
}

.admin-checkbox-card code {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(52, 69, 45, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .admin-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .admin-repeat-card {
    padding: 18px;
  }
}

.content-hidden {
  display: none !important;
}

.content-back-button {
  margin-bottom: 28px;
}

.learning-content:not(.content-hidden),
.restoration-content:not(.content-hidden) {
  padding-top: clamp(28px, 5vw, 64px);
}

@media (max-width: 760px) {
  .content-back-button {
    width: 100%;
    margin-bottom: 22px;
  }

  .learning-content:not(.content-hidden),
  .restoration-content:not(.content-hidden) {
    padding-top: 28px;
  }
}

.content-bottom-back {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.mobile-category-select-wrap {
  display: none;
}

@media (max-width: 760px) {
  .mobile-category-select-wrap {
    display: block;
    margin: 0 0 22px;
  }

  .mobile-category-select-label {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-weight: 700;
    font-size: 0.95rem;
  }

  .mobile-category-select {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(120, 86, 49, 0.24);
    background: rgba(255, 250, 243, 0.96);
    color: var(--green);
    font: inherit;
    font-weight: 700;
    outline: none;
    box-shadow: 0 10px 28px rgba(73, 52, 32, 0.06);
  }

  .mobile-category-select:focus {
    border-color: rgba(52, 69, 45, 0.68);
    box-shadow: 0 0 0 4px rgba(52, 69, 45, 0.12);
  }

  .restoration-category-filter {
    display: none;
  }

  .content-bottom-back .content-back-button {
    width: 100%;
  }
}

.youtube-box {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(52, 69, 45, 0.12), transparent 34%),
    rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.youtube-box-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.youtube-frame-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: rgba(52, 69, 45, 0.12);
  border: 1px solid rgba(120, 86, 49, 0.18);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.1);
}

.youtube-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .youtube-box {
    padding: 24px;
  }

  .youtube-frame-wrap {
    border-radius: 18px;
  }
}

.admin-quick-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(52, 69, 45, 0.12), transparent 34%),
    rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.admin-quick-panel > div {
  max-width: 760px;
}

.admin-content-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.admin-content-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.admin-content-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.admin-content-card h3 {
  margin-bottom: 12px;
}

.admin-content-card p {
  margin-bottom: 0;
}

.admin-content-card code {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(52, 69, 45, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.admin-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-content-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(52, 69, 45, 0.08);
  border: 1px solid rgba(52, 69, 45, 0.14);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

@media (max-width: 980px) {
  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .admin-quick-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .admin-content-actions,
  .admin-content-actions .button,
  .admin-quick-panel .button {
    width: 100%;
  }
}

.admin-info-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
}

.admin-info-list code {
  display: block;
  overflow-wrap: anywhere;
}

.social-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.social-preview-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
}

.social-preview-card img {
  width: 100%;
  border-radius: 18px;
  display: block;
  box-shadow: 0 12px 32px rgba(73, 52, 32, 0.12);
}

.social-caption-field {
  margin-top: 28px;
}

@media (max-width: 760px) {
  .social-preview-grid {
    grid-template-columns: 1fr;
  }

  .social-preview-card .button,
  .social-caption-field .button {
    width: 100%;
  }
}

.social-carousel-shell {
  display: grid;
  gap: 18px;
  margin: 28px 0 18px;
}

.social-carousel {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
}

.social-carousel-viewport {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-carousel-slide {
  display: none;
  width: min(100%, 620px);
  margin: 0;
}

.social-carousel-slide.is-active {
  display: block;
}

.social-carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(73, 52, 32, 0.12);
  background: rgba(255, 250, 243, 0.95);
}

.social-carousel-nav {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.96);
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(73, 52, 32, 0.08);
}

.social-carousel-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.social-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: transparent;
  cursor: pointer;
}

.social-carousel-dot.is-active {
  background: var(--green);
}

.social-carousel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.social-carousel-counter {
  min-width: 70px;
  font-weight: 700;
  color: var(--green);
}

.social-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-download-single {
  min-width: 140px;
}

@media (max-width: 760px) {
  .social-carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .social-carousel-nav {
    width: 44px;
    height: 44px;
    font-size: 1.55rem;
  }

  .social-carousel-slide {
    width: 100%;
  }

  .social-carousel-toolbar .button,
  .social-download-list .button {
    width: 100%;
  }

  .social-download-list {
    grid-template-columns: 1fr;
  }
}

/* Footer homogéneo Studio Re */
.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.4fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: 36px clamp(24px, 5vw, 72px);
}

.site-footer .footer-brand p,
.site-footer .affiliate-note {
  margin: 0;
}

.site-footer .affiliate-note {
  max-width: 640px;
  text-align: center;
  line-height: 1.55;
}

.site-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer .footer-links a {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .site-footer .affiliate-note {
    margin: 0 auto;
  }

  .site-footer .footer-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 30px 20px;
  }

  .site-footer .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .site-footer .footer-links a {
    width: 100%;
    text-align: center;
  }
}

/* Corrección final footer Studio Re */
.site-footer {
  background: var(--green);
  color: #fffaf3;
}

.site-footer strong,
.site-footer p,
.site-footer .affiliate-note {
  color: #fffaf3;
}

.site-footer .footer-brand strong {
  color: #fffaf3;
}

.site-footer .footer-brand p {
  color: rgba(255, 250, 243, 0.9);
}

.site-footer .footer-links {
  gap: 10px;
}

.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 250, 243, 0.55);
  border-radius: 999px;
  color: #fffaf3;
  text-decoration: none;
  background: transparent;
  line-height: 1;
}

.site-footer .footer-links a:hover {
  background: rgba(255, 250, 243, 0.12);
  color: #fffaf3;
}

.site-footer .footer-links a:visited {
  color: #fffaf3;
}

.site-footer .footer-admin-link {
  opacity: 0.86;
}

@media (min-width: 981px) {
  .site-footer {
    grid-template-columns: minmax(180px, 0.85fr) minmax(380px, 1.25fr) minmax(340px, auto);
    column-gap: clamp(18px, 3vw, 38px);
  }

  .site-footer .footer-links {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-links {
    gap: 8px;
  }

  .site-footer .footer-links a {
    width: 100%;
  }
}

/* HOME CARD IMAGE BALANCE */
.home-card-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.home-card-image--aprende {
  max-width: 100%;
}

.home-card-image--reforma {
  max-width: 92%;
}

@media (max-width: 760px) {
  .home-card-image--aprende {
    max-width: 100%;
  }

  .home-card-image--reforma {
    max-width: 94%;
  }
}

/* Reformas dinámicas */
.renovation-list-section,
.renovation-content {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.renovation-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.renovation-category-filter button {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.88);
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.renovation-category-filter button.is-active {
  background: var(--green);
  color: #fffaf3;
}

.renovation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.renovation-list-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(73, 52, 32, 0.1);
}

.renovation-list-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.renovation-list-body {
  padding: clamp(24px, 4vw, 36px);
}

.renovation-list-body h2 {
  margin-bottom: 14px;
}

.renovation-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.renovation-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(52, 69, 45, 0.08);
  border: 1px solid rgba(52, 69, 45, 0.14);
  font-size: 0.85rem;
  font-weight: 700;
}

.renovation-detail-article {
  max-width: 1180px;
  margin: 0 auto;
}

.detail-hero {
  margin-bottom: clamp(38px, 6vw, 74px);
}

.detail-hero h1 {
  max-width: 900px;
}

.detail-hero p {
  max-width: 820px;
}

.renovation-section {
  margin-top: clamp(44px, 7vw, 82px);
}

.before-after-grid,
.renovation-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.before-after-grid figure,
.renovation-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(73, 52, 32, 0.08);
}

.before-after-grid img,
.renovation-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.before-after-grid figcaption,
.renovation-gallery figcaption {
  padding: 14px 18px;
  color: var(--green);
  font-weight: 700;
}

.renovation-steps {
  display: grid;
  gap: 18px;
}

.renovation-steps article {
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.92);
  border: 1px solid var(--border);
}

.tag-list,
.tips-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

@media (max-width: 980px) {
  .renovation-list,
  .before-after-grid,
  .renovation-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .renovation-list-section,
  .renovation-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .renovation-category-filter {
    display: none;
  }

  .renovation-list {
    gap: 22px;
  }

  .renovation-list-body .hero-actions,
  .renovation-list-body .button {
    width: 100%;
  }
}

/* Cuaderno privado de formación */
.notebook-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
  padding: clamp(42px, 7vw, 82px) clamp(20px, 5vw, 72px);
}

.notebook-sidebar,
.notebook-main,
.notebook-view-card {
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(73, 52, 32, 0.08);
}

.notebook-sidebar {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.notebook-filter {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.notebook-filter label {
  color: var(--green);
  font-weight: 800;
}

.notebook-filter select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.96);
  color: var(--green);
  font: inherit;
  font-weight: 700;
}

.notebook-note-list {
  display: grid;
  gap: 10px;
}

.notebook-note-link {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: rgba(52, 69, 45, 0.05);
  border: 1px solid rgba(52, 69, 45, 0.08);
}

.notebook-note-link strong {
  color: var(--green);
}

.notebook-note-link span {
  color: var(--muted);
  font-size: 0.9rem;
}

.notebook-note-link.is-active {
  background: var(--green);
  color: #fffaf3;
}

.notebook-note-link.is-active strong,
.notebook-note-link.is-active span {
  color: #fffaf3;
}

.notebook-main {
  padding: clamp(26px, 4vw, 42px);
  min-height: 520px;
}

.notebook-main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.notebook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notebook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.notebook-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(52, 69, 45, 0.08);
  color: var(--green);
  border: 1px solid rgba(52, 69, 45, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
}

.notebook-content-preview h1,
.notebook-content-preview h2,
.notebook-content-preview h3,
.notebook-view-section h1,
.notebook-view-section h2,
.notebook-view-section h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.notebook-content-preview ul,
.notebook-view-section ul {
  padding-left: 22px;
}

.notebook-form {
  max-width: 1080px;
  margin: 0 auto;
}

.notebook-view {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px);
}

.notebook-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.notebook-view-card {
  padding: clamp(28px, 5vw, 54px);
}

.notebook-view-card h1 {
  max-width: 840px;
}

.notebook-view-section {
  margin-top: 34px;
}

.notebook-view-section a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 980px) {
  .notebook-layout {
    grid-template-columns: 1fr;
  }

  .notebook-sidebar {
    position: static;
  }

  .notebook-main-header {
    flex-direction: column;
  }
}

@media print {
  .no-print,
  .site-header {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .notebook-view {
    padding: 0;
  }

  .notebook-view-card {
    box-shadow: none;
    border: 0;
  }
}

/* Imágenes dentro del cuaderno privado */
.notebook-inline-image {
  margin: 28px 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(73, 52, 32, 0.08);
}

.notebook-inline-image img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: rgba(52, 69, 45, 0.04);
}

.notebook-inline-image figcaption {
  padding: 12px 16px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
}

.notebook-images-help {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(52, 69, 45, 0.06);
  border: 1px solid rgba(52, 69, 45, 0.12);
}

.notebook-image-token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.notebook-image-token-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--border);
}

.notebook-image-token-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(52, 69, 45, 0.1);
}

.notebook-image-token-card code {
  display: block;
  white-space: normal;
  word-break: break-word;
  padding: 10px;
  border-radius: 12px;
  background: rgba(52, 69, 45, 0.08);
  color: var(--green);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .notebook-image-token-grid {
    grid-template-columns: 1fr;
  }

  .notebook-inline-image img {
    max-height: 520px;
  }
}

@media print {
  .notebook-inline-image {
    box-shadow: none;
    break-inside: avoid;
  }

  .notebook-inline-image img {
    max-height: 620px;
  }
}

/* Ayuda del editor del cuaderno */
.notebook-editor-help {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(52, 69, 45, 0.06);
  border: 1px solid rgba(52, 69, 45, 0.14);
}

.notebook-editor-help strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.notebook-editor-help p {
  margin: 8px 0;
}

.notebook-editor-help code {
  display: block;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.95);
  border: 1px solid var(--border);
  color: var(--green);
  white-space: normal;
  word-break: break-word;
}

/* Editor mejorado del cuaderno privado - Fase 1 */
.notebook-editor-enhanced {
  display: grid;
  gap: 12px;
}

.notebook-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(52, 69, 45, 0.06);
  border: 1px solid rgba(52, 69, 45, 0.14);
}

.notebook-editor-button {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(52, 69, 45, 0.2);
  background: rgba(255, 250, 243, 0.96);
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.notebook-editor-button:hover {
  background: var(--green);
  color: #fffaf3;
}

.notebook-editor-preview {
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(73, 52, 32, 0.08);
}

.notebook-editor-preview-title {
  margin-bottom: 16px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.notebook-editor-preview-content h1,
.notebook-editor-preview-content h2,
.notebook-editor-preview-content h3 {
  margin-top: 22px;
  margin-bottom: 10px;
}

.notebook-editor-preview-content p {
  margin: 10px 0;
}

.notebook-editor-preview-content ul {
  padding-left: 22px;
}

.notebook-editor-preview-content hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.notebook-preview-image-placeholder {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(52, 69, 45, 0.06);
  border: 1px dashed rgba(52, 69, 45, 0.28);
}

.notebook-preview-image-placeholder div {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.86);
  color: var(--green);
  font-weight: 900;
}

.notebook-preview-image-placeholder figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Cuaderno privado - editor tipo página de documentación */
.notebook-form {
  max-width: min(1440px, calc(100% - 32px));
  width: 100%;
}

.notebook-confluence-editor {
  display: grid;
  gap: 28px;
}

.notebook-page-properties {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid var(--border);
}

.notebook-title-field input {
  min-height: 58px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--green);
}

.notebook-properties-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.notebook-document-page {
  padding: clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background: #fffdf8;
  border: 1px solid rgba(73, 52, 32, 0.12);
  box-shadow: 0 24px 70px rgba(73, 52, 32, 0.12);
}

.notebook-document-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}

.notebook-document-heading h2 {
  margin: 0;
}

.notebook-document-heading p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.notebook-content-field label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.notebook-editor-enhanced {
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(73, 52, 32, 0.14);
  overflow: hidden;
}

.notebook-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(73, 52, 32, 0.12);
  background: #fffaf3;
}

.notebook-editor-textarea {
  min-height: 620px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  font-size: 1.05rem;
  line-height: 1.75;
  padding: clamp(22px, 4vw, 42px) !important;
  resize: vertical;
}

.notebook-editor-textarea:focus {
  outline: 2px solid rgba(52, 69, 45, 0.16);
  outline-offset: -2px;
}

.notebook-editor-help {
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .notebook-properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notebook-document-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .notebook-form {
    max-width: calc(100% - 20px);
  }

  .notebook-properties-grid {
    grid-template-columns: 1fr;
  }

  .notebook-document-page {
    padding: 20px;
    border-radius: 22px;
  }

  .notebook-editor-textarea {
    min-height: 480px;
  }
}

/* Editor cuaderno - subida directa de imágenes */
.notebook-editor-status {
  margin: 10px 12px 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(52, 69, 45, 0.14);
}

.notebook-editor-status[data-type="info"] {
  background: rgba(52, 69, 45, 0.08);
  color: var(--green);
}

.notebook-editor-status[data-type="success"] {
  background: rgba(52, 69, 45, 0.12);
  color: var(--green);
}

.notebook-editor-status[data-type="warning"] {
  background: rgba(171, 116, 49, 0.12);
  color: #7a4d16;
}

.notebook-editor-status[data-type="error"] {
  background: rgba(151, 49, 49, 0.12);
  color: #8a2222;
}

/* Preview real de imágenes en el editor del cuaderno */
.notebook-preview-image-real {
  margin: 24px 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(73, 52, 32, 0.08);
}

.notebook-preview-image-real img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: rgba(52, 69, 45, 0.04);
}

.notebook-preview-image-real figcaption {
  padding: 12px 16px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Cuaderno privado - preview lateral automática */
.admin-editor-section:has(.notebook-form) {
  padding-left: clamp(12px, 2vw, 32px);
  padding-right: clamp(12px, 2vw, 32px);
}

.notebook-form {
  max-width: min(1880px, calc(100vw - 32px));
  width: 100%;
}

.notebook-document-page {
  padding: clamp(22px, 3vw, 42px);
}

.notebook-editor-split {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(420px, 0.92fr);
  gap: 0;
  align-items: stretch;
}

.notebook-editor-split .notebook-editor-toolbar,
.notebook-editor-split .notebook-editor-status {
  grid-column: 1 / -1;
}

.notebook-editor-split .notebook-editor-toolbar {
  border-bottom: 1px solid rgba(73, 52, 32, 0.12);
}

.notebook-editor-split .notebook-editor-textarea {
  min-height: calc(100vh - 260px);
  height: min(920px, calc(100vh - 260px));
  border-right: 1px solid rgba(73, 52, 32, 0.12) !important;
}

.notebook-editor-split .notebook-editor-preview {
  display: block;
  min-height: calc(100vh - 260px);
  height: min(920px, calc(100vh - 260px));
  overflow: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #fffdf8;
}

.notebook-editor-split .notebook-editor-preview-title {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: calc(clamp(18px, 3vw, 28px) * -1) calc(clamp(18px, 3vw, 28px) * -1) 18px;
  padding: 14px clamp(18px, 3vw, 28px);
  background: #fffaf3;
  border-bottom: 1px solid rgba(73, 52, 32, 0.12);
}

.notebook-editor-split .notebook-editor-preview-content {
  font-size: 1.02rem;
  line-height: 1.72;
}

.notebook-editor-split .notebook-preview-image-real img {
  max-height: 520px;
}

/* Pantallas medianas: seguimos usando dos columnas, pero más compactas */
@media (max-width: 1280px) {
  .notebook-editor-split {
    grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.9fr);
  }

  .notebook-editor-split .notebook-editor-textarea,
  .notebook-editor-split .notebook-editor-preview {
    min-height: 680px;
    height: 680px;
  }
}

/* Móvil/tablet: editor arriba y preview debajo */
@media (max-width: 980px) {
  .notebook-editor-split {
    grid-template-columns: 1fr;
  }

  .notebook-editor-split .notebook-editor-textarea {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(73, 52, 32, 0.12) !important;
    min-height: 520px;
    height: auto;
  }

  .notebook-editor-split .notebook-editor-preview {
    min-height: 420px;
    height: auto;
    max-height: none;
  }
}

/* Cuaderno privado - bloques especiales tipo Confluence */
.notebook-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(52, 69, 45, 0.14);
  background: rgba(52, 69, 45, 0.06);
}

.notebook-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.96rem;
}

.notebook-callout p {
  margin: 8px 0;
}

.notebook-callout--nota {
  background: rgba(52, 69, 45, 0.07);
  border-color: rgba(52, 69, 45, 0.18);
}

.notebook-callout--idea {
  background: rgba(171, 116, 49, 0.1);
  border-color: rgba(171, 116, 49, 0.22);
}

.notebook-callout--aviso {
  background: rgba(184, 130, 45, 0.12);
  border-color: rgba(184, 130, 45, 0.28);
}

.notebook-callout--error {
  background: rgba(151, 49, 49, 0.1);
  border-color: rgba(151, 49, 49, 0.24);
}

.notebook-code-block {
  margin: 22px 0;
  padding: 18px;
  overflow: auto;
  border-radius: 18px;
  background: #2f342c;
  color: #fffaf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.6;
}

.notebook-code-block code {
  color: inherit;
  white-space: pre;
}

.notebook-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(52, 69, 45, 0.05);
  color: var(--text);
}

.notebook-check-item input {
  margin-top: 4px;
  accent-color: var(--green);
}

.notebook-check-item.is-checked span {
  color: var(--muted);
  text-decoration: line-through;
}

@media print {
  .notebook-callout,
  .notebook-code-block,
  .notebook-check-item {
    break-inside: avoid;
  }
}

/* Cuaderno - exportar PDF desde listado */
@media print {
  .notebook-page .site-header,
  .notebook-page .inner-hero,
  .notebook-page .notebook-sidebar,
  .notebook-page .notebook-actions,
  .notebook-page .no-print {
    display: none !important;
  }

  .notebook-page {
    background: #ffffff !important;
  }

  .notebook-page .notebook-layout {
    display: block !important;
    padding: 0 !important;
  }

  .notebook-page .notebook-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .notebook-page .notebook-main-header {
    display: block !important;
    margin-bottom: 18px !important;
  }

  .notebook-page .notebook-content-preview {
    display: block !important;
  }

  .notebook-page .notebook-inline-image,
  .notebook-page .notebook-preview-image-real,
  .notebook-page .notebook-callout,
  .notebook-page .notebook-code-block {
    break-inside: avoid;
  }
}

/* Título principal dentro de la preview del editor */
.notebook-preview-main-title {
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--green);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.95;
}

/* Cuaderno privado - buscador lateral */
.notebook-filter input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.96);
  color: var(--green);
  font: inherit;
  font-weight: 700;
}

.notebook-filter input[type="search"]::placeholder {
  color: rgba(52, 69, 45, 0.55);
}

.notebook-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.notebook-filter-actions .button {
  width: 100%;
  min-height: 42px;
  padding-left: 12px;
  padding-right: 12px;
}

.notebook-filter-count {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.notebook-empty-results {
  padding: 16px;
  border-radius: 18px;
  background: rgba(52, 69, 45, 0.06);
  border: 1px solid rgba(52, 69, 45, 0.12);
}

.notebook-empty-results strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.notebook-empty-results p {
  margin: 0;
  color: var(--muted);
}

/* Cuaderno privado - eliminar apunte */
.notebook-delete-form {
  display: inline-flex;
  margin: 0;
}

.button.danger {
  border-color: rgba(151, 49, 49, 0.35);
  background: rgba(151, 49, 49, 0.1);
  color: #8a2222;
}

.button.danger:hover {
  background: #8a2222;
  color: #fffaf3;
}

.notebook-delete-notice-section {
  padding-top: 0;
  padding-bottom: 0;
}

.notebook-actions {
  align-items: center;
}

/* Cuaderno privado - apuntes fijados */
.notebook-pin-form,
.notebook-delete-form {
  display: inline-flex;
  margin: 0;
}

.notebook-pinned-badge {
  background: rgba(171, 116, 49, 0.14) !important;
  color: #8a5b22 !important;
  border-color: rgba(171, 116, 49, 0.28) !important;
}

.notebook-list-pin {
  display: inline-block;
  margin-right: 6px;
  color: #ab7431;
  font-size: 0.92em;
}

.notebook-note-link.is-active .notebook-list-pin {
  color: #fffaf3;
}

/* Cuaderno privado - botones de plantillas */
.notebook-editor-toolbar {
  align-items: center;
}

.notebook-editor-toolbar button {
  white-space: nowrap;
}

.notebook-editor-toolbar button[title*="plantilla"],
.notebook-editor-toolbar button[title*="Plantilla"],
.notebook-editor-toolbar button[title*="estructura"] {
  background: rgba(171, 116, 49, 0.1);
  border-color: rgba(171, 116, 49, 0.22);
  color: #8a5b22;
}

.notebook-editor-toolbar button[title*="plantilla"]:hover,
.notebook-editor-toolbar button[title*="Plantilla"]:hover,
.notebook-editor-toolbar button[title*="estructura"]:hover {
  background: #ab7431;
  color: #fffaf3;
}

@media (max-width: 760px) {
  .notebook-editor-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .notebook-editor-toolbar button {
    flex: 0 0 auto;
  }
}

/* Cuaderno privado - asegurar visibilidad de toolbar */
.notebook-editor-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
  overflow: visible;
}

.notebook-editor-toolbar .notebook-editor-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Cuaderno privado - portada bonita para exportar PDF */
.print-only {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 16mm 14mm;
  }

  body {
    background: #ffffff !important;
  }

  .print-only {
    display: block !important;
  }

  .notebook-pdf-cover {
    min-height: 245mm;
    page-break-after: always;
    break-after: page;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    padding: 18mm 14mm;
    border: 1px solid rgba(52, 69, 45, 0.22);
    background:
      linear-gradient(135deg, rgba(52, 69, 45, 0.08), rgba(171, 116, 49, 0.08)),
      #fffaf3 !important;
    color: #34452d;
  }

  .notebook-pdf-cover-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(52, 69, 45, 0.22);
    padding-bottom: 14mm;
  }

  .notebook-pdf-cover-brand span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28pt;
    font-weight: 800;
    color: #34452d;
  }

  .notebook-pdf-cover-brand small {
    margin-top: 8px;
    color: #8a5b22;
    font-size: 11pt;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: right;
  }

  .notebook-pdf-cover-content {
    max-width: 165mm;
    margin: 0 auto;
    text-align: center;
  }

  .notebook-pdf-cover-kicker {
    margin: 0 0 10mm;
    color: #9a672b;
    font-size: 11pt;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  .notebook-pdf-cover h1 {
    margin: 0;
    color: #34452d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38pt;
    line-height: 1.05;
  }

  .notebook-pdf-cover-summary {
    margin: 12mm auto 0;
    max-width: 135mm;
    color: #5f584f;
    font-size: 13pt;
    line-height: 1.6;
  }

  .notebook-pdf-cover-meta {
    margin-top: 14mm;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
  }

  .notebook-pdf-cover-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(52, 69, 45, 0.18);
    background: rgba(255, 255, 255, 0.62);
    color: #34452d;
    font-size: 9.5pt;
    font-weight: 800;
  }

  .notebook-pdf-cover-footer {
    border-top: 1px solid rgba(52, 69, 45, 0.22);
    padding-top: 8mm;
    color: #7a7167;
    font-size: 9.5pt;
    text-align: center;
  }

  .notebook-page .notebook-main-header {
    page-break-before: auto;
    break-before: auto;
    margin-top: 0 !important;
    margin-bottom: 12mm !important;
    border-bottom: 1px solid rgba(52, 69, 45, 0.18);
    padding-bottom: 8mm;
  }

  .notebook-page .notebook-main-header .eyebrow {
    color: #9a672b !important;
    font-size: 10pt !important;
    letter-spacing: 0.18em !important;
  }

  .notebook-page .notebook-main-header h2 {
    color: #34452d !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 30pt !important;
    line-height: 1.08 !important;
    margin: 0 0 6mm !important;
  }

  .notebook-page .notebook-main-header p {
    font-size: 11pt !important;
    color: #5f584f !important;
  }

  .notebook-page .notebook-note-meta {
    margin-bottom: 8mm !important;
  }

  .notebook-page .notebook-note-meta span {
    background: #f4efe6 !important;
    border: 1px solid rgba(52, 69, 45, 0.16) !important;
    color: #34452d !important;
  }

  .notebook-page .notebook-content-preview {
    color: #302a24 !important;
    font-size: 11.5pt !important;
    line-height: 1.65 !important;
  }

  .notebook-page .notebook-content-preview h1,
  .notebook-page .notebook-content-preview h2,
  .notebook-page .notebook-content-preview h3 {
    color: #34452d !important;
    font-family: Georgia, "Times New Roman", serif !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .notebook-page .notebook-content-preview h1 {
    font-size: 24pt !important;
  }

  .notebook-page .notebook-content-preview h2 {
    font-size: 20pt !important;
    margin-top: 10mm !important;
  }

  .notebook-page .notebook-content-preview h3 {
    font-size: 16pt !important;
    margin-top: 8mm !important;
  }

  .notebook-page .notebook-content-preview p,
  .notebook-page .notebook-content-preview li {
    orphans: 3;
    widows: 3;
  }

  .notebook-page .notebook-content-preview img {
    max-height: 150mm !important;
    object-fit: contain !important;
  }

  .notebook-page .notebook-callout {
    border: 1px solid rgba(52, 69, 45, 0.18) !important;
    background: #f8f3ea !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .notebook-page .notebook-code-block {
    background: #34452d !important;
    color: #fffaf3 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* Cuaderno privado - editor visual a pantalla completa */
.notebook-visual-editor {
  display: block !important;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(73, 52, 32, 0.14);
  overflow: hidden;
}

.notebook-editor-textarea-hidden {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.notebook-visual-editor .notebook-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(73, 52, 32, 0.12);
  background: #fffaf3;
}

.notebook-visual-editor-surface {
  min-height: calc(100vh - 260px);
  padding: clamp(24px, 4vw, 56px);
  background: #fffdf8;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
  outline: none;
}

.notebook-visual-editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(52, 69, 45, 0.16);
}

.notebook-visual-editor-surface h1,
.notebook-visual-editor-surface h2,
.notebook-visual-editor-surface h3 {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.notebook-visual-editor-surface h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.notebook-visual-editor-surface h2 {
  margin-top: 42px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.notebook-visual-editor-surface h3 {
  margin-top: 32px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.notebook-visual-editor-surface p {
  margin: 14px 0;
}

.notebook-visual-editor-surface ul {
  padding-left: 26px;
}

.notebook-visual-editor-surface figure {
  max-width: 960px;
}

.notebook-visual-editor-surface .notebook-callout,
.notebook-visual-editor-surface .notebook-code-block,
.notebook-visual-editor-surface .notebook-preview-image-real,
.notebook-visual-editor-surface .notebook-check-item {
  cursor: text;
}

.notebook-visual-editor-surface .notebook-check-item {
  max-width: 760px;
}

.notebook-visual-editor-surface .notebook-check-item input {
  pointer-events: none;
}

@media (max-width: 760px) {
  .notebook-visual-editor .notebook-editor-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .notebook-visual-editor .notebook-editor-button {
    flex: 0 0 auto;
  }

  .notebook-visual-editor-surface {
    min-height: 620px;
    padding: 22px;
  }
}

/* Cuaderno privado - ajustes tipo Word */
.notebook-visual-editor {
  overflow: visible !important;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(52, 69, 45, 0.055) 0,
      rgba(52, 69, 45, 0.055) 1px,
      transparent 1px,
      transparent 1122px
    ),
    #e9e3d7 !important;
  border: 0 !important;
  padding: 0 0 42px;
}

.notebook-visual-editor .notebook-editor-toolbar {
  position: sticky !important;
  top: 0;
  z-index: 200;
  margin: 0;
  border: 1px solid rgba(73, 52, 32, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(73, 52, 32, 0.12);
}

.notebook-visual-editor .notebook-editor-status {
  max-width: 210mm;
  margin: 12px auto 0;
}

.notebook-visual-editor-surface {
  width: min(210mm, calc(100vw - 42px));
  min-height: 297mm;
  margin: 28px auto 0;
  padding: 22mm 20mm;
  background:
    linear-gradient(to right, rgba(171, 116, 49, 0.18) 0 1px, transparent 1px calc(100% - 1px), rgba(171, 116, 49, 0.18) calc(100% - 1px)),
    #fffdf8 !important;
  box-shadow:
    0 0 0 1px rgba(73, 52, 32, 0.16),
    0 22px 60px rgba(73, 52, 32, 0.18);
  overflow: visible;
}

.notebook-visual-editor-surface::before {
  content: "A4";
  position: absolute;
  transform: translate(-18mm, -18mm);
  color: rgba(52, 69, 45, 0.35);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.notebook-visual-editor-surface h1,
.notebook-visual-editor-surface h2,
.notebook-visual-editor-surface h3,
.notebook-visual-editor-surface p,
.notebook-visual-editor-surface li {
  max-width: 100%;
}

.notebook-align-center {
  text-align: center !important;
}

.notebook-align-right {
  text-align: right !important;
}

.notebook-block-selected {
  outline: 3px solid rgba(171, 116, 49, 0.5) !important;
  outline-offset: 4px;
  position: relative;
}

.notebook-block-selected::after {
  content: "Seleccionado · usa Borrar bloque o tecla Supr";
  position: absolute;
  right: 0;
  top: -28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ab7431;
  color: #fffaf3;
  font-size: 0.72rem;
  font-weight: 900;
  pointer-events: none;
}

.notebook-visual-editor-surface figure.notebook-preview-image-real {
  margin-left: 0;
  margin-right: auto;
}

.notebook-visual-editor-surface figure.notebook-preview-image-real[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
}

.notebook-visual-editor-surface figure.notebook-preview-image-real[data-align="right"] {
  margin-left: auto;
  margin-right: 0;
}

.notebook-visual-editor-surface figure.notebook-preview-image-real img {
  width: 100%;
}

.notebook-visual-editor-surface pre.notebook-code-block,
.notebook-visual-editor-surface aside.notebook-callout,
.notebook-visual-editor-surface figure.notebook-preview-image-real {
  user-select: text;
}

@media print {
  .notebook-visual-editor {
    background: transparent !important;
    padding: 0 !important;
  }

  .notebook-visual-editor .notebook-editor-toolbar,
  .notebook-visual-editor .notebook-editor-status {
    display: none !important;
  }

  .notebook-visual-editor-surface {
    width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .notebook-visual-editor-surface::before {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .notebook-visual-editor-surface {
    width: calc(100vw - 24px);
    min-height: 680px;
    padding: 24px;
  }
}

/* Cuaderno privado - guías visuales de folio A4 */
.notebook-visual-editor-surface {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      #fffdf8 0,
      #fffdf8 calc(297mm - 3px),
      rgba(171, 116, 49, 0.42) calc(297mm - 3px),
      rgba(171, 116, 49, 0.42) calc(297mm - 1px),
      rgba(171, 116, 49, 0.1) calc(297mm - 1px),
      rgba(171, 116, 49, 0.1) 297mm
    ) !important;
}

.notebook-visual-editor-surface::after {
  content: "Guía A4 · las líneas horizontales marcan el final aproximado de cada folio";
  position: sticky;
  bottom: 12px;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(52, 69, 45, 0.86);
  color: #fffaf3;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0.82;
}

/* Evitar que los bloques importantes se partan visualmente de forma fea */
.notebook-visual-editor-surface figure,
.notebook-visual-editor-surface pre,
.notebook-visual-editor-surface aside.notebook-callout {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Alineación visual de imágenes dentro del editor */
.notebook-visual-editor-surface figure.notebook-preview-image-real[data-align="left"] {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.notebook-visual-editor-surface figure.notebook-preview-image-real[data-align="center"] {
  margin-left: auto !important;
  margin-right: auto !important;
}

.notebook-visual-editor-surface figure.notebook-preview-image-real[data-align="right"] {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Cuaderno privado - PDF sin cabecera duplicada después de la portada */
@media print {
  .notebook-page .notebook-main-header,
  .notebook-page .notebook-note-meta {
    display: none !important;
  }

  .notebook-page .notebook-content-preview {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Cuaderno privado - PDF con portada y sin cabecera duplicada en contenido */
@media print {
  /*
   * La portada está dentro de notebook-main-header.
   * No podemos ocultar toda la cabecera porque entonces desaparece la portada.
   */
  .notebook-page .notebook-main-header {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /*
   * Dentro de la cabecera, dejamos visible solo la portada imprimible.
   * Ocultamos eyebrow, título, resumen y acciones normales.
   */
  .notebook-page .notebook-main-header > :not(.notebook-pdf-cover) {
    display: none !important;
  }

  /*
   * Forzar que la portada bonita vuelva a salir como primera página.
   */
  .notebook-page .notebook-pdf-cover {
    display: flex !important;
    min-height: 245mm !important;
    page-break-after: always !important;
    break-after: page !important;
  }

  /*
   * Ocultar metadatos duplicados antes del contenido:
   * Estado / Fuente / Fecha.
   */
  .notebook-page .notebook-note-meta,
  .notebook-page .notebook-note-meta *,
  .notebook-page .notebook-main > .notebook-note-meta,
  .notebook-page .notebook-main > .notebook-note-meta * {
    display: none !important;
  }

  /*
   * El contenido real empieza limpio después de la portada.
   */
  .notebook-page .notebook-content-preview {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Cuaderno privado - PDF final: portada + contenido limpio */
@media print {
  .notebook-page .notebook-pdf-cover {
    display: flex !important;
    min-height: 245mm !important;
    page-break-after: always !important;
    break-after: page !important;
  }

  .notebook-page .notebook-main-header,
  .notebook-page .notebook-actions,
  .notebook-page .notebook-note-meta {
    display: none !important;
  }

  .notebook-page .notebook-content-preview {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
