/* =========================================================
   GUÍA SALUS — ESTILOS GENERALES
   Base común para toda la plataforma
   ========================================================= */

/* =  VARIABLES GLOBALES  ================================== */

:root {

    /* TIPOGRAFÍAS */

    --font-titulos:
        "Segoe UI",
        sans-serif;

    --font-texto:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    /* COLORES PRINCIPALES */

    --color-principal: #3b85caC8;
    --color-principal-hover: #0378b8;
    --color-principal-claro: #e0f2fe;

    /* COLORES GENERALES */

    --color-texto: #2c2c2c;
    --color-texto-secundario: #63574b;
    --color-blanco: #ffffff;

    --color-fondo: #f7f5f0;
    --color-fondo-claro: #f8fafc;

    --color-borde: #e5e7eb;
    --color-borde-input: #cbd5e1;

    /* --- TONOS DE FONDO --- */
    --tono-oscuro: #736051;
    --tono-medio: #aca695;
    --tono-claro: #dad6c8;
    --tono-muyclaro: #edeae3;


    /* ESTADOS */

    --color-error: #dc2626;
    --color-error-fondo: #fef2f2;

    --color-exito: #10863b;
    --color-exito-fondo: #f0fdf4;

    /* INTERFAZ */

    --radio: 6px;
    --radio-tarjeta: 10px;

    --sombra-suave:
        0 1px 3px rgba(0, 0, 0, 0.04);

    --sombra-tarjeta:
        0 4px 10px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-texto);
    color: var(--color-texto);
    background: var(--color-fondo);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-page {
    width: 100%;
    background: #d5ceba url("/img/fondoprof.webp") no-repeat center center fixed;
    background-size: cover;
    background-blend-mode: multiply;
    margin: 0;
    min-height: 100vh;
    color: var(--admin-text);
}

.background-page.prof {
    background: #a01ec4 url("/img/fondoprof.webp") no-repeat center center fixed;
    background-size: cover;
    background-blend-mode: multiply;
    margin: 0;
    min-height: 100vh;
    color: var(--admin-text);
}

.background-page.degrade {
    background: linear-gradient(135deg, #002d4a, #0e9722);
}


/* =========================================================
   ELEMENTOS GENERALES
   ========================================================= */

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: var(--font-texto);
}

button {
    cursor: pointer;
}


/* =========================================================
   TIPOGRAFÍA
   ========================================================= */

h1,h2,h3,h4,h5,h6{
    font-family:var(--font-titulos);
    font-weight:350;
    line-height:1.1;
}
h1{font-size:2.5rem;}
h2{font-size:2rem;}
h3{font-size:1.75rem;}
h4{font-size:1.5rem;}
h5{font-size:1.25rem;}
h6{font-size:1rem;}

.b1,.b2,.b3,.b4,.b5,.b6{
    font-family:var(--font-titulos);
    font-weight:300;
    color:#fff;
    line-height:1.1;
}
.b1{font-size:2.5rem;}
.b2{font-size:2rem;}
.b3{font-size:1.75rem;}
.b4{font-size:1.5rem;}
.b5{font-size:1.25rem;}
.b6{font-size:1rem;}

p,
li,
span,
label,
input,
select,
textarea,
button {
    font-family: var(--font-texto);
}


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.container {
    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;
}


/* ENLACES ================================================= */

a{
color:inherit;
text-decoration:none!important;
}

/* BOTÓNES ================================================= */

.btn-outline {
    --btn-acrilico-contraste: 0 0 0 0 transparent;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(166,224,244,.46);
    border-radius: 999px;
    background: linear-gradient(145deg,rgba(83,190,229,.26),rgba(35,139,195,.31));
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,44,89,.65);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: inset 0 4px 7px rgba(190,238,252,.2),inset 0 -5px 9px rgba(55,164,207,.24),inset 1px 0 5px rgba(220,246,255,.1),var(--btn-acrilico-contraste),0 2px 2px -1px rgba(174,235,252,.58),-1px 6px 7px -2px rgba(0,72,132,.36);
    backdrop-filter: blur(6px) saturate(125%);
    -webkit-backdrop-filter: blur(6px) saturate(125%);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn-outline:hover {
    background: linear-gradient(145deg,rgba(96,201,237,.34),rgba(43,151,205,.39));
    border-color: rgba(184,232,248,.62);
    box-shadow: inset 0 4px 7px rgba(202,242,253,.25),inset 0 -5px 9px rgba(65,179,219,.29),inset 1px 0 5px rgba(231,249,255,.13),var(--btn-acrilico-contraste),0 2px 2px -1px rgba(188,241,255,.7),-1px 7px 8px -2px rgba(0,72,132,.42);
    transform: translateY(-1px);
}

.background-page .btn-outline {
    --btn-acrilico-contraste: 0 0 0 1px rgba(0,72,118,.22);
    color: #073b5a;
    text-shadow: 0 1px 1px rgba(255,255,255,.48);
}

.background-page .btn-outline:hover {
    color: #052f49;
    text-shadow: 0 1px 1px rgba(255,255,255,.58);
}


.btn-danger-outline {
    background-color: transparent;
    color: #dc3545;
    border: 1.5px solid #dc3545;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-outline:hover {
    background-color: transparent;
    color: #b02a37;
    border-color: #b02a37;
}

.btn-danger-outline:active {
    background-color: rgba(220, 53, 69, 0.08);
    color: #b02a37;
    border-color: #b02a37;
}


/* Comienzo efecto moneda en logo */

.contenedor-moneda {
    perspective: 1000px;
    width: 180px;
    height: 180px;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 5px;
}

.imagen-moneda {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transform-style: preserve-3d;
}

@keyframes girarMoneda {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.imagen-moneda.girando {
    animation: girarMoneda 1.5s ease forwards;
}

/* Final efecto moneda en logo */


/* =========================================================
   CAMPOS DE FORMULARIO
   ========================================================= */

input,
select,
textarea {
    color: var(--color-texto);
    background: var(--color-blanco);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-principal);
}


/* =========================================================
   UTILIDADES
   ========================================================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}


/* =========================================================
   HEADER GENERAL
   ========================================================= */

.header {
    width: 100%;
    max-width: 1225px;
    margin: auto;

    padding: 40px 40px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    color: var(--color-blanco);
    text-decoration: none;
}

.header-brand img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.header-brand h1 {
    margin: 0;

    color: var(--color-blanco);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.header-brand p {
    margin: 6px 0 0;

    color: rgba(255,255,255,.78);
    font-size: .85rem;
}

.header-back {
    padding: 9px 16px;

    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--radio);

    color: var(--color-blanco);
    text-decoration: none;
    font-size: .85rem;

    transition: .3s;
}

.header-back:hover {
    background: var(--color-blanco);
    color: var(--color-texto);
}


/* ========================================================================== 
   FOOTER GENERAL
   ========================================================================== */

footer {
    background: transparent;
    padding: 0px 20px 30px;
    color: #fff;
    text-align: center;
    border-top: none;
}

footer p {
    margin: 0;
    font-size: .72rem;
}

footer a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   RESPONSIVE GENERAL
   ========================================================= */

@media (max-width: 768px) {

    .contenedor-moneda {
        width: 120px;
        height: 120px;
        margin-bottom: 4px;
    }

    .background-page,
    .backgroundprof-page {
        background-attachment: scroll;
    }

    .header {
        padding: 18px 15px;
    }

    .header-brand {
        gap: 9px;
    }

    .header-brand img {
        width: 48px;
        height: 48px;
    }

    .header-brand h1 {
        font-size: 1.45rem;
    }

    .header-brand p {
        margin-top: 3px;
        font-size: .68rem;
    }

    .header-back {
        padding: 7px 10px;
        font-size: .7rem;
        white-space: nowrap;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn-outline {
        padding: 9px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 380px) {

    .header {
        gap: 10px;
    }

    .header-brand {
        gap: 7px;
    }

    .header-brand img {
        width: 44px;
        height: 44px;
    }

    .header-brand h1 {
        font-size: 1.3rem;
    }

    .header-brand p {
        font-size: .6rem;
    }

    .header-back {
        padding: 6px 8px;
        font-size: .65rem;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .btn-outline {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
}

.modalidad-line {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 18px;
}

.modalidad-line label {
    display: flex;
    align-items: center;
}
