
html,
body {
	height: 100vh;
	width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===============================
   NAV “WOW” MÍSTICO
   =============================== */

nav.menu {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.7em 0;
    border-radius: 1px;
    overflow: hidden;
    z-index: 10;
    font-weight: 500;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1em;
}

  .menu-items {
    display: flex;
    flex-direction:row;
  }

nav.menu .halo {
    position: absolute;
    bottom: -6px;
    width: 60%;
    height: 4px;
    border-radius: 4px;
    background: #f1df79;
    box-shadow: 0 0 16px #f1df79, 0 0 32px #9d4edd, 0 0 48px #6f42c1;
    transition: all 0.3s ease;
    
}

/* Fondo animado tipo nebulosa */
nav.menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #9d4edd, transparent 25%),

                linear-gradient(135deg, #1a0033, #4b0082, #2b004d);
    background-size: 200% 200%;
    animation: nebulaMove 10s linear infinite;
    z-index: -2;
    filter: blur(5px);
}

/* Overlay de partículas pequeñas */
nav.menu::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(#fff 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.1;
    animation: particleMove 8s linear infinite;
    z-index: -1;
}

/* Nav items */
nav.menu .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.2em;
    padding: 0.7em 1.5em;
    border-radius: 10px;
    color: #fff;
    text-shadow: 0 0 6px #9d4edd, 0 0 12px #f1df79;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: none; /* Quitamos el box-shadow para que no haya "cuadro" */
}

/* Hover sobre nav-item: glow solo de texto y levitación */
nav.menu .nav-item:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.15);
    text-shadow: 
        0 0 16px #9d4edd, 
        0 0 32px #f1df79, 
        0 0 48px #6f42c1, 
        0 0 64px #9d4edd, 
        0 0 80px #f1df79;
}

/* Indicador activo tipo halo animado */
nav.menu .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    border-radius: 4px;
    background: #f1df79;
    box-shadow: 
        0 0 16px #f1df79, 
        0 0 32px #9d4edd, 
        0 0 48px #6f42c1;
    animation: haloPulse 1s infinite ease-in-out alternate;
}

/* Animaciones */

@keyframes nebulaMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

@keyframes particleMove {
    0% {transform: translate(0,0);}
    50% {transform: translate(100px, 100px);}
    100% {transform: translate(0,0);}
}

@keyframes haloPulse {
    0% { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scaleX(1.4); opacity: 1; }
    100% { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
}

/* === BOTÓN HAMBURGUESA === */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #f1df79;
  cursor: pointer;
  z-index: 30;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  left: 10px;
}

.menu-toggle:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px #f1df79, 0 0 20px #9d4edd;
}

/* ===============
    Global Styles
   =============== */

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


/* ============
    Typography
   ============ */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin: 3%;
    text-align: center;
    font-family: 'Cinzel Decorative', cursive;

}

/* Font Weight */
h1, h2 {
    font-weight: 1000;
}
h3, h4, h5, h6 {
    font-weight: 800;
}

/* Links */
a {
    color: hsla(var(--primary), 1);
    font-size: var(--paragraph);
    text-decoration: underline;
}
a:visited {
    color: hsla(var(--primary), .5);
}


/* =========
    Flexbox
   ========= */

.flexbox {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flexbox-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.flexbox-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
/* Columns */
.flexbox-col {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.flexbox-col-left {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}
.flexbox-col-left-ns {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
}
.flexbox-col-right {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
}
.flexbox-col-start-center {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}
/* Spacings */
.flexbox-space-bet {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========
    Classes
   ========= */

.view-width {
    width: 70%;
}

/* ======
    Main
   ====== */

#main {
    margin: 0 0 0 5em;
    min-height: 150vh;
}
#main > h2 {
    width: 80%;
    max-width: 80%;
}
#main > p {
    width: 80%;
    max-width: 80%;
}

/* =============
    ::Selectors
   ============= */

/* Selection */
::selection {
    color: hsl(var(--white));
    background: hsla(var(--primary), .33);
}
/* Scrollbar */
::-webkit-scrollbar-track {
    background-color: hsl(var(--background));
}
::-webkit-scrollbar {
    width: 8px;
    background-color: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
    background-color: hsl(var(--primary));
}


/* =========================================
   MEDIA QUERIES RESPONSIVE
   ========================================= */

/* =========================================
   MEDIA QUERIES RESPONSIVE
   ========================================= */

/* 🖥️ TABLETS GRANDES Y PORTÁTILES PEQUEÑOS */
@media only screen and (max-width: 1024px) {

  /*NAV*/
  nav.menu {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding: 0.8em;
  }

  .menu-toggle {
    display: block;
    font-size: 4rem;
    margin-right: auto;
  }

  .menu-items {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: rgba(20, 0, 40, 0.95);
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.6);
    padding-top: 80px;
    transition: left 0.2s ease;
    z-index: 25;
  }

  nav.menu.open .menu-items {
    left: 0;
  }

  nav.menu .nav-item {
    display: block;
    margin: 15px 0;
    padding: 1em;
    width: 80%;
    font-size: 2.2rem;
    text-align: left;
    margin-left: 10%;
    color: #fff;
    text-shadow: 0 0 8px #9d4edd, 0 0 16px #f1df79;
    background: rgba(40, 0, 70, 0.6);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(241, 223, 121, 0.4);
    transition: all 0.2s ease;
  }

  .nav-item a {
    font-size: 1.8rem;
  }

  nav.menu .nav-item:hover {
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(241, 223, 121, 0.7);
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  p, a, li, h3 { font-size: 2rem; }

  .view-width { width: 85%; }

  .tarot-section p {
    font-size: 2rem;
  }
  #tarot-display {
    display:flex;       
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    margin-top: 0px;    
  }

  .tarot-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .tarot-card { transform: scale(1.1); }

  .boton {
    transform: scale(1.8);
    margin-top: 40px;
  }
  .boton:hover { transform: scale(1.85); }
  .boton:active { transform: scale(1.75); }

  #tarot-card-image-info {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 66%;
    margin-right: 40%;
    width: 90%;
    height: auto;
  }

  #tarot-card-info {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%) scale(1.8);
    bottom: 20%;
    width: 90%;
    height: auto;
  }

  #tarot-card-info { margin-top: 10px; }

  .Horoscopo-title { font-size: 3rem; }
  .zodiac-links { margin-top: 20px; }
  .zodiac-links a { font-size: 1.8rem; }
  .zodiac-name {
    text-align: center;
    margin-top: 5%;
    margin-bottom: 5%;
    font-size: 2rem;
  }

  .zodiac-item img {
    width: 165px;
    height: auto;
    margin-top: 3%;
  }

  .prediction-box {
    font-size: 2rem;
  }

  .ImagenPrincipal {
    width: 100vw;
    max-height: 10vh;
    object-fit: cover;
    object-position: center center;
    margin: 0;
    padding: 0;
  }

  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .home-hero h1 { font-size: 4.2rem; }
  .home-hero p { font-size: 2rem; }
  .quote { font-size: 1.8rem; }

  .home-sections {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .home-card { padding: 20px; }
  .home-card h3 { font-size: 0.9rem; }
  .home-card p { font-size: 0.9rem; }

  .compat-container {
    margin-top: 3%;
    padding: 30px;
    max-width: 90%;
  }

  .compat-container h2 { font-size: 2rem; }
  .compat-body p { font-size: 1.8rem; }

  select {
    font-size: 1.8rem;
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 10px;
  }

  .checkBtn {
    font-size: 1.8rem;
    padding: 16px 30px;
    border-radius: 10px;
    margin-top: 5%;
    margin-bottom: 10%;
  }

  .asc-container {
    padding: 10px;
    max-width: 95%;
    font-size: 1.5rem;
  }

  .asc-container h2 { font-size: 2.3rem; }
  .asc-container input {
    width: 100%;
    font-size: 1.5rem;
  }
  .asc-container label { font-size: 1.5rem; }

  .botonAsc {
    font-size: 2rem;
    margin-top: 5%;
    margin-bottom: 10%;
  }

  .boton-sugerencia {
    transform: scale(1.5);
  }
}

/* 📱 TABLETS VERTICALES Y MÓVILES GRANDES */
@media only screen and (max-width: 768px) {
  /*NAV*/
  nav.menu {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding: 0.8em;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    margin-right: auto;
  }

  .menu-items {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: rgba(20, 0, 40, 0.95);
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.6);
    padding-top: 80px;
    transition: left 0.2s ease;
    z-index: 25;
  }

  nav.menu.open .menu-items {
    left: 0;
  }

  nav.menu .nav-item {
    display: block;
    margin: 15px 0;
    padding: 1em;
    width: 80%;
    font-size: 1.2rem;
    text-align: left;
    margin-left: 10%;
    color: #fff;
    text-shadow: 0 0 8px #9d4edd, 0 0 16px #f1df79;
    background: rgba(40, 0, 70, 0.6);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(241, 223, 121, 0.4);
    transition: all 0.2s ease;
  }

  .nav-item a {
    font-size: 1.2rem;
  }

  nav.menu .nav-item:hover {
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(241, 223, 121, 0.7);
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  p, a, li, h3 { font-size: 2rem; }

  .view-width { width: 85%; }

  .tarot-section p {
    font-size: 2rem;
  }
  #tarot-display {
    display:flex;       
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    margin-top: 0px;    
  }

  .tarot-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 1px !important;;
  }

  .tarot-card { 
    transform: scale(0.8) !important;
    margin: 2px;
    }

  .boton {
    transform: scale(1.8);
    margin-top: 40px;
  }
  .boton:hover { transform: scale(1.85); }
  .boton:active { transform: scale(1.75); }

  #tarot-card-image-info {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%) scale(0.5) !important;
    bottom: 50%;
    margin-right: 40%;
    width: 90%;
    height: auto;
  }

  #tarot-card-info {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%) scale(1) !important;
    bottom: 1%;
    width: 90%;
    height: auto;
  }

  #tarot-card-info { margin-top: 10px; }

  .Horoscopo-title { font-size: 3rem; }
  .zodiac-links { margin-top: 20px; margin-left: 20px;}
  .zodiac-links a { font-size: 1rem !important;}
  .zodiac-name {
    text-align: center;
    margin-top: 5%;
    margin-bottom: 5%;
    font-size: 1rem;
  }

  .zodiac-item img {
    width: 125px;
    height: auto;
    margin-top: 3%;
  }

  .prediction-box {
    font-size: 1.2rem;
  }

  .ImagenPrincipal {
    width: 100vw;
    max-height: 10vh;
    object-fit: cover;
    object-position: center center;
    margin: 0;
    padding: 0;
  }

  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .home-hero h1 { font-size: 4.2rem; }
  .home-hero p { font-size: 2rem; }
  .quote { font-size: 1.8rem; }

  .home-sections {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .home-card { padding: 20px; }
  .home-card h3 { font-size: 0.9rem; }
  .home-card p { font-size: 0.9rem; }

  .compat-container {
    margin-top: 3%;
    padding: 30px;
    max-width: 90%;
  }

  .compat-container h2 { font-size: 2rem; }
  .compat-body p { font-size: 1.8rem; }

  select {
    font-size: 1.8rem;
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 10px;
  }

  .checkBtn {
    font-size: 1.8rem;
    padding: 16px 30px;
    border-radius: 10px;
    margin-top: 5%;
    margin-bottom: 10%;
  }

  .asc-container {
    padding: 10px;
    max-width: 95%;
    font-size: 1.5rem;
  }

  .asc-container h2 { font-size: 2.3rem; }
  .asc-container input {
    width: 100%;
    font-size: 1.5rem;
  }
  .asc-container label { font-size: 1.5rem; }

  .botonAsc {
    font-size: 2rem;
    margin-top: 5%;
    margin-bottom: 10%;
  }

  .boton-sugerencia {
    transform: scale(1.5);
  }
}

/* 📱 MÓVILES MEDIANOS (600px o menos) */
@media only screen and (max-width: 600px) {
  .menu-items { width: 80%; }
  .nav-item a { font-size: 1.4rem; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  p, a, li { font-size: 0.95rem; }

  .tarot-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .tarot-card { transform: scale(1.25); }
  #tarot-card-info { transform: scale(1.4); }

  .Horoscopo-title { font-size: 2.4rem; }
  .zodiac-links a { font-size: 1.5rem; }
  .compat-body p { font-size: 1.4rem; }
  select, .checkBtn { font-size: 1.4rem; }

  .home-hero h1 { font-size: 3.2rem; }
  .home-hero p { font-size: 1.2rem; }
}

/* 📱 MÓVILES PEQUEÑOS (480px o menos) */
@media only screen and (max-width: 480px) {
  .menu-items { width: 85%; }
  .nav-item a { font-size: 1.2rem; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  p, a, li { font-size: 0.9rem; }

  .tarot-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .tarot-card { transform: scale(1.3); }
  #tarot-card-info { transform: scale(1.2); }

  .Horoscopo-title { font-size: 2rem; }
  .zodiac-links a { font-size: 1.3rem; }
  .compat-body p { font-size: 1.3rem; }
  select, .checkBtn { font-size: 1.3rem; }

  .home-hero h1 { font-size: 2.8rem; }
  .home-hero p { font-size: 1.1rem; }
}

