﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --guinda-primary: #6b1935;
    --guinda-dark: #4a0f23;
    --guinda-light: #8b2847;
    --verde-activo: #28a745;
    --verde-light: #d4edda;
    --gris-claro: #f8f9fa;
    --gris-medio: #e9ecef;
    --gris-oscuro: #495057;
    --blanco: #ffffff;
    --negro: #212529;
    --azul-link: #007bff;
    --amarillo-urgente: #ffc107;
    --rojo-cerrado: #dc3545;
    --border-radius: 12px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --obligatorio-main: #338a70;
    --obligatorio-dark: #00776d;
    --font-gobmx: 'Noto Sans', sans-serif !important;
}

.formulario-body {
    font-family: 'Noto Sans', sans-serif;
    background: white;
    min-height: 100vh;
    padding: 40px 20px;
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-title {
    font-weight: 700;
    color: #000;
    margin-top: 0px;
    margin-bottom: 2rem;
    text-align: center;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.form-header {
    background: linear-gradient(135deg, #00776d 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

    .form-header h2 {
        margin-bottom: 10px;
        font-weight: 700;
    }

    .form-header p {
        font-size: 1.3rem;
        opacity: 0.95;
        line-height: 1.5;
    }

.form-content {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Noto Sans', sans-serif;
}

/* Estilos especiales para el input de fecha y hora */
.fecha-hora-input {
    position: relative;
}

    .fecha-hora-input::-webkit-calendar-picker-indicator {
        display: none;
    }

    .fecha-hora-input::-webkit-datetime-edit {
        color: transparent;
    }

    .fecha-hora-input::-webkit-datetime-edit-fields-wrapper {
        color: #606060;
    }

    .fecha-hora-input:focus::-webkit-datetime-edit,
    .fecha-hora-input:not(:placeholder-shown)::-webkit-datetime-edit {
        color: #333;
    }

textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #4a7d75;
    box-shadow: 0 4px 12px rgba(74, 125, 117, 0.2);
}

/* Estilos para radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    max-width: 200px;
}

    .radio-option:hover {
        border-color: #4a7d75;
        background: #f8f9fa;
    }

    .radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
        margin: 0;
        cursor: pointer;
        accent-color: #00776d;
    }

        .radio-option input[type="radio"]:checked + .radio-label {
            font-weight: 700;
            color: #00776d;
        }

    .radio-option:has(input[type="radio"]:checked) {
        border-color: #00776d;
        background: #f4fbf8;
        box-shadow: 0 2px 8px rgba(0, 119, 109, 0.15);
    }

.radio-label {
    font-size: 1.25rem;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Botón de enviar - Estados */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.3s ease;
    font-family: 'Noto Sans', sans-serif;
    opacity: 0.6;
}

    .btn-submit.btn-active {
        background: linear-gradient(135deg, #00776d 100%);
        cursor: pointer;
        opacity: 1;
    }

        .btn-submit.btn-active:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 119, 109, 0.3);
        }

        .btn-submit.btn-active:active {
            transform: translateY(0);
        }

    .btn-submit:disabled {
        background: #6c757d;
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #4a7d75;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
}

    .info-box p {
        color: #1a1a1a;
        font-size: 1.3rem;
        line-height: 1.6;
    }

.helper-text {
    color: #606060;
    font-size: 1.15rem;
    margin-top: 8px;
    line-height: 1.45;
}

.hidden {
    display: none !important;
}

.inline-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    user-select: none;
}

    .inline-check input[type="checkbox"] {
        width: auto;
        min-width: 18px;
        min-height: 18px;
        transform: scale(1.1);
        accent-color: #4a7d75;
        margin-top: 3px;
        flex-shrink: 0;
        cursor: pointer;
    }

    .inline-check span {
        flex: 1;
        line-height: 1.5;
    }

.status {
    margin-top: 12px;
    font-size: 1.4rem;
    color: #606060;
    line-height: 1.5;
}

    .status strong {
        color: #1a1a1a;
    }

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3a6158;
    margin-left: 10px;
}

.divider {
    height: 1px;
    background: #e9ecef;
    margin: 25px 0;
}

.privacy-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
}

    .privacy-box p {
        color: #1a1a1a;
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }

html, body {
    font-family: 'Noto Sans', sans-serif !important;
}

    body *,
    .navbar,
    .navbar *,
    .container,
    .container-fluid,
    h1, h2, h3, h4, h5, h6,
    p, span, label, a, li,
    input, textarea, select, button {
        font-family: 'Noto Sans', sans-serif !important;
    }

    html,
    html * {
        font-family: 'Noto Sans', sans-serif !important;
    }

.form-label.required,
.form-label.is-required {
    color: var(--obligatorio-dark);
    font-weight: 700;
}

    .form-label.required::after,
    .form-label.is-required::after {
        content: ' *';
        color: var(--obligatorio-main);
        font-weight: 800;
    }

.form-control:required,
.form-select:required,
.form-control.is-required,
.form-select.is-required {
    border-color: var(--gris-medio);
}

    .form-control:required:focus,
    .form-select:required:focus,
    .form-control.is-required:focus,
    .form-select.is-required:focus {
        border-color: var(--obligatorio-main);
        box-shadow: 0 0 0 3px rgba(51, 138, 112, 0.25);
    }

.inline-check input[type="checkbox"]:required {
    accent-color: var(--obligatorio-main);
}

.helper-text.required {
    color: var(--obligatorio-dark);
    font-weight: 600;
}

.status.required strong {
    color: var(--obligatorio-dark);
}

.pill.required {
    border-color: var(--obligatorio-main);
    color: var(--obligatorio-dark);
    background: #f4fbf8;
}

.swal-title-small {
    font-size: 14px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .form-header h2 {
        font-size: 1.4rem;
    }

    .form-header p {
        font-size: 0.85rem;
    }

    .form-content {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group-half {
        margin-bottom: 25px;
    }

    /* Radio buttons en móvil */
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .radio-option {
        max-width: 100%;
        padding: 14px 18px;
    }

    .radio-label {
        font-size: 1.2rem;
    }

    /* Corrección para el input de fecha en móvil */
    .fecha-hora-input {
        width: 100%;
        max-width: 100%;
    }

    .inline-check {
        gap: 12px;
    }

        .inline-check input[type="checkbox"] {
            min-width: 20px;
            min-height: 20px;
            transform: scale(1.2);
            margin-top: 2px;
        }

    .privacy-box {
        padding: 20px;
    }

        .privacy-box p {
            font-size: 1.05rem;
            margin-bottom: 12px;
        }

    .inline-check span {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }

    .form-header {
        padding: 20px;
    }

        .form-header h2 {
            font-size: 1.2rem;
        }

    .form-content {
        padding: 15px;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 12px;
    }

    /* Radio buttons más grandes en móviles pequeños */
    .radio-option {
        padding: 16px;
    }

        .radio-option input[type="radio"] {
            width: 22px;
            height: 22px;
        }

    .radio-label {
        font-size: 1.15rem;
    }

    /* Asegurar que el input de fecha no se salga */
    .form-control,
    .form-select,
    .fecha-hora-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .inline-check {
        gap: 10px;
        align-items: center;
    }

        .inline-check input[type="checkbox"] {
            min-width: 22px;
            min-height: 22px;
            transform: scale(1.3);
            margin-top: 0;
        }

    .privacy-box {
        padding: 16px;
    }

        .privacy-box p {
            font-size: 1rem;
        }

    .inline-check span {
        font-size: 1rem;
    }

    .pill {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-left: 6px;
    }
}


/* evita que inputs rompan el contenedor */
.form-control,
.form-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-group {
    min-width: 0;
}

@media (max-width: 768px) {
    .form-group-half {
        width: 100%;
    }
}

