/* ==========================================================================
   La Manta de todos los días — estilos (v2, diseño "capas de tela")
   ========================================================================== */

@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/Gotham-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* fondo general */
  --color-bg: #f7f2e7;
  --color-text: #2e2b25;
  --color-text-soft: #524d43;
  --color-white: #ffffff;

  /* paleta de la campaña */
  --gold-dark:  #a87918;
  --gold-base:  #f7b223;
  --gold-light: #f9f3c6;

  --wine-dark:  #723138;
  --wine-base:  #e25d6c;
  --wine-light: #f9dfda;

  --navy-dark:  #001f41;
  --navy-base:  #014086;
  --navy-light: #a5d7f4;

  --green-dark:  #00382f;
  --green-base:  #007d6a;
  --green-light: #d6f7d3;

  --font-heading: 'Fraunces', 'Big Caslon', Georgia, 'Times New Roman', serif;
  --font-body: 'Gotham', 'Helvetica Neue', Arial, sans-serif;

  --container-width: 1200px;
  --container-narrow: 780px;

  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-soft: 0 18px 40px -20px rgba(46, 43, 37, 0.35);

  --ease: cubic-bezier(.22, .8, .32, 1);

  --nav-height: 84px;
  --tilt: 7.4vw;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url('../assets/img/textura-bg.jpg');
  background-repeat: repeat;
  background-size: 480px auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-base);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 24px;
  top: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  margin: 0;
  color: var(--color-text);
}

.section-title {
  font-size: clamp(2.2rem, 1.2rem + 4vw, 80px);
  line-height: 1.15;
  margin-bottom: 20px;
}

@media (min-width: 1200px) {
  .section-title {
    font-size: 80px;
  }
}

.section-title .light {
  font-weight: 100;
}

.section-title .bold {
  font-weight: 400;
  display: block;
}

p {
  line-height: 1.7;
  color: var(--color-text-soft);
}

.lead {
  font-size: 1.05rem;
  max-width: 640px;
}

/* ---------------------------------- navegación ---------------------------------- */

#top,
#que-es,
#para-que-sirve,
#herramientas,
#especialistas,
#aliados,
#donde-encontrar {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.site-nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.site-nav-inner {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 26px;
  background-color: var(--green-base);
  background-image: url('../assets/img/textura-mantas-grid.png');
  background-size: 200px auto;
  background-blend-mode: multiply;
  border-radius: 20px;
  box-shadow: 0 20px 30px -7px rgba(0, 56, 47, 0.6);
}

.site-nav-seam {
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--green-light);
  border-radius: 10px;
  pointer-events: none;
}

.site-nav-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.site-nav-brand img {
  height: 60px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--green-light);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.is-active {
  color: #fff;
  border-color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: calc(16px + 68px + 10px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--green-base);
    background-image: url('../assets/img/textura-mantas-grid.png');
    background-size: 200px auto;
    background-blend-mode: multiply;
    border-radius: 20px;
    box-shadow: 0 16px 30px -18px rgba(0, 56, 47, 0.55);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s var(--ease), opacity .3s var(--ease);
  }

  .nav-menu::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed var(--green-light);
    border-radius: 10px;
    pointer-events: none;
  }

  .nav-menu.is-open {
    max-height: 320px;
    opacity: 1;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 14px 20px;
  }
}

/* ---------------------------------- header / hero ---------------------------------- */

.site-header {
  padding: calc(var(--nav-height) + 28px) 0 0;
}

.hero {
  padding: 20px 0 80px;
}

.hero-layout {
  position: relative;
  display: block;
}

.hero-media {
  position: relative;
  margin: 0;
  height: 260px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-media img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 20% 100%;
  transition: transform 1.4s var(--ease);
}

.hero-media:hover img {
  transform: scale(1.04);
}

.hero-card {
  position: relative;
  margin: -70px auto 0;
  width: min(480px, 88%);
  padding: 34px 32px;
  background-color: var(--green-base);
  background-image: url('../assets/img/textura-mantas-grid.png');
  background-size: 200px auto;
  background-blend-mode: multiply;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -18px rgba(0, 56, 47, 0.6);
  text-align: center;
}

.hero-card-seam {
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--green-light);
  border-radius: 18px;
  pointer-events: none;
}

.hero-card-brand {
  position: relative;
  margin-bottom: 20px;
}

.hero-card-brand img {
  width: min(400px, 100%);
  height: auto;
  margin: 0 auto;
}

.hero-card p {
  position: relative;
  color: #fff;
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 14px;
}

.hero-card-partner {
  position: relative;
  display: block;
}

.hero-card-partner img {
  width: min(313px, 100%);
  height: auto;
  margin: 0 auto;
  transition: transform .3s var(--ease);
}

.hero-card-partner:hover img,
.hero-card-partner:focus-visible img {
  transform: scale(1.06);
}

@media (min-width: 700px) {
  .hero-layout {
    display: flex;
    align-items: center;
  }
  .hero-media {
    width: min(960px, 100%);
    height: 550px;
    flex-shrink: 0;
  }
   .hero-media img {
    object-position: 60% 100%;
   }

  .hero-card-slot {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
  }
  .hero-card {
    margin: 0;
    width: min(480px, 40vw);
    min-width: 360px;
  }
  .hero {
    padding-bottom: 160px;
  }
}

/* ---------------------------------- secciones con corte diagonal ---------------------------------- */

.tilt-wrap {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--tilt) * -1);
  padding: calc(var(--tilt) + 64px) 0;
}

.tilt-wrap:first-of-type {
  margin-top: calc(var(--tilt) * -1);
}

.tilt-shadow {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: drop-shadow(0 -28px 40px rgba(0, 0, 0, 0.3));
}

.tilt-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-image: url('../assets/img/textura-mantas-grid.png');
  background-size: 200px auto;
  background-blend-mode: multiply;
  clip-path: polygon(0 var(--tilt), 100% 0, 100% calc(100% - var(--tilt)), 0 100%);
}

.tilt-seam {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 0;
  border-top: 2px dashed var(--stitch);
  z-index: 1;
  pointer-events: none;
}

.tilt-seam--top {
  top: calc(var(--tilt) + 10px);
  transform-origin: left top;
  transform: rotate(-4.2deg);
}

.tilt-wrap > .container {
  z-index: 2;
}

/* temas de color */

.theme-gold {
  --bg: var(--gold-light);
  --stitch: var(--gold-base);
  --shadow: var(--gold-dark);
  --heading: var(--gold-dark);
}

.theme-blue {
  --bg: var(--navy-light);
  --stitch: var(--navy-base);
  --shadow: var(--navy-dark);
  --heading: var(--navy-dark);
}

.theme-navy {
  --bg: var(--navy-base);
  --stitch: var(--navy-light);
  --shadow: var(--navy-dark);
  --heading: var(--navy-light);
}

.theme-wine {
  --bg: var(--wine-light);
  --stitch: var(--wine-base);
  --shadow: var(--wine-dark);
  --heading: var(--wine-base);
}

.theme-green {
  --bg: var(--green-base);
  --stitch: var(--green-light);
  --shadow: var(--green-dark);
  --heading: var(--green-light);
}

.tilt-wrap .section-title {
  color: var(--heading);
}

.theme-navy p,
.theme-green p {
  color: rgba(255, 255, 255, 0.9);
}

.theme-navy .lead,
.theme-green > .container > .lead {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------------------------------- botones ---------------------------------- */

.btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-base);
  background: var(--navy-light);
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(0, 31, 65, 0.5);
}

a.btn,
button.btn {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
}

a.btn:hover,
button.btn:hover,
a.btn:focus-visible,
button.btn:focus-visible {
  transform: translateY(-3px) scale(1.08);
  filter: brightness(0.96);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-green {
  color: #fff;
  background: #007d6a;
  box-shadow: 0 14px 26px -14px rgba(0, 56, 47, 0.6);
}

.btn-small {
  padding: 11px 24px;
  font-size: 0.88rem;
}

/* ---------------------------------- qué es ---------------------------------- */

.que-es-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.que-es-media {
  width: min(550px, 100%);
  aspect-ratio: 550 / 400;
  object-fit: contain;
  height: auto;
  justify-self: center;
  transition: transform .5s var(--ease);
}

.que-es-media:hover {
  transform: translateY(-6px) rotate(-1deg);
}

/* ---------------------------------- para qué sirve ---------------------------------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.benefit {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.benefit:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -20px rgba(0, 31, 65, 0.4);
}

.benefit-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px dashed #4da6cb;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.benefit-media img {
  position: absolute;
  top: -11%;
  left: 0;
  width: 100%;
  height: 122%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.benefit:hover .benefit-media img {
  transform: scale(1.1);
}

.benefit-seam {
  position: absolute;
  inset: 10px;
  border: 1px dashed #a5d7f4;
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

.benefit-body {
  position: relative;
  padding: 24px 26px 28px;
}

.benefit-body h3 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.benefit-body p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--color-text-soft);
}

.pull-quote {
  margin-top: 52px;
  text-align: center;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 1rem + 3vw, 50px);
  color: #014086;
  margin: 0;
  line-height: 1.4;
}

/* ---------------------------------- herramientas ---------------------------------- */

.section-cta p {
  max-width: 560px;
  margin: 0 0 32px;
}

/* ---------------------------------- especialistas ---------------------------------- */

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 68px;
}

.specialist {
  position: relative;
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.specialist-media {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  z-index: 2;
  transition: transform .35s var(--ease);
}

.specialist:hover .specialist-media {
  transform: translateX(-50%) translateY(-4px);
}

.specialist-media img {
  position: absolute;
  top: -13%;
  left: 0;
  width: 100%;
  height: 126%;
  object-fit: cover;
}

.specialist-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--wine-base);
  border-radius: var(--radius-md);
  padding: 110px 18px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.specialist-seam {
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--wine-light);
  border-radius: 10px;
  pointer-events: none;
}

.specialist-body h3 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 8px;
}

.specialist-body p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* ---------------------------------- dónde encontrarla ---------------------------------- */

.finder-card {
  position: relative;
  width: 100%;
  margin: 56px 0 0;
  padding: 48px;
  background: var(--green-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.finder-card-seam {
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--green-base);
  border-radius: 18px;
  pointer-events: none;
}

.finder-card-top {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-bottom: 8px;
}

.finder-card-body {
  flex: 1;
  min-width: 0;
}

.finder-card-media {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transition: transform .35s var(--ease);
}

.finder-card-media:hover {
  transform: translateY(-4px) rotate(-2deg);
}

.finder-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.finder-card h3 {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 600;
  font-size: 40px;
  color: #007d6a;
  margin-bottom: 10px;
}

.finder-card p {
  color: var(--green-dark);
  opacity: 0.92;
  max-width: 560px;
  margin: 0 0 6px;
  font-size: 0.94rem;
}

.finder-card-thanks {
  font-weight: 700;
  color: var(--green-dark);
  margin: 10px 0 18px;
}

.finder-divider {
  border: none;
  border-top: 2px dashed var(--green-base);
  margin: 26px 0;
  opacity: 0.6;
}

.finder-card h4 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  color: #007d6a;
  margin-bottom: 6px;
}

/* mini-tarjetas: tiendas y artesanas */

.finder-minicards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}

.finder-minicard {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.finder-minicard:hover,
.finder-minicard:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px -18px rgba(0, 56, 47, 0.35);
}

.finder-minicard-logo {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.finder-minicard-logo img {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.finder-minicard--artisan {
  gap: 10px;
}

.finder-minicard-logo--round {
  flex: 0 0 auto;
}

.finder-minicard-logo--round img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.finder-minicard-name {
  flex: 1;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-dark);
  white-space: nowrap;
}

.finder-minicard-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-base);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}

.finder-minicard:hover .finder-minicard-btn,
.finder-minicard:focus-visible .finder-minicard-btn {
  transform: scale(1.18);
  background: var(--green-dark);
}

/* ---------------------------------- nuestros aliados ---------------------------------- */

.pro-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
}

.pro-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 220px;
  padding: 28px 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

a.pro-badge {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

a.pro-badge:hover,
a.pro-badge:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px -18px rgba(168, 121, 24, 0.4);
}

.pro-badge-seam {
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--gold-base);
  border-radius: 10px;
  pointer-events: none;
}

.pro-badge-media {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
}

.pro-badge-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-badge-name {
  font-weight: 700;
  font-size: 0.86rem;
  text-align: center;
  color: var(--gold-dark);
}

/* ---------------------------------- footer ---------------------------------- */

.site-footer {
  background: var(--navy-base);
  padding: 56px 0 44px;
  text-align: center;
  margin-top: calc(var(--tilt) * -1);
  position: relative;
  z-index: 3;
}

.site-footer-seam {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--navy-light);
  pointer-events: none;
}

@media (max-width: 600px) {
  .site-footer {
    padding-bottom: 90px;
  }
}

.footer-logo-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-logo {
  width: min(220px, 60%);
  height: auto;
}

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

.footer-partner {
  color: var(--navy-light);
  font-weight: 700;
}

/* ---------------------------------- modal: cómo hacer una manta ---------------------------------- */

body.modal-open {
  overflow: hidden;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 56, 47, 0.6);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  width: 960px;
  max-width: 100%;
  height: 1300px;
  max-height: 92vh;
  display: flex;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 50px 90px -20px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: solid 1px var(--green-dark);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--green-light);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--green-light);
  transform: scale(1.08);
  --shadow-soft: 0 18px 40px -20px rgba(46, 43, 37, 0.35);
}

.modal-inner {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--green-light);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-seam {
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--green-base);
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}

.modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 54px 60px 60px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.modal-title {
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.15;
  color: var(--green-dark);
}

.modal-title .light {
  font-weight: 300;
}

.modal-title .bold {
  font-weight: 600;
  display: block;
}

.modal-header-logos {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-shrink: 0;
  padding-top: 6px;
}

.modal-header-logo-fepp {
  height: 34px;
  width: auto;
}

.modal-header-logo-manta {
  height: 56px;
  width: auto;
}

.modal-materials {
  background: var(--green-dark);
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 40px;
}

.modal-materials h3 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.modal-materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.modal-materials-grid h4 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
}

.modal-materials-grid p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

.modal-materials-divider {
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  margin: 24px 0 18px;
}

.modal-materials-extra {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.modal-materials-extra strong {
  color: #fff;
}

.modal-steps {
  display: flex;
  gap: 40px;
}

.modal-steps-text {
  flex: 1;
  min-width: 0;
}

.modal-steps-text article {
  margin-bottom: 22px;
}

.modal-steps-text h4 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.modal-steps-text p {
  font-size: 0.9rem;
  color: var(--green-dark);
  opacity: 0.85;
  margin: 0;
  line-height: 1.6;
}

.modal-steps-text strong {
  opacity: 1;
}

.modal-steps-media {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-step-photo {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green-base);
  box-shadow: var(--shadow-soft);
}

.modal-step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 40px;
}

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--green-dark);
  background: transparent;
  color: var(--green-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.modal-action-btn img {
  display: block;
}

.modal-action-btn:hover,
.modal-action-btn:focus-visible {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
}

.modal-action-btn:hover img,
.modal-action-btn:focus-visible img {
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .modal-dialog {
    width: 100%;
    height: 94vh;
    max-height: 94vh;
    border-radius: 30px;
    padding: 10px;
  }
  .modal-inner {
    border-radius: 30px;
  }
  .modal-scroll {
    padding: 44px 24px 40px;
  }
  .modal-materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-steps {
    flex-direction: column;
    gap: 24px;
  }
  .modal-steps-media {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .modal-step-photo {
    width: calc(50% - 10px);
  }
}

@media (max-width: 560px) {
  .modal-header {
    flex-direction: column;
  }
  .modal-materials {
    padding: 24px;
  }
  .modal-materials-grid {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .modal-close {
    top: 30px;
    right: 30px;
  }
}

@media print {
  body > *:not(.modal-overlay) {
    display: none !important;
  }
  .modal-overlay:not(.is-open) {
    display: none !important;
  }
  .modal-overlay.is-open {
    position: static;
    background: none;
    backdrop-filter: none;
    padding: 0;
    display: block;
  }
  .modal-dialog {
    width: auto;
    height: auto;
    max-height: none;
    background: none;
    padding: 0;
    box-shadow: none;
  }
  .modal-inner {
    overflow: visible;
    border-radius: 0;
  }
  .modal-scroll {
    overflow: visible;
    padding: 0;
  }
  .modal-close,
  .modal-actions,
  .modal-seam {
    display: none !important;
  }
}

/* ---------------------------------- botón flotante ---------------------------------- */

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #007d6a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(0, 56, 47, 0.6);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease);
}

.floating-cta-seam {
  position: absolute;
  inset: 5px;
  border: 1px dashed #d6f7d3;
  border-radius: 999px;
  pointer-events: none;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta.is-visible:hover,
.floating-cta.is-visible:focus-visible {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .floating-cta span {
    display: none;
  }
  .floating-cta {
    padding: 14px;
  }
}

/* ---------------------------------- scroll reveal ("capas de tela") ---------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-media img,
  .benefit-media img,
  .specialist-media,
  .btn,
  .pro-badge,
  .finder-card-media {
    transition: none !important;
  }
}

/* ---------------------------------- responsive ---------------------------------- */

@media (max-width: 900px) {
  .que-es-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .que-es-media {
    max-width: 320px;
    margin: 0 auto;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specialists-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 56px;
  }
  .pro-badge {
    width: 190px;
  }
  .finder-card-media {
    width: 220px;
    height: 220px;
  }
  .finder-card-top {
    gap: 28px;
  }
    .modal-close {
    top: 30px;
    right: 30px;
  }
}

@media (max-width: 640px) {
  :root {
    --tilt: 10vw;
  }
  .tilt-wrap {
    padding: calc(var(--tilt) + 40px) 0;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .specialists-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .finder-card {
    padding: 28px 20px;
  }
  .finder-card-top {
    flex-direction: column;
    gap: 20px;
  }
  .finder-card-media {
    order: -1;
    width: 180px;
    height: 180px;
  }
  .finder-card-body {
    text-align: center;
  }
  .finder-card h3,
  .finder-card p {
    max-width: 100%;
  }
  .finder-minicards-row {
    grid-template-columns: 1fr;
  }
  .pro-links-grid {
    gap: 20px;
  }
  .pro-badge {
    width: 100%;
    max-width: 260px;
  }
}
