﻿/* ====================================
   ESTILOS PARA FORMULARIOS
   Aplica las fuentes personalizadas a todos los elementos del formulario
   ==================================== */

/* Labels con la fuente HankenGrotesk-Light */
label,
.form-label {
    font-family: 'HankenGrotesk-Light', sans-serif !important;
    font-weight: 300;
    line-height: 1.6;
}

    /* Labels en negrita usan HankenGrotesk-Black */
    label.fw-semibold,
    label.fw-bold,
    .form-label.fw-semibold,
    .form-label.fw-bold {
        font-family: 'HankenGrotesk-Black', sans-serif !important;
        font-weight: bolder;
    }

/* Inputs, textareas y selects */
input.form-control,
textarea.form-control,
select.form-select,
.form-control,
.form-select {
    font-family: 'HankenGrotesk-Light', sans-serif !important;
    font-weight: 300;
    line-height: 1.6;
}

/* Placeholders */
input::placeholder,
textarea::placeholder {
    font-family: 'HankenGrotesk-Light', sans-serif !important;
    opacity: 0.6;
}

/* Texto de ayuda y validación */
.form-text,
.text-muted,
small {
    font-family: 'HankenGrotesk-Light', sans-serif !important;
    font-weight: 300;
}

/* Mensajes de validación */
.text-danger,
.invalid-feedback,
.valid-feedback {
    font-family: 'HankenGrotesk-Light', sans-serif !important;
    font-weight: 300;
}

/* Checkboxes y radio buttons labels */
.form-check-label {
    font-family: 'HankenGrotesk-Light', sans-serif !important;
    font-weight: 300;
    line-height: 1.6;
}

    .form-check-label strong,
    .form-check-label b {
        font-family: 'HankenGrotesk-Black', sans-serif !important;
    }

/* Alertas */
.alert {
    font-family: 'HankenGrotesk-Light', sans-serif !important;
}

    .alert strong {
        font-family: 'HankenGrotesk-Black', sans-serif !important;
    }

/* Títulos de tarjetas en formularios */
.card-header h2,
.card-header h3,
.card-header h4,
.card-header p {
    font-family: 'Novecento CondBold', sans-serif !important;
}

/* Subtítulos en el formulario (los h4 con íconos) */
h4.text-success {
    font-family: 'Novecento CondBold', sans-serif !important;
}

/* Botones - mantener Novecento */
.btn {
    font-family: 'Novecento CondBold', sans-serif !important;
}

/* Opcional: Mejorar el aspecto visual de los inputs */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #6b8e3d;
        box-shadow: 0 0 0 0.25rem rgba(107, 142, 61, 0.25);
        outline: none;
    }

    .form-control:hover:not(:focus),
    .form-select:hover:not(:focus) {
        border-color: #b0b0b0;
    }

    /* Estilos para inputs inválidos */
    .form-control.is-invalid,
    .form-select.is-invalid {
        border-color: #dc3545;
        background-image: none;
    }

    .form-control.is-valid,
    .form-select.is-valid {
        border-color: #28a745;
        background-image: none;
    }

/* Mejorar la apariencia de los labels */
.form-label {
    margin-bottom: 0.5rem;
    color: #2d4019;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

    /* Span de asterisco requerido */
    .form-label .text-danger {
        font-size: 1.1em;
        margin-left: 2px;
    }

/* Small text bajo los inputs */
.form-text.text-muted {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Responsive: ajustar tamaños en móviles */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        font-size: 16px; /* Previene zoom en iOS */
    }

    .form-label {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 1.5rem;
    }
}
