/* Estilos para el módulo de Zoonosis - Mordeduras de Canes */
/* Basado en los estilos del sistema EDEP */

/* Importar fuente Nunito */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --color-primary: #EC681C;
    --color-primary-dark: #d55a1a;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
}

/* Contenedor principal con ancho fijo como EDEP */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0px;
    min-height: 100vh;
}

/* Estilos específicos para paneles administrativos - sin margin */
body.admin-panel {
    margin: 0;
    padding: 0;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--color-primary), #f57c00);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(236, 104, 28, 0.3);
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

.info-tramite {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
    border-left: 4px solid white;
}

.info-tramite p {
    margin: 0;
    font-size: 0.95rem;
}

.form-container {
    background-color: #FFFFFF;
    padding: 30px;
    margin-bottom: 0;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    font-size: 1.3rem;
}

.form-section h3 {
    color: #333333;
    font-size: 1.2rem;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(236, 104, 28, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* Checkboxes y radio buttons personalizados */
.checkbox-group {
    margin-bottom: 8px; /* Reducido de 20px a 8px */
}

/* Estilo especial para declaraciones juradas */
.declaraciones-juradas .checkbox-group {
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #fafafa;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.declaraciones-juradas .checkbox-group:hover {
    background-color: #fff5f0;
}

.checkbox-options {
    display: block;
    margin-top: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center; /* Volvemos a center para radio buttons */
    cursor: pointer;
    padding: 6px 8px; /* Reducido padding vertical */
    margin-bottom: 4px; /* Espaciado mínimo entre opciones */
    transition: all 0.2s ease;
    border-radius: 8px;
    line-height: 1.3;
}

.checkbox-option:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

.checkbox-option input[type="checkbox"],
.checkbox-option input[type="radio"] {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    background-color: #fafafa;
    flex-shrink: 0;
}

.checkbox-option input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark,
.checkbox-option input[type="radio"]:checked + .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-option input[type="radio"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* Estilos específicos para declaraciones juradas */
.declaraciones-juradas {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

.declaraciones-juradas h2 {
    margin-bottom: 15px !important;
    color: var(--color-primary);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
}

.declaraciones-juradas .checkbox-option {
    margin-bottom: 0;
    padding: 12px 8px;
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.declaraciones-juradas .checkbox-option:hover {
    background-color: #fff5f0;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(236, 104, 28, 0.1);
}

.declaraciones-juradas .checkbox-option input[type="checkbox"]:checked + .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.declaraciones-juradas .checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    color: white;
    font-weight: bold;
}

/* Ajustar el texto de las declaraciones */
.declaraciones-juradas .checkbox-option {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Estilos específicos para radio buttons de tamaño */
.radio-group .checkbox-option {
    padding: 4px 6px;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.radio-group .checkbox-option:hover {
    background-color: #f0f8ff;
    color: var(--color-primary);
}

/* Reducir espaciado del checkmark en radio buttons */
.radio-group .checkmark {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Espaciado mejorado entre declaraciones */
.declaraciones-juradas .checkbox-group + .checkbox-group {
    margin-top: 8px;
}

/* Responsive para declaraciones */
@media (max-width: 768px) {
    .declaraciones-juradas {
        padding: 15px;
        margin: 15px 0;
    }
    
    .declaraciones-juradas .checkbox-option {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
    
    .declaraciones-juradas h2 {
        font-size: 1.2rem;
        margin-bottom: 12px !important;
    }
}

/* Archivos */
.archivo-input {
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archivo-input:hover {
    border-color: var(--color-primary);
    background-color: #fff5f0;
}

.archivo-info {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* Alert info */
.alert-info {
    background-color: #e7f3ff;
    border-left: 4px solid var(--color-info);
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.alert-info i {
    color: var(--color-info);
    font-size: 1.3rem;
    margin-top: 2px;
}

/* Botones de acción */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.submit-btn,
.reset-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-primary), #f57c00);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 104, 28, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), #e65100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 104, 28, 0.4);
}

.reset-btn {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.reset-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Mensajes */
.mensaje-estado,
.mensaje-error {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mensaje-estado {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensaje-error ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.mensaje-error li {
    margin-bottom: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        max-width: 300px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
        margin: 5px;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .submit-btn,
    .reset-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Animaciones */
.form-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

