* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {

    font-family: Arial, sans-serif;

    background: #eef5fb;

    color: #18324a;

    min-height: 100vh;

}


/* =========================
   INICIO
========================= */

.inicio {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 20px;

}


.logo {

    text-align: center;

    margin-bottom: 30px;

}


.logo-icono {

    width: 75px;

    height: 75px;

    border-radius: 50%;

    background: #1479d1;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 38px;

    margin: auto;

}


.logo h1 {

    color: #1264ad;

    margin-top: 12px;

    font-size: 38px;

}


.tarjeta-inicio {

    background: white;

    width: 100%;

    max-width: 500px;

    padding: 40px;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

}


.tarjeta-inicio h2 {

    margin-bottom: 15px;

}


.tarjeta-inicio p {

    color: #617487;

    line-height: 1.6;

    margin-bottom: 30px;

}


/* =========================
   HEADER
========================= */

.encabezado {

    background: #1264ad;

    color: white;

    padding: 18px 30px;

}


.logo-pequeno {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 22px;

}


.logo-pequeno span {

    font-size: 25px;

}


/* =========================
   CONTENEDOR
========================= */

.contenedor {

    width: 100%;

    max-width: 900px;

    margin: auto;

    padding: 30px 20px;

}


.formulario-card,
.informacion-card {

    background: white;

    padding: 35px;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.07);

}


.formulario-card > h1 {

    color: #1264ad;

    margin-bottom: 8px;

}


.descripcion {

    color: #6c7c8b;

    margin-bottom: 30px;

}


/* =========================
   SECCIONES
========================= */

section {

    margin-bottom: 35px;

    padding-bottom: 25px;

    border-bottom: 1px solid #dce7f0;

}


section h2 {

    color: #1264ad;

    margin-bottom: 22px;

}


section h3 {

    margin-bottom: 15px;

    color: #315a78;

}


/* =========================
   FORMULARIOS
========================= */

label {

    display: block;

    font-weight: bold;

    margin-bottom: 18px;

    color: #29465d;

}


input,
select,
textarea {

    width: 100%;

    padding: 13px;

    margin-top: 7px;

    border: 1px solid #cbd9e5;

    border-radius: 9px;

    font-size: 15px;

    background: #fbfdff;

}


input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: #1479d1;

    box-shadow: 0 0 0 3px rgba(20,121,209,0.12);

}


textarea {

    min-height: 100px;

    resize: vertical;

}


.fila {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

}


.grupo {

    width: 100%;

}


.opcional {

    color: #7d8d9c;

    margin-top: -15px;

    margin-bottom: 20px;

}


/* =========================
   BOTONES
========================= */

.botones {

    display: flex;

    gap: 15px;

    justify-content: space-between;

    margin-top: 30px;

}


.boton,
.boton-secundario {

    display: inline-block;

    padding: 14px 25px;

    border-radius: 10px;

    text-decoration: none;

    text-align: center;

    font-weight: bold;

    cursor: pointer;

}


.boton {

    background: #1479d1;

    color: white;

    border: none;

}


.boton:hover {

    background: #0e62ad;

}


.boton-secundario {

    background: #e7f0f8;

    color: #1264ad;

}


.boton-secundario:hover {

    background: #d7e7f3;

}


/* =========================
   QR
========================= */

.qr-contenedor {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}


.qr-card {

    background: white;

    padding: 40px;

    border-radius: 20px;

    text-align: center;

    max-width: 500px;

    width: 100%;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

}


.qr-card h1 {

    color: #1264ad;

    margin: 10px 0;

}


.qr-card h2 {

    margin-bottom: 10px;

}


.qr-card p {

    color: #6c7c8b;

    margin-bottom: 25px;

}


#qrcode {

    display: flex;

    justify-content: center;

    margin: 25px 0;

}


.id-paciente {

    margin-top: 20px;

}


/* =========================
   INFORMACIÓN MÉDICA
========================= */

.alerta-principal {

    background: #e8f3fc;

    border-left: 5px solid #1479d1;

    padding: 18px;

    border-radius: 8px;

    margin-bottom: 30px;

}


.alerta-principal p {

    margin-top: 5px;

}


.dato {

    padding: 12px 0;

    border-bottom: 1px solid #edf2f6;

    line-height: 1.5;

}


.dato strong {

    display: block;

    color: #315a78;

    margin-bottom: 4px;

}


.dato.importante {

    background: #eef7ff;

    padding: 15px;

    border-radius: 8px;

}


.contacto {

    background: #f6f9fc;

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 15px;

}


.contacto h3 {

    color: #1264ad;

}


.contacto a {

    color: #1264ad;

}


/* =========================
   CELULAR
========================= */

@media (max-width: 650px) {

    .formulario-card,
    .informacion-card {

        padding: 22px;

    }


    .fila {

        grid-template-columns: 1fr;

        gap: 0;

    }


    .botones {

        flex-direction: column;

    }


    .boton,
    .boton-secundario {

        width: 100%;

    }


    .logo h1 {

        font-size: 32px;

    }

}