html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

html, body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-image: url('../img/fondo.png'); 
    background-size: cover;   
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    padding-top: 48px;
}

header {
    position: relative;
}
/* Banner general */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(7, 40, 133);
    gap: 8px 20px;
    padding: 10px clamp(16px, 4vw, 48px);
    box-sizing: border-box;
    margin: 0;
    flex-wrap: wrap;             
}

.logo {
    display: inline-block;
    margin: 0;
    width: auto; 
    height: 100%;
}
.logo img { 
    display: block;
    width: auto;
    height: clamp(78px, 9vw, 120px);
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    color: white;
    justify-content: left;
    text-align: left;
    padding: 0;
    min-width: 0;
}
.hero h1 {
    font-size: clamp(24px, 4vw, 36px); /* escala fluida */
    margin: 0 0 10px 0;
    font-family: sans-serif;
}
.hero p {
    display: inline;
    font-size: clamp(14px, 2vw, 18px);
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* 📱 Tablet */
@media (max-width: 768px) {
    .banner {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    .hero p {
        max-width: 90%;
        margin: 0 auto;
    }
}

/* 📱 Móvil */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 22px;
    }
    .hero p {
        font-size: 14px;
        line-height: 1.4;
    }
    .logo img {
        width: 200px;   /* más chico en móviles */
        height: auto;
    }
}

/* Barra de navegación */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #0a6b0a 0%, #1d8a1d 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0 16px;
    box-sizing: border-box;
}
.nav-menu-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    position: relative;
    min-width: 0;
}
.list-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}
.list-bar li {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 6px;
}
#nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    padding-left: 8px;
    height: 48px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}
#nav-login span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}
#nav-login .nav-btn {
    flex-shrink: 0;
}

/* Menú desplegable de usuario (login/logout) */
.nav-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 48px;
    min-width: 0;
    max-width: 100%;
}
.nav-user-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: background-color 0.25s ease, transform 0.2s ease;
}
.nav-user-toggle:hover,
.nav-user-toggle[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}
.nav-user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(12px, 1.6vw, 15px);
}
.nav-user-caret {
    flex-shrink: 0;
    font-size: 11px;
    transition: transform 0.2s ease;
}
.nav-user-toggle[aria-expanded="true"] .nav-user-caret {
    transform: rotate(180deg);
}
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #0a6b0a;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1100;
}
.nav-user-dropdown.is-open {
    display: block;
}
.nav-user-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px;
}
.nav-user-item:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.16);
}
.nav-user-item:disabled {
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}
.list-bar a,
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    margin: 0;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.25s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-size: clamp(12px, 1.6vw, 15px);
    height: 100%;
    box-sizing: border-box;
}
.list-bar li:hover,
#nav-login:hover {
    background-color: rgba(255, 255, 255, 0.16);
}
.list-bar li:hover a,
#nav-login:hover .nav-btn,
.list-bar a:hover,
.nav-btn:hover {
    transform: translateY(-1px);
}
.list-bar span,
#nav-login span {
    font-size: clamp(12px, 1.6vw, 15px);
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: white;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

/* 📱 Navegación compacta */
@media (max-width: 1140px) {
    .nav-bar {
        padding: 0 12px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu-wrap {
        justify-content: flex-end;
    }

    #nav-login {
        padding-left: 0;
    }

    .list-bar {
        position: absolute;
        top: 48px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        background: rgba(10, 107, 10, 0.97);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .nav-bar.is-open .list-bar {
        display: flex;
    }

    .list-bar li {
        width: 100%;
    }

    .list-bar a,
    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 8px 10px;
        border-radius: 4px;
    }
}

/* Modo compacto forzado por JS cuando el contenido del menú no entra,
   incluso por encima del breakpoint de 1140px (evita solapamiento). */
.nav-bar.is-compact {
    padding: 0 12px;
}

.nav-bar.is-compact .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-bar.is-compact .nav-menu-wrap {
    justify-content: flex-end;
}

.nav-bar.is-compact #nav-login {
    padding-left: 0;
}

.nav-bar.is-compact .list-bar {
    position: absolute;
    top: 48px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(10, 107, 10, 0.97);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.nav-bar.is-compact.is-open .list-bar {
    display: flex;
}

.nav-bar.is-compact .list-bar li {
    width: 100%;
}

.nav-bar.is-compact .list-bar a,
.nav-bar.is-compact .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 10px;
    border-radius: 4px;
}

/* Estilos para la sección de inicio */
.inicio {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /*background-color: red;*/
}
.principal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin:20px auto;
    padding: 20px auto;
    width: 80%;
    justify-content: center;
   /* background-color: red;*/
}
.card img {
    width: 200px;
    height: 120px;
    max-width: 100%;
}
.inicio h2 {
    display: flex;
    margin-left: 20px;
    font-size: clamp(22px, 3vw, 32px); 
    font-family: sans-serif;
    text-align: left;
    margin: 0px 20px 10px 20px;
    padding-top: 30px;
}
.card {
    width: 200px;
    height: 150px;
    padding: 20px;
    margin: 0;
    border: 2px solid #070707;
    border-radius: 10px;
    background-color: lightgreen;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 60px;
}
.card:hover {
    background-color: darkgreen;
}
.card figcaption {
    font-size: 16px;
    color: black;
    font-weight: bold;
}
/* Estilos para el separador */
hr {
    margin: 0;
    border: none;              
    height: 80px;               
    /*background-color: #1b4bcf*/ 
}
/* Sección de solicitudes */
#solicitudes,
#mpp,
#informaciones,
#form-adds,
#otros,
#contacto {
    scroll-margin-top: 72px;
}

#solicitudes {
    margin: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 40px;
    box-sizing: border-box;
    color: #f1f5f9;
}
#solicitudes-title {
    margin: 0;
    padding-top: 50px;
    font-size: clamp(22px, 3vw, 32px);
    margin-left: 20px;
    text-align: left;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: #e2e8f0;
}

.mpp-section {
    position: relative;
    width: 100%;
    padding: 12px 12px 18px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 50px;
}

.mpp-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 8px;
}

.mpp-header h2 {
    margin: 0;
    color: #e2e8f0;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: none;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.mpp-header h3 {
    margin: 12px 0 0;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.mpp-cycle {
    position: relative;
    width: min(1040px, 90vw);
    height: 620px;
    margin: 12px auto 0;
    transform: scale(0.72);
    transform-origin: center center;
}

.mpp-cycle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 620px;
    height: 620px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 4px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 12px rgba(17, 39, 54, 0.18);
    z-index: 1;
}

.mpp-step {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 240px;
    height: 240px;
    z-index: 3;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle)));
    text-decoration: none;
    display: block;
    color: inherit;
}

.mpp-step-5 { --angle: 0deg; --radius: 285px; }
.mpp-step-2 { --angle: 60deg; --radius: 285px; }
.mpp-step-3 { --angle: 120deg; --radius: 285px; }
.mpp-step-4 { --angle: 180deg; --radius: 285px; }
.mpp-step-1 { --angle: 240deg; --radius: 285px; }
.mpp-step-6 { --angle: 300deg; --radius: 285px; }

.mpp-label {
    position: absolute;
    left: 50%;
    bottom: 195px;
    width: 220px;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(15px, 1.2vw, 22px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-shadow: none;
    z-index: 5;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.mpp-node {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 18px rgba(0,0,0,0.28), inset 0 0 0 7px rgba(255,255,255,0.14);
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mpp-step:hover .mpp-node,
.mpp-step:focus-visible .mpp-node {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 16px 22px rgba(0,0,0,0.35), inset 0 0 0 7px rgba(255,255,255,0.18);
}

.mpp-node-green {
    background: #2ecc71;
}

.mpp-node-blue {
    background: #2563eb;
}

.mpp-node-gold {
    background: #e2e8f0;
}

.mpp-node-top {
    width: 178px;
    height: 178px;
    background: #dfe7f1;
}

.mpp-node-hex {
    width: 195px;
    height: 195px;
    background: #1fbf75;
}

.mpp-node-icon {
    position: relative;
    display: grid;
    place-items: center;
}

.mpp-node-icon.mpp-check {
    width: 100px;
    height: 100px;
    color: white;
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
}

.mpp-node-icon.mpp-clipboard {
    width: 88px;
    height: 90px;
    background: rgba(230, 240, 250, 0.92);
    border-radius: 8px;
    box-shadow: inset 0 0 0 4px rgba(18, 41, 64, 0.2);
}

.mpp-node-icon.mpp-clipboard::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 18px;
    width: 52px;
    height: 14px;
    border-radius: 8px 8px 0 0;
    background: rgba(255,255,255,0.9);
}

.mpp-clip-line {
    position: absolute;
    left: 18px;
    right: 18px;
    height: 6px;
    border-radius: 999px;
    background: #0f4572;
    top: 28px;
}

.mpp-clip-line.short {
    top: 45px;
}

.mpp-clip-line.short:last-child {
    top: 62px;
}

.mpp-node-icon.mpp-worker {
    width: 92px;
    height: 112px;
}

.mpp-hardhat {
    position: absolute;
    width: 72px;
    height: 28px;
    background: linear-gradient(180deg, #f8d64c, #e7bb1e);
    border-radius: 18px 18px 12px 12px;
    top: 10px;
    left: 8px;
}

.mpp-hardhat::before,
.mpp-hardhat::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: #f7d55d;
    border-radius: 50%;
    top: -8px;
}

.mpp-hardhat::before { left: 8px; }
.mpp-hardhat::after { right: 8px; }

.mpp-face {
    position: absolute;
    width: 52px;
    height: 42px;
    border-radius: 50% 50% 46% 46%;
    background: #f4cf8d;
    top: 28px;
    left: 18px;
}

.mpp-face::before,
.mpp-face::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #20232a;
    border-radius: 50%;
    top: 16px;
}

.mpp-face::before { left: 12px; }
.mpp-face::after { right: 12px; }

.mpp-body {
    position: absolute;
    width: 66px;
    height: 46px;
    background: linear-gradient(180deg, #2a89c7, #0d4d74);
    border-radius: 16px 16px 12px 12px;
    bottom: 8px;
    left: 11px;
}

.mpp-node-icon.mpp-calendar {
    width: 86px;
    height: 86px;
    background: rgba(247,247,247,0.9);
    border-radius: 12px;
    box-shadow: inset 0 0 0 5px rgba(16, 73, 115, 0.2);
}

.mpp-node-icon.mpp-calendar.large {
    width: 100px;
    height: 100px;
}

.mpp-calendar-top {
    position: absolute;
    top: -12px;
    left: 10px;
    right: 10px;
    height: 18px;
    border-radius: 10px 10px 4px 4px;
    background: #405260;
}

.mpp-calendar-top::before,
.mpp-calendar-top::after {
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    height: 12px;
    background: #405260;
    border-radius: 4px;
}

.mpp-calendar-top::before { left: 16px; }
.mpp-calendar-top::after { right: 16px; }

.mpp-calendar-date {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 44px;
    font-weight: 900;
    color: #0f3f63;
}

.mpp-node-icon.mpp-radar {
    position: relative;
    width: 96px;
    height: 96px;
}

.mpp-radar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.mpp-radar-ring.mpp-r1 {
    transform: scale(0.64);
}

.mpp-radar-ring.mpp-r2 {
    transform: scale(0.9);
}

.mpp-radar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
    .mpp-cycle {
        transform: scale(0.54);
        margin-top: -28px;
    }
}

@media (max-width: 480px) {
    .mpp-cycle {
        transform: scale(0.44);
        margin-top: -34px;
    }
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    box-sizing: border-box;
}
.item-formularios {
    background-color: rgb(30, 41, 59, 0.3);
    border-radius: 12px;
    padding: 20px;
    width: 160px;
    height: 200px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}

.item-formularios:hover {
    background-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(37,99,235,0.4);
}

.item-formularios p {
    font-size: 1.5em;
    font-weight: 500;
    color: #f8fafc;
    margin-top: 10px;
}

.item-formularios a {
    color: inherit;
    text-decoration: none;
}

/* 🖼️ Íconos */
span {
    font-size: 3em;
    display: block;
    color: #f8fafc;
    transition: color 0.3s ease;
}

.item-formularios:hover span {
    color: #fff;
}


/* Sección de informaciones */
#informaciones {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    /*background-color: #0000801a;*/ 
}

/* Títulos y párrafos */
#informaciones h2 {
    font-size: clamp(32px, 3vw, 32px);
    font-family: sans-serif;
    text-align: left;
    margin: 20px 20px 10px 20px;
    padding-top: 30px;
     color: rgba(245, 245, 245, 0.678);
}
.informaciones p {
    font-size: clamp(14px, 2vw, 18px);
    font-family: Arial;
    text-align: left;
    margin: 10px 20px;
    line-height: 1.6;
    color: whitesmoke;
}

/* Contenedor principal */
.informaciones-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    /*background-color: rosybrown;*/
}

/* Listas y datos */
.informaciones ol {
    margin: 0 5% auto 5%;
    padding: 2.5%;
    list-style-type: lower-alpha;
}
.informaciones li {
    font-size: clamp(18px, 2.5vw, 25px);
    font-family: Arial;
    margin: 30px 0;
    font-size: clamp(14px, 2vw, 18px);
    border: 2px solid transparent;
}
.informaciones li::marker {
color: darkblue;
padding: 25px;
font-weight: bold;
font-size: 1.5em;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.informaciones .Datos {
    margin:0;
    flex: 1 1 300px;
}
.datos-container {
    display: block;
    padding: 0;
    margin: 0;
    width: min(100%, 720px);
    box-sizing: border-box;
}
.datos-container h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-family: sans-serif;
    text-align: center;
    margin: 0;
    color: whitesmoke;
    text-shadow: 2px 2px rgba(169, 169, 169, 0.171);
}
.datos-container iframe,
.informaciones .Datos {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.option-list li:hover {
    background-color:#d9fcd9;
    border-radius: 8px;
    transform: translateX(-20px)
}
.option-list i {
    margin-right: 8px;
    color: darkblue;
    text-shadow: 1px 1px 3px rgba(0,0,0);
    font-size: clamp(24px, 4vw, 35px);
}
.option-list a {
    text-decoration: none;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0);
}
.option-list li:hover a {
    color: #070707;
}

/* 📱 Tablet */
@media (max-width: 768px) {
    #informaciones h2, .informaciones p {
        text-align: center;
        margin: 10px auto;
    }
    .informaciones-container {
        flex-direction: column;
        align-items: center;
    }
    .Datos {
        width: 90%;
    }
    .datos-container {
        padding: 0 10px;
    }
}

/* 📱 Móvil */
@media (max-width: 480px) {
    #informaciones h2 {
        font-size: 20px;
    }
    .informaciones p {
        font-size: 14px;
        line-height: 1.4;
    }
    .option-list li {
        margin: 10px auto;
        text-align: center;
    }
}

/* Estilos para la sección de formularios y timeline */
.form-adds {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    /*background-color: black;*/ /* Color de fondo */
}
.formularios-timeline {
    padding: 0;
    margin: 0;
    /*background-color: blue;*/ /* Color de fondo */
}
.formularios-timeline h2 {
    font-family: sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: bold;
    margin: 0 0 0 40px;
    padding: 20px;
    padding-top: 50px;

}
.timeline {
    margin: 0 0 0 50px;
    list-style: none;
    padding: 20px;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 37px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e74c3c;
}
.timeline li {
    position: relative;
    margin: 20px 0;
    padding-left: 60px;
}
.timeline li a{
    text-decoration: none;
}
.timeline li::before {
    content: '⬤';
    position: absolute;
    left: 10px;
    top: 15px;
    font-size: 20px;
    color: #e74c3c;
}
.timeline .content {
    background: lightgreen;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0);
    margin: 0;
}
.timeline .content:hover {
    background-color: darkgreen;
}
.timeline h3 {
    margin: 0 0 5px;
    font-size: clamp(18px, 3vw, 22px);
    color: #0f172a;
}
.timeline p {
    margin: 0;
    font-size: 13px;
    color: #0f172a;
}
/* Sección otros */
.otros {
    margin: 0;
    padding: 20px;
}
.otros h2 {
    text-align: left;
    margin: 20px;
    font-size: clamp(22px, 3vw, 32px);
    font-family: sans-serif;
}
.video-otros,
.video-otros2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 64px);
    padding: 24px 4%;
    margin: 0;
    box-sizing: border-box;
}
.video-otros2 {
    flex-direction: row-reverse;
}
.video-container,
.video-container2,
.video-description,
.video-description2 {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    max-width: 560px;
    box-sizing: border-box;
}
.video-container,
.video-container2 {
    margin: 0;
}
.video-container iframe,
.video-container2 iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 6px;
    display: block;
}
.video-description,
.video-description2 {
    padding: 20px;
    background-color: #333333;
    border-radius: 16px;
}
.video-description h3,
.video-description2 h3 {
    margin: 10px 0;
    font-size: clamp(20px, 2.5vw, 26px);
    font-family: sans-serif;
    color: white;
}
.video-description p,
.video-description2 p {
    font-size: clamp(14px, 2vw, 21px);
    line-height: 1.5;
    margin: 10px 0;
    padding: 0;
    color: white;
    text-indent: 30px;
}

@media (max-width: 768px) {
    .video-otros,
    .video-otros2 {
        flex-direction: column;   /* apila video y descripción */
        align-items: center;
    }
    .video-container,
    .video-container2,
    .video-description,
    .video-description2 {
        width: 90%;
        max-width: 720px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .otros h2 {
        text-align: center;
        font-size: 20px;
    }
    .video-description,
    .video-description2 {
        text-align: center;
    }
    .video-description h3,
    .video-description2 h3 {
        font-size: 18px;
    }
    .video-description p,
    .video-description2 p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Botón flotante */
.whatsapp-float {
    position: fixed;
    bottom: 40px;   
    right: 40px;    
    z-index: 1000;
}
.whatsapp-float img {
    width: 60px;  
    height: 60px;
    border-radius: 15%;
    transition: transform 0.2s ease;
}
.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* Overlay (fondo oscuro) */
.overlay {
    position: fixed;
    inset: 0; /* ocupa toda la pantalla */
    background: rgba(0,0,0,0.5);
    display: none; /* oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Caja del modal */
.modal {
    position: absolute;
    bottom: 150px;
    right: 60px;
    background: #a9a9a9;
    padding: 20px;
    border-radius: 16px;
    width: 280px;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

@media (max-width: 480px) {
    .principal {
        grid-template-columns: 1fr;
        justify-items: center;
        margin: 20px auto;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .formularios-timeline h2 {
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
    .timeline {
        margin: 0;
        padding: 20px 10px 20px 20px;
    }
    .timeline::before {
        left: 27px;
    }
    .timeline li {
        padding-left: 45px;
    }
    .timeline li::before {
        left: 0;
    }
    .whatsapp-float {
        right: 20px;
        bottom: 20px;
    }
    .modal {
        right: 20px;
        bottom: 100px;
    }
}
.modal a {
    display: block;
    padding: 10px;
    margin: 8px 0;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}
.modal h2 {
    color: #F1F1F1;
}
.modal a:hover {
    background:  darkblue;
    font-weight: bold;
}
.modal button {
    margin-top: 15px;
    padding: 8px 12px;
    border: none;
    background: #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.modal button:hover {
    background-color: #8f8c8c;
}
/* Formulario de solicitud */
/* Observacion: esta seccion usa la misma linea visual del sitio: azul institucional,
   verde para acciones y tarjetas claras para separar el formulario del fondo. */
.solicitud {
    width: 60vw;
    margin: 20px auto 80px auto;
    padding: 30px 16px;
    border: 2px solid rgba(7, 40, 133, 0.7);
    border-radius: 10px;
    background-color: rgba(245, 245, 245, 0.92);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    box-sizing: border-box;
}
.titulo h2 {
text-align: center;
margin: 0;
padding: 0 0 20px 0;
}

.solicitud form {
    /*display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px 22px;*/
    margin: 0;
    padding: 0;
    
}
.solicitud form > div {
    min-width: 0;
}

.solicitud .campo-ancho {
    grid-column: 1 / -1;
}

.solicitud label {
    display: block;
    margin: 1.5vh 0 0 0;
    color: #0f172a;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: bold;
    line-height: 1.25;
}

.solicitud .field-description {
    display: block;
    margin: 4px 0 6px;
    color: #475569;
    font-size: clamp(12px, 1.3vw, 14px);
    line-height: 1.35;
}

/* Observacion: los campos comparten altura y ancho para evitar saltos visuales entre
   el buscador personalizado y los select normales. */
.solicitud select,
.solicitud input[type="text"],
.solicitud input[type="tel"],
.solicitud input[type="number"],
.solicitud textarea,
.select-buscador-input {

    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid #0b3d91;
    border-radius: 8px;
    background-color: #ffffff;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 1.5vw, 15px);
    line-height: 1.35;
    box-sizing: border-box;
    outline: none;
}

.solicitud select:focus,
.solicitud input[type="text"]:focus,
.solicitud input[type="tel"]:focus,
.solicitud input[type="number"]:focus,
.solicitud textarea:focus,
.select-buscador-input:focus {
    border-color: #0f7a32;
    box-shadow: 0 0 0 3px rgba(15, 122, 50, 0.18);
}

.solicitud input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.solicitud .fecha-reprogramacion {
    width: 100%;
    max-width: 240px;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    box-sizing: border-box;
}

.select-buscador-original {
    display: none;
}

.solicitud input[type="number"]::-webkit-outer-spin-button,
.solicitud input[type="number"]::-webkit-inner-spin-button {
    height: auto;
    margin: 0;
}

.solicitud input[type="number"]::placeholder {
    color: #64748b;
    opacity: 1;
}

.solicitud textarea {
    min-height: 132px;
    resize: vertical;
    margin: 0;
}

.solicitud button[type="submit"] {
    align-self: end;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid darkgreen;
    border-radius: 8px;
    background-color: green;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: bold;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin: 1.5vh 0 0 0;
}

.solicitud button[type="submit"]:hover {
    background-color: darkgreen;
    transform: translateY(-1px);
}

.solicitud button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 122, 50, 0.24);
}

/* Formulario de horas de maquinado */
.horas-maquinado {
    padding: 36px 16px 72px;
    font-family: Arial, Helvetica, sans-serif;
}

.horas-maquinado__card {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 38px);
    box-sizing: border-box;
    border: 2px solid rgba(7, 40, 133, 0.7);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.horas-maquinado__heading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid #dbe3ee;
}

.horas-maquinado__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 12px;
    background: #072885;
    color: #fff;
    font-size: 23px;
}

.horas-maquinado h2,
.horas-maquinado h3,
.horas-maquinado p {
    margin: 0;
}

.horas-maquinado h2 {
    color: #072885;
    font-size: clamp(23px, 3vw, 30px);
}

.horas-maquinado__heading p {
    margin-top: 5px;
    color: #475569;
    line-height: 1.45;
}

.form-progress {
    margin: 30px 0 32px;
}

.form-progress__bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe3ee;
}

.form-progress__bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #0f7a32;
    transition: width 0.25s ease;
}

.form-progress ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
}

.form-progress--two ol {
    grid-template-columns: repeat(2, 1fr);
}

.form-progress li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: clamp(11px, 1.5vw, 14px);
}

.form-progress li span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: bold;
}

.form-progress li.is-active,
.form-progress li.is-complete {
    color: #072885;
}

.form-progress li.is-active span,
.form-progress li.is-complete span {
    border-color: #0f7a32;
    background: #0f7a32;
    color: #fff;
}

.form-step__heading {
    margin-bottom: 20px;
}

.form-step__heading span {
    display: block;
    margin-bottom: 5px;
    color: #0f7a32;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-step__heading h3 {
    color: #0f172a;
    font-size: clamp(19px, 2.5vw, 24px);
}

.machine-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.machine-fields label {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
}

.machine-fields input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid #0b3d91;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
    color: #111827;
    font: inherit;
    outline: none;
}

.machine-fields textarea,
.registro-fields input,
.registro-fields select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid #0b3d91;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
    color: #111827;
    font: inherit;
    outline: none;
}

.machine-fields textarea {
    min-height: 100px;
    resize: vertical;
}

.machine-fields input:focus,
.machine-fields textarea:focus,
.registro-fields input:focus,
.registro-fields select:focus {
    border-color: #0f7a32;
    box-shadow: 0 0 0 3px rgba(15, 122, 50, 0.18);
}

.registro-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    margin-top: 28px;
}

.maintenance-type-select {
    margin-bottom: 28px;
}

.registro-fields label {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
}

.basic-maintenance-note {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-left: 4px solid #0f7a32;
    border-radius: 0 8px 8px 0;
    background: #edf8f0;
    color: #1e3a2a;
}

.basic-maintenance-note p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.basic-maintenance-note p + p {
    margin-top: 8px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.form-actions--end {
    justify-content: flex-end;
}

.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.form-button:hover {
    transform: translateY(-1px);
}

.form-button--next,
.form-button--submit {
    border-color: #0f7a32;
    background: #0f7a32;
    color: #fff;
}

.form-button--next:hover,
.form-button--submit:hover {
    background: #075c24;
}

.form-button--back {
    border-color: #0b3d91;
    background: #fff;
    color: #0b3d91;
}

.form-button--back:hover {
    background: #eaf0fc;
}

@media (max-width: 640px) {
    .horas-maquinado {
        padding: 20px 10px 48px;
    }

    .horas-maquinado__card {
        padding: 22px 16px;
    }

    .horas-maquinado__heading {
        align-items: flex-start;
    }

    .horas-maquinado__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 18px;
    }

    .form-progress ol {
        gap: 6px;
    }

    .form-progress li {
        align-items: flex-start;
    }

    .form-progress li strong {
        font-weight: 600;
    }

    .machine-fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .registro-fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Select con busqueda propio */
/* Observacion: el select real queda oculto, pero conserva el valor que se envia
   en el formulario. La interfaz visible es el input + lista de resultados. */
.select-buscador-original {
    display: none;
}

.select-buscador {
    position: relative;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.select-buscador-input {
    display: block;
}

.select-buscador::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 14px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    border-color: #0b3d91 transparent transparent transparent;
    pointer-events: none;
}

.select-buscador-lista {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    margin: 0;
    padding: 5px 0;
    overflow-y: auto;
    list-style: none;
    border: 2px solid #0b3d91;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    z-index: 100;
}

.select-buscador-lista.is-visible {
    display: block;
}

.select-buscador-opcion,
.select-buscador-vacio {
    padding: 9px 12px;
    color: #111827;
    font-size: clamp(13px, 1.4vw, 14px);
    line-height: 1.25;
}

.select-buscador-opcion {
    cursor: pointer;
}

.select-buscador-opcion:hover,
.select-buscador-opcion.is-active {
    background-color: #d9fcd9;
    color: #071f10;
}

.select-buscador-opcion span,
.select-buscador-opcion small {
    display: block;
}

.select-buscador-opcion span {
    font-size: clamp(13px, 1.4vw, 14px);
    font-weight: bold;
}

.select-buscador-opcion small {
    margin-top: 4px;
    color: #4b5563;
    font-size: clamp(11px, 1.2vw, 12px);
}

.select-buscador-vacio {
    color: #6b7280;
}

@media (max-width: 768px) {
    .solicitud {
        width: 100%;
        margin: 20px auto 40px auto;
        padding: 0 12px;
    }

    .solicitud form {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .solicitud {
        padding: 0 10px;
    }

    .solicitud form {
        padding: 14px;
    }

    .select-buscador-lista {
        max-height: 220px;
    }
}
.declarado {
  display: none;
}

#declarado-radio:checked ~ .declarado {
  display: block;
}
.select-buscador,
.select-buscador-input,
.select-buscador-opcion span,
.select-buscador-opcion small,
.select-buscador-vacio {
    color: #111827 !important; /* texto oscuro fijo */
}
/* Formatos de modal de login */
.login-modal {
  display: none;
  position: fixed;
  z-index: 2000; /* más alto que otros modales */
  left: 0;
  top: 0;
  width: 100%;
  min-height: 100dvh;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.3);
}

.login-modal.is-visible { display: grid; }

.login-modal-content {
  width: min(420px, 100%);
  margin: 0;
  padding: clamp(24px, 5vw, 36px);
  box-sizing: border-box;
  border-radius: 12px;
  background-color: rgba(245, 245, 245, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.browser-default-modal,
.browser-default-modal-box {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Estilos para la tabla de costos */
.tabla-costos {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tabla-costos thead {
  background-color: #0a6b0a;
  color: white;
}

.tabla-costos th,
.tabla-costos td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  font-size: 14px;
}

.tabla-costos th {
  font-weight: bold;
  background-color: #0a6b0a;
  color: white;
}

.tabla-costos tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tabla-costos tbody tr:hover {
  background-color: #f0f0f0;
}

.tabla-costos input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  padding: 6px;
  box-sizing: border-box;
}

.tabla-costos input:read-only {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

.remove-btn {
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.remove-btn:hover {
  background: darkred;
}

#resultado {
  text-align: center;
  font-size: 0.95em;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
}

#costoTotal {
  color: #0a6b0a;
  font-weight: bold;
  font-size: 0.95em;
}


.login-modal-content h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  text-align: center;
  margin: 0 0 24px;
  padding: 0;
  font-family: sans-serif;
}

.login-modal-content form {
  display: flex;
  flex-direction: column;
}

.login-modal-content label {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}

.login-modal-content input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  box-sizing: border-box;
  margin: 0 0 16px;
  font-size: 1rem;
  border: 3px solid darkgreen;
  border-radius: 6px;
}

.password-help {
  display: block;
  margin: -10px 0 16px;
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.3;
}

.password-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.login-modal-content .password-actions button {
  flex: 1;
  width: auto;
  margin: 0;
}

.login-modal-content .password-actions .password-cancel {
  background-color: #6b7280;
}

.login-modal-content .password-actions .password-cancel:hover {
  background-color: #4b5563;
}

.login-modal-content button {
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 8px 0 0;
  background-color: green;
  font-size: 1rem;
  font-weight: bold;
  color: whitesmoke;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.login-modal-content button:hover {
  background-color: blue;
  transform: translateY(-2px);
  cursor: pointer;
}

.login-modal-content button:disabled {
    background-color: #9ca3af;
    color: #e5e7eb;
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

.master-key-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.login-modal-content .master-key-actions button {
    flex: 1;
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.9rem;
}

.login-modal-content .master-key-actions .master-key-cancel {
    background-color: #8f5f5f;
}

.login-modal-content .master-key-actions .master-key-cancel:hover {
    background-color: #704747;
}

.list-bar span {
    font-size: 25px;
    display: inline-flex;
}
/* Botones de login/logout en la barra */
.nav-btn {
    background-color: transparent;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.nav-btn#loginDiv,
.nav-btn#logoutDiv {
    padding: 6px 12px;
    border-radius: 4px;
}

/* Opcional: estilo distinto para logout */
#logoutDiv.nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
}
#logoutDiv.nav-btn:hover {
    background-color: darkgreen;
}
