/* Estilos Generales */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: #1a1a2e; /* Fondo oscuro místico */
    color: #e0e0e0;
    line-height: 1.6;
}

/* Encabezado y Navegación */
.main-header {
    background: rgba(18, 18, 30, 0.7); /* Transparencia para efecto de profundidad */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;  
    border-bottom: 2px solid #4a296b;
}

/*.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}*/

/*.logo {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}*/

/*.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}*/

/*.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #9c6cce;
}*/

/* Contenido Principal */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    border-bottom: 3px solid #6c4692;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Horóscopo del Día */
.horoscope-section {
    text-align: center;
}

.daily-horoscope-card {
    background: #2b2b45;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    max-width: 600px;
    border: 1px solid #4a296b;
}

.sign-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #9c6cce;
    object-fit: cover;
    margin-bottom: 1rem;
}

.sign-name {
    font-size: 2rem;
    color: #f7d24a;
    margin-top: 0;
}

.horoscope-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.horoscope-details p {
    margin: 0.5rem 0;
}

/* Cuadrícula de Signos Zodiacales */
.signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.sign-card {
    background: #2b2b45;
    color: #e0e0e0;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid #4a296b;
}

.sign-card:hover {
    transform: translateY(-5px);
    background: #3b3b55;
}

.sign-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.sign-card h4 {
    margin: 0;
    font-size: 1.2rem;
}

/* Pie de Página */
.main-footer {
    background: #12121e;
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid #4a296b;
}

.social-links a {
    color: #e0e0e0;
    margin: 0 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #9c6cce;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .daily-horoscope-card {
        padding: 1.5rem;
    }
}

/* Estilos del Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Permanece en su lugar incluso al desplazar la página */
    z-index: 200; /* Se superpone a todo lo demás */
    left: 0;
    top: 0;
    width: 100%; /* Cubre todo el ancho */
    height: 100%; /* Cubre toda la altura */
    overflow: auto; /* Permite desplazamiento si el contenido es demasiado grande */
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente oscuro */
    backdrop-filter: blur(5px); /* Efecto de desenfoque en el fondo */
    display: flex; /* Para centrar el contenido */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
}

.modal-content {
    background-color: #2b2b45;
    margin: auto;
    padding: 30px;
    border: 1px solid #4a296b;
    border-radius: 15px;
    width: 80%; /* Ancho del modal */
    max-width: 600px; /* Ancho máximo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    text-align: center;
    color: #e0e0e0;
    animation: fadeIn 0.3s ease-out; /* Animación de entrada */
}

/* Animación de entrada del modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #ffffff;
    text-decoration: none;
}

.modal-sign-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #9c6cce;
    object-fit: cover;
    margin-bottom: 1rem;
}

.modal-sign-name {
    font-size: 2.2rem;
    color: #f7d24a;
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-horoscope-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-horoscope-details p {
    margin: 0.7rem 0;
    text-align: left;
    padding-left: 20px;
}

/* Media Queries para Responsividad del Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-sign-name {
        font-size: 1.8rem;
    }
    .modal-sign-image {
        width: 100px;
        height: 100px;
    }
    .close-button {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}

/* Nuevos estilos para el campo de entrada de fecha */
.date-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(43, 43, 69, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.date-label {
    font-size: 1.1rem;
    color: #f7d24a;
    font-weight: bold;
}

.date-input {
    padding: 10px 15px;
    border: 2px solid #6a40a5;
    border-radius: 8px;
    background-color: #1e1e30;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.date-input:focus {
    border-color: #9c6cce;
    outline: none;
    box-shadow: 0 0 10px #9c6cce;
}

.find-sign-btn {
    padding: 12px 25px;
    background-color: #6a40a5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.find-sign-btn:hover {
    background-color: #9c6cce;
    transform: translateY(-2px);
}

.find-sign-btn:active {
    transform: translateY(0);
}

/* Estilos existentes de tu barra de navegación */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a1a2e; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  
}

.logo {
    color: #f7d24a;
    font-size: 1.8rem;
    margin: 0;    
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}


.nav-links li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #9c6cce;
}

/* Ocultar el ícono de hamburguesa en pantallas de escritorio por defecto */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #f7d24a;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* --- Media Query para dispositivos móviles --- */
@media (max-width: 768px) {
    .nav-bar {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Mostrar el ícono de hamburguesa en móviles */
    .menu-toggle {
        display: flex;
        z-index: 1000; /* Para asegurar que esté encima del menú */
    }

    /* Ocultar la lista de enlaces por defecto en móviles */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #1a1a2e;
        position: absolute;
        top: 60px; /* Ajusta este valor si tu header es más grande */
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%); /* Ocultar fuera de la vista */
        transition: transform 0.4s ease-in-out;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }

    /* Clase que se agregará con JavaScript para mostrar el menú */
    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }
    
    /* Animación del ícono de hamburguesa a "X" */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Nuevos estilos para el modal de compatibilidad */
.modal-title {
    color: #f7d24a;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-description {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.compatibility-selectors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.selector-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.selector-group label {
    font-size: 1rem;
    color: #9c6cce;
    font-weight: bold;
}

.sign-select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #6a40a5;
    background-color: #1e1e30;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    min-width: 150px;
    cursor: pointer;
}

.sign-select option {
    background-color: #1a1a2e;
}

.calculate-btn {
    padding: 12px 25px;
    background-color: #6a40a5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.calculate-btn:hover {
    background-color: #9c6cce;
    transform: translateY(-2px);
}

.compatibility-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #1e1e30;
    border: 1px solid #4a296b;
    display: none; /* Oculto por defecto */
    text-align: center;
}

.compatibility-result h4 {
    color: #f7d24a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.compatibility-result p {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* Media Query para compatibilidad en móviles */
@media (max-width: 768px) {
    .compatibility-selectors {
        flex-direction: column;
    }
}

/* Nuevo: Estilos para el contenedor de resultados del horóscopo por fecha */
.date-horoscope-result {
    display: none; /* Oculto por defecto */
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #1e1e30;
    border: 1px solid #4a296b;
    border-radius: 10px;
    text-align: center;
}

.date-horoscope-result .modal-sign-image {
    max-width: 80px;
    margin-bottom: 0.5rem;
}

.date-horoscope-result .modal-sign-name {
    color: #f7d24a;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.date-horoscope-result .modal-horoscope-text {
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.date-horoscope-result p {
    color: #e0e0e0;
    font-size: 1rem;
    margin: 0.5rem 0;
}

/*Menu***********************************************************/
.dropdown-menu {
  display: none;
  position: static;
  top: 100%;
  left: 0;
  background-color: #444;
  list-style: none;
  padding: 0;
  min-width: 50px;
}

.dropdown:hover .dropdown-menu {
  display:inline;
}

/* .dropdown-menu {
    position: static; 
    display: none;
    background-color: #555;
  } */

 .dropdown.open .dropdown-menu {
    display: block;
  }