/* =========================================================
   TEMA NUEVO DEL TURNERO (rediseño 2026)
   Se usa en: index (DEM/sin DEM), dem, misdatos, organismos,
   aviso, tramite y turno.
   NO afecta admin* ni turnero* (pantallas de TV), esas
   vistas no incluyen este archivo.
   ========================================================= */

/* Fondo degradé + inversión del nav para las pantallas donde
   el header va "montado" sobre el degradé (todo menos el
   primer paso del index, que mantiene el nav blanco). */
html {
    min-height: 100%;
    background: linear-gradient(to right, #178dbf 0%, #119bbf 100%);
}

body.tema-turnos {
    min-height: 100vh;
    background-color: #178dbf;
    background-image:
        url("https://cam.laplata.gob.ar/img/bg-web.jpg"),
        linear-gradient(to right, #178dbf 0%, #119bbf 100%);
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body.tema-turnos main,
body.tema-turnos #content {
    height: auto;
    min-height: calc(100vh - 78px);
    background: transparent;
}

body.tema-turnos main {
    flex: 0 0 auto;
}

body.tema-turnos .turnos-nav {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    height: 78px;
    margin-bottom: 60px;
    line-height: normal;
    padding: 0 clamp(20px, 7vw, 120px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(4, 91, 116, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

body.tema-turnos .turnos-marca {
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
}

body.tema-turnos .turnos-marca img {
    width: 175px;
    height: auto;
}

body.tema-turnos .turnos-marca img.turnos-capital-logo {
    width: 145px;
}

body.tema-turnos .turnos-capital {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    line-height: 1.05;
    text-align: right;
}

body.tema-turnos .turnos-marca-separador {
    width: 1px;
    height: 34px;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.7);
}

body.tema-turnos .nav-faq {
    float: none;
    height: auto;
    line-height: 1;
    margin: 0;
    padding: 8px 24px;
    border-radius: 22px;
    font-size: 13px;
    text-transform: uppercase;
}

body.tema-turnos nav img {
    filter: brightness(0) invert(1);
}

body.tema-turnos .nav-faq {
    background: transparent;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

body.tema-turnos .nav-faq p {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

body.tema-turnos .nav-faq i {
    color: #fff;
    opacity: 1;
}

body.tema-turnos footer.page-footer {
    position: relative;
    inset: auto;
    z-index: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: min(920px, calc(100% - 40px));
    height: auto;
    margin: 54px auto 36px;
     padding: 24px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

body.tema-turnos footer.page-footer > img,
body.tema-turnos footer.page-footer > svg {
    display: none;
}

body.tema-turnos .turnos-footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-align: center;
    text-transform: uppercase;
}

body.tema-turnos .turnos-footer-separador {
    color: rgba(255, 255, 255, 0.45);
}

/* Ícono "TURNOS" (cuadrado rosa) reutilizado en varias pantallas */
.icono-turnos {
  width: 84px;
  height: 84px;
  margin: 0 auto -23px;
  border-radius: 20px;
  background: #ec1568;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 99;
  position: relative;

}

.icono-turnos svg {
    width: 32px;
    height: 32px;
}

.icono-turnos span {
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* Botón píldora reutilizado en todas las pantallas nuevas */
.turnos-identidad {
    min-height: 150px;
    margin: 0 -20px 30px;
    background: rgba(76, 192, 214, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
}

.turnos-identidad .icono-turnos-calendario {
    width: 116px;
    height: 116px;
    margin: 0;
    border-radius: 25px;
}

.turnos-identidad .icono-turnos-calendario svg {
    width: 60px;
    height: 60px;
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.turnos-identidad .icono-turnos-calendario circle {
    fill: #fff;
    stroke: none;
}

.turnos-identidad .icono-turnos-calendario span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media screen and (max-width: 640px) {
    .turnos-identidad {
        min-height: 122px;
        margin-bottom: 24px;
    }

    .turnos-identidad .icono-turnos-calendario {
        width: 94px;
        height: 94px;
        border-radius: 21px;
    }

    .turnos-identidad .icono-turnos-calendario svg {
        width: 46px;
        height: 46px;
    }
}

.btn-pildora {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-pildora:hover {
    background: rgba(255, 255, 255, 0.32);
}

.btn-pildora.oscuro {
    background: #3d7f92;
    border-color: #3d7f92;
}

.btn-pildora.oscuro:hover {
    background: #336c7d;
}

.btn-pildora[disabled],
.btn-pildora.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-pildora-outline {
    display: inline-block;
    padding: 13px 38px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
}

/* Campo de formulario reutilizable (label chica + input píldora) sobre
   fondo degradé, usado en misdatos y en cualquier otro formulario nuevo. */
.campo-nuevo {
    text-align: left;
    margin-bottom: 18px;
}

.campo-nuevo label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.input-nuevo,
select.input-nuevo {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    -webkit-appearance: none;
    appearance: none;
}

/* Materialize define selectores de input mas especificos; esta regla mantiene
   la apariencia del sistema nuevo sin modificar las pantallas antiguas. */
body.tema-turnos input.input-nuevo,
body.tema-turnos select.input-nuevo {
    display: block !important;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-bottom: 0;
    border-radius: 30px;
    outline: 0;
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: none;
}

body.tema-turnos input.input-nuevo:focus {
    border-bottom: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.input-nuevo::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

select.input-nuevo {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

select.input-nuevo option {
    color: #222;
}

.campo-nuevo .campo-error {
    color: #ffe0e0;
    font-size: 12px;
    margin-top: 6px;
    padding-left: 6px;
}

.campo-checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    margin: 10px 0 30px;
}

.campo-checkbox input[type="checkbox"] {
    position: absolute !important;
    top: 0;
    left: 0 !important;
    width: 26px;
    height: 26px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.campo-checkbox > span {
    position: relative;
    display: block;
    min-height: 28px;
    padding-left: 40px;
    line-height: 1.45;
}

.campo-checkbox > span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 7px;
    background: transparent;
}

.campo-checkbox input[type="checkbox"]:checked + span::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 7px;
    height: 13px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.campo-checkbox input[type="checkbox"]:focus + span::before {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.campo-checkbox a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

/* Ícono hexagonal de "check" reutilizado (mail enviado / turno confirmado) */
.icono-hexagono {
    width: 100px;
    height: 100px;
    color: #fff;
    margin: 0 auto 24px;
}

@media screen and (max-width: 640px) {
    body.tema-turnos .turnos-nav {
        height: 64px;
        padding: 0 14px;
    }

    body.tema-turnos .turnos-capital,
    body.tema-turnos .turnos-capital-logo,
    body.tema-turnos .turnos-marca-separador {
        display: none;
    }

    body.tema-turnos .turnos-marca img {
        width: 145px;
    }

    body.tema-turnos .nav-faq {
        padding: 7px 12px;
        font-size: 10px;
    }

    body.tema-turnos main,
    body.tema-turnos #content {
        min-height: calc(100vh - 64px);
    }

    body.tema-turnos footer.page-footer {
        width: calc(100% - 28px);
        margin-bottom: 28px;
    }

    body.tema-turnos .turnos-footer-text {
        flex-direction: column;
        gap: 5px;
    }

    body.tema-turnos .turnos-footer-separador {
        display: none;
    }
}
