/* ====================================================================================
    Estilos Chatbot - Epifanía Celestial
    Colores corporativos: Negro (#1d1c1c) y Blanco (#ffffff)
    Diseño fresco y profesional
====================================================================================*/

:root {
    --color-primary: #1d1c1c;
    --color-white: #ffffff;
    --color-gray-light: #f8f9fa;
    --color-gray-medium: #6c757d;
    --gradient-primary: linear-gradient(135deg, #1d1c1c 0%, #2c2c2c 100%);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ====================================================================================
    Estilos base del chatbot
====================================================================================*/

/* Botón principal del chat */
.chat_on {
    position: fixed;
    z-index: 10;
    width: 64px;
    height: 64px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient-primary);
    border: 2px solid var(--color-white);
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat_on:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 25px 50px rgba(29, 28, 28, 0.3);
}

.chat_on i {
    font-size: 2rem;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

/* Layout principal del chat */
#Smallchat .Layout {
    pointer-events: auto;
    box-sizing: content-box !important;
    z-index: 999999999;
    position: fixed;
    bottom: 20px;
    min-width: 50px;
    max-width: 380px;
    max-height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    animation: appear 0.3s cubic-bezier(0.25, 0.25, 0.5, 1.1);
    animation-fill-mode: forwards;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.25, 0.5, 1);
}

#Smallchat .Layout-right {
    right: 20px;
}

#Smallchat .Layout-open {
    overflow: hidden;
    min-width: 380px;
    max-width: 380px;
    height: 600px;
    max-height: 600px;
    border-radius: 20px;
    background: var(--color-white);
    border: 1px solid rgba(29, 28, 28, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.25, 0.5, 1.1);
}

/* Header del chat */
#Smallchat .Messenger_messenger {
    position: relative;
    height: 100%;
    width: 100%;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
}

#Smallchat .Messenger_header {
    display: flex;
    align-items: center;
    padding: 20px 20px 15px 20px;
    height: 60px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

#Smallchat .Messenger_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

#Smallchat .Messenger_header h4 {
    opacity: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    font-family: 'Playfair Display', serif;
    animation: slidein 0.3s 0.2s forwards;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.chat_close_icon {
    cursor: pointer;
    color: var(--color-white);
    font-size: 18px;
    position: absolute;
    right: 20px;
    z-index: 9;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat_close_icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Contenido del chat */
#Smallchat .Messenger_content {
    height: 540px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}

#Smallchat .Messages {
    position: relative;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    -webkit-overflow-scrolling: touch;
    height: 100%;
}

#Smallchat .Messages::-webkit-scrollbar {
    width: 6px;
}

#Smallchat .Messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#Smallchat .Messages::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

#Smallchat .Messages::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Área de input */
#Smallchat .Input {
    position: relative;
    width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
    padding: 20px;
    color: var(--color-gray-medium);
    background: var(--color-white);
    border-top: 1px solid rgba(29, 28, 28, 0.1);
    border-radius: 0 0 20px 20px;
}

#Smallchat .Input_field {
    width: 100%;
    resize: none;
    border: 2px solid rgba(29, 28, 28, 0.1);
    outline: none;
    padding: 15px 80px 15px 20px;
    background: var(--color-gray-light);
    font-size: 15px;
    line-height: 20px;
    min-height: 20px !important;
    max-height: 100px;
    border-radius: 25px;
    font-family: inherit;
    transition: all 0.3s ease;
}

#Smallchat .Input_field:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(29, 28, 28, 0.1);
}

#Smallchat .Input_field::placeholder {
    color: var(--color-gray-medium);
    font-style: italic;
}

/* Botones del input */
#Smallchat .Input_button {
    position: absolute;
    bottom: 30px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: none;
    outline: none;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-white);
}

#Smallchat .Input_button:hover {
    background: #333;
    transform: scale(1.1);
    box-shadow: var(--shadow-soft);
}

#Smallchat .Input_button-emoji {
    right: 70px;
}

#Smallchat .Input_button-send {
    right: 25px;
}

#Smallchat .Input_button i {
    font-size: 16px;
}

/* Footer del chat */
.chat-footer {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid rgba(29, 28, 28, 0.05);
    text-align: center;
    font-size: 12px;
    color: var(--color-gray-medium);
}

.chat-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.chat-footer a:hover {
    color: #333;
}

/* Tooltip */
#tooltip_chat {
    position: fixed;
    z-index: 10;
    width: auto;
    max-width: 250px;
    right: 15px;
    bottom: 88px;
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid rgba(29, 28, 28, 0.2);
    font-size: 14px;
    text-align: left;
    padding: 15px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    animation: tooltipFloat 3s ease-in-out infinite alternate;
    font-family: inherit;
    line-height: 1.4;
}

#tooltip_chat span {
    display: block;
    margin-bottom: 0;
}

#btnTool {
    position: absolute;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    top: -8px;
    right: -8px;
    font-size: 10px;
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btnTool:hover {
    background: #333;
    transform: scale(1.1);
}

@keyframes tooltipFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Área de audio */
#contentAudio {
    background: #fafafa;
    border-radius: 15px;
    margin: 10px;
    padding: 20px;
    border: 2px dashed rgba(29, 28, 28, 0.2);
}

#contentAudio button {
    border-radius: 25px;
    font-weight: 500;
    font-size: 13px;
    padding: 10px 20px;
    border: none;
    transition: all 0.3s ease;
}

#btnUploadRecordedAudio {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
}

#btnUploadRecordedAudio:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

#btnCancelarRecordedAudio {
    background: var(--color-gray-medium) !important;
    color: var(--color-white) !important;
}

#btnCancelarRecordedAudio:hover {
    background: #555 !important;
    transform: translateY(-2px);
}

/* Spinner personalizado */
.spinner-grow {
    color: var(--color-primary) !important;
}

/* ====================================================================================
    Responsive Design
====================================================================================*/
@media (max-width: 768px) {
    .chat_on {
        width: 65px;
        height: 65px;
        right: 15px;
        bottom: 15px;
    }

    .chat_on i {
        font-size: 1.5rem;
    }

    #Smallchat .Layout-open {
        min-width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: 80vh;
        max-height: 80vh;
        right: 10px;
    }

    #Smallchat .Messenger_messenger {
        min-width: 100%;
    }

    #Smallchat .Messenger_content {
        height: calc(80vh - 60px);
    }

    #tooltip_chat {
        right: 10px;
        bottom: 151px;
        max-width: 200px;
        font-size: 13px;
        padding: 10px;
    }
}

/* ====================================================================================
    Animaciones
====================================================================================*/
@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

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

@keyframes slidein {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================================================================
    Estilos de las estrellas (mantenidos del diseño original)
====================================================================================*/
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    color: #fff;
    font-size: 12px;
    animation: twinkle 2s infinite ease-in-out;
}

.star.small {
    font-size: 12px;
    animation-duration: 1.5s;
}

.star.medium {
    font-size: 16px;
    animation-duration: 2s;
}

.star.large {
    font-size: 20px;
    animation-duration: 2.5s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
        filter: brightness(0.8) saturate(1.2);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        filter: brightness(1.5) saturate(1.8);
    }
}

/* Diferentes colores de estrellas con animaciones */
@keyframes twinkle-gold {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        color: #ffd700;
        text-shadow: 0 0 10px #ffd700;
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        color: #ffff99;
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

@keyframes twinkle-blue {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        color: #4a90e2;
        text-shadow: 0 0 10px #4a90e2;
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        color: #87ceeb;
        text-shadow: 0 0 20px #4a90e2, 0 0 30px #4a90e2;
    }
}

@keyframes twinkle-purple {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        color: #9370db;
        text-shadow: 0 0 10px #9370db;
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        color: #dda0dd;
        text-shadow: 0 0 20px #9370db, 0 0 30px #9370db;
    }
}

@keyframes twinkle-pink {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        color: #ff69b4;
        text-shadow: 0 0 10px #ff69b4;
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        color: #ffb6c1;
        text-shadow: 0 0 20px #ff69b4, 0 0 30px #ff69b4;
    }
}

@keyframes twinkle-green {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        color: #32cd32;
        text-shadow: 0 0 10px #32cd32;
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        color: #98fb98;
        text-shadow: 0 0 20px #32cd32, 0 0 30px #32cd32;
    }
}

@keyframes twinkle-cyan {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        color: #00ced1;
        text-shadow: 0 0 10px #00ced1;
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        color: #afeeee;
        text-shadow: 0 0 20px #00ced1, 0 0 30px #00ced1;
    }
}

@keyframes twinkle-orange {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        color: #ff8c00;
        text-shadow: 0 0 10px #ff8c00;
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        color: #ffd700;
        text-shadow: 0 0 20px #ff8c00, 0 0 30px #ff8c00;
    }
}

@keyframes twinkle-white {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        color: #ffffff;
        text-shadow: 0 0 10px #ffffff;
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
        color: #f0f8ff;
        text-shadow: 0 0 20px #ffffff, 0 0 30px #ffffff;
    }
}

.star.color-gold {
    animation: twinkle-gold 2s infinite ease-in-out;
}

.star.color-blue {
    animation: twinkle-blue 2.2s infinite ease-in-out;
}

.star.color-purple {
    animation: twinkle-purple 2.4s infinite ease-in-out;
}

.star.color-pink {
    animation: twinkle-pink 1.8s infinite ease-in-out;
}

.star.color-green {
    animation: twinkle-green 2.6s infinite ease-in-out;
}

.star.color-cyan {
    animation: twinkle-cyan 2.1s infinite ease-in-out;
}

.star.color-orange {
    animation: twinkle-orange 1.9s infinite ease-in-out;
}

.star.color-white {
    animation: twinkle-white 2.3s infinite ease-in-out;
}

/* ====================================================================================
    Estilos adicionales del sitio (mantenidos)
====================================================================================*/
.titulo {
    font-size: 38px;
}

.animacion {
    position: relative;
    animation: mymove 1s infinite;
    animation-delay: 1s;
}

.animacion2 {
    position: relative;
    animation: mymove2 1s infinite;
    animation-delay: 1s;
}

.modulos:hover {
    background-color: var(--color-primary);
    color: white;
}

.modulos span:hover {
    color: white;
}

@keyframes mymove {
    0% {
        left: 0px;
        top: 0px;
    }

    50% {
        left: 8px;
        top: 0px;
    }

    100% {
        left: 0px;
        top: 0px;
    }
}

@keyframes mymove2 {
    0% {
        top: 0px;
    }

    50% {
        top: 8px;
    }

    100% {
        top: 0px;
    }
}

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(-10px);
    }
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--color-primary);
}

.textoNaranja {
    color: #B33000;
}

.prevent-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.iconSocial {
    font-size: 20px;
}

@media (max-width: 800px) {
    .iconSocial {
        font-size: 18px;
    }
}

#Smallchat .Layout-expand {
    height: 90%;
    min-height: 90%;
    display: none;
}

#Smallchat .Layout-mobile.Layout-expand {
    bottom: 0;
    height: 100%;
    min-height: 100%;
    width: 100%;
    min-width: 100%;
    border-radius: 0 !important;
}


/* formualrio de agendar cita */

.reservation-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-black), transparent);
}


.section-header h2::after {
    content: '◊';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-black);
    font-size: 1.2rem;
    opacity: 0.7;
}

.section-description {
    font-size: 1.2rem;
    color: var(--color-gray-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
}

.reservation-form {
    background: var(--color-white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(29, 28, 28, 0.1);
    position: relative;
    overflow: hidden;
}

.reservation-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-label {
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: var(--color-gray-medium);
    margin-right: 8px;
}


.form-control:focus,
.form-select:focus {
    border-color: var(--color-black);
    box-shadow: 0 0 0 0.2rem rgba(29, 28, 28, 0.1);
    background: var(--color-white);
}

.info-alert {
    background: linear-gradient(135deg, rgba(29, 28, 28, 0.05) 0%, rgba(29, 28, 28, 0.02) 100%);
    border: 1px solid rgba(29, 28, 28, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.info-alert h6 {
    color: var(--color-black);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-alert li {
    padding: 5px 0;
    color: var(--color-gray-medium);
    position: relative;
    padding-left: 20px;
}

.info-alert li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-black);
    font-weight: bold;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: var(--color-white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-secondary-custom {
    background: transparent;
    border: 2px solid rgba(29, 28, 28, 0.3);
    color: var(--color-black);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-secondary-custom:hover {
    background: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 28, 28, 0.2);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #20b358 100%);
    border: none;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
    color: white;
}

.button-group {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .reservation-form {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-secondary-custom,
    .whatsapp-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}