/* Unificación de margen inferior para bloques de la política */
.block {
  margin-bottom: 2.5rem;
}

:root {
  --primary: #ffffff;
  --primary-soft: #ffdeed;
  --bg-light: #f7f7f7;
  --bg-gray: #f3f3f3;
  --text-main: #333333;
  --page-pink: #F45C8C;
  --page-pink-bright: #F78DAF;
  --dark-pink: #F45C8C;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
}

button, input, textarea, select {
  font-family: inherit;
}

.page {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   MENÚ
   ========================================= */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 1.5rem;
  min-height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: #333333;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--page-pink);
}

/* =========================================
   ICONOS SOCIALES
   ========================================= */

/* Hero: contenedor e imagen alineados y tamaño fijo */
.hero-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0 1.5rem;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.hero-social img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-social a:hover img {
  transform: scale(1.15);
  opacity: 0.85;
}

/* Footer */
.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  text-decoration: none;
}

.footer-social img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover img {
  opacity: 1;
  transform: scale(1.15);
}

/* Step social */
.step-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 12px 0;
}

.step-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.step-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.step-social a:hover img {
  transform: scale(1.15);
  opacity: 1;
}

/* =========================================
   UTILIDADES
   ========================================= */

.text-primary   { color: var(--primary); }
.text-pink      { color: var(--page-pink); }
.text-dark-pink { color: var(--dark-pink); }
.text-black     { color: #000000; }
.font-bold      { font-weight: 700; }
.text-center    { text-align: center; }

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  background: var(--primary);
  color: var(--page-pink);
  overflow: hidden;
}

.hero-inner {
  padding: 4rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 2.3rem;
  margin: 0 0 0.45rem;
  color: var(--page-pink);
}

/* Logo mi&hu en el hero: corregido para no recortarse */
.hero-logo-text {
  margin: 0 0 0.45rem;
  width: min(280px, 80vw);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-logo-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 0 0 1.25rem;
}

.hero-subtitle-line { display: block; }
.hero-subtitle-line + .hero-subtitle-line { margin-top: 0.55rem; }

.hero-cta {
  background: var(--primary-soft);
  color: var(--dark-pink);
  border: none;
  padding: 1.05rem 2.35rem;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(244, 92, 140, 0.12);
  transition: background 0.2s ease, transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
  margin: 0.35rem 0 0.15rem;
}

.hero-cta:hover {
  background: var(--page-pink-bright);
  filter: brightness(1.06);
  box-shadow: 0 6px 14px rgba(244, 92, 140, 0.16);
  transform: translateY(-2px);
}

.hero-buy-link { margin-top: 1.5rem; }

.hero-diagonal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  background: var(--page-pink);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
  .hero-logo-text { width: min(320px, 60vw); }
}

/* =========================================
   SECTIONS
   ========================================= */

.section       { padding: 3.5rem 0; }
.section-white { background: var(--page-pink); }
.section-gray  { background: var(--bg-gray); }
.section-light { background: var(--bg-light); }
.section-pink  { background: var(--primary-soft); }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 1.5rem;
}

.highlight-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 1.5rem;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  color: black;
}

.section-subtitle.small { font-size: 0.95rem; }

.section-subtitle.small.participation-note {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.participation-note-line { display: block; }
.participation-note-line + .participation-note-line { margin-top: 0.35rem; }
.participation-note + .legal-text { margin-top: 0.35rem; }

.book-content-header {
  margin-bottom: -0.25rem;
  background: transparent;
  padding: 1.75rem 1.5rem;
  border-radius: 0;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.book-content-cards { margin-top: 0; }
.book-content-cards .card { text-align: center; }

/* =========================================
   CARDS
   ========================================= */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.cards-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.card-pink      { background: var(--primary-soft); }
.card-blue      { background: #b3e3fa; }
.card-soft-pink { background: #ffe4f1; }
.card-peach     { background: #ffd6be; }
.card-lilac     { background: #f5e5ff; }
.card-green     { background: #c2f4e4; }
.card-yellow    { background: #fff89b; }

.familiar-cards .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  filter: brightness(1.03);
}

.book-content-cards .card:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(244, 92, 140, 0.18);
}

.book-content-cta { margin-top: 3rem; }

.card-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

/* =========================================
   ICONOS CATEGORÍAS
   ========================================= */

.category-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.9rem;
  border-radius: 1.15rem;
  background-color: var(--icon-bg, rgba(255, 255, 255, 0.88));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2rem 2rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.85);
  filter: brightness(1.08);
}

.icon-communication {
  --icon-bg: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v10H8l-4 4V5z'/%3E%3C/svg%3E");
}
.icon-experiences {
  --icon-bg: #b3e3fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
.icon-games {
  --icon-bg: #ffe4f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12c3-3 8-4 13-3-1.5 1.2-2.4 2.7-2.4 4s.9 2.8 2.4 4c-5 1-10 0-13-3Z'/%3E%3Cpath d='M6.5 12h.01'/%3E%3Cpath d='M18 11l3-2v6l-3-2'/%3E%3C/svg%3E");
}
.icon-puzzles {
  --icon-bg: #ffd6be;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f82' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5.5h4.5a1.8 1.8 0 0 1 1.8 1.8V9h1.7a1.7 1.7 0 0 1 0 3.4h-1.7v1.7a1.8 1.8 0 0 1-1.8 1.8H9a1.8 1.8 0 0 1-1.8-1.8v-1.7H5.5a1.7 1.7 0 0 1 0-3.4h1.7V7.3A1.8 1.8 0 0 1 9 5.5Z'/%3E%3C/svg%3E");
}
.icon-hideouts {
  --icon-bg: #f5e5ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f82' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9 12 5l8 4-8 4-8-4Z'/%3E%3Cpath d='M4 9v7.8L12 21l8-4.2V9'/%3E%3Cpath d='M7.7 6.6 12 8.9l4.3-2.3'/%3E%3Cpath d='M12 12.4V19'/%3E%3C/svg%3E");
}
.icon-relaxation {
  --icon-bg: #c2f4e4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20v-6'/%3E%3Cpath d='M12 14c0-4 2.5-6 6-7-1 3-1.8 5-1.8 7H12Z'/%3E%3Cpath d='M12 14c0-3-1.2-6-5-7 0 3 .7 5.5 2.2 7H12Z'/%3E%3C/svg%3E");
}
.icon-recipes {
  --icon-bg: #fff89b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f82' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12c0 3 2.2 5 5 5s5-2 5-5'/%3E%3Cpath d='M6.5 12h11'/%3E%3Cpath d='M8 15.8h8'/%3E%3C/svg%3E");
}
.icon-health {
  --icon-bg: #b3e3fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62f82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-7-10a4.5 4.5 0 0 1 8-2.7A4.5 4.5 0 0 1 19 11c0 5.5-7 10-7 10Z'/%3E%3Cpath d='M8 12h2l1-2 2 4 1-2h2'/%3E%3C/svg%3E");
}

.intro-bottom-text {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.manual-purrfecto-white { color: #ffffff; }

/* =========================================
   LIBRO
   ========================================= */

.container .book-image-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.container .book-image {
  width: min(1100px, 95vw);
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

.book-image-wrapper {
  display: flex;
  justify-content: center;
  background: transparent;
  overflow: visible;
  padding: 0.45rem;
}

.book-image {
  width: 450px;
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.22s ease;
}

.book-image:hover { transform: scale(1.02); }

/* =========================================
   DIFERENCIA
   ========================================= */

.container.narrow { max-width: 900px; }

.difference-card {
  background: var(--primary-soft);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.difference-card:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(244, 92, 140, 0.18);
}

.difference-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 116, 186, 0.3);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.difference-grid ul { padding-left: 1.1rem; margin: 0; }
.difference-grid li { margin-bottom: 0.5rem; }

/* =========================================
   QUIÉNES SOMOS
   ========================================= */

.about-section { background: var(--page-pink); }

.about-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #333333;
}

.about-title { color: var(--page-pink); margin-bottom: 1.75rem; }

.about-card p { margin: 0 0 1rem; line-height: 1.7; font-size: 1rem; }
.about-card p:last-child { margin-bottom: 0; }

.about-closing {
  font-weight: 700;
  color: var(--dark-pink);
  text-align: center;
  margin-top: 1.5rem !important;
}

/* =========================================
   EMPRESAS
   ========================================= */

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 2rem;
  justify-content: center;
}

.company-card {
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  overflow: hidden;
  height: 9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid var(--page-pink);
}

.company-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.company-card img.logo-mi-hu { max-width: 130%; max-height: 130%; }
.company-card.logo-mi-hu-card { height: 16rem; }
.company-card.logo-large { height: 13rem; }

.company-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* =========================================
   PASOS SORTEO
   ========================================= */

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.step-card {
  border-radius: 0.75rem;
  border: 2px solid var(--primary);
  background: #ffffff;
  padding: 1.5rem;
  max-width: 260px;
  width: 100%;
  text-align: center;
}

.form-card .step-card { background: #f3f3f3; border-color: #d7d7d7; }
.form-card .step-card .card-title { color: #333333; }
.form-card .step-card p { color: #333333; }

.step-card-link { text-decoration: none; color: inherit; display: block; }
.step-card-link:hover { text-decoration: none; }

.step-icon-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: var(--page-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.step-number {
  margin-top: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--page-pink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   BOTONES Y FORMULARIO
   ========================================= */

.cta-block { margin-bottom: 2rem; }

.btn-large {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  background: var(--page-pink);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(244, 92, 140, 0.22);
  transition: background 0.2s ease, transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-large:hover {
  background: var(--page-pink-bright);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(244, 92, 140, 0.34);
  transform: translateY(-2px);
}

.form-card {
  max-width: 650px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.8rem 2rem;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover { background: var(--page-pink); transform: translateY(-1px); }

.info-box {
  background: var(--primary-soft);
  border-radius: 0.5rem;
  border: 1px solid var(--primary);
  padding: 1rem;
  margin: 1rem 0;
}

.info-box h4 { margin: 0 0 0.5rem; }
.info-box ul { margin: 0; padding-left: 1rem; }

.legal-text { font-size: 0.8rem; color: #666666; text-align: center; margin-bottom: 0; }
.legal-text-pink { color: var(--page-pink); }
.legal-text-black { color: #000000; }
.legal-text-black a { color: var(--page-pink); }

.link-primary { color: var(--primary); text-decoration: none; }
.text-black.link-primary { color: #000000; }
.link-primary:hover { text-decoration: underline; }

.cta-final {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================================
   SECCIÓN COMPRA
   ========================================= */

.highlight-box { padding-bottom: 4rem; }
.highlight-text { margin-bottom: 2.5rem; line-height: 1.6; }

.highlight-image-wrapper {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlight-image {
  width: 480px;
  height: 480px;
  object-fit: cover;
  padding: 0.75rem;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 3px solid var(--page-pink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-image:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  position: relative;
  background: #1f2933;
  color: #ffffff;
  padding: 2.5rem 0;
  margin-top: 0;
}

.footer-diagonal {
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: 100%;
  height: 2.5rem;
  background: #1f2933;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-text h3 { margin: 0 0 0.3rem; }
.footer-text p  { margin: 0; color: #cbd2e1; }

.footer-note  { font-size: 0.75rem; opacity: 0.7; margin-top: 0.5rem; }
.footer-legal { font-size: 0.65rem; opacity: 0.6; margin-top: 0.4rem; }
.heart { color: #ff4b4b; }

/* =========================================
   MODAL
   ========================================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content {
  background: #ffffff;
  border-radius: 1rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  position: relative;
  background: transparent;
  color: #333333;
  padding: 1.2rem 2.5rem 0.5rem 1.5rem;
  text-align: center;
}

.modal-header h2 { margin: 0; font-size: 1.4rem; color: var(--page-pink); }

.modal-twig {
  width: 110px;
  height: 22px;
  margin: 0.45rem auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 28' fill='none'%3E%3Cpath d='M6 14C22 14 34 14 50 14C67 14 76 10 88 10C100 10 111 14 134 14' stroke='%23d62f82' stroke-width='2.2' stroke-linecap='round'/%3E%3Cellipse cx='28' cy='11' rx='4.2' ry='2.3' transform='rotate(-28 28 11)' fill='%2384a95a'/%3E%3Cellipse cx='38' cy='16' rx='4.2' ry='2.3' transform='rotate(26 38 16)' fill='%2384a95a'/%3E%3Cellipse cx='60' cy='10' rx='4.2' ry='2.3' transform='rotate(-24 60 10)' fill='%2384a95a'/%3E%3Cellipse cx='72' cy='17' rx='4.2' ry='2.3' transform='rotate(28 72 17)' fill='%2384a95a'/%3E%3Cellipse cx='94' cy='9' rx='4.2' ry='2.3' transform='rotate(-20 94 9)' fill='%2384a95a'/%3E%3Cellipse cx='106' cy='15' rx='4.2' ry='2.3' transform='rotate(24 106 15)' fill='%2384a95a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  color: var(--page-pink);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-body { padding: 1rem 1.8rem 2rem; text-align: center; }

.modal-logo-wrapper {
  width: 360px;
  height: 270px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

#modal-company-phrase { font-size: 1.05rem; font-weight: 400; color: #333333; margin: 0 0 1.5rem; }

/* FIX DEFINITIVO IMÁGENES CABECERA */
.main-nav img,
.hero-social img,
.footer-social img {
  max-width: none;
}

.nav-logo img {
  width: auto !important;
  height: 60px !important;
  max-height: 60px !important;
  object-fit: contain;
}

.hero-social img,
.footer-social img {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain;
}

.hero-logo-text {
  width: 280px;
  max-width: 80vw;
  overflow: visible;
}

.hero-logo-image {
  width: 100% !important;
  max-width: 280px !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}


/* FIX MÓVIL MENÚ + LOGO + ICONOS */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .main-nav {
    width: 100%;
  }

  .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
  }

  .nav-logo img {
    height: 52px;
    width: auto;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .hero-logo-text {
    width: min(220px, 80vw);
    height: auto;
    overflow: visible;
  }

  .hero-logo-image {
    width: 100%;
    max-width: 220px;
    transform: none;
  }

  .hero-social {
    gap: 0.8rem;
  }

  .hero-social a,
  .footer-social a {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .hero-social img,
  .footer-social img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 640px) {
  .about-card { padding: 1.5rem; }
  .about-card p { font-size: 0.95rem; line-height: 1.65; }
  .company-grid { grid-template-columns: 1fr; }
  .modal-logo-wrapper { width: 100%; height: auto; min-height: 160px; }
  .highlight-image { width: 100%; height: auto; max-width: 360px; }
}

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

@media (min-width: 641px) {
  .book-content-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .cards-grid:not(.book-content-cards) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .difference-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { flex-direction: row; justify-content: center; }
  .footer-inner { flex-direction: row; }
}

@media (min-width: 1025px) {
  .company-grid { grid-template-columns: repeat(3, minmax(260px, 320px)); justify-content: center; }
  .company-card.logo-mi-hu-card img.logo-mi-hu { max-width: 140%; max-height: 140%; }
  .book-content-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .book-content-cards .card { grid-column: span 2; }
  .book-content-cards .card:nth-last-child(2) { grid-column: 2 / span 2; }
  .book-content-cards .card:last-child { grid-column: 4 / span 2; }
}

