/* MUNDO FANTÁSTICO — estilos principales */
:root {
  --bg: #F4F1E8;
  --bg-soft: #0B2545;
  --panel: #10345B;
  --text: #161616;
  --muted: #606569;
  --purple: #087EAE;
  --cyan: #f5ad05;
  --pink: #D99A36;
  --line: rgba(245, 196, 81, .20);
  --font-display: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: var(--font-body); line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ambient { position: absolute; width: 440px; height: 440px; border-radius: 50%; filter: blur(130px); opacity: .12; pointer-events: none; z-index: -1; }
.ambient-one { background: #7545ff; top: 160px; left: -250px; }
.ambient-two { background: #00c9d8; top: 800px; right: -300px; }
.site-header {
  width: min(1180px, calc(100% - 56px)); height: 88px; margin: auto;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); position: relative; z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-symbol { color: var(--cyan); font-size: 31px; line-height: 1; text-shadow: 0 0 20px #F5C451; }
.brand-name { font: 600 14px var(--font-display); letter-spacing: .13em; }
.brand-name b { color: var(--purple); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 34px; color: #333634; font-size: 13px; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .text-link:hover { color: var(--cyan); }
.nav-contact { border: 1px solid rgba(167,139,250,.55); border-radius: 30px; padding: 11px 17px; color: rgb(255, 0, 0) !important; }
.nav-contact span { color: var(--cyan); margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 23px; height: 2px; background: white; margin: 5px; }

.hero {
  width: min(1180px, calc(100% - 56px)); min-height: 650px; margin: auto;
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 45px;
  padding: 65px 0 90px; position: relative;
}
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .2em; margin: 0 0 20px; }
.eyebrow-line { display: inline-block; width: 26px; height: 1px; background: var(--cyan); vertical-align: middle; margin-right: 9px; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.045em; line-height: 1.03; margin: 0; font-weight: 600; }
.hero h1 { font-size: clamp(58px, 7vw, 91px); }
h1 span, h2 span { color: var(--purple); }
.hero-description { color: var(--muted); max-width: 475px; font-size: 15px; line-height: 1.85; margin: 25px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 19px; padding: 14px 21px; border-radius: 5px; border: 0; font-weight: 700; font-size: 12px; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #101020; background: linear-gradient(110deg, var(--cyan), #b3a0ff); box-shadow: 0 8px 30px rgba(104,225,232,.15); }
.button-primary:hover { box-shadow: 0 10px 35px rgba(104,225,232,.28); }
.text-link { color: #f80303; font-size: 12px; font-weight: 700; }
.text-link span { color: var(--cyan); margin-left: 7px; }
.hero-note { display: flex; align-items: center; gap: 10px; color: #454b46; font-size: 11px; margin-top: 58px; }
.note-star { color: var(--pink); font-size: 19px; }
.hero-art { height: 470px; position: relative; display: grid; place-items: center; }
.hero-image { width: 82%; height: 88%; overflow: hidden; border-radius: 48% 48% 8px 8px; position: relative; z-index: 2; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 25px 90px rgba(0,0,0,.45); }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,25,.45)); }
.hero-image img, .about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-orbit { position: absolute; border: 1px solid rgba(167,139,250,.35); border-radius: 50%; transform: rotate(-27deg); }
.orbit-one { width: 100%; height: 67%; }
.orbit-two { width: 91%; height: 88%; border-color: rgba(104,225,232,.23); transform: rotate(34deg); }
.floating-tag { position: absolute; z-index: 3; background: rgba(18,22,43,.9); border: 1px solid var(--line); padding: 10px 14px; border-radius: 4px; font-size: 9px; letter-spacing: .1em; box-shadow: 0 10px 30px #0005; }
.tag-top { top: 54px; right: 0; color: #d9d5ff; }
.tag-top span { color: var(--pink); margin-right: 6px; }
.tag-bottom { bottom: 35px; left: 0; color: #d6d8e9; }
.tag-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 8px; box-shadow: 0 0 10px var(--cyan); }
.hero-number { position: absolute; right: 4%; bottom: 3px; color: #777c99; font: 12px var(--font-display); letter-spacing: .12em; }
.hero-number i { color: var(--purple); font-style: normal; padding: 0 5px; }
.hero-scroll { position: absolute; bottom: 24px; left: 0; color: #747992; font-size: 8px; letter-spacing: .2em; display: flex; align-items: center; gap: 10px; }
.hero-scroll span { width: 30px; height: 1px; background: var(--purple); }

.section-wrap { width: min(1100px, calc(100% - 56px)); margin: auto; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; padding: 105px 0 90px; border-top: 1px solid var(--line); }
.intro h2, .section-heading h2, .about h2, .contact h2 { font-size: clamp(38px, 5vw, 58px); }
.intro-text { color: var(--muted); max-width: 470px; font-size: 14px; line-height: 1.9; margin: 0 0 4px; }
.catalog { padding: 70px 0 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-aside { color: #9297b1; font-size: 11px; line-height: 1.8; margin: 0 0 5px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.search-box { display: flex; align-items: center; gap: 10px; width: 235px; border-bottom: 1px solid #3a3e58; padding: 8px 2px; color: var(--cyan); }
.search-box span { font-size: 23px; }
.search-box input { width: 100%; color: white; background: none; border: 0; outline: 0; font-size: 11px; }
.search-box input::placeholder { color: #777c97; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.filter-button { border: 1px solid var(--line); background: transparent; color: #aeb2c8; padding: 8px 13px; border-radius: 30px; font-size: 10px; transition: .2s; }
.filter-button:hover, .filter-button.active { color: #fff; border-color: var(--purple); background: rgba(167,139,250,.13); }
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.show-card { min-width: 0; background: #d4cece; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; transition: transform .25s, border-color .25s; }
.show-card:hover { transform: translateY(-6px); border-color: rgba(167,139,250,.6); }
.card-image { height: 220px; position: relative; overflow: hidden; background: linear-gradient(135deg,#24234b,#142e3d); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.show-card:hover .card-image img { transform: scale(1.05); }
.card-image::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #0B2545); }
.card-category { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 10px; border-radius: 30px; background: rgba(10,12,27,.8); border: 1px solid #ffffff25; color: #d8d1ff; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.card-body { padding: 19px 19px 20px; }
.card-body h3 { font: 600 22px var(--font-display); margin: 0 0 8px; letter-spacing: -.02em; }
.card-body p { color: #212221; font-size: 11px; line-height: 1.7; min-height: 58px; margin: 0 0 18px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.card-meta { color: #858ba7; font-size: 9px; }
.card-more { color: var(--cyan); font-size: 10px; font-weight: 700; background: none; border: 0; padding: 5px 0; }
.no-results { color: var(--muted); text-align: center; padding: 45px 0; }

.feature-band { min-height: 430px; position: relative; overflow: hidden; display: grid; place-items: center; text-align: center; background: linear-gradient(115deg,#d3d2d8,#717172 58%,#4b5255); padding: 80px 25px; }
.feature-band::before, .feature-band::after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid #05f84220; border-radius: 50%; }
.feature-band::before { left: -120px; top: -200px; box-shadow: 0 0 0 35px #ffffff08, 0 0 0 75px #ffffff06; }
.feature-band::after { right: -150px; bottom: -230px; box-shadow: 0 0 0 35px #ffffff08, 0 0 0 75px #ffffff06; }
.feature-content { max-width: 660px; position: relative; z-index: 2; }
.feature-content .eyebrow { color: #0c0c0c; }
.feature-content h2 { font-size: clamp(40px, 5vw, 62px); }
.feature-content h2 span { color: #c94f1f; }
.feature-content > p:not(.eyebrow) { color: #111111; font-size: 13px; line-height: 1.8; max-width: 520px; margin: 20px auto 25px; }
.button-light { background: #f5f1ff; color: #fa4a04; }
.feature-orb { position: absolute; color: #d8530680; text-shadow: 0 0 25px white; }
.orb-a { top: 65px; left: 18%; font-size: 35px; }
.orb-b { bottom: 65px; right: 17%; font-size: 55px; }
.orb-c { top: 80px; right: 24%; font-size: 22px; color: #fa3d04; }

.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: center; padding: 125px 0; }
.about-visual { height: 420px; position: relative; }
.about-visual img { border-radius: 5px; filter: saturate(.8); }
.about-stamp { position: absolute; right: -32px; bottom: 35px; width: 112px; height: 112px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cyan); color: #11172a; font: 700 11px var(--font-display); letter-spacing: .12em; transform: rotate(9deg); box-shadow: 0 8px 30px #0006; }
.about-stamp b { font-size: 20px; line-height: 1.1; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 22px 0; }
.about-copy .text-link { display: inline-block; margin-top: 10px; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding: 95px 0 120px; border-top: 1px solid var(--line); }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 390px; margin: 25px 0; }
.contact-detail { color: #aeb2c8; font-size: 10px; margin-top: 13px; }
.contact-detail span { color: var(--cyan); margin-right: 8px; }
.contact-form { background: #afaeaf; border: 1px solid var(--line); border-radius: 7px; padding: 28px; }
.contact-form label { display: block; color: #1d1c1c; font-size: 10px; margin-bottom: 17px; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 7px; background: #0b0e1e; color: white; border: 1px solid #2b304b; border-radius: 4px; padding: 12px; outline: none; font-size: 11px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--purple); }
.contact-form textarea { resize: vertical; }
.contact-form select option { background: #03f818; }
.form-submit { width: 100%; }
.form-note, .form-feedback { color: #1e201e; font-size: 9px; line-height: 1.6; margin: 12px 0 0; }
.form-feedback { color: var(--cyan); }
.site-footer { padding: 35px max(28px, calc((100% - 1100px)/2)); border-top: 1px solid var(--line); }
.footer-brand .brand-symbol { font-size: 24px; }
.footer-brand .brand-name { font-size: 11px; }
.site-footer > p { color: #1d1f1d; font-size: 10px; margin: 13px 0 28px; }
.footer-bottom { display: flex; justify-content: space-between; color: #33343a; font-size: 9px; padding-top: 17px; border-top: 1px solid var(--line); }
.footer-bottom a { color: #b7ccbd; }

.show-dialog { width: min(620px, calc(100% - 30px)); max-height: 88vh; overflow-y: auto; padding: 0; color: var(--text); background: #11152a; border: 1px solid #7770a7; border-radius: 9px; box-shadow: 0 25px 100px #000b; }
.show-dialog::backdrop { background: rgba(3,4,13,.82); backdrop-filter: blur(7px); }
.dialog-close { position: sticky; float: right; top: 12px; margin: 12px 12px -48px 0; z-index: 4; border: 1px solid #ffffff50; border-radius: 50%; width: 34px; height: 34px; color: white; background: #071B33bb; font-size: 23px; line-height: 1; }
.dialog-image { height: 260px; width: 100%; object-fit: cover; display: block; }
.dialog-inner { padding: 25px 30px 30px; }
.dialog-inner .eyebrow { margin-bottom: 10px; }
.dialog-inner h2 { font-size: 36px; margin-bottom: 14px; }
.dialog-inner p { color: #b0cab2; font-size: 12px; line-height: 1.8; }
.dialog-facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.dialog-facts span { border: 1px solid var(--line); color: #d2e7d3; padding: 7px 10px; border-radius: 30px; font-size: 9px; }

@media (max-width: 850px) {
  .main-nav { gap: 18px; }
  .hero { gap: 15px; min-height: 570px; }
  .hero-art { height: 390px; }
  .show-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { gap: 48px; }
}
@media (max-width: 650px) {
  .site-header { width: calc(100% - 36px); height: 72px; }
  .brand-name { font-size: 11px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 71px; left: -18px; right: -18px; padding: 20px; background: #0B2545; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 18px; }
  .main-nav.open { display: flex; }
  .nav-contact { text-align: center; }
  .hero { width: calc(100% - 36px); display: flex; flex-direction: column; align-items: stretch; padding: 65px 0 75px; gap: 30px; }
  .hero h1 { font-size: clamp(58px, 16vw, 78px); }
  .hero-description { font-size: 13px; }
  .hero-note { margin-top: 35px; }
  .hero-art { height: 330px; }
  .hero-image { width: 78%; height: 88%; }
  .tag-top { right: -2px; top: 25px; }
  .tag-bottom { bottom: 15px; left: -3px; }
  .hero-scroll { bottom: 15px; }
  .section-wrap { width: calc(100% - 36px); }
  .intro { grid-template-columns: 1fr; gap: 20px; padding: 75px 0 55px; }
  .intro h2, .section-heading h2, .about h2, .contact h2 { font-size: 43px; }
  .catalog { padding: 55px 0 75px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-aside { margin-top: 18px; }
  .catalog-toolbar { display: block; }
  .search-box { width: 100%; margin-bottom: 18px; }
  .filters { justify-content: flex-start; }
  .filter-button { padding: 8px 11px; }
  .show-grid { grid-template-columns: 1fr; gap: 17px; }
  .card-image { height: 230px; }
  .feature-band { min-height: 420px; }
  .feature-content h2 { font-size: 43px; }
  .about { grid-template-columns: 1fr; gap: 45px; padding: 80px 0; }
  .about-visual { height: 300px; margin-right: 22px; }
  .about-stamp { width: 90px; height: 90px; right: -22px; bottom: 20px; }
  .contact { grid-template-columns: 1fr; gap: 35px; padding: 75px 0; }
  .contact-form { padding: 20px; }
  .footer-bottom { gap: 15px; }
}


/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;

  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  text-decoration: none;

  /* Oculto al inicio; el JS lo muestra */
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: scale(1.08);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #075e54;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

/* Pulso suave para llamar la atención */
.whatsapp-float.visible::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulso 2s ease-out infinite;
}

@keyframes pulso {
  from { transform: scale(1);   opacity: 0.7; }
  to   { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float.visible::after {
    transition: none;
    animation: none;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}

/* ===== SECCIÓN DE CONTACTO + BOTÓN WHATSAPP 2(agregar al final de tu CSS) ===== */

.wa-contacto {
  --wa-verde: #1fa855;
  --wa-verde-oscuro: #178a45;
  --wa-fondo: #f3f8f5;
  --wa-texto: #16261d;

  background: var(--wa-fondo);
  color: var(--wa-texto);
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
  text-align: center;
}

.wa-contacto__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.wa-contacto__titulo {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.wa-contacto__texto {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.5;
}

/* Botón grande */
.wa-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: min(100%, 26rem);
  padding: 1.25rem 2rem;
  background: var(--wa-verde);
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(31, 168, 85, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wa-boton:hover {
  background: var(--wa-verde-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 168, 85, 0.45);
}

.wa-boton:active {
  transform: translateY(0);
}

.wa-boton:focus-visible {
  outline: 3px solid var(--wa-texto);
  outline-offset: 4px;
}

.wa-boton__icono {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.wa-contacto__nota {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .wa-boton {
    transition: none;
  }
  .wa-boton:hover {
    transform: none;
  }
}
