/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif; /* Fuente más moderna */
    background: linear-gradient(to right, #007bff, #1a293a); /* Degradado de fondo */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
    color: #333;
}

/* Contenedor principal para el logo y el formulario */
.main-container {
    width: 100%;
    max-width: 500px; /* Aumenta el ancho máximo para mejor distribución */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cabecera del formulario (donde va el logo) */
.form-header {
    text-align: center;
    margin-bottom: 30px; /* Más espacio debajo del logo */
}

/* Estilos para el logotipo */
.logo {
    max-width: 75%;
    height: auto;
    width: 280px; /* Tamaño un poco más grande para el logo */
    display: block;
    margin: 0 auto;
    border-radius: 8px; /* Bordes ligeramente redondeados para el logo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contenedor del formulario */
form {
    background-color: white;
    padding: 40px; /* Más padding para un look espacioso */
    border-radius: 12px; /* Bordes más redondeados */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* Sombra más pronunciada */
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    position: relative; /* Para posibles animaciones o elementos posicionados */
    overflow: hidden; /* Asegura que nada se salga */
}

/* Pequeño detalle de fondo en el formulario */
form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #0a3dff, #06ff02);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Títulos y etiquetas */
form h2, form h3 {
    color: #264673; /* Color de título principal */
    text-align: center;
    margin-bottom: 25px; /* Más espacio */
    font-weight: 700; /* Negrita */
}
form h3 {
    color: #0a3dff; /* Color secundario */
    font-size: 1.1em;
    margin-top: -15px; /* Un poco más cerca del h2 */
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px; /* Más espacio */
    font-weight: 600; /* Semi-negrita */
    color: #444;
    display: flex; /* Para alinear el icono y el texto */
    align-items: center;
}

.icon {
    margin-right: 8px; /* Espacio entre el icono y el texto */
    color: #0a3dff; /* Color del icono */
    font-size: 1.1em;
}

/* Campos de entrada y textarea */
input[type=text],
input[type=email],
input[type=tel],
input[type=url], /* Estilos para el nuevo campo de URL */
select,
textarea { /* Estilos para el nuevo campo de textarea */
    width: 100%;
    padding: 14px 15px; /* Más padding */
    margin-bottom: 25px; /* Más espacio entre campos */
    border: 1px solid #ddd;
    border-radius: 8px; /* Bordes más redondeados */
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease; /* Transición suave para todos los cambios */
    background-color: #f9f9f9; /* Ligero color de fondo */
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=url]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #264673; /* Borde más oscuro al enfocar */
    box-shadow: 0 0 0 3px rgba(38, 70, 115, 0.2); /* Sombra de enfoque */
    background-color: #fff;
}

/* Placeholder styling */
::placeholder {
    color: #999;
    font-style: italic;
}

/* Botón de enviar */
.submit-button { /* Cambio a clase para más flexibilidad */
    width: 100%;
    border: none;
    background-color: #06ff02;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Añade transformación para el hover */
    display: flex; /* Para centrar el icono y el texto */
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacio entre el icono y el texto del botón */
}

.submit-button:hover {
    background-color: #0a3dff;
    transform: translateY(-2px); /* Efecto de "levantar" el botón */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    transform: translateY(0); /* Efecto de "presionar" el botón */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Mensajes de error y éxito */
.mensaje {
    padding: 15px;
    margin-bottom: 25px; /* Más espacio */
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.5s ease-out; /* Animación para los mensajes */
}
.error {
    background-color: #ffeded; /* Fondo más suave */
    color: #d9534f; /* Rojo más amigable */
    border: 1px solid #d9534f;
}
.correcto {
    background-color: #edfff1; /* Fondo más suave */
    color: #5cb85c; /* Verde más amigable */
    border: 1px solid #5cb85c;
}

/* Animación para los mensajes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enlaces e imágenes de información adicional */
.info-adicional {
    margin-top: 35px; /* Más espacio */
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed #eee; /* Línea divisoria suave */
}
.info-adicional p {
    margin: 12px 0;
    color: #666;
    line-height: 1.6; /* Mejor lectura */
}
.info-adicional a {
    color: #264673;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}
.info-adicional a:hover {
    color: #ED8824; /* Cambia de color al pasar el ratón */
    text-decoration: underline;
}
.info-adicional img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Sombra más definida */
    transition: transform 0.3s ease;
}
.info-adicional img:hover {
    transform: scale(1.02); /* Ligero zoom al pasar el ratón */
}

/* Ocultar las opciones de categoría al principio */
#categoria-container {
    display: none;
}

/* Contenedor para cada grupo de formulario (label + input) */
.form-group {
    margin-bottom: 20px; /* Espacio entre cada grupo de campo */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    form {
        padding: 25px; /* Menos padding en pantallas pequeñas */
    }

    .logo {
        width: 200px; /* Logo más pequeño en móviles */
    }

    h2 {
        font-size: 1.5em;
    }

    .submit-button {
        font-size: 16px;
        padding: 12px 15px;
    }
}

/* Existing styling for submit-button and cancel-button (or add if you haven't) */
.submit-button {
    background-color: #007bff; /* Example: Blue for submit */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

.submit-button i {
    margin-right: 5px;
}

.cancel-button {
    background-color: #dc3545; /* Red for cancel */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    /* Remove margin-left if it was there before to allow centering */
}

.cancel-button:hover {
    background-color: #c82333;
}

.cancel-button i {
    margin-right: 5px;
}

/* New CSS to center the cancel button */
.button-center-container {
    text-align: center; /* Centers inline-block and inline elements */
    margin-top: 20px;   /* Adds space above the cancel button */
    margin-bottom: 10px; /* Optional: adds space below if needed */
}

/* Estilos para el nuevo botón "Editar Negocio" */
.edit-button {
    background-color: #ffc107; /* Amarillo/Naranja, comúnmente usado para acciones de edición */
    color: #333; /* Texto oscuro para contraste */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-left: 10px; /* Espacio a la izquierda del botón de registro */
}

.edit-button:hover {
    background-color: #e0a800; /* Tono más oscuro al pasar el ratón */
}

.edit-button i {
    margin-right: 5px;
}
.edit-button {
    /* Existing styles for edit-button */
    display: block; /* Ensures it takes up full width for text-align to work on its parent */
    margin: 0 auto; /* Centers a block element */
    /* Or if its parent is a flex container: */
    /* align-self: center; */
    /* justify-content: center; (on parent) */
}


