/* Estilos para la página Info para pacientes */

/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Sección de héroe */
.hero-secondary {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #AEDFF7, #87CEEB);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-description {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Sección de procedimientos */
.procedures-section {
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-badge {
    display: inline-block;
    background-color: #FF6F61;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2rem;
    margin: 10px 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Estilos para la lista de procedimientos */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.procedure-item {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.procedure-item:hover {
    transform: translateY(-5px);
}

.procedure-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.procedure-item p {
    font-size: 1rem;
    color: #555;
}

.btn-view {
    background-color: #FF6F61;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-view:hover {
    background-color: #FF4C4C;
}

/* Estilos para el estado vacío */
.empty-state {
    text-align: center;
    margin-top: 50px;
}

.empty-icon {
    font-size: 3rem;
    color: #FF6F61;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-top: 10px;
}

.empty-state p {
    color: #777;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.55); /* slate overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity .2s ease;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    width: 92%;
    max-width: 720px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.25), 0 8px 22px rgba(2, 6, 23, 0.12);
    border: 1px solid #e5e7eb;
    transform: translateY(6px) scale(.985);
    transition: transform .22s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #14b8a6; /* teal-500 */
}

.modal-close {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #334155;
}
.modal-close:hover { background: #e5e7eb; }

.modal-form { margin-top: 20px; }

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: 10px;
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .25);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-cancel {
    background: #e2e8f0;
    color: #0f172a;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.btn-cancel:hover { background: #cbd5e1; }

.btn-save {
    background: linear-gradient(90deg, #14b8a6, #3b82f6);
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.btn-save:hover { filter: brightness(.98); }

/* Estilos para la carga de imágenes */
.image-upload-area {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.image-preview-grid img {
    width: 100%;
    border-radius: 5px;
}
