/* estilos.css */

body {
    font-family: Arial, sans-serif;
    background-color: #007bff;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.main-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #007bff; /* Color para el título de la sección */
}

h3 {
    font-size: 1.1em;
    color: #666;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header .logo {
    max-width: 150px;
    height: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: calc(100% - 22px); /* Ajusta para padding y borde */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Incluye padding y border en el width */
    margin-top: 5px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #28a745; /* Verde para acción principal */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #218838;
}

.submit-button[name="validar_clave"] { /* Estilo específico para el botón de validar clave */
    background-color: #007bff;
}

.submit-button[name="validar_clave"]:hover {
    background-color: #0056b3;
}

.mensaje {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.correcto {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.icon {
    margin-right: 8px;
    color: #007bff; /* Color para los iconos */
}

.button-center-container {
    text-align: center;
    margin-top: 20px;
}

.cancel-button {
    background-color: #dc3545; /* Rojo para cancelar */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cancel-button:hover {
    background-color: #c82333;
}

.info-adicional {
    margin-top: 30px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
    text-align: center;
    color: #6c757d;
}

/* Estilos para el nuevo botón de edición */
.boton-editar {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f0ad4e; /* Color naranja distintivo para edición */
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px; /* Espacio para separarlo de otros elementos */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.boton-editar:hover {
    background-color: #ec971f; /* Un naranja más oscuro al pasar el cursor */
}

/* Estilo para el ícono dentro del botón */
.boton-editar .fa-edit {
    margin-right: 8px;
}

/* Centrar el contenedor del botón para una mejor presentación */
.button-center-container {
    text-align: center;
}

.info-adicional a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.info-adicional a:hover {
    text-decoration: underline;
}

.info-adicional img {
    max-width: 200px; /* Ajusta el tamaño de tus imágenes de anuncio */
    height: auto;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

small {
    display: block;
    color: #888;
    margin-top: 5px;
    font-size: 0.85em;
}

/* Nuevos estilos para el visualizador de imágenes y el drop zone */
.file-drop-area {
    position: relative;
    border: 2px dashed #b1c6e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-drop-area:hover,
.file-drop-area.is-active {
    background-color: #e9f2ff;
    border-color: #007bff;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.fake-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: bold;
}

.file-msg {
    display: block;
    font-size: 0.9em;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    min-height: 50px;
}

.image-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    background-color: #f0f0f0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.image-preview .remove-btn:hover {
    opacity: 1;
}