/* ===== BODY ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f7f6;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #0056b3;
    color: white;
    padding: 25px 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar h1 {
    margin: 0;
    font-size: 2.2rem;
}

.logo {
    height: 100px;
    width: auto;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    display: flex;
    justify-content: center;
    align-items: center;

    /* MÁS CENTRADO Y MÁS JUNTO */
    gap: 30px;

    padding: 40px;
    flex-wrap: wrap;
    min-height: calc(100vh - 160px);
}

/* ===== CARDS ===== */
.card {
    background-color: white;
    border: 2px solid #eee;
    border-radius: 25px;

    /* MÁS GRANDES */
    width: 460px;
    height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    text-align: center;
    padding: 30px;
    text-decoration: none;
    box-sizing: border-box;
}

.card p {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0056b3;
    margin: 0;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,86,179,0.25);
    border-color: #0056b3;
    background-color: #f0f7ff;
}

/* ===== BOTÓN MENÚ ===== */
.menu-btn {
    position: fixed;
    top: 28px;
    left: 25px;
    font-size: 2.4rem;
    color: white;
    cursor: pointer;
    z-index: 2000;
}

/* ===== MENÚ LATERAL ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background-color: #0056b3;
    padding-top: 110px;
    transition: left 0.35s ease;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    z-index: 1999;
}

.sidebar.active {
    left: 0;
}

.sidebar a {
    display: block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
}

.sidebar a:hover {
    background-color: #003d80;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    font-size: 1.5rem;
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1500;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== FORMULARIO ===== */
.form-container {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.medical-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    border-top: 8px solid #0056b3;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
}

.medical-form h2 {
    color: #0056b3;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 10px;
}

/* ===== TÍTULOS ===== */
.medical-form h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    padding: 6px 12px;
    border-left: 5px solid #0056b3;
    color: #003d80;
    font-size: 1.3rem;
    background: linear-gradient(to right, #f0f7ff, transparent);
    border-radius: 6px;
}

/* ===== GRID ===== */
.form-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* ===== FOTO ===== */
.photo-section {
    flex: 1;
    min-width: 220px;
    text-align: center;
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    border: 2px dashed #7aa7d9;
    border-radius: 15px;
    margin: 10px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f5f9ff, #ffffff);
}

.photo-placeholder input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#text-photo {
    color: #0056b3;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== INPUTS ===== */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
}

.medical-form input,
.medical-form textarea {
    width: 100%;
    background-color: #fafafa;
    border: 1.8px solid #d6dde5;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    color: #333;
    transition: all 0.25s ease;
}

.medical-form textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ===== FOCUS ===== */
.medical-form input:focus,
.medical-form textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.12);
}

/* ===== BOTÓN ===== */
.btn-save {
    margin-top: 30px;
    background: linear-gradient(135deg, #0056b3, #003d80);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

/* ===== PLACEHOLDER ===== */
::placeholder {
    color: #9aa7b4;
    font-style: italic;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {

    .navbar {
        padding: 15px 20px;
    }

    .nav-content {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        height: 65px;
    }

    .form-grid {
        flex-direction: column;
    }

    .photo-placeholder {
        width: 180px;
        height: 180px;
    }

    .medical-form {
        padding: 25px;
    }

    .card {
        width: 100%;
        max-width: 420px;
        height: 280px;
    }
}

@media (max-width: 480px) {

    .navbar h1 {
        font-size: 1.3rem;
    }

    .medical-form input,
    .medical-form textarea {
        font-size: 0.95rem;
    }
}

/* ===== BOTÓN VOLVER ===== */
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background-color: #ffffff;
    color: #0056b3;
    transform: translateX(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.ficha-identificacion {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.ficha-identificacion .fila {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ficha-identificacion span {
    font-weight: bold;
}

.ficha-identificacion input {
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
    padding: 2px 4px;
    font-size: 14px;
}

/* Tamaños de línea */
.linea.corta {
    width: 60px;
}

.linea.media {
    width: 150px;
}

.linea.larga {
    width: 300px;
}
.antecedentes-heredo {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.grupo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.causa {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.antecedentes-heredo span {
    font-weight: bold;
}

.antecedentes-heredo input[type="text"] {
    border: none;
    border-bottom: 1px dotted #000;
    outline: none;
    padding: 2px 4px;
    font-size: 14px;
}

.enfermedades {
    margin-top: 20px;
}

.enf {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.enf span {
    width: 210px;
    font-weight: normal;
}

/* Tamaños */
.linea.corta {
    width: 60px;
}

.linea.larga {
    width: 260px;
}

.linea.muy-larga {
    width: 100%;
}
.antecedentes-no-pato {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-top: 10px;
}

.subtitulo {
    font-weight: bold;
    margin: 12px 0 8px;
}

.fila {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.fila-col {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.antecedentes-no-pato span {
    min-width: 90px;
}

.antecedentes-no-pato input[type="text"] {
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
    padding: 2px 4px;
    font-size: 14px;
}

/* tamaños de línea */
.linea.media {
    width: 180px;
}

.linea.larga {
    width: 100%;
}
.antecedentes-pato {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-top: 10px;
}

.fila-col {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fila-enfermedad {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.antecedentes-pato span {
    min-width: 200px;
}

.antecedentes-pato input[type="text"] {
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
    padding: 2px 4px;
    font-size: 14px;
}

.antecedentes-pato input[type="radio"] {
    margin-right: 3px;
}

.linea.larga {
    flex: 1;
}
  body {
    font-family: Arial, sans-serif;
  }

  .seccion {
    margin-bottom: 30px;
  }

  .fila {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
  }

  label {
    font-weight: bold;
  }

  input, textarea {
    border: none;
    border-bottom: 1px solid #000;
    padding: 5px;
    outline: none;
  }

  input {
    width: 150px;
  }

  .largo {
    width: 80%;
  }

  textarea {
    width: 100%;
    border: 1px solid #000;
    resize: none;
  }
