/* =====================================================
   1. TIPOGRAFÍAS PROPIAS (assets/fonts)
===================================================== */
@font-face {
  font-family: 'CursiveSerifBook';
  src: url('assets/fonts/CursiveSerif-Book.ttf') format('truetype');
}

@font-face {
  font-family: 'DelferDisplay';
  src: url('assets/fonts/DelferDisplay.woff') format('woff'), url('assets/fonts/DelferDisplay.ttf') format('truetype');
}

@font-face {
  font-family: 'Nathalia';
  src: url('assets/fonts/Nathalia_2.ttf') format('truetype');
}

/* =====================================================
   2. RESET BÁSICO Y BASE
===================================================== */
html {
  overflow-x: hidden;
  /* sin barra de scroll visible (la página sigue haciendo scroll igual) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111;
  overflow-x: hidden;
  width: 100%;
}

.page {
  max-width: 1728px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* =====================================================
   3. HEADER ESCRITORIO
===================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  
  /* Degradado con #96EFEB difuminado hacia blanco */
  background: linear-gradient(
    to top, 
    rgba(150, 239, 235, 0.6) 0%, 
    rgba(150, 239, 235, 0.2) 50%, 
    #ffffff 100%
  );

  z-index: 2000;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

header nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

header a {
  color: #111;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

header a:first-child { 
  text-decoration: none; 
}

/* Kaomoji en Helvetica Neue y sin espacio entre letras */
header a.kaomoji { 
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  letter-spacing: normal !important; 
}

/* Estilos de la etiqueta "work" */
header .work-link {
  position: relative;
  border: none;
  padding: 4px 14px;
  border-radius: 20px;
  background: transparent;
  z-index: 1;
}

header .work-link::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 4px solid rgba(255, 182, 193, 0.85);
  border-radius: 25px;
  filter: blur(4px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

header .work-link:hover::before {
  opacity: 1;
}

header .binya-link { 
  font-weight: 600; 
}

.header-spacer { 
  height: 52px; 
}

/* =====================================================
   4. ANIMACIÓN "HELP!"
===================================================== */
@keyframes helpShake {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-10deg) scale(1.1); }
  40% { transform: rotate(10deg) scale(1.1); }
  60% { transform: rotate(-6deg) scale(1.1); }
  80% { transform: rotate(6deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

.help-link {
  display: inline-block;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.help-link:hover {
  animation: helpShake 0.35s ease infinite;
  color: #ff0000 !important;
}

/* =====================================================
   5. POPUP "TUS ÁNGELES TE PROTEGEN" (RESTAURADO)
===================================================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.popup-box {
  position: relative;
  background: #ffffff;
  border: 3px solid;
  border-image: linear-gradient(90deg, #ff9ecf, #a6e3ff, #b9ffb0, #fff3a6) 1;
  padding: 40px 50px;
  text-align: center;
  max-width: 480px;
  font-family: 'Courier New', monospace;
  color: #4a3fb3;
  font-size: 22px;
  line-height: 1.5;
}

.popup-box u { 
  text-decoration: underline; 
}

.popup-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #4a3fb3;
}

/* =====================================================
   6. HERO CON TEXTO SUPERPUESTO
===================================================== */
.hero-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 52px);
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  background: url('assets/images/fotoHERO.jpg') center/cover no-repeat;
}

.texto-intro {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 1600; 
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.72;
  padding: 0 53px;
  color: #ff2626;
  text-align: justify;          /* las líneas llegan hasta el margen derecho, igual que el izquierdo */
  text-justify: inter-word;
  max-width: none;
}

/* =====================================================
   Ajuste específico para escritorio
===================================================== */
.header-spacer.solo-desktop {
  height: 52px;
  display: block;
}

/* =====================================================
   7. CARRUSEL 1
===================================================== */
.carrusel-1 {
  width: 100%;
  height: 1062px;
  overflow: hidden;
  background: #000;
}

.carrusel-1__pista {
  display: flex;
  width: max-content;
  height: 1062px;
  animation: desplazar 35s linear infinite;
}

.carrusel-1__pista picture { display: block; flex-shrink: 0; }
.carrusel-1__pista { will-change: transform; backface-visibility: hidden; }
.carrusel-1__pista img {
  height: 1062px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes desplazar {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   8. BLOQUE MORADO Y TEXTO SECUNDARIO
===================================================== */
.bloque-morado {
  width: 100%;
  position: relative;
  background: #9C7DC9;
  padding: 60px 30px;
  box-sizing: border-box;
}

.bloque-morado p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
  font-size: 60px;
  line-height: 1.12;
  color: #000000;
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0;
}

.bloque-morado .fx { font-family: 'DelferDisplay', 'CursiveSerifBook', serif; font-weight: 400; }

.texto-secundario {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: italic;
  font-size: 32px;
  line-height: 1.6;
  text-align: justify;
  width: 100%;
  max-width: 100%;
  padding: 80px 100px; 
  box-sizing: border-box;
  margin: 0;
}

/* =====================================================
   9. GALERÍA FINAL Y FOOTER
===================================================== */
.galeria-final {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

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

footer {
  cursor: pointer;
  text-align: center;
  padding: 60px 20px 100px;
}

footer .thanks {
  font-family: 'Nathalia', cursive;
  font-size: 240px;
  color: #2447F7;
  line-height: 1;
  word-break: break-word;
}

@media (max-width: 1300px) {
  footer .thanks { font-size: 14vw; }
  .bloque-morado p { font-size: 40px; }
}

/* =====================================================
   10. GATO FLOTANTE
===================================================== */
#gato {
  position: fixed;
  bottom: 20px;
  right: 30px;
  width: 70px;
  height: auto;
  cursor: default;
  animation: flotar 3s ease-in-out infinite;
  z-index: 1500;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-6deg); }
}

/* =====================================================
   11. COMPONENTES EXCLUSIVOS MÓVIL (HEADER Y ÓVALO)
===================================================== */

/* Estilos base de la barra móvil */
.header-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  background: linear-gradient(
    to top, 
    rgba(150, 239, 235, 0.6) 0%, 
    rgba(150, 239, 235, 0.2) 50%, 
    #ffffff 100%
  );
  z-index: 2500;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  box-sizing: border-box;
}

.header-mobile .nav-brand {
  color: #111;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.header-mobile .nav-center.kaomoji {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  letter-spacing: normal !important;
  color: #111;
  text-decoration: none;
  cursor: pointer;
}

/* Botón Hamburguesa e icono animado a X */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 2600;
}

.icon-bar {
  width: 100%;
  height: 1.5px;
  background-color: #000;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.open .icon-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open .icon-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .icon-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Overlay y contenedor Óvalo (SIN FONDO GRIS NI EXTRA) */
.oval-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 78px;
  box-sizing: border-box;
  background: transparent; /* Mantiene la transparencia original */
}

.oval-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.oval-container {
  width: 304px;
  height: min(603px, calc(100vh - 90px));
  height: min(603px, calc(100svh - 90px));
  background-color: #D9D9D9;
  border: 1px solid #000000;
  border-radius: 50%;
  /* Resplandor verde original */
  box-shadow: 0 0 50px 15px rgba(213, 255, 202, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.oval-menu-overlay.active .oval-container {
  transform: scale(1);
}

/* Espaciado exacto de 90px entre los enlaces */
.oval-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: min(90px, calc((100svh - 90px) * 0.15));
}

/* Tipografía del menú */
.oval-link {
  color: #000;
  text-decoration: none;
  font-size: 22px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.oval-link.italic { 
  font-style: italic; 
}

.oval-link.bold { 
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700; 
}

/* =====================================================
   12. MEDIA QUERIES (AJUSTES MÓVIL <= 768px)
===================================================== */

/* Por defecto en pantalla grande (Escritorio): oculta elementos de móvil */
.solo-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  /* Ocultar elementos exclusivos de escritorio */
  .solo-desktop {
    display: none !important;
  }
  
  /* Activar elementos exclusivos de móvil */
  .header-mobile.solo-mobile {
    display: flex !important;
  }
  
  .oval-menu-overlay.solo-mobile {
    display: flex !important;
  }
  
  .header-spacer.solo-mobile {
    display: block !important;
    height: 52px;
    width: 100%;
  }

  /* Imagen diferente para el Hero en móvil */
  .hero {
    background-image: url('assets/images/final-8.jpg') !important; /* Sustituye por la ruta de tu imagen móvil */
  }

  /* 1. Texto intro sobre la imagen HERO (Mismos márgenes laterales que el bloque morado) */
  .texto-intro {
    padding: 0 33px !important;
  }

  /* 2. Carrusel 1 (Reducción del 20% de altura) */
  .carrusel-1,
  .carrusel-1__pista,
  .carrusel-1__pista img {
    height: 700px !important;
  }

  /* 3. Bloque morado (Base de márgenes) */
  .bloque-morado {
    width: 100% !important;
    position: static !important;
    margin: 0 !important;
    padding: 28px 14px !important;
    box-sizing: border-box !important;
  }

  .bloque-morado p {
    font-size: 6vw !important;
    line-height: 1.1 !important;
    text-align: left !important;
  }

  /* 4. Texto secundario después del carrusel (20px y mismos márgenes laterales) */
  .texto-secundario {
    font-size: 20px !important;
    padding: 40px 33px !important;
    box-sizing: border-box !important;
  }

  /* Popup de los ángeles: con aire a los lados y más pequeño */
  .popup-box {
    width: calc(100% - 64px) !important;
    max-width: 320px !important;
    box-sizing: border-box !important;
    padding: 30px 20px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .popup-close { width: 44px !important; height: 44px !important; }

  /* 5. Gato flotante más pequeño en móvil */
  #gato {
    width: 50px !important;
    bottom: 15px !important;
    right: 20px !important;
  }

  /* 6. Footer "Thanks for Scrolling" (Margen reducido a 5px exactos) */
  footer {
    padding: 40px 5px 60px !important; /* 5px de espacio a los lados */
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  footer .thanks {
    font-size: 15.2vw !important; /* Tamaño aumentado para ajustarse al margen de 5px */
    line-height: 1 !important;
    white-space: nowrap !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    letter-spacing: -0.02em !important;
  }
}
/* =====================================================
   CARTA DE TAROT (clic en el gato)
===================================================== */
.tarot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3100;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.tarot-overlay.hidden { opacity: 0; pointer-events: none; }

.tarot-box {
  position: relative;
  background: #ffffff;
  border: 3px solid;
  border-image: linear-gradient(90deg, #ff9ecf, #a6e3ff, #b9ffb0, #fff3a6) 1;
  padding: 36px 30px 24px;
  max-width: min(92vw, 380px);
  text-align: center;
  font-family: "Courier New", monospace;
  color: #4a3fb3;
  font-size: 18px;
  line-height: 1.4;
  animation: tarotIn 0.7s ease both;
}
.tarot-box img {
  display: block;
  margin: 0 auto 16px;
  height: min(52vh, 440px);
  width: auto;
  max-width: 100%;
}
.tarot-box p { margin: 0; }

.tarot-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #4a3fb3;
}

@keyframes tarotIn {
  from { opacity: 0; transform: perspective(900px) rotateY(80deg) scale(0.85); }
  to   { opacity: 1; transform: perspective(900px) rotateY(0) scale(1); }
}
