﻿/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ===== BODY ===== */
body {
    background-color: #f4f6f9;
    color: #222;
}

.header {
    background-color: #fff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 80px;
}

.header-title {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}


/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 15px;
}

/* lado izquierdo */
.izquierda {
    width: 60%;
}

/* lado derecho */
.derecha {
    width: 40%;
}

/* ===== GRUPO INTERNO ===== */
.group-box {
    background-color: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}



/* ===== CARD BLANCA ===== */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

/* ===== TITULOS ===== */
.title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

/* UPDATE */
.update-mode {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    background: #e7f1ff;
    color: #0b3d91;
  
}




/* ===== FORM GROUP ===== */
.form-group {
    margin-bottom: 10px;
}

/* ===== FORM GRID (2 COLUMNAS) ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 25px;
}

/* OPCIONAL: CAMPOS QUE OCUPAN TODO EL ANCHO */
.full-width {
    grid-column: span 2;
}

/* ===== ACCIONES FORM ===== */
.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* ===== BUSQUEDA ===== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

    .search-box input {
        flex: 1;
    }



/* ===== LABELS ===== */
.label {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    color: #666;
    font-weight: 500;
}

/* ===== INPUTS / SELECT / TEXTAREA ===== */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 20px;
    transition: all 0.2s ease;
    background-color: #fff;
}

    input:focus,
    textarea:focus,
    select:focus {
        border-color: #000;
        outline: none;
    }

/* ===== TEXTAREA ===== */
textarea {
    resize: vertical;
    min-height: 100px;
}

    /* ===== PLACEHOLDER ===== */
    input::placeholder,
    textarea::placeholder {
        color: #A94442;
        opacity: 1;
    }



.textbox-simple {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 30px;
    background-color: #fff;
    transition: all 0.2s ease;
}

    .textbox-simple:focus {
        border-color: #000;
        outline: none;
    }



.radio-simple {
    font-size: 20px;
    color: #051c3d; /* tu azul corporativo */
}

    .radio-simple label {
        margin-right: 15px; /* espacio entre opciones */
        cursor: pointer;
    }






/* ===== BOTONES ===== */
.btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-right: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* ACEPTAR - Negro moderno profundo */
.btn-primary {
    background-color: #111111;
    color: #ffffff;
    font-size: 16px;
}

    .btn-primary:hover {
        background-color: #1f2937;
    }

/* SI - Azul moderno profesional */
.btn-yes {
    background-color: #2563eb;
    color: #ffffff;
    font-size: 16px;
}

    .btn-yes:hover {
        background-color: #1d4ed8;
    }

/* NO - Gris elegante con borde */
.btn-no {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    font-size: 16px;
}

    .btn-no:hover {
        background-color: #e5e7eb;
    }

/* BOTON GUARDAR */
.btn-guardar {
    background-color: #16a34a;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
}

    .btn-guardar:hover {
        background-color: #15803d;
    }

/* BOTON SELECCION GRID */
.btn-seleccionar {
    background-color: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
}

    .btn-seleccionar:hover {
        background-color: #e5e7eb;
    }

/* BOTON BUSCAR */
.btn-buscar {
    background-color: #2563eb;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
}

    .btn-buscar:hover {
        background-color: #1d4ed8;
    }

/* BOTON ACTUALIZAR */
.btn-actualizar {
    background-color: #f59e0b;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
}

    .btn-actualizar:hover {
        background-color: #d97706;
    }

/* BOTON CANCELAR */
.btn-cancelar {
    background-color: #dc2626; /* rojo */
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
}

    .btn-cancelar:hover {
        background-color: #b91c1c; /* rojo más oscuro */
    }


/* FILE UPLOAD */
.file-upload-wrapper {
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 10px;
    background-color: #fafafa;
    text-align: center;
    transition: 0.2s ease;
}

    .file-upload-wrapper:hover {
        border-color: #2563eb;
        background-color: #f0f4ff;
    }

.file-input {
    font-size: 16px;
}

.help-text {
    font-size: 13px;
    color: #666;
}

/* ===== GRIDVIEW ===== */
.grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}

    .grid th {
        background-color: #2C3E50;
        color: #fff;
        padding: 10px;
        text-align: left;
    }

    .grid td {
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .grid tr:hover {
        background-color: #f1f1f1;
    }


.table-responsive {
    width: 100%;
    overflow-x: auto;
}


.footer {
    margin-top: 40px;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #eee;
}


/* Contenedor de toasts */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Toast individual */
.toast {
    min-width: 250px;
    margin-top: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

/* Colores */
.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

/* Mostrar */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.LoginStyles {
    width: 100%;
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

    /* Tabla */
    .LoginStyles table {
        width: 100%;
    }

    /* Labels */
    .LoginStyles label {
        display: block;
        margin-bottom: 5px;
        font-size: 15px;
        font-weight: 600;
        color: #051c3d;
    }

    /* Inputs */
    .LoginStyles input[type="text"],
    .LoginStyles input[type="password"] {
        width: 100%;
        padding: 10px 12px;
        margin-bottom: 18px;
        border: 1px solid #dcdcdc;
        border-radius: 6px;
        font-size: 15px;
    }

    /* Focus */
    .LoginStyles input:focus {
        border-color: #051c3d;
        outline: none;
    }

    /* Botón */
    .LoginStyles input[type="submit"] {
        width: 100%;
        padding: 11px;
        background: #051c3d;
        color: #ffffff;
        border: none;
        border-radius: 6px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

        /* Hover */
        .LoginStyles input[type="submit"]:hover {
            background: #08306b;
        }

    /* Links */
    .LoginStyles a {
        display: block;
        text-align: right;
        margin-top: 8px;
        font-size: 13px;
        color: #051c3d;
        text-decoration: none;
    }

        .LoginStyles a:hover {
            text-decoration: underline;
        }

.aviso-legal {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

    .login-logo img {
        max-width: 180px;
        height: auto;
    }


/* Contenedor del menú */
#Menu {
    background: #051c3d;
    padding: 0;
}

/* Nivel principal */
.main_menu {
    background-color: #051c3d;
    color: white !important;
    padding: 12px 18px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.2s ease;
}

    /* Hover principal */
    .main_menu:hover {
        background-color: #97C7D0 !important;
        color: #051c3d !important;
    }

/* Submenú */
.level_menu {
    background-color: #ffffff;
    color: #051c3d !important;
    padding: 10px 18px;
    display: block;
    text-decoration: none !important;
    border-bottom: 1px solid #eee;
}

    /* Hover submenú */
    .level_menu:hover {
        background-color: #f4f6f9 !important;
    }



.grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

/* Tablet */
@media (min-width: 600px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tarjeta limpia */
.card-item {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
}

    /* Texto */
    .card-item div {
        margin-bottom: 6px;
        color: #333;
    }

    .card-item strong {
        color: #2C3E50;
    }







/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .container {
        margin: 15px;
        padding: 10px;
    }

    .card {
        padding: 18px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ===== CELULARES PEQUEÑOS ===== */
@media (max-width: 480px) {
    .container {
        margin: 8px;
        padding: 8px;
    }

    .card {
        padding: 12px;
    }

    h1, h2, h3 {
        font-size: 1.2rem;
    }

    input,
    select,
    textarea,
    button {
        width: 100%;
        font-size: 16px; /* evita zoom automático en iPhone */
    }

    .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    table {
        font-size: 12px;
    }
}