/* Importar y usar la fuente Poppins */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

/* Estilos para los pasos del formulario */
.wizard-step { 
    display: none; 
    animation: fadeIn 0.5s ease-in-out; 
}
.wizard-step.active { 
    display: block; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card { 
    border-radius: 1rem; 
}
.form-control-lg { 
    padding: 1rem 1.25rem; 
    font-size: 1.1rem; 
}
.form-control-color { 
    width: 100px; 
    height: 100px; 
}

/* Estilos para las previsualizaciones de imágenes en el form */
#image-preview, 
#initial-image-preview {
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
    align-items: flex-start;
}

.existing-preview-img, 
.local-preview-img {
    width: 100px; 
    height: 100px; 
    object-fit: cover; 
    border-radius: 8px; 
    border: 2px solid #ddd;
}

/* Estilos para el contenedor y botón de eliminar imagen */
.image-preview-wrapper {
    position: relative;
    display: inline-block;
}

.delete-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.delete-image-btn:hover {
    background-color: #dc3545; /* Rojo de Bootstrap para 'danger' */
}

/* Estilos para el editor de texto nativo */
.editor-toolbar {
    border: 1px solid #ced4da;
    border-bottom: none;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
}

#editor {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    min-height: 150px;
}

#editor:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para el marco del teléfono */
.phone-frame {
    position: relative; 
    width: 375px; 
    height: 812px; 
    border: 16px solid #111;
    border-radius: 36px; 
    background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    overflow: hidden;
}

.phone-notch {
    position: absolute; 
    top: 0px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 210px;
    height: 30px; 
    background: #111; 
    border-bottom-left-radius: 12px; 
    border-bottom-right-radius: 12px; 
    z-index: 10;
}

.phone-screen {
    position: relative; 
    width: 100%; 
    height: 100%; 
    overflow-y: auto;
}

.phone-screen::-webkit-scrollbar { 
    width: 5px; 
}
.phone-screen::-webkit-scrollbar-track { 
    background: transparent; 
}
.phone-screen::-webkit-scrollbar-thumb { 
    background: #ccc; 
    border-radius: 10px; 
}

/* Estilos para el contenido de la App generada */
:root {
    --app-primary-color: #0D6EFD;
    --app-secondary-color: #FFFFFF;
}

.app-navbar {
    background-color: var(--app-primary-color); 
    color: var(--app-secondary-color);
    padding: 1.5rem 1rem; 
    text-align: center; 
    font-size: 1.5rem; 
    font-weight: 600;
}

.app-card {
    border: none; 
    margin: 1rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    border-radius: 12px; 
    overflow: hidden;
}

.app-card .card-body { 
    padding: 1.5rem; 
}
.app-card .card-title { 
    color: var(--app-primary-color); 
    font-weight: 600; 
}
.app-card .card-title i { 
    width: 25px; 
}

.app-initial-image {
    width: 100%;
    height: auto;
    display: block;
}

.app-card iframe { 
    width: 100%; 
    height: 200px; 
    border: 0; 
    border-radius: .75rem; 
}

/* Estilos para el Botón de Acción Flotante (FAB) */
.app-fab {
    position: absolute; 
    bottom: 25px; 
    left: 25px; 
    width: 60px; 
    height: 60px;
    background-color: var(--app-primary-color); 
    color: var(--app-secondary-color); 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2rem;
    text-decoration: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    z-index: 100;
    transition: transform 0.2s ease-in-out;
}

.app-fab:hover { 
    transform: scale(1.1); 
    color: var(--app-secondary-color); 
}


/* Archivo: frontend/css/style.css (Añadir al final) */

/* === ESTILOS PARA LA SUPERPOSICIÓN DE VISTA PREVIA === */
#preview-overlay {
    /* Posición y tamaño */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Apariencia */
    background-color: rgba(60, 60, 60, 0.482); /* Fondo negro semitransparente */
    color: rgba(32, 109, 130, 0.893);   /* Texto blanco semitransparente */

    
    /* Centrado del texto */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Estilo del texto */
    font-size: 10vw; /* Tamaño de letra que se adapta al ancho de la pantalla */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 10px;
    
    /* Nos aseguramos de que esté por encima de todo */
    z-index: 9999;
    
    /* Evita que el usuario pueda seleccionar el texto */
    user-select: none;
    
    /* El cursor no cambia al pasar por encima */
    pointer-events: none;
}


/* Archivo: frontend/css/style.css (Añadir al final) */

/* === ESTILOS PARA EL BOTÓN DE LOGIN EN LA ESQUINA === */
.login-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #6c757d; /* Un color gris sutil de Bootstrap */
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.login-button:hover {
    color: #0d6efd; /* Color primario de Bootstrap al pasar el cursor */
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* === ESTILOS PARA EL BOTÓN FIJO DE AYUDA === */
.help-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    
    background-color: #0d6efd; /* Color primario de Bootstrap */
    color: white;
    
    padding: 10px 20px;
    border-radius: 50px;
    
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.help-button:hover {
    color: white;
    transform: translateY(-3px); /* Efecto de "levantarse" */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* === ESTILOS PARA EL OVERLAY DE CARGA === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

.app-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.app-navbar-logo {
    height: 35px;
    width: 35px;
    border-radius: 8px;
    object-fit: cover;
    background-color: rgba(255,255,255,0.2);
}