/* =====================================================
   CE Emprendimientos — Formulario público
   ===================================================== */

.ce-public-form {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1rem;
}

/* --- Avisos (éxito / info) --- */
.ce-form-notice {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.ce-form-notice--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.ce-form-notice--info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.ce-form-notice p {
    margin: 0;
}

.ce-form-notice a {
    color: inherit;
    font-weight: 600;
}

/* --- Secciones del formulario --- */
.ce-form-section {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.ce-form-section__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0 0.5rem;
    margin-bottom: 0.25rem;
    color: #111827;
}

.ce-form-section__desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

/* --- Fila de 2 columnas --- */
.ce-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .ce-form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Campo individual --- */
.ce-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.ce-form-field:last-child {
    margin-bottom: 0;
}

/* --- Etiqueta --- */
.ce-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
}

.ce-form-field--required .ce-form-label::after {
    content: ' *';
    color: #ef4444;
}

/* Punto de color para redes sociales */
.ce-form-label--red {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ce-form-label--red::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ce-form-label--instagram::before { background: #e1306c; }
.ce-form-label--tiktok::before    { background: #010101; }
.ce-form-label--linkedin::before  { background: #0a66c2; }
.ce-form-label--facebook::before  { background: #1877f2; }

/* --- Inputs y textareas --- */
.ce-form-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.ce-form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.ce-form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.55;
}

.ce-form-textarea--lg {
    min-height: 140px;
}

/* --- Checkboxes de tipos --- */
.ce-form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ce-form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.ce-form-checkbox:hover {
    background: #e5e7eb;
}

.ce-form-checkbox input[type="checkbox"] {
    accent-color: #2563eb;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* --- Texto de ayuda --- */
.ce-form-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

/* --- Fila de imágenes (dos columnas) --- */
.ce-form-row--images {
    align-items: start;
}

/* --- Uploader de imagen --- */
.ce-img-uploader {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ce-img-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-img-preview--wide {
    width: 100%;
    height: 140px;
}

.ce-img-preview.has-image {
    border-style: solid;
    border-color: #9ca3af;
}

.ce-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ce-img-placeholder {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    padding: 0.5rem;
}

.ce-form-input--file {
    border: none;
    padding: 0;
    font-size: 0.85rem;
    background: transparent;
    cursor: pointer;
}

.ce-form-input--file::-webkit-file-upload-button {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    margin-right: 0.5rem;
    font-family: inherit;
}

.ce-form-checkbox--delete {
    font-size: 0.8rem;
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
}

.ce-form-checkbox--delete:hover {
    background: #fee2e2;
}

/* --- Botón de envío --- */
.ce-form-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.ce-form-btn {
    display: inline-block;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.ce-form-btn:hover {
    background: #374151;
}
