@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #2ecc71; /* Verde Online */
    --bg-dark: #1a0b2e;
    --bg-light: #2d1b4e;
    --text-white: #ffffff;
    --gold: #d4af37;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: bold; }
.logo span { color: var(--gold); }
.btn-staff {
    text-decoration: none;
    color: #ccc;
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, #3b0d4f 0%, #1a0b2e 100%);
}

.badge {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    border: 1px solid var(--gold);
    margin-bottom: 20px;
}

h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { color: #ccc; max-width: 600px; margin: 0 auto 30px auto; }

.cta-whatsapp {
    background: linear-gradient(to right, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}
.cta-whatsapp:hover { transform: scale(1.05); }
.trust-badge { margin-top: 15px; font-size: 0.9rem; color: #aaa; }

/* Steps */
.steps {
    background-color: white;
    color: #333;
    padding: 50px 20px;
    text-align: center;
}
.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    width: 250px;
}
.icon {
    font-size: 2rem;
    color: var(--gold);
    background: #fff8e1;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
}

/* --- CHAT STYLES MEJORADOS --- */
.hidden { display: none !important; }

.chat-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.chat-box {
    background: #fff;
    /* AUMENTAMOS EL TAMAÑO AQUÍ */
    width: 95%;          /* Ocupa casi todo el ancho en móviles */
    max-width: 550px;    /* Más ancho en PC (antes era 400px) */
    height: 700px;       /* Más alto (antes era 500px) */
    max-height: 90vh;    /* Que no se salga de la pantalla */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Cabecera con Foto */
.chat-header {
    background: var(--bg-light);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarotista-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary); /* Borde verde "En línea" */
}

.info-text {
    display: flex;
    flex-direction: column;
}

.tarotista-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.tarotista-status {
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mensajes */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 18px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 1rem;
    line-height: 1.4;
    position: relative;
}

.bot {
    background: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-input-area {
    padding: 15px;
    display: flex;
    border-top: 1px solid #ddd;
    background: white;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    font-size: 1rem;
}

.chat-input-area button {
    background: var(--bg-light);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.chat-input-area button:hover {
    background: #3b0d4f;
}

#closeChatBtn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
}
#closeChatBtn:hover { color: white; }
/* --- ANIMACIÓN DE ESCRIBIENDO --- */
.typing-indicator {
    background-color: #e0e0e0;
    padding: 15px 20px;
    border-radius: 20px;
    border-bottom-left-radius: 2px;
    display: table;
    margin-bottom: 10px;
    align-self: flex-start;
    width: fit-content;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 3px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-of-type(1) { animation-delay: 0s; }
.typing-indicator span:nth-of-type(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-of-type(3) { animation-delay: 0.4s; }

@keyframes typing {
    0% { transform: translateY(0px); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
    100% { transform: translateY(0px); opacity: 0.4; }
}
/* --- ESTILOS DEL BOTÓN DE LLAMADA (CTA) --- */
.cta-box {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #d4af37;
}

.cta-box p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #333;
}

.btn-call {
    display: block;
    background: linear-gradient(45deg, #d4af37, #f1c40f);
    color: #1a0b2e;
    text-decoration: none;
    font-weight: bold;
    padding: 12px;
    margin-top: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s;
    font-size: 1rem;
    border: 2px solid white;
}

.btn-call:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #f1c40f, #d4af37);
}

/* --- AJUSTES PARA MÓVIL (Responsivo) --- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem; /* Mucho más pequeño (en PC es 3rem) */
        line-height: 1.2;  /* Mejora la lectura si ocupa dos líneas */
        padding: 0 10px;   /* Un poco de margen lateral para que no toque los bordes */
    }

    /* Opcional: Ajustar también el subtítulo para que quede equilibrado */
    .hero p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
}
/* --- FOOTER PROFESIONAL --- */
.site-footer {
    background-color: var(--bg-dark); /* El mismo fondo oscuro de la web */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria sutil */
    padding: 40px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #888; /* Texto gris suave */
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.copyright {
    margin: 0;
    color: #ccc;
    font-weight: 500;
}

.warning {
    margin: 0;
    font-size: 0.8rem;
    color: #666; /* Texto legal menos intrusivo */
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Para que se adapte en móviles */
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

/* Efecto Hover: Cambia de color y añade subrayado */
.footer-links a:hover {
    color: white; 
    /* Si usas la versión de amor cambia 'white' por var(--primary) */
}

.separator {
    color: #444;
}

/* Ajuste Móvil */
@media (max-width: 768px) {
    .footer-links {
        gap: 15px;
        flex-direction: column; /* Enlaces uno debajo de otro en móvil */
    }
    .separator {
        display: none; /* Ocultamos los puntos en móvil */
    }
}
/* --- ESTILOS DE COOKIES (RGPD) --- */

/* Botón flotante para reabrir */
.cookie-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary); /* Usa el color principal de tu web */
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9990;
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.cookie-floating-btn:hover { transform: scale(1.1); }

/* Banner Inferior */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a0b2e; /* Fondo oscuro */
    border-top: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.cookie-content h3 { margin: 0 0 10px 0; color: #d4af37; }
.cookie-content p { font-size: 0.9rem; margin-bottom: 20px; color: #ccc; }

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-cookie.accept { background-color: #2ecc71; color: white; }
.btn-cookie.reject { background-color: #e74c3c; color: white; }
.btn-cookie.config { background-color: transparent; border: 1px solid #ccc; color: #ccc; }
.btn-cookie.save { background-color: #3498db; color: white; width: 100%; margin-top: 15px; }

/* Modal de Configuración */
.cookie-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.cookie-modal-content {
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.option-info strong { display: block; margin-bottom: 5px; }
.option-info p { margin: 0; font-size: 0.85rem; color: #666; }

/* Utilidad */
.hidden { display: none !important; }

/* Ajuste móvil */
@media (max-width: 600px) {
    .cookie-buttons { flex-direction: column; }
    .btn-cookie { width: 100%; }
}
/* --- ACTUALIZACIÓN NAVBAR --- */

/* Agrupación de botones a la derecha */
.nav-menu {
    display: flex;
    gap: 15px; /* Espacio entre el botón Inicio y Staff */
    align-items: center;
}

/* Estilo del botón Inicio */
.btn-home {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-home:hover {
    color: var(--primary); /* Se pondrá verde/color principal al pasar el ratón */
    /* O usa var(--gold) si prefieres dorado */
}

/* Ajuste para móvil: que no se monten uno encima de otro */
@media (max-width: 600px) {
    nav {
        padding: 15px 20px; /* Reducir padding en móvil */
    }
    .logo {
        font-size: 1.2rem;
    }
    .btn-home span { /* Opcional: Ocultar texto "Inicio" en móvil y dejar solo icono si quieres */
        display: none; 
    }
}