* {
    box-sizing: border-box;
    scroll-behavior: smooth; /* Hace que el desplazamiento de la pagina sea mas lento */
}

body {
    font-family: Arial, sans-serif;
    --fondo-de-pagina: #840101; /* Fondo */
    --fondo-nav: #fff;
    --otros-fondos: #e5e1e6;
    --color-text: #4b1b1e; 
    color: #101632dd;
}

body, div, ul, nav, header, footer, a, li, label {
    margin: 0;
    padding: 0;
}

/* ----- TOPBAR ----- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--fondo-nav);
    padding: 10px 20px;
    font-size: 0.85rem;
    background-color: var(--otros-fondos);
}

.topbar__lang {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
}

.topbar__lang a {
    color: var(--color-text);
    text-decoration: none;
}

.topbar__lang a.lang-active {
    font-weight: bold;
    text-decoration: underline;
}

.topbar__lang span {
    color: #999;
}

.topbar__button {
    background-color: var(--fondo-de-pagina);
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.topbar__button:hover {
    background-color: #106bdb;
}

/* ----- TOPBAR QUERIES ----- */

@media screen and (max-width: 600px) {
    .topbar {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .topbar__button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 600px) {
    .topbar__button {
        display: none;
    }
}

/* ----- TOPBAR ENDS ----- */

/* ----- HEADER ----- */

.header { 
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--otros-fondos);
    font-size: 20px;
    text-align: center;
    container-type: inline-size; 
    container-name: header;
}

.header__checkbox { 
    display: none;
}

.header__open-nav-button { 
    position: absolute;
    right: 10px;  
    color: #c40202;
    font-size: 3rem;
    font-weight: 600;
}

.header__logo {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 50%;
    margin: 10px;
    padding: 0;
    }

.header__button {
    position: absolute;
    top: 10px;
    right: 30px;
    z-index: 20; /* La posicion absoluta y el z-index me corrigieron el posicionamiento*/
    display: inline-block;
    flex-direction: row;
    height: 34px;
    padding: 10px 34px 10px 34px;
    margin: 5px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: var(--fondo-de-pagina);
    color: #fff;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.header__nav {
    position: fixed;
    top: 0; 
    left: 0;
    z-index: -1; 
    display: none;
    width: 100vw;
    height: 100vh;
    background-color: var(--otros-fondos);
}

.header__nav-list { /* Lista para moviles */
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: space-evenly;
    gap: 50px;
    margin: auto;
    cursor: pointer; 
}

.header__checkbox:checked ~ .header__nav { 
    display: flex;
    background-color: #fff;
}

a:checked ~ .header__nav-list {
  display: none; /* o block, según tu diseño */
}

.header__nav-item { 
    list-style: none;
}

.header__nav-item a { 
    color: var(--color-text);
    text-decoration: none; 
}

.header__nav-item :is(:hover,:active) { 
    text-decoration: underline; 
}

/* IMPORTANTE: Con los media queries los elementos se reacomodan debido a que tienen funcionales diferentes en diferentes resoluciones (PC y mobiles) */

/* ----- HEADER QUERIES ----- */

@container header (min-width: 600px) { 
    .header__nav { 
        position: static;
        display: flex; 
        height: auto;
        width: auto;
        justify-content: space-between;
        z-index: auto; 
    }

    .header__nav-list {
        display: flex; 
        flex-direction: row;
        height: auto;
        width: auto;
        gap: 20px;
        margin-right: 40px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .header__open-nav-button {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .header__logo {
    display: flex;
    align-items: center;
    width: 25%;
    max-width: 50%;
    margin: 0;
    padding: 0;
    }
}

@media screen and (max-width: 600px) {
    .header__button {
        display: none;
    }

    .x {
        display: none;
    }
}


/* ----- HEADER ENDS ----- */

/* TITLE */

.page__title {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
    padding: 10px;
    font-size: 0.8rem;
    background-color: var(--fondo-de-pagina);
    color: #fff;
}

/* TITLE QUERIES */

@media screen and (max-width: 600px) {
    .page__title {
    font-size: 0.5rem;
    }
}


/* ----- INFORMATION 1 ----- */

.section__information-1 {
    position: relative;
    grid-area: "a b";
}

img {
    width: 100%;
    height: auto;
}

h2 {
    position: absolute;
    top: 45%;
    left: 30px; 
    width: 90%;
    font-size: 1.6rem;
    color: #fff;
}

h3 {
    position: absolute;
    top: 53%;
    left: 30px; 
    width: 90%;
    font-size: 1rem;
    color: #fff;
}

.opciones__users {
    position: absolute;
    display: flex;
    justify-content: end;
    width: 100%;
    max-width: 800px;
    top: 46%;
    right: 10px;
    padding: 10px;
    margin: 0 auto;
    text-align: end;
    font-size: .9rem;
    color: rgb(224, 206, 0);
}

.material-symbols-outlined {
        font-size: 20px;
    }

li {
    list-style: none;
}

a {
    color: rgb(224, 206, 0);
    user-select: none;
    text-decoration: none;
}

/* ----- INFORMATION 1 QUERIES ----- */

@media screen and (max-width: 600px){ /* Solucionar */
    h2 {
        position: absolute;
        z-index: 10;
        top: 150px;
        left: 20px; 
        font-size: 0.8rem;
}

    h3 {
        position: absolute;
        z-index: 10;
        top: 180px;
        left: 20px; 
        font-size: 0.5rem;
}

    .opciones__users {
        position: absolute;
        top: 150px;
        right: 20px;
}   

    .material-symbols-outlined {
        font-size: 10px;
    }

    li {
        width: 100%;
        height: 15px;
        font-size: .6rem;
    }
}

/* ----- INFORMATION 1 ENDS ----- */

/* ----- LOGIN----- */

.loginForm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    background-color: var(--fondo-nav);
}

.form__form {
    padding: 50px;
    border: #d8d5d5 solid 1px;
    font-size: 1rem;
}

.title__sesion {
    color: #106bdb;
    font-size: 1.5rem;
}

label {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

input {
    width: 300px;
    margin: 10px;
    padding: 5px;
    border-radius: 5px;
    background-color: var(--fondo-nav);
}

.button_sesion {
    width: 300px;
    margin: 10px;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background-color: var(--fondo-de-pagina);
    color: #fff;
    font-style: normal;
}

/* ----- LOGIN QUERIES ----- */

@media screen and (max-width: 600px) {
    .form__form {
        font-size: 0.8rem;
    }

    .title__sesion {
        font-size: 1rem;
    }
    
    .input {
        height: 20px;
        font-size: 0.6rem;
        border: #000 solid 0.1px;
    }

    .enviar {
        font-size: 0.8rem;
    }
}

/* ----- LOGIN ENDS ----- */

/* MODAL */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.policy-card {
    background: #fff;
    width: 380px;
    max-width: 92%;
    max-height: 88vh;
    border-radius: 10px;
    overflow: hidden; /* solo recorta esquinas, ya no controla scroll */
    animation: slideIn 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.policy-body {
    padding: 16px 20px 20px;
    overflow-y: auto; /* el scroll ahora vive aquí */
}

.policy-header {
    background: var(--fondo-de-pagina);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 16px;
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.policy-body {
    padding: 16px 20px 20px;
}

.policy-company {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f2f2f2;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.policy-logo {
    width: 42px;
    height: auto;
}

.policy-address {
    font-size: 12px;
    color: #555;
    margin: 2px 0 0;
    padding: 0;
}

.policy-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.policy-row span {
    font-size: 11px;
    color: #888;
    display: block;
}

.policy-row .valor {
    font-weight: bold;
    color: var(--color-text);
    margin: 2px 0 0;
    padding: 0;
    font-size: 14px;
}

.valor {
    font-weight: bold;
    color: var(--color-text);
    margin: 2px 0 0;
    padding: 0;
    font-size: 14px;
}

.valor-sub {
    font-size: 12px;
    color: #555;
    margin: 0;
    padding: 0;
}

.text-right {
    text-align: right;
}

.centro {
    text-align: center;
}

.section-banner {
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    margin: 14px 0 8px;
}

.section-banner.blue { background: #106bdb; }

.section-banner.green { background: #2E7D32; }

.vehiculo-bloque {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    margin-bottom: 6px;
}

.vehiculo-titulo {
    font-weight: bold;
    color: var(--fondo-de-pagina);
    font-size: 12px;
    margin: 6px 0 4px;
    padding: 0;
}

.field-row-static {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

.field-row-static span {
    color: #888;
}

.field-row-static p {
    margin: 0;
    padding: 0;
    color: var(--color-text);
    font-weight: 600;
}

.policy-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 16px 0;
}

.pdf-link {
    text-align: center;
    margin: 10px 0 0;
    padding: 0;
}

.pdf-link a {
    color: #106bdb;
    font-size: 13px;
}

.button_modal {
    width: 100%;
    padding: 10px;
    background-color: var(--fondo-de-pagina);
    color: #fff;
    margin-top: 16px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.button_modal:hover {
    background: #106bdb;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* MODAL ENDS */

/* ----- FOOTER ----- */

footer {
    display: flex;
    align-items: center;
    justify-content: center;  /* Centra todo en bloque */
    gap: 30px;               
    padding: 15px 20px;      
    text-align: center;
    background-color: var(--otros-fondos);
}

.number {
    text-decoration: none;
    font-weight: bold;    
    color: #373737; 
    font-size: 1rem;      /* O el color que quieras */
}

/* ----- FOOTER QUERIES ----- */

@media screen and (max-width: 600px) {
    footer {
        font-size: 0.5rem;
    }
}

/* ----- FOOTER ENDS ----- */


