/* Font path overrides — original Kin CSS uses /fonts/ */
@font-face {
  font-family: Tobias;
  src: url(../assets/kin/fonts/Tobias-Light.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Sohne;
  src: url(../assets/kin/fonts/Sohne-Buch.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Sohne;
  src: url(../assets/kin/fonts/Sohne-BuchKursiv.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Sohne;
  src: url(../assets/kin/fonts/Sohne-Leicht.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Sohne;
  src: url(../assets/kin/fonts/Sohne-LeichtKursiv.woff2) format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Page-ready / hero entrance */
.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

body.page-ready.hero-ready .hero-animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.page-ready.hero-ready .hero-sub {
  opacity: 0.75 !important;
}

body.page-ready.hero-ready .hero-animate--1 { transition-delay: 0ms; }
body.page-ready.hero-ready .hero-animate--2 { transition-delay: 150ms; }
body.page-ready.hero-ready .hero-animate--3 { transition-delay: 300ms; }
body.page-ready.hero-ready .hero-animate--4 { transition-delay: 450ms; }

.hero-spotlight {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    500px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(227, 179, 77, 0.18),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 700ms ease-out;
}

body.hero-ready .hero-spotlight {
  opacity: 1;
}

#main-content {
  position: relative;
  z-index: 2;
}

.hero-section .hero-grid {
  transform: none;
}

/* Hero — copy + diagrama BotFlow (override Kin/Tailwind h-dvh + overflow-hidden) */
.hero-section.h-dvh {
  height: auto !important;
  min-height: auto;
  overflow: visible !important;
  align-items: flex-start !important;
  padding-top: 4.85rem;
  padding-bottom: 2rem;
}

.hero-section .container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .hero-section .container {
    max-width: 1240px;
    width: min(100% - 2rem, 1240px);
  }
}

@media (min-width: 1024px) {
  .hero-section.h-dvh {
    height: auto !important;
    max-height: none;
    min-height: 100dvh;
    overflow: visible !important;
    align-items: center !important;
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-grid {
    align-items: center;
  }

  .hero-grid__copy {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding-right: 0;
  }

  .hero-title {
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.12;
    margin-bottom: 0.45rem;
  }
}

.hero-accent-mark {
  font-style: italic;
  font-weight: 600;
  color: #1a1612;
  background: rgba(227, 179, 77, 0.42);
  padding: 0.06em 0.38em;
  border-radius: 0.28em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(154, 119, 40, 0.35);
}

.hero-headline {
  color: #1a1612;
}

.hero-accent-mark::after {
  display: none;
}

.hero-grid {
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid:not(.row) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
  }
}

@media (max-width: 1023px) {
  .hero-grid.row {
    display: flex;
    flex-wrap: wrap;
  }
}

.hero-title {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-weight: 300;
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1612;
  margin: 0 0 1.25rem;
}

.hero-grid__copy {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

@media (min-width: 1024px) {
  .hero-grid__copy {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    padding-right: 0;
  }
}

.hero-visual {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  min-height: 200px;
  animation: hero-diagram-float 9s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .hero-visual {
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
    align-self: center;
    margin: 0;
  }
}

.hero-diagram {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: min(240px, 72vw);
  height: auto;
  max-width: 100%;
  overflow: visible;
  object-fit: contain;
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .hero-diagram {
    width: min(260px, 20vw);
  }
}

@keyframes hero-diagram-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Logo fijo — independiente del menú */
.nav-logo-frame {
  position: fixed;
  top: 0.3rem;
  right: clamp(0.75rem, 2.5vw, 1.5rem);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  pointer-events: auto;
}

/* Nav — color crema del check (beneficios hero) */
:root {
  --p45-menu-bg: #fef7e0;
  --p45-menu-border: rgba(227, 179, 77, 0.35);
}

/* Nav states (JS toggles on <nav>) */
.site-nav {
  min-height: 3.25rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  overflow: visible;
}

.site-nav .container,
.site-nav__inner,
.site-nav__menu {
  overflow: visible;
}

.site-nav__inner {
  min-height: 2.5rem;
  align-items: center;
  padding-right: 0;
}

@media (min-width: 1024px) {
  .site-nav__inner {
    padding-right: min(7.2cm, 46vw);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-grid__copy {
    padding-right: min(5.5cm, 42vw);
  }
}

.site-nav.nav--solid {
  background: rgba(254, 247, 224, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-nav.nav--dark {
  background: rgba(26, 22, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.site-nav.nav--dark .nav-link {
  color: #f4ede9;
  opacity: 0.65;
}

.site-nav.nav--dark .nav-link:hover {
  opacity: 1;
}

html {
  scroll-padding-top: 3.5rem;
}

.p45-mobile-nav__link {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-size: 1.45rem;
  font-weight: 300;
  color: #1a1612;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.p45-mobile-nav__link:hover {
  opacity: 1;
}

.p45-mobile-nav__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.p45-mobile-nav__sub {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(227, 179, 77, 0.45);
}

.p45-mobile-nav__sublink {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.98rem;
  color: rgba(26, 22, 18, 0.72);
  text-decoration: none;
  padding: 0.15rem 0;
}

.p45-mobile-nav__sublink:hover {
  color: #1a1612;
}

.nav-logo-img {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: min(9.5rem, 44vw);
  object-fit: contain;
}

@media (min-width: 1024px) {
  .nav-logo-img {
    height: 4cm;
    max-width: min(6.6cm, 44vw);
  }
}

html {
  filter: brightness(1.05);
}

.site-nav .nav-link {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-size: 0.98rem !important;
  font-weight: 300;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.42rem 0.8rem !important;
  border-radius: 999px;
  color: #1a1612;
  text-decoration: none;
  opacity: 0.78;
  transition: background 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  min-height: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  opacity: 1;
  background: rgba(227, 179, 77, 0.22);
}

.site-nav .nav-link__caret {
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
  .site-nav .nav-menu-list {
    display: inline-flex !important;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0.28rem;
    flex-wrap: nowrap;
    border-radius: 999px;
    background: var(--p45-menu-bg);
    border: 1px solid var(--p45-menu-border);
    box-shadow: 0 4px 18px rgba(227, 179, 77, 0.12);
  }

  .site-nav .nav-menu-list li {
    flex: 0 0 auto;
    position: relative;
  }

  .site-nav .nav-link {
    font-size: 1rem !important;
  }
}

@media (min-width: 1280px) {
  .site-nav .nav-link {
    font-size: 1.03rem !important;
    padding-inline: 0.9rem !important;
  }
}

/* Soluciones — submenú */
.nav-item--dropdown:hover .nav-link__caret,
.nav-item--dropdown:focus-within .nav-link__caret {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 15.5rem;
  margin: 0;
  padding: 0.45rem;
  border-radius: 14px;
  background: var(--p45-menu-bg);
  border: 1px solid var(--p45-menu-border);
  box-shadow: 0 14px 36px rgba(26, 22, 18, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}

.nav-item--dropdown:hover .nav-submenu,
.nav-item--dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu__link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(26, 22, 18, 0.82);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-submenu__link:hover,
.nav-submenu__link:focus-visible {
  background: rgba(227, 179, 77, 0.16);
  color: #1a1612;
}

.site-nav.nav--dark .nav-menu-list {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 237, 233, 0.12);
}

.site-nav.nav--dark .nav-submenu {
  background: #2a241f;
  border-color: rgba(244, 237, 233, 0.12);
}

.site-nav.nav--dark .nav-submenu__link {
  color: rgba(244, 237, 233, 0.82);
}

.site-nav.nav--dark .nav-submenu__link:hover,
.site-nav.nav--dark .nav-submenu__link:focus-visible {
  background: rgba(227, 179, 77, 0.18);
  color: #f4ede9;
}

#mobile-menu {
  gap: 1rem !important;
}

.site-nav.nav--dark .nav-menu-btn {
  color: #f4ede9;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  padding-top: 3.5rem !important;
  background: var(--p45-menu-bg) !important;
}

body.menu-open #mobile-menu {
  display: flex;
}

body.menu-open {
  overflow: hidden;
}

/* Shader fallback gradient */
#shader-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, #f0e4d8 0%, #f4ede9 50%, #e8ddd4 100%);
}

#shader-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
}

#shader-bg.shader-webgl canvas {
  display: block;
}

#shader-bg.shader-fallback canvas {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-visual {
    animation: none;
  }

  #shader-bg canvas {
    display: none !important;
  }
}

/* Nosotros */
.p45-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .p45-about__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.p45-about__copy {
  min-width: 0;
}

.p45-about__headline em {
  display: block;
  margin-top: 0.35em;
}

.p45-about__copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.68);
  margin-bottom: 1rem;
  max-width: 62ch;
}

.p45-about__tagline {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  font-weight: 600;
  color: #1a1612;
  margin-bottom: 1rem;
}

.p45-about__cta {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.72);
  margin-bottom: 0.75rem;
}

.p45-about__email {
  margin-bottom: 0;
}

.p45-about__email a {
  color: #1a1612;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 179, 77, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.p45-about__email a:hover {
  color: #b8860b;
  border-color: #E3B34D;
}

.p45-about__figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(26, 22, 18, 0.08);
  box-shadow: 0 24px 64px rgba(26, 22, 18, 0.12);
  position: relative;
}

.p45-about__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(227, 179, 77, 0.08), transparent 55%);
  pointer-events: none;
}

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

@media (max-width: 899px) {
  .p45-about__figure {
    max-width: 640px;
    margin-inline: auto;
  }
}

/* Ventajas BotFlow — banda compacta imagen + texto + tarjetas */
.p45-ventajas {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 980px;
  margin-inline: auto;
  width: 100%;
}

.p45-ventajas__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .p45-ventajas__hero {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 1.15rem 1.35rem;
  }
}

.p45-ventajas__figure {
  margin: 0;
  line-height: 0;
}

@media (max-width: 767px) {
  .p45-ventajas__figure {
    justify-self: center;
    max-width: 180px;
  }
}

.p45-ventajas__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(26, 22, 18, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .p45-ventajas__img {
    max-height: 210px;
  }
}

.p45-ventajas__head {
  text-align: center;
  margin: 0;
}

@media (min-width: 768px) {
  .p45-ventajas__head {
    text-align: left;
  }

  .p45-ventajas__head .p45-ventajas-highlights {
    justify-content: flex-start;
  }
}

.p45-ventajas__head h2 {
  margin-bottom: 0.75rem !important;
}

.p45-ventajas__head > p {
  margin-bottom: 0 !important;
  max-width: none;
}

.p45-ventajas__head .p45-ventajas-highlights {
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.p45-ventajas__cards,
.p45-ventajas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .p45-ventajas__cards,
  .p45-ventajas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.p45-ventajas__card {
  position: relative;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(26, 22, 18, 0.07);
  box-shadow: 0 1px 2px rgba(26, 22, 18, 0.04);
}

.p45-ventajas__num {
  display: block;
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(227, 179, 77, 0.95);
  margin-bottom: 0.65rem;
}

.p45-ventajas__card h3 {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-weight: 300;
  font-size: 1.12rem;
  line-height: 1.25;
  color: #1a1612;
  margin: 0 0 0.45rem;
}

.p45-ventajas__card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.66);
  margin: 0;
}

.p45-ventajas__card--featured {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(227, 179, 77, 0.14));
  border-color: rgba(227, 179, 77, 0.28);
}

@media (min-width: 640px) {
  .p45-ventajas__card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
  }
}

.p45-ventajas__card-main {
  flex: 1;
  min-width: 0;
}

.p45-ventajas__card--featured .p45-ventajas-badge {
  margin-top: 0;
  flex-shrink: 0;
  align-self: flex-start;
}

@media (min-width: 640px) {
  .p45-ventajas__card--featured .p45-ventajas-badge {
    align-self: center;
  }
}

.p45-ventajas-copy .p45-ventajas-highlights {
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .p45-ventajas-copy .p45-ventajas-highlights {
    justify-content: center;
  }
}

/* Soluciones BotFlow */
.p45-solutions__head {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}

.p45-solutions__line {
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 1.25rem auto 0;
  border-radius: 999px;
  background: #E3B34D;
}

.p45-solutions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .p45-solutions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .p45-solutions__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.p45-solutions__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFF8F4;
  border: 1px solid rgba(26, 22, 18, 0.06);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.p45-solutions__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(26, 22, 18, 0.08);
}

.p45-solutions__card-img {
  width: 58%;
  margin: 0.85rem auto 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

.p45-solutions__card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p45-solutions__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 1.15rem 1.2rem 1.25rem;
}

.p45-solutions__card-body h3 {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #1a1612;
  margin: 0 0 0.5rem;
}

.p45-solutions__card-body h3 em {
  font-style: italic;
  color: #E3B34D;
}

.p45-solutions__card-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.66);
  margin: 0 0 0.85rem;
  flex: 1;
}

.p45-solutions__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #B8922E;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.p45-solutions__link:hover {
  color: #1a1612;
  opacity: 0.85;
}

/* Detalle de cada solución */
section.p45-detail {
  padding-top: calc(4.25rem - 1cm);
  padding-bottom: 4.25rem;
}

@media (max-width: 767px) {
  section.p45-detail {
    padding-top: calc(3.25rem - 1cm);
    padding-bottom: 3.25rem;
  }
}

.p45-detail__back {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  margin-bottom: 1.15rem;
  transition: color 0.2s ease;
}

.p45-detail__back:hover {
  color: #1a1612;
}

.p45-detail__head,
.p45-detail__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .p45-detail__head,
  .p45-detail__hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.62fr);
    grid-template-rows: auto auto;
    column-gap: 2rem;
    row-gap: 0.35rem;
  }

  .p45-detail__head-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .p45-detail__intro {
    grid-column: 1;
    grid-row: 2;
  }

  .p45-detail__head-img {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    max-width: min(280px, 100%);
    width: 100%;
    justify-self: end;
    margin-inline: 0;
  }

  .p45-detail__head .p45-detail__head-img {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .p45-detail__head .p45-detail__intro {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0.35rem;
  }
}

@media (max-width: 899px) {
  .p45-detail__head-copy {
    grid-row: 1;
  }

  .p45-detail__head .p45-detail__intro {
    grid-row: 2;
    margin-top: 0.25rem;
  }

  .p45-detail__head-img {
    grid-row: 3;
    max-width: min(260px, 62%);
    margin-inline: auto;
    justify-self: center;
  }
}

.p45-detail__head-copy {
  min-width: 0;
}

.p45-detail__head-copy span {
  margin-bottom: 0.65rem;
}

.p45-detail__head-copy h2 {
  margin-bottom: 0.45rem;
}

.p45-detail__subtitle {
  font-size: 1rem;
  line-height: 1.38;
  color: rgba(0, 0, 0, 0.62);
  margin: 0;
}

.p45-detail__head-img {
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(26, 22, 18, 0.07);
}

.p45-detail__head-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 175px;
}

.p45-detail__body {
  width: 100%;
  clear: both;
}

.p45-detail__intro {
  margin: 0;
  min-width: 0;
}

.p45-detail__intro p,
.p45-detail__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.68);
  margin: 0;
}

.p45-detail__intro p + p,
.p45-detail__body > .p45-detail__text + .p45-detail__text,
.p45-detail__body > .p45-detail__text + p,
.p45-detail__body > p + .p45-detail__text {
  margin-top: 0.75rem;
}

.p45-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.p45-detail__grid + .p45-detail__text,
.p45-detail__grid + p {
  margin-top: 0;
}

@media (min-width: 768px) {
  .p45-detail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.p45-detail__block {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 22, 18, 0.07);
}

.p45-detail__block--solo {
  margin: 0 0 1rem;
}

.p45-detail__block h3 {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-weight: 300;
  font-size: 1.1rem;
  color: #1a1612;
  margin: 0 0 0.65rem;
}

.p45-detail__block p {
  font-size: 0.92rem;
  line-height: 1.52;
  color: rgba(0, 0, 0, 0.66);
  margin: 0 0 calc(0.4rem - 0.5mm);
}

.p45-detail__block p + p {
  margin-top: calc(0.25rem - 0.5mm);
  margin-bottom: 0;
}

.p45-detail__block p:last-child {
  margin-bottom: 0;
}

.p45-detail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.p45-detail__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.68);
}

.p45-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E3B34D;
}

@media (min-width: 640px) {
  .p45-detail__list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
}

.p45-detail__closing {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: #1a1612;
  margin: 1.25rem 0 0;
}

.p45-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.p45-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.p45-detail__btn--primary {
  color: #1a1612;
  background: linear-gradient(to bottom, #edc35a, #d4a243);
  border: 1px solid #cca145;
}

.p45-detail__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(180, 140, 50, 0.25);
}

.p45-detail__btn--ghost {
  color: #1a1612;
  background: transparent;
  border: 1px solid rgba(26, 22, 18, 0.14);
}

.p45-detail__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Planes y precios */
.p45-pricing__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.p45-pricing__line {
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 1.15rem auto 0;
  border-radius: 999px;
  background: #E3B34D;
}

.p45-pricing .container {
  max-width: 1240px;
}

.p45-pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 1220px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 900px) {
  .p45-pricing__grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    gap: 1.35rem;
  }
}

.p45-price-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(26, 22, 18, 0.08);
  box-shadow: 0 12px 36px rgba(26, 22, 18, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.p45-price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(26, 22, 18, 0.09);
}

.p45-price-card__head {
  padding: 1.35rem 1.35rem 1.1rem;
  border-bottom: 1px solid rgba(26, 22, 18, 0.06);
  background: rgba(255, 248, 244, 0.85);
}

.p45-price-card__title {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.25;
  color: #1a1612;
  margin: 0 0 0.75rem;
}

.p45-price-card__title em {
  font-style: italic;
  color: #E3B34D;
}

.p45-price-card__slash {
  font-style: normal;
  color: rgba(26, 22, 18, 0.35);
  font-weight: 300;
}

.p45-price-card__amount {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.92rem;
  color: rgba(26, 22, 18, 0.62);
  margin: 0 0 0.65rem;
}

.p45-price-card__amount strong {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 300;
  color: #1a1612;
  margin: 0 0.15rem;
}

.p45-price-card__amount span {
  font-size: 0.82rem;
  color: rgba(26, 22, 18, 0.52);
}

.p45-price-card__lead {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(26, 22, 18, 0.68);
  margin: 0;
}

.p45-price-card__body {
  padding: 1.1rem 1.35rem 1.15rem;
  flex: 1;
}

.p45-price-card__body h4 {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 22, 18, 0.48);
  margin: 0 0 0.65rem;
}

.p45-price-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: grid;
  gap: 0.38rem;
}

.p45-price-card__list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(26, 22, 18, 0.72);
}

.p45-price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E3B34D;
}

.p45-price-card__list--icons li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding-left: 0;
}

.p45-price-card__list--icons li::before {
  content: none;
}

.p45-price-card__icon {
  flex-shrink: 0;
  width: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.p45-price-card__ideal {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(26, 22, 18, 0.62);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(26, 22, 18, 0.06);
}

.p45-price-card__ideal strong {
  color: #1a1612;
  font-weight: 600;
}

.p45-price-card__foot {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 1.35rem 1.25rem;
  margin-top: auto;
}

.p45-price-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: #1a1612;
  background: linear-gradient(to bottom, #edc35a, #d4a243);
  border: 1px solid #cca145;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p45-price-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(180, 140, 50, 0.22);
}

.p45-price-card__link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #B8922E;
  text-decoration: none;
  transition: color 0.2s ease;
}

.p45-price-card__link:hover {
  color: #1a1612;
}

.p45-ventajas-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 1.25rem;
}

.p45-ventajas-chip {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(77, 154, 205, 0.12);
  color: #1a1612;
  border: 1px solid rgba(77, 154, 205, 0.22);
}

.p45-ventajas-badge {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(77, 154, 205, 0.15);
  color: #2d6a8f;
  border: 1px solid rgba(77, 154, 205, 0.25);
}

/* Hero — layout v8 (aireado, sin panel empalmado) */
.p45-hero-info--v8 {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.p45-hero-info--v8 .p45-hero-info__intro {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  color: #1a1612;
  margin: 0;
  padding: 0;
  border: none;
}

.p45-hero-info--v8 .p45-hero-info__summary {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 52rem;
  margin: 0;
}

.p45-hero-info--v8 .p45-hero-info__summary p {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(0.98rem, 1.55vw, 1.08rem);
  line-height: 1.62;
  color: rgba(26, 22, 18, 0.76);
  margin: 0;
}

.p45-hero-info--v8 .p45-hero-info__summary-question {
  font-family: var(--font-serif, Tobias, Georgia, serif);
  font-size: clamp(1rem, 1.65vw, 1.12rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: #1a1612;
}

.p45-hero-info--v8 .p45-hero-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.1rem 0 0;
}

.p45-hero-info--v8 .p45-hero-info__link {
  flex: 0 1 auto;
  min-width: 10.5rem;
  font-size: 0.88rem;
  padding: 0.62rem 1.25rem;
}

.p45-hero-info__benefits-strip {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(227, 179, 77, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.p45-hero-info__benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 252, 250, 0.72);
  border: 1px solid rgba(26, 22, 18, 0.07);
}

.p45-hero-info__benefit-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

.p45-hero-info__benefit-label {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1612;
}

@media (min-width: 768px) {
  .p45-hero-info__benefit-label {
    white-space: nowrap;
  }
}

.p45-hero-info--v8 .p45-hero-info__closing {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(0.95rem, 1.45vw, 1.02rem);
  font-weight: 600;
  line-height: 1.5;
  color: #1a1612;
  margin: 0;
}

@media (min-width: 640px) {
  .p45-hero-info--v8 {
    gap: 1.25rem;
  }

  .p45-hero-info__benefits-strip {
    gap: 0.55rem 0.75rem;
  }
}

@media (min-width: 1024px) {
  .p45-hero-info--v8 {
    gap: 1.1rem;
    max-width: 100%;
  }

  .p45-hero-info--v8 .p45-hero-info__intro {
    font-size: clamp(1.15rem, 1.6vw, 1.32rem);
  }

  .p45-hero-info--v8 .p45-hero-info__summary p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .p45-hero-info--v8 .p45-hero-info__summary-question {
    font-size: 1.05rem;
  }

  .p45-hero-info--v8 .p45-hero-info__actions {
    margin-top: 0.2rem;
  }

  .p45-hero-info__benefits-strip {
    padding-top: 1rem;
  }

  .p45-hero-info__benefit-label {
    font-size: 0.78rem;
  }
}

.p45-hero-info__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 1 1 auto;
  min-width: 9.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: #1a1612;
  padding: 0.58rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(to bottom, #edc35a, #d4a243);
  border: 1px solid #cca145;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p45-hero-info__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(180, 140, 50, 0.22);
}

.p45-hero-info__link--secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(26, 22, 18, 0.12);
  color: rgba(26, 22, 18, 0.78);
}

.p45-hero-info__link--secondary:hover {
  background: rgba(255, 255, 255, 0.95);
}
