:root {
    --color-fondo: #fcfaf7;
    --color-texto: #333333;
    --color-acento: #8e7d6d;
    /* Tono tierra suave/elegante */
    --fuente-principal: 'Georgia', serif;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    /* Fondo casi blanco para calma */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 350px;
    width: 90%;
}

.auth-card h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button#loginBtn,
button#signUpBtn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

#loginBtn {
    background: #2c3e50;
    color: white;
}

.secondary {
    background: #eee;
    color: #666;
}

#forgotPasswordLink {
    color: var(--color-acento);
    font-size: 0.85em;
    text-decoration: none;
    margin-top: 10px;
}

#forgotPasswordLink:hover {
    text-decoration: underline;
}

#resetPasswordContainer {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#resetPasswordContainer p {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
}

#updatePasswordBtn {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.8em;
    margin-top: 10px;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-principal);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    padding: 20px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
}

.app-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

header h1 {
    margin: 0;
}

header p {
    margin: 5px 0 0 0;
}

.chat-container {
    width: 95%;
    max-width: 480px;
    /* Ancho forzado para desktop - Look de App móvil */
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto 20px auto;
    /* Centrado horizontal */
    position: relative;
    /* Contexto de posicionamiento para la ayuda */
}

.chat-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    /* Dos líneas */
    gap: 12px;
    align-items: center;
    font-size: 0.85em;
    color: var(--color-acento);
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chat-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.95em;
    line-height: 1.4;
}

.ia-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
    width: 100%;
}

.ia-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f4ece6;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-top: 5px;
}

.ia-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ia {
    align-self: flex-start;
    background: #fdfaf5;
    color: #555;
    border: 1px solid #f0f0f0;
}

#msg-bienvenida {
    background: #3E3E3E;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#msg-bienvenida h1,
#msg-bienvenida h2,
#msg-bienvenida h3 {
    font-size: 1em;
    font-weight: bold;
    margin: 0 0 0.5em 0;
}

#msg-bienvenida strong {
    color: #fff;
    font-weight: bold;
}

.ia-botiquin {
    background: #fdf2f2 !important;
    border: 1px solid #f9dcdc !important;
    position: relative;
    padding-top: 35px !important;
    /* Espacio para el botón 'Oír ejercicio' */
}

.ia p {
    margin: 0 0 0.5em 0;
}

.ia p:last-child {
    margin-bottom: 0;
}

.user {
    align-self: flex-end;
    background: var(--color-acento);
    color: white;
}

.input-area {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

input,
textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 25px;
    outline: none;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    padding: 0;
}

#sendBtn {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-acento);
    font-size: 1.2em;
}

#micBtn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#micBtn:hover {
    background: #e0e0e0;
}

.header-buttons {
    display: none;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: none !important;
}

/* Hide scrollbar but keep functionality */
.header-buttons::-webkit-scrollbar {
    display: none;
}

.icon-nav-btn {
    background: transparent !important;
    border: none !important;
    color: var(--color-texto) !important;
    flex: 0 0 45px;
    /* Slightly larger for better PC view */
    width: 45px;
    height: 45px;
    border-radius: 12px;
    /* Square with rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px !important;
    box-shadow: none !important;
    filter: none !important;
    /* Ensure no drop-shadow from images */
}

.icon-nav-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: none !important;
    /* Explicitly remove any shadow from the image file itself if exists */
}

.icon-nav-btn:hover {
    transform: translateY(-2px);
    background: #fdfaf5 !important;
}

/* Ajustes para móviles */
@media (max-width: 480px) {
    .header-buttons {
        gap: 6px;
        padding: 5px 10px;
    }

    .icon-nav-btn {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        padding: 6px !important;
    }

    .icon-nav-btn img {
        width: 24px;
        height: 24px;
    }
}

.logout-btn {
    background: transparent !important;
    border: none !important;
    color: #e74c3c !important;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75em;
    /* Slightly larger */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    height: 28px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logout-btn:hover {
    background: #e74c3c !important;
    color: white !important;
}

/* Remove old individual button border/color overrides to avoid conflicts */
#bienvenidaBtn,
#botiquinBtn,
#progresoBtn,
#viajeBtn,
#sesionBtn,
#upgradeBtn,
#ajustesBtn {
    border: none;
}

/* Modal Flotante */
.modal {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
    /* Controlado por JS, movido desde inline para evitar avisos */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    font-family: var(--fuente-principal);
    /* Fuente del Mentor */
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.diario-seccion {
    margin-bottom: 25px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 15px;
}

.diario-seccion:last-child {
    border-bottom: none;
}

.diario-seccion h4 {
    color: var(--color-acento);
    margin: 0 0 10px 0;
    font-size: 1em;
    text-transform: uppercase;
}

.diario-seccion p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Barra de Progreso Alquimia */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f1c40f);
    /* Gradiente Dorado */
    border-radius: 10px;
    transition: width 1s ease-in-out;
}


/* Selector de Voz */
.voice-selector-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8em;
    color: #666;
}

#voiceSelect {
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: white;
    font-family: var(--fuente-principal);
    outline: none;
    cursor: pointer;
    font-size: 0.9em;
}

/* Botiquín Refactor */
.tts-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px 12px;
    background-color: var(--color-acento);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.75em;
    cursor: pointer;
    font-family: var(--fuente-principal);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.tts-btn:hover {
    transform: scale(1.05);
    background-color: #726255;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hidden-video-block {
    display: none;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- MI VIAJE (ROADMAP) STYLES --- */
#viajeBtn {
    border: 1px solid #D8C608;
    /* Match hover color */
    color: #D8C608;
    background: transparent;
}

#viajeBtn:hover {
    background: #D8C608;
    /* User requested gold */
    color: white !important;
    box-shadow: 0 0 10px #D8C608;
}

/* Modulo Progress Bar */
.module-progress {
    width: 100%;
    background: #f0f0f0;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.module-progress-bar {
    height: 100%;
    background: var(--color-acento);
    width: 0%;
    transition: width 0.5s ease;
}

.journey-modal {
    display: none;
    /* Controlado por JS */
}

.journey-content {
    background: #fdfaf7;
    max-width: 800px;
    padding: 40px;
}

.journey-header {
    text-align: center;
    margin-bottom: 30px;
}

.journey-header h2 {
    color: var(--color-acento);
    font-size: 2em;
    margin-bottom: 10px;
}

/* Roadmap Container */
.roadmap-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    /* Reduced gap */
    padding: 12px;
    /* Reduced padding */
    width: 100%;
    max-width: 800px;
    /* Slightly narrower to avoid edges */
    margin: 0 auto;
    box-sizing: border-box;
}

.roadmap-svg-layer {
    display: none;
}

/* Remove old layer */

.roadmap-node {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
    background: white;
    padding: 12px 15px;
    /* Reduced padding */
    border-radius: 12px;
    border: 2px solid #eee;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Module 5 special: last node spans 2 columns on desktop */
.roadmap-node:nth-child(5),
.roadmap-node:nth-child(6) {
    grid-column: span 2;
    max-width: 440px;
    justify-self: center;
}

@media (max-width: 600px) {
    .roadmap-container {
        grid-template-columns: 1fr;
    }

    .roadmap-node:nth-child(5) {
        grid-column: span 1;
    }
}



.roadmap-node.locked {
    opacity: 0.6;
    filter: grayscale(1);
    cursor: not-allowed;
    background: #f9f9f9;
}

.roadmap-node.unlocked:hover {
    transform: scale(1.05);
    border-color: var(--color-acento);
    box-shadow: 0 10px 25px rgba(142, 125, 109, 0.2);
}

.roadmap-node .node-icon {
    font-size: 1.5em;
    /* Smaller icon */
    background: #f4ece6;
    width: 40px;
    /* Smaller container */
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.roadmap-node .node-info h3 {
    margin: 0;
    color: #4a3b32;
    font-size: 0.9em;
    /* Slightly smaller text */
}

.roadmap-node .node-info p {
    margin: 3px 0 0 0;
    font-size: 0.8em;
    color: #888;
}

.roadmap-line {
    display: none;
    /* Removed old straight line logic */
}

/* Modulo de Coaching (Preguntas) */
.module-modal {
    display: none;
    z-index: 3050;
    /* Por encima del mapa */
}

.module-content {
    max-width: 600px;
    background: white;
    text-align: center;
    position: relative;
    /* Para posicionar el botón de ayuda */
}

/* --- HELP BUTTON & TOOLTIP (JOURNEY) --- */
.help-modulo-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    /* Movido a la izquierda para evitar choques con la X */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f4ece6;
    /* Color suave para no competir con la X */
    color: var(--color-acento);
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    z-index: 10;
    transition: all 0.3s ease;
}

.help-modulo-btn:hover {
    background: var(--color-acento);
    color: white;
    transform: scale(1.1);
}

#mainHelpBtn {
    display: none;
    /* Hidden by default, shown via JS after auth */
    position: static;
    width: 24px;
    height: 24px;
    font-size: 0.9em;
}

.help-tooltip {
    position: absolute;
    top: 55px;
    right: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--color-acento);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    display: none;
    text-align: left;
    animation: fadeInDown 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
    text-transform: none;
    /* Evita heredar el uppercase de la cabecera */
    font-weight: normal;
}

.help-tooltip * {
    font-weight: inherit;
}

.help-tooltip strong,
.help-tooltip b {
    font-weight: bold;
}

#mainHelpTooltip {
    top: 80px;
}

.help-tooltip.active {
    display: block;
}

.help-tooltip h5 {
    margin: 0 0 10px 0;
    color: var(--color-acento);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-tooltip p {
    margin: 0;
    color: #444;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Estructura de items en la ayuda */
.help-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 15px;
    align-items: start;
    margin-bottom: 20px;
    border-bottom: 1px dotted #f0f0f0;
    padding-bottom: 10px;
}

.help-item:last-child {
    border-bottom: none;
}

.help-desc {
    font-size: 0.95em;
    line-height: 1.5;
    color: #444;
}

.help-btn-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4ece6;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.help-btn-tag img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
}

/* Tags especiales para botones de texto en la ayuda */
.logout-tag,
.text-tag,
.mic-tag {
    font-size: 0.6em;
    font-weight: bold;
    color: #e74c3c;
}

.text-tag {
    color: var(--color-acento);
    font-size: 0.7em;
}

.mic-tag {
    font-size: 1.2em;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .help-modulo-btn {
        left: 12px;
        top: 12px;
        width: 26px;
        height: 26px;
        font-size: 1em;
    }

    .help-tooltip {
        top: 50px;
        padding: 15px;
    }
}

.question-slide {
    animation: fadeIn 0.5s ease;
}

.question-slide h4 {
    color: var(--color-acento);
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.question-slide h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.question-slide input,
.question-slide textarea {
    width: 100%;
    box-sizing: border-box;
    /* Fixes width calculation including padding */
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: var(--fuente-principal);
    transition: border-color 0.3s;
}

.question-slide textarea {
    height: 150px;
    resize: vertical;
}

/* Journey button styling (for intro/module screens) */
.journey-btn {
    background: var(--color-acento);
    color: white;
    border: none;
    border-radius: 25px;
    /* Pill shape */
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    font-family: var(--fuente-principal);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(142, 125, 109, 0.3);
}

.journey-btn:hover {
    background: #b8935f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 125, 109, 0.4);
}

.question-slide input:focus,
.question-slide textarea:focus {
    border-color: var(--color-acento);
    outline: none;
}

.module-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.nav-btn {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--fuente-principal);
    transition: all 0.3s;
}

#prevQBtn {
    background: #f0f0f0;
    color: #555;
}

#nextQBtn {
    background: var(--color-acento);
    color: white;
}

.finish-btn {
    background: #27ae60 !important;
    color: white !important;
}

#finishModuleBtn {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transition/Loading screen styles */
.loading-alchemy {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alchemy-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-acento);
    border-radius: 50%;
    border-top-color: transparent;
    animation: rotate-alchemy 2s linear infinite;
    opacity: 0.5;
}

.alchemy-circle::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--color-acento);
    border-radius: 50%;
    border-bottom-color: transparent;
    animation: rotate-alchemy 3s linear reverse infinite;
    opacity: 0.3;
}

.alchemy-icon {
    font-size: 3em;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes rotate-alchemy {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(216, 198, 8, 0.4));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(216, 198, 8, 0.8));
    }
}

.transition-screen h3 {
    animation: fadeInUp 0.8s ease both;
}

.transition-screen p {
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* --- MODULE 3 ROLE CARDS --- */
.role-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

.role-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.role-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-acento);
    box-shadow: 0 15px 30px rgba(142, 125, 109, 0.2);
}

.role-card-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.role-card h3 {
    font-size: 1.1em;
    color: #4a3b32;
    margin: 0 0 10px 0;
}

.role-card-lema {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.role-card-impacto {
    font-size: 0.75em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    width: 100%;
}

/* --- MODULO 4: EL ALTAR DE LAS PALABRAS --- */
.pergamino-container {
    background: #fdf5e6;
    border: 2px solid #d2b48c;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), inset 0 0 40px rgba(139, 69, 19, 0.08);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.pergamino-input {
    width: 100%;
    min-height: 250px;
    background: transparent;
    border: none;
    font-family: 'Cambria', 'Georgia', serif;
    font-size: 1.15em;
    line-height: 1.8;
    color: #4a3728;
    resize: none;
    outline: none;
    transition: all 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ritual-closure-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    text-align: center;
}

.ritual-vibration {
    font-size: 5em;
    margin: 20px 0;
    filter: drop-shadow(0 0 5px var(--color-acento));
    animation: pulse-vibration 2s infinite ease-in-out;
}

.sellar-btn {
    background: linear-gradient(135deg, #be9c7d, #8b4513);
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.4s;
    letter-spacing: 1px;
    margin-top: 20px;
}

.sellar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.5);
    background: linear-gradient(135deg, #d2b48c, #a0522d);
}

.transmuting {
    filter: blur(30px) brightness(5) saturate(0);
    opacity: 0;
    transform: scale(1.2);
    pointer-events: none;
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ritual-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 80%);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.5s ease-in;
}

.ritual-flash.active {
    opacity: 1;
}

@keyframes pulse-vibration {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 25px var(--color-acento));
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.question-slide {
    transition: all 0.5s ease-out;
}

/* --- MODULO 5: ALQUIMIA FINAL --- */
.transmuter-grid {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.belief-box {
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.belief-box.limiting {
    background: #fff5f5;
    border: 1px dashed #feb2b2;
}

.belief-box.empowering {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.belief-box label {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.belief-box.limiting label {
    color: #c53030;
}

.belief-box.empowering label {
    color: #2f855a;
}

.belief-box textarea {
    background: transparent;
    border: none;
    resize: none;
    min-height: 120px;
    font-size: 1em;
    color: #333;
    outline: none;
}

.transmuter-arrow {
    text-align: center;
    font-size: 1.5em;
    color: var(--color-primario);
    opacity: 0.6;
}

.purpose-acts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.purpose-act {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.purpose-act h5 {
    margin: 0 0 8px 0;
    color: var(--color-acento);
}

.guide-note {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 5px;
}

.action-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.plan-section {
    background: #f8fbff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e1e7f0;
}

.plan-section h5 {
    margin: 0 0 10px 0;
    color: #2b6cb0;
}

.plan-section textarea {
    width: 100%;
    background: transparent;
    border: none;
    min-height: 150px;
    font-size: 1.05em;
    resize: none;
    outline: none;
}

@media (max-width: 768px) {

    .transmuter-grid,
    .action-plan-grid {
        grid-template-columns: 1fr;
    }

    .transmuter-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* --- DIPLOMA DE ALQUIMISTA --- */
.diploma-container {
    background: #fff;
    padding: 40px;
    border: 15px solid #d4af37;
    /* Dorado */
    outline: 5px solid #8b4513;
    /* Cuero/Marrón */
    outline-offset: -10px;
    text-align: center;
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Playfair Display', 'Georgia', serif;
}

.diploma-header {
    font-size: 0.9em;
    letter-spacing: 3px;
    color: #8b4513;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.diploma-title {
    font-size: 2.2em;
    color: var(--color-primario);
    margin: 15px 0;
}

.diploma-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
}

.diploma-vision {
    display: inline-block;
    margin-top: 30px;
    padding: 25px;
    background: #fdfaf0;
    border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37;
    font-style: italic;
    font-size: 1.3em;
    color: #a0522d;
    max-width: 90%;
    word-wrap: break-word;
}

.diploma-footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #777;
    display: flex;
    justify-content: space-around;
}

.diploma-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine-diploma 5s infinite;
    pointer-events: none;
}

@keyframes shine-diploma {
    0% {
        transform: scale(1) rotate(30deg) translateX(-100%);
    }

    20% {
        transform: scale(1) rotate(30deg) translateX(100%);
    }

    100% {
        transform: scale(1) rotate(30deg) translateX(100%);
    }
}

/* Botones en el chat */
.audio-btn,
.chat-logout-btn {
    display: block;
    margin-top: 10px;
    padding: 8px 15px;
    border: 1px solid var(--color-acento);
    background: transparent;
    color: var(--color-acento);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    width: fit-content;
}

.audio-btn:hover,
.chat-logout-btn:hover {
    background: var(--color-acento);
    color: white;
}

.chat-logout-btn {
    background: var(--color-acento);
    color: white;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 10px rgba(142, 125, 109, 0.3);
}

.chat-logout-btn:hover {
    background: #7a6b5d;
    transform: translateY(-2px);
}

.chat-download-btn {
    display: block;
    margin-top: 10px;
    padding: 10px 18px;
    border: 2px solid var(--color-acento);
    background: white;
    color: var(--color-acento);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 8px rgba(142, 125, 109, 0.1);
}

.chat-download-btn:hover {
    background: #fdfaf5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(142, 125, 109, 0.2);
}

/* --- ESTILOS MEJORAR PLAN (PREMIUM) --- */
.upgrade-btn {
    display: none;
    /* Se activa vía JS en main.js */
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: white !important;
    font-weight: bold !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    border-radius: 20px;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #e5c158, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 134, 11, 0.5);
}

.premium-btn {
    display: none;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white !important;
    font-weight: bold !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
    border-radius: 20px;
}

.premium-btn:hover {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.5);
}

.upgrade-modal-content {
    max-width: 700px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.upgrade-header {
    margin-bottom: 30px;
}

.upgrade-header h2 {
    font-size: 1.8em;
    color: var(--color-acento);
    margin-bottom: 10px;
}

.upgrade-header p {
    font-size: 1em;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.upgrade-options {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.upgrade-card {
    flex: 1;
    border: 2px solid #f4ece6;
    border-radius: 20px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    background: #fff;
    position: relative;
}

.upgrade-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(142, 125, 109, 0.15);
}

.upgrade-card-header {
    margin-bottom: 25px;
    width: 100%;
}

.upgrade-card h3 {
    color: #4a3b32;
    margin-bottom: 12px;
    font-size: 1.3em;
    font-weight: bold;
}

.upgrade-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.price-old {
    font-size: 0.9em;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-acento);
}

.price-current span {
    font-size: 0.5em;
    font-weight: normal;
    color: #888;
}

.upgrade-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    width: 100%;
    flex-grow: 1;
}

.upgrade-features li {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.upgrade-check {
    color: var(--color-oro);
    font-weight: bold;
    font-size: 1.1em;
    flex-shrink: 0;
}

.upgrade-card.pro {
    background: #fffaf5;
}

.upgrade-card.premium {
    background: #faf8f6;
    border-color: #e0d5cb;
}

.upgrade-card.pro {
    background: #fffaf0;
}

.upgrade-card.premium {
    background: #faf8f6;
    border-color: #d4af37;
    position: relative;
}

.upgrade-card.premium::after {
    content: 'Recomendado';
    position: absolute;
    top: -12px;
    background: #d4af37;
    color: white;
    font-size: 0.7em;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-upgrade {
    background: var(--color-acento);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-upgrade:hover {
    background: #4a3b32;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .upgrade-options {
        flex-direction: column;
        align-items: center;
    }

    .upgrade-card {
        width: 100%;
    }

    /* Ajuste global de modales para móviles */
    .modal-content {
        padding: 15px !important;
        /* Slightly less padding */
        width: 98% !important;
        /* Maximize width */
    }

    .session-group {
        padding: 12px !important;
        /* Avoid internal overflow */
        margin-top: 15px !important;
    }

    .booking-options {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .btn-booking {
        width: 100% !important;
        font-size: 0.85em !important;
    }
}

/* --- ESTILOS MODAL SESIÓN --- */
.sesion-modal-content {
    max-width: 600px;
}

.session-quota-info {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #1a73e8;
}

.quota-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quota-label {
    font-weight: 600;
    color: #555;
}

.quota-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #1a73e8;
}

.session-group {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.session-group.extra {
    background: #fffdf5;
    border-color: #ffe082;
}

.session-group h3 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

.session-desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.booking-options {
    display: flex;
    gap: 15px;
}

.btn-booking {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1a73e8;
    background: white;
    color: #1a73e8;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-booking:hover:not(:disabled) {
    background: #1a73e8;
    color: white;
}

.btn-booking:disabled {
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.btn-extra {
    border-color: #d4af37;
    color: #b8860b;
}

.btn-extra:hover {
    background: #d4af37 !important;
    color: white !important;
}

#ajustesBtn {
    border: 1px solid #7f8c8d;
    color: #7f8c8d;
}

#ajustesBtn:hover {
    background: #7f8c8d;
    color: white;
}

/* --- SETTINGS MODAL STYLES --- */
.settings-modal-content {
    max-width: 500px;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section h3 {
    color: var(--color-acento);
    font-size: 1.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfaf7;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.tier-container {
    display: flex;
    align-items: center;
    gap: 15px;
}


#settingsUserName {
    color: var(--color-acento);
    font-size: 1.2em;
    font-family: var(--fuente-principal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

#settingsUserTier {
    color: #888;
    font-size: 0.85em;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-top: 4px;
}


/* Slider Customization */
.slider-group {
    margin-bottom: 25px;
}

.slider-header {
    font-size: 0.85em;
    font-weight: bold;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-label-left,
.slider-label-right {
    font-size: 0.9em;
    white-space: nowrap;
}


.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 8px;
    font-weight: bold;
}

.slider-labels span:nth-child(2) {
    color: var(--color-acento);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75em;
}

.settings-section input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    margin: 10px 0;
}

.settings-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-acento);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Preferences Styling */
.setting-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
}

.setting-item select,
.setting-item textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--fuente-principal);
    font-size: 0.95em;
}

.setting-item textarea {
    height: 80px;
    resize: none;
}

/* Actions */
.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    justify-content: space-between;
}

.settings-actions>button {
    flex: 1 1 calc(33% - 12px);
    min-width: 120px;
}

.save-btn {
    background: var(--color-acento);
    color: white;
    border: none;
    padding: 10px 5px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.save-btn:hover {
    background: #726255;
    transform: translateY(-2px);
}

.danger-btn {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px 5px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.preferences-btn {
    background: #f5f0eb;
    color: var(--color-acento);
    border: 1px solid #ddd;
    padding: 10px 5px;
    border-radius: 20px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.preferences-btn:hover {
    background: #ebe0d5;
    transform: translateY(-2px);
}


.upgrade-btn-small {
    background: #27ae60;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.upgrade-btn-small:hover {
    background: #219150;
    transform: scale(1.05);
}


.danger-btn:hover {
    background: #e74c3c;
    color: white;
}

.danger-zone {
    display: contents;
    /* Allows children to be grid items of .settings-actions */
}

.danger-hint {
    width: 100%;
    margin-top: 15px;
    font-size: 0.75em;
    color: #999;
    text-align: center;
    line-height: 1.4;
    padding: 10px;
    background: #fffcf0;
    border-radius: 8px;
    border: 1px dashed #ffe082;
    order: 100;
    /* Ensure it stays at the end of the flex container on mobile */
}


@media (max-width: 600px) {
    .settings-actions {
        flex-direction: column;
        /* Fixed: was column-reverse, putting warning on top */
    }


    .profile-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Footer de la App */
.app-footer {
    padding: 20px 0;
    text-align: center;
    width: 100%;
    color: #999;
    font-size: 0.75em;
    font-family: var(--fuente-principal);
}

.app-footer p {
    margin: 0;
}

/* Estilos para el Modal Legal */
.legal-modal-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-intro {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.legal-scroll-area {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9em;
    line-height: 1.6;
}

.legal-section h3 {
    font-size: 1em;
    margin: 15px 0 8px;
    color: var(--color-primario);
}

.legal-section p {
    margin-bottom: 15px;
}

.legal-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    text-align: left;
    /* Asegura alineación a la izquierda */
    align-items: flex-start;
    /* Evita que se estiren o centren */
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9em;
    color: #444;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

.check-item input {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    /* Evita que el check se encoja si el texto es largo */
}

.legal-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.cancel-btn {
    flex: 1;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: #eee;
}

#confirmLegalBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.privacy-notice-box {
    background: #fff4e5;
    border-left: 4px solid var(--color-acento);
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95em;
    line-height: 1.4;
    color: #444;
}

/* --- MUSICA Y SOPORTE --- */

.music-player-container {
    position: relative;
    display: flex;
    align-items: center;
}

.music-icon-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.music-icon-btn img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

.music-icon-btn:hover {
    transform: scale(1.1);
}

.music-menu-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 240px;
    display: none;
    flex-direction: column;
    z-index: 2100;
    overflow: hidden;
    text-transform: none;
    font-weight: normal;
}

.music-menu-dropdown.active {
    display: flex;
}

.music-menu-header {
    padding: 12px;
    background: #fdfaf7;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 0.9em;
    color: var(--color-acento);
    text-align: center;
}

#musicListItems {
    max-height: 250px;
    overflow-y: auto;
}

.music-item {
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    font-size: 0.85em;
    color: #555;
    transition: background 0.2s;
    font-family: inherit;
}

.music-item:hover {
    background: #f4ece6;
}

.music-stop-option {
    padding: 12px;
    border: none;
    background: #fff;
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.8em;
    cursor: pointer;
    width: 100%;
    border-top: 1px solid #eee;
}

.music-stop-option:hover {
    background: #fdf2f2;
}

/* Burbuja de Soporte (Estilo WhatsApp) */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #8e7d6d;
    color: white;
    padding: 0 20px;
    height: 48px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #726255;
}

.support-label {
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 8px;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    color: #333;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 65px;
}

/* Modal de Soporte */
.support-modal-content {
    max-width: 420px !important;
    padding: 0 !important;
    overflow: hidden;
}

.support-header {
    background: var(--color-acento);
    color: white;
    padding: 20px;
    text-align: center;
}

.support-header h3 {
    margin: 0;
    font-size: 1.25em;
}

.support-header p {
    margin: 8px 0 0;
    font-size: 0.85em;
    opacity: 0.9;
}

.support-messages {
    background: #fdfaf7;
    height: 350px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.support-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px !important;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.support-input-area button {
    background: var(--color-acento);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-input-area button:hover {
    background: #726255;
}

.whatsapp-fallback {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}

.whatsapp-fallback p {
    margin: 0 0 12px;
    font-size: 0.85em;
    color: #777;
}

.btn-whatsapp-direct {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-whatsapp-direct:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-direct img {
    width: 24px;
    height: 24px;
}

/* Music item sub-styles */
.music-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.music-info strong {
    font-size: 0.85em;
    color: #444;
}

.music-desc {
    font-size: 0.75em;
    color: #999;
}

.music-status-icon {
    font-size: 0.9em;
    color: var(--color-acento);
    flex-shrink: 0;
    margin-left: 8px;
}

.music-item.active {
    background: #f4ece6;
}

.music-item.active .music-info strong {
    color: var(--color-acento);
}

.music-icon-btn.playing img {
    filter: sepia(1) saturate(3) hue-rotate(330deg);
    animation: pulse-music 1.5s ease-in-out infinite;
}

@keyframes pulse-music {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* --- RESTORED MODAL STYLES (UI REPAIR) --- */

/* Ajustes Modal - Sliders */
.slider-group {
    margin-bottom: 25px;
    padding: 18px;
    background: #fdfaf7;
    border-radius: 12px;
    border: 1px solid #f2ece6;
}

.slider-header {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--color-acento);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slider-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-label-left,
.slider-label-right {
    font-size: 0.8em;
    color: #888;
    white-space: nowrap;
}

.slider-inline input[type="range"] {
    flex: 1;
    cursor: pointer;
    accent-color: var(--color-acento);
}

/* Preferences & Generic Toggle Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin-left: 10px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--color-acento);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

input:disabled+.slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botiquín Modal Specifics */
.botiquin-modal-content {
    background: #fdf2f2;
    /* Tono rojizo suave */
    border: 1px solid #f9e6e6;
    max-width: 500px;
}

.botiquin-header {
    text-align: center;
    margin-bottom: 25px;
}

.botiquin-icon-title {
    max-width: 80px;
    margin-bottom: 10px;
}

.botiquin-loading {
    padding: 40px;
    text-align: center;
}

.botiquin-response {
    padding: 10px 20px;
    line-height: 1.7;
    color: #4a3b32;
    text-align: left;
}

.botiquin-response h1,
.botiquin-response h2,
.botiquin-response h3,
.botiquin-response h4 {
    color: var(--color-acento);
    margin: 20px 0 10px 0;
}

.botiquin-audios {
    margin-top: 25px;
    padding: 20px;
    background: #fdfaf7;
    border-radius: 15px;
    border-top: 2px solid #f9ece6;
}

.botiquin-audios h4 {
    margin-top: 0;
    color: var(--color-acento);
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.05em;
}

.audio-item-stacked {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.audio-info strong {
    display: block;
    font-size: 1em;
    color: #2c3e50;
    margin-bottom: 2px;
}

.audio-info span {
    font-size: 0.8em;
    color: #999;
}

.audio-controls-stacked {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-select {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    font-family: inherit;
    font-size: 0.85em;
    background: #fafafa;
    cursor: pointer;
}

.audio-actions {
    display: flex;
    gap: 10px;
}

.audio-loop-btn,
.audio-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    transition: all 0.2s ease;
}

.audio-loop-btn.active {
    background: #f4f4f4;
    border-color: var(--color-acento);
    filter: sepia(0.5);
}

.audio-play-btn {
    background: var(--color-acento);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(142, 125, 109, 0.3);
}

.audio-play-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* --- Diario de Alquimia Premium Overhaul --- */
.diario-alquimia-view {
    padding: 25px;
    background: linear-gradient(to bottom, #fffcf5 0%, #fdf8eb 100%);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    border-radius: 12px;
}

/* Parchment texture feel */
.diario-alquimia-view::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.diario-header,
.diario-section,
.diario-actions {
    position: relative;
    z-index: 1;
}

.diario-header {
    text-align: center;
    margin-bottom: 35px;
}

.diario-icon {
    font-size: 3.5em;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(184, 134, 11, 0.2));
}

.diario-header h2 {
    color: #4a3b32;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Playfair Display', "Garamond", serif;
}

.diario-header p {
    color: #7d6b5d;
    font-style: italic;
    font-size: 0.95em;
}

.diario-section {
    margin-bottom: 40px;
}

.diario-section h3 {
    color: var(--color-acento);
    font-size: 1.25em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 0.88em;
    color: #8a7a6d;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Writing Area Enhancement */
.notas-section textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e0d5c0 !important;
    border-left: 5px solid #d4af37 !important;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 1em;
    line-height: 1.6;
    color: #4a3b32;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.notas-section textarea:focus {
    background: white;
    border-color: #d4af37 !important;
    outline: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

/* Timeline Upgrade */
.cronicas-timeline {
    border-left: 3px solid #e8dcc4;
    padding-left: 25px;
    margin-left: 15px;
    position: relative;
}

.cronica-entry {
    position: relative;
    margin-bottom: 35px;
}

.cronica-entry::before {
    content: '';
    position: absolute;
    left: -33px;
    /* Adjusted for new padding/border */
    top: 4px;
    width: 14px;
    height: 14px;
    background: #d4af37;
    border: 3px solid #fffcf5;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.cronica-date {
    font-size: 0.8em;
    font-weight: 700;
    color: #b8860b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(212, 175, 55, 0.08);
    padding: 2px 10px;
    border-radius: 20px;
}

.cronica-text {
    font-size: 0.98em;
    line-height: 1.7;
    color: #444;
    background: rgba(255, 255, 255, 0.8);
    padding: 22px;
    border-radius: 15px;
    border: 1px solid #e8dcc4;
    text-align: left;
    box-shadow: 0 3px 12px rgba(71, 57, 43, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cronica-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(71, 57, 43, 0.08);
    background: white;
}

.diario-actions {
    margin-top: 40px;
    border-top: 1px solid #e8dcc4;
    padding-top: 25px;
    text-align: center;
}

/* Special Node (Gold) in Roadmap */
.roadmap-node.special-node {
    background: linear-gradient(135deg, #fff9e6 0%, #fdfaf7 100%) !important;
    border-color: #d4af37 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
}

.roadmap-node.special-node .node-icon {
    background: #fff0c0 !important;
    color: #d4af37 !important;
}

.roadmap-node.special-node:hover {
    border-color: #d4af37 !important;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3) !important;
}

/* Inspiración del Día Modal */
.inspiracion-modal-content {
    max-width: 450px;
    text-align: center;
    background: linear-gradient(135deg, #fffaf0 0%, #fdfaf7 100%);
    border: 1px solid #f0e0d0;
}

.inspiracion-header {
    margin-bottom: 25px;
}

.inspiracion-icon {
    font-size: 3em;
    margin-bottom: 10px;
    display: block;
}

.inspiracion-body {
    padding: 10px 20px;
}

.inspiracion-frase {
    font-size: 1.3em;
    font-style: italic;
    color: #4a3b32;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: inherit;
}

.inspiracion-autor {
    font-size: 0.9em;
    color: var(--color-acento);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-loading {
    animation: pulse-opacity 1.5s infinite ease-in-out;
}

@keyframes pulse-opacity {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Bitácora / Memorias de Módulos Completados */
.bitacora-view {
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.bitacora-header {
    text-align: center;
    margin-bottom: 40px;
}

.bitacora-badge {
    display: inline-block;
    background: #d4af37;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.bitacora-icon-large {
    font-size: 4em;
    display: block;
    margin-bottom: 15px;
}

.bitacora-header h2 {
    color: #4a3b32;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.bitacora-header p {
    color: #888;
    font-style: italic;
}

.bitacora-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bitacora-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f4ece6;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.bitacora-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.bitacora-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #d4af37;
}

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

.card-title {
    font-weight: bold;
    color: #4a3b32;
    font-size: 1.1em;
}

.card-date {
    font-size: 0.8em;
    color: #999;
    background: #fdfaf7;
    padding: 2px 10px;
    border-radius: 10px;
}

.bitacora-entry-item {
    margin-bottom: 15px;
}

.entry-label {
    font-size: 0.8em;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    background: #fdfaf7;
    padding: 12px;
    border-radius: 10px;
}

.card-footer {
    margin-top: 15px;
    text-align: right;
}

.seal {
    font-size: 0.75em;
    font-weight: bold;
    color: #d4af37;
    opacity: 0.6;
    font-style: italic;
}

.bitacora-empty {
    text-align: center;
    padding: 40px;
    background: #fdfaf7;
    border-radius: 15px;
    border: 1px dashed #d4af37;
    color: #888;
}

.bitacora-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.danger-outline {
    background: transparent !important;
    border: 1px solid #e74c3c !important;
    color: #e74c3c !important;
}

.danger-outline:hover {
    background: #e74c3c !important;
    color: white !important;
}

@media (max-width: 480px) {
    .bitacora-actions {
        flex-direction: column;
    }

    .bitacora-actions .journey-btn {
        width: 100%;
    }
}

/* --- TECHNOLOGY SECTION STYLES --- */
.tech-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(142, 125, 109, 0.1);
    color: #8e7d6d;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pillar-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    border-left: 5px solid #8e7d6d;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
}

.pillar-num {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(142, 125, 109, 0.1);
    line-height: 1;
    margin-bottom: -1rem;
}

.pillar-card h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.pillar-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.layer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.layer-box {
    background: #fdfaf7;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(142, 125, 109, 0.1);
}

.layer-box strong {
    display: block;
    color: #8e7d6d;
    margin-bottom: 0.5rem;
}

.summary-box {
    background: #1a1a1a;
    color: white;
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    margin-top: 5rem;
}

.summary-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #d4af37;
}

.summary-box p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

.technology-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/relacionIA-humano2.png') no-repeat center center;
    background-size: cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- LANDING AI TEASER --- */
.ai-teaser {
    background: #1a1a1a;
    color: white;
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.ai-teaser .container {
    position: relative;
    z-index: 2;
}

.ai-teaser-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ai-teaser h2 {
    color: white;
    margin-top: 20px;
}

.ai-teaser p {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.9;
    margin: 30px 0;
}

.ai-teaser-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.ai-teaser-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    min-width: 200px;
}

.ai-teaser-card strong {
    color: #d4af37;
    display: block;
    margin-bottom: 10px;
}

.ai-teaser-card p {
    font-size: 0.95rem;
    opacity: 0.7;
    margin: 0;
}

.ai-teaser-footer {
    margin-top: 50px;
}

.ai-teaser-deco {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ONBOARDING TOUR STYLES --- */
.dtv-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.dtv-tour-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dtv-tour-spotlight {
    position: absolute;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    z-index: 5001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.dtv-tour-bubble {
    position: absolute;
    z-index: 5002;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    width: 300px;
    max-width: calc(100vw - 40px);
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.dtv-tour-bubble.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: tourPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.dtv-tour-bubble::before {
    content: '';
    position: absolute;
    border: 10px solid transparent;
}

/* Arrow positions */
.dtv-tour-bubble.arrow-top::before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dtv-tour-bubble.arrow-bottom::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dtv-tour-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #f1c40f;
    letter-spacing: 0.5px;
}

.dtv-tour-content p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.dtv-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dtv-tour-progress {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.dtv-tour-nav {
    display: flex;
    gap: 8px;
}

.dtv-tour-btn {
    background: white;
    color: #333;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.dtv-tour-btn:hover {
    background: #f1c40f;
    color: #000;
}

.dtv-tour-btn.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dtv-tour-btn.btn-prev:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dtv-tour-skip {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    cursor: pointer;
}

.dtv-tour-skip:hover {
    color: white;
    text-decoration: underline;
}

/* Centered welcome step */
.dtv-tour-bubble.centered {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.dtv-tour-bubble.centered.active {
    animation: tourPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes tourPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}