﻿/* =====================================================================
   SIGE ALUMNOS · Tema visual UTTT (Cardenales)
   Paleta tomada de la imagen institucional: azul marino, verde jade, verde lima.
   Funciona sobre Bootstrap 3 (no se cambió el marcado de las páginas existentes).
   ===================================================================== */
:root {
    --navy-900: #0d1338;
    --navy-800: #141b4d;
    --navy-700: #1c2563;
    --navy-600: #27327c;
    --teal-600: #079277;
    --teal-500: #0aa58a;
    --teal-400: #19c3a1;
    --lime-500: #8cc63f;
    --lime-400: #a5d65a;
    --ink: #1b2142;
    --muted: #66708f;
    --line: #e2e7f0;
    --bg: #f2f5f9;
    --card: #ffffff;
    --danger: #e0475b;
    --warning: #f2a93b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(20, 27, 77, .08), 0 2px 6px rgba(20, 27, 77, .05);
    --shadow-lg: 0 24px 60px rgba(20, 27, 77, .18);
    --grad-brand: linear-gradient(90deg, var(--navy-800) 0%, var(--teal-500) 55%, var(--lime-500) 100%);
    --grad-teal: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-400) 100%);
    --font-display: 'Saira', 'Rubik', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Rubik', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.uttt {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V48l28 16 28-16v34L28 98z' fill='none' stroke='%23d7e2ee' stroke-width='1'/%3E%3C/svg%3E");
    background-attachment: fixed;
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}
body.uttt h1, body.uttt h2, body.uttt h3, body.uttt h4, body.uttt h5 {
    font-family: var(--font-display);
    color: var(--navy-800);
    letter-spacing: .2px;
}
body.uttt a { color: var(--teal-600); }
body.uttt a:hover, body.uttt a:focus { color: var(--navy-700); text-decoration: none; }
body.uttt hr { border-top-color: var(--line); }
img { max-width: 100%; height: auto; }
.sr-only-focusable:focus { position: static; width: auto; height: auto; }

/* Decoración de hexágonos flotantes */
.hex-deco { position: fixed; pointer-events: none; z-index: 0; opacity: .55; }
.hex-deco svg { width: 100%; height: 100%; }
.hex-deco.d1 { left: -40px; top: 32%; width: 150px; height: 170px; }
.hex-deco.d2 { left: 60px; top: 58%; width: 90px; height: 100px; }
.hex-deco.d3 { right: -30px; bottom: 6%; width: 160px; height: 180px; }
.hex-deco.d4 { right: 70px; top: 26%; width: 70px; height: 80px; }
@media (max-width: 991px) { .hex-deco { display: none; } }

/* ---------- Franja gob ---------- */
.gob-strip {
    position: relative; z-index: 3;
    background: var(--navy-900);
    color: #c9d1ee;
    font-size: 12.5px;
}
.gob-strip .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px; max-width: 1320px; margin: 0 auto; }
.gob-strip a { color: #c9d1ee !important; margin-left: 16px; white-space: nowrap; }
.gob-strip a:hover { color: #fff !important; }
.gob-strip .links { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.gob-strip .links::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .gob-strip .marca { display: none; } .gob-strip .inner { justify-content: flex-start; } .gob-strip a { margin-left: 0; margin-right: 14px; } }

/* ---------- Encabezado con banner ---------- */
.hero { position: relative; z-index: 2; max-width: 1320px; margin: 16px auto 0; padding: 0 16px; }
.hero-banner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: var(--navy-800);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1576 / 296;
}
.hero-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: -24px; position: relative; z-index: 3; }
.pill-title {
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 12px 30px;
    border-radius: 999px;
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(13, 19, 56, .35);
}
.pill-title .fa { color: var(--teal-400); }
.clock-chip {
    display: inline-flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 999px; padding: 6px 8px 6px 18px;
    box-shadow: var(--shadow); font-weight: 600; color: var(--navy-800); font-size: 14px;
}
.clock-chip .fa { color: var(--teal-500); }
.clock-chip .hora {
    background: var(--navy-800); color: #fff; font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700; letter-spacing: 2px; padding: 5px 14px; border-radius: 999px; font-size: 15px;
}
@media (max-width: 767px) {
    .hero { margin-top: 10px; padding: 0 10px; }
    .hero-banner { border-radius: 14px; aspect-ratio: 1576 / 380; }
    .hero-chips { margin-top: -18px; gap: 8px; }
    .pill-title { font-size: 11px; letter-spacing: 2.5px; padding: 9px 18px; border-width: 3px; }
    .clock-chip { font-size: 12px; padding: 4px 6px 4px 12px; }
    .clock-chip .fecha-larga { display: none; }
}

/* ---------- Estructura alumno (menú lateral + contenido) ---------- */
.app {
    position: relative; /* sin z-index: si no, el menú (celular) y las ventanas quedan debajo de la capa oscura */
    max-width: 1320px; margin: 22px auto 0; padding: 0 16px 30px;
    display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start;
}
.sidebar {
    position: sticky; top: 16px;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.sidebar-head {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: #fff; padding: 18px 18px 16px; position: relative; overflow: hidden;
}
.sidebar-head:after {
    content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(25,195,161,.45), transparent 70%);
}
.sidebar-head .etiqueta { font-family: var(--font-display); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--lime-400); }
.sidebar-head .alumno { display: flex; align-items: center; gap: 12px; margin-top: 10px; position: relative; z-index: 1; }
.avatar {
    width: 48px; height: 48px; border-radius: 14px; flex: 0 0 48px;
    background: var(--grad-teal); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff;
    box-shadow: 0 6px 14px rgba(10,165,138,.4);
}
.sidebar-head .nombre { font-weight: 600; font-size: 14px; line-height: 1.25; word-break: break-word; }
.sidebar-head .matricula { font-size: 12px; color: #b8c2ea; letter-spacing: 1px; }
.menu-alumno { list-style: none; margin: 0; padding: 10px; }
.menu-alumno li { margin: 2px 0; }
.menu-alumno a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    color: var(--ink) !important; font-weight: 500; font-size: 14.5px;
    transition: background .18s, transform .18s, color .18s;
}
.menu-alumno a .fa { width: 20px; text-align: center; color: var(--teal-500); font-size: 16px; }
.menu-alumno a:hover { background: #eef6f4; transform: translateX(3px); }
.menu-alumno a.activo { background: var(--grad-teal); color: #fff !important; box-shadow: 0 8px 18px rgba(10,165,138,.35); }
.menu-alumno a.activo .fa { color: #fff; }
.menu-alumno .candado { margin-left: auto; color: var(--danger); font-size: 13px; }
.menu-alumno a.activo .candado { color: #fff; }
.menu-alumno .separador { height: 1px; background: var(--line); margin: 8px 6px; }
.menu-alumno a.salir { color: var(--danger) !important; }
.menu-alumno a.salir .fa { color: var(--danger); }

.contenido { min-width: 0; }
.content-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 26px 28px; position: relative; overflow: hidden;
}
.content-card:before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-brand);
}
.content-card > h1:first-child, .content-card h1 {
    font-size: 28px; font-weight: 700; margin: 4px 0 6px; display: flex; align-items: center; gap: 12px;
}
.content-card h1:before {
    content: ""; width: 8px; height: 30px; border-radius: 4px; background: var(--grad-teal); display: inline-block;
}

/* Botón de menú (móvil) */
.topbar-movil { display: none; }
.sidebar-overlay { display: none; }
@media (max-width: 991px) {
    .topbar-movil ~ .hero .clock-chip { display: none; }
    .app { grid-template-columns: 1fr; padding: 0 10px 24px; margin-top: 16px; }
    .topbar-movil {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        position: sticky; top: 0; z-index: 40;
        background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        padding: 8px 12px; box-shadow: 0 2px 12px rgba(20,27,77,.08);
    }
    .topbar-movil .titulo { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); letter-spacing: 1px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .btn-menu {
        border: 0; background: var(--grad-teal); color: #fff; width: 44px; height: 44px; border-radius: 12px; font-size: 18px;
        box-shadow: 0 6px 14px rgba(10,165,138,.35);
    }
    .sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; width: 300px; max-width: 86vw; z-index: 60;
        border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .28s ease;
        overflow-y: auto;
    }
    body.menu-abierto .sidebar { transform: translateX(0); }
    body.menu-abierto .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(13,19,56,.45); z-index: 55; }
    .content-card { padding: 20px 16px; border-radius: 14px; }
    .content-card h1 { font-size: 22px; }
}

/* ---------- Componentes Bootstrap 3 re-estilizados ---------- */
body.uttt .btn {
    border-radius: 12px; font-weight: 600; padding: 9px 18px; border: 0; letter-spacing: .2px;
    transition: transform .15s, box-shadow .15s, filter .15s; white-space: normal;
}
body.uttt .btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
body.uttt .btn:active { transform: translateY(0); }
body.uttt .btn-success { background: var(--grad-teal); color: #fff; box-shadow: 0 8px 18px rgba(10,165,138,.30); }
body.uttt .btn-primary { background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: #fff; box-shadow: 0 8px 18px rgba(20,27,77,.25); }
body.uttt .btn-info { background: linear-gradient(135deg, #6fb52e, var(--lime-500)); color: #fff; box-shadow: 0 8px 18px rgba(140,198,63,.30); }
body.uttt .btn-warning { background: linear-gradient(135deg, #e88f12, var(--warning)); color: #fff; }
body.uttt .btn-danger { background: linear-gradient(135deg, #c92f44, var(--danger)); color: #fff; box-shadow: 0 8px 18px rgba(224,71,91,.25); }
body.uttt .btn-default { background: #fff; color: var(--navy-800); border: 1px solid var(--line); }
body.uttt .btn-outline { background: #fff; color: var(--teal-600); border: 2px solid var(--teal-500); }
body.uttt .btn[disabled], body.uttt .btn.aspNetDisabled { opacity: .55; transform: none; box-shadow: none; cursor: not-allowed; }
body.uttt .form-control.widButton, body.uttt .widButton { width: auto; display: inline-block; height: auto; margin: 4px; }

body.uttt .form-control {
    border-radius: 12px; border: 1.5px solid var(--line); height: 44px; box-shadow: none;
    font-size: 15px; color: var(--ink); background: #f8fafc; transition: border-color .15s, box-shadow .15s, background .15s;
}
body.uttt textarea.form-control { height: auto; min-height: 90px; }
body.uttt .form-control:focus { border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(10,165,138,.15); }
body.uttt label { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; }

/* Tablas */
body.uttt .table { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
body.uttt .table > thead > tr > th,
body.uttt .table > thead > tr > td,
body.uttt .table > tbody > tr > th,
body.uttt .table tr.bg-primary > td,
body.uttt .table > tbody > tr:first-child > th {
    background: var(--navy-800) !important; color: #fff !important; border: 0 !important;
    font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase;
    padding: 12px 12px; vertical-align: middle;
}
body.uttt .table > tbody > tr > td {
    border-top: 1px solid var(--line) !important; padding: 11px 12px; vertical-align: middle; background: transparent;
}
body.uttt .table > tbody > tr { background: #fff !important; color: var(--ink) !important; }
body.uttt .table > tbody > tr:nth-child(even) { background: #f7f9fc !important; }
body.uttt .table-hover > tbody > tr:hover, body.uttt .table > tbody > tr:hover { background: #eef8f5 !important; }
body.uttt .table-bordered, body.uttt .table-bordered > tbody > tr > td, body.uttt .table-bordered > thead > tr > td { border-color: var(--line) !important; }
body.uttt .table-responsive { border: 0; border-radius: 12px; -webkit-overflow-scrolling: touch; }
body.uttt .table input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--teal-500); cursor: pointer; }

/* Tablas apilables en celular (las que tengan clase "tabla-movil") */
@media (max-width: 640px) {
    body.uttt table.tabla-movil thead, body.uttt table.tabla-movil tr.bg-primary, body.uttt table.tabla-movil tr.fila-encabezado { display: none !important; }
    body.uttt table.tabla-movil, body.uttt table.tabla-movil tbody, body.uttt table.tabla-movil tr, body.uttt table.tabla-movil td { display: block; width: 100%; }
    body.uttt table.tabla-movil tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; background: #fff !important; }
    body.uttt .table-responsive > table.tabla-movil td, body.uttt table.tabla-movil td { white-space: normal !important; word-break: break-word; }
    body.uttt table.tabla-movil td { border: 0 !important; display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; text-align: right; }
    body.uttt table.tabla-movil td:before { flex: 0 0 auto; white-space: nowrap; content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
}

/* Paneles / acordeones */
body.uttt .panel { border: 0; border-radius: 14px; box-shadow: 0 4px 14px rgba(20,27,77,.07); overflow: hidden; margin-bottom: 12px; }
body.uttt .panel-heading, body.uttt .panel-default > .panel-heading {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600)) !important; color: #fff !important; border: 0; padding: 14px 18px;
}
body.uttt .panel-heading a, body.uttt .panel-title, body.uttt .panel-title a { color: #fff !important; font-family: var(--font-display); font-weight: 600; letter-spacing: .4px; }
body.uttt .panel-heading a:after { content: "\f107"; font-family: FontAwesome; float: right; color: var(--lime-400); }
body.uttt .panel-body { padding: 16px 18px; }

/* Pestañas */
body.uttt .nav-tabs { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
body.uttt .nav-tabs > li { float: none; margin: 0; }
body.uttt .nav-tabs > li > a { border: 0 !important; border-radius: 999px !important; background: #eef2f7; color: var(--navy-800) !important; font-weight: 600; padding: 9px 18px; margin: 0; }
body.uttt .nav-tabs > li.active > a, body.uttt .nav-tabs > li.active > a:hover, body.uttt .nav-tabs > li.active > a:focus { background: var(--grad-teal) !important; color: #fff !important; }

/* Modales */
body.uttt .modal-content { border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
body.uttt .modal-header { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; border: 0; padding: 16px 20px; }
body.uttt .modal-header .modal-title { color: #fff; font-family: var(--font-display); }
body.uttt .modal-header .close { color: #fff; opacity: .9; text-shadow: none; font-size: 28px; }
body.uttt .modal-footer { border-top: 1px solid var(--line); }
body.uttt .modal-body:after { content: ""; display: table; clear: both; }

/* Alertas */
body.uttt .alert { border: 0; border-radius: 14px; padding: 14px 18px; }
body.uttt .alert-info { background: #e8f4fb; color: #1d4e6b; }
body.uttt .alert-warning { background: #fff5e3; color: #7a4a05; }
body.uttt .alert-danger { background: #fde9ec; color: #8a1c2c; }
body.uttt .alert-success { background: #e4f7f1; color: #0b5e4c; }

/* Carrusel */
body.uttt .carousel { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
body.uttt .carousel-indicators li { border-color: #fff; }
body.uttt .carousel-indicators .active { background: var(--teal-400); }

/* Medidor de horas */
meter { width: 100%; height: 16px; border-radius: 10px; -webkit-appearance: none; appearance: none; background: #e6ebf2; border: 0; }
meter::-webkit-meter-bar { background: #e6ebf2; border: 0; border-radius: 10px; height: 16px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: linear-gradient(90deg, var(--teal-600), var(--lime-500)); border-radius: 10px; }
meter::-moz-meter-bar { background: linear-gradient(90deg, var(--teal-600), var(--lime-500)); border-radius: 10px; }

/* GridView sin estilo propio -> tema */
body.uttt table[id*="gv"] { width: 100%; }

/* ---------- Tarjetas de datos generales ---------- */
.perfil { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 26px; align-items: start; }
.perfil-foto { text-align: center; }
.perfil-foto img { width: 170px; height: 200px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); border: 4px solid #fff; background: #e9eef5; }
.perfil-foto .matricula-chip { display: inline-block; margin-top: 12px; background: var(--navy-800); color: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 700; letter-spacing: 2px; font-family: var(--font-display); }
.datos-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.dato { background: #f7f9fc; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.dato.ancho { grid-column: 1 / -1; }
.dato label { display: block; margin: 0 0 4px; font-size: 11px; }
.dato span, .dato .valor { font-weight: 600; color: var(--navy-800); word-break: break-word; }
.horas-box { background: linear-gradient(135deg, #f0faf7, #f6fbef); border: 1px solid #d4efe6; border-radius: 14px; padding: 14px; margin-top: 12px; }
.acciones-perfil { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
@media (max-width: 991px) { .datos-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
    .perfil { grid-template-columns: 1fr; }
    .perfil-foto img { width: 140px; height: 165px; }
    .datos-grid { grid-template-columns: 1fr; }
}

/* ---------- Tarjetas de pago ---------- */
.seccion-titulo { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.seccion-titulo .icono { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--grad-teal); color: #fff; font-size: 18px; box-shadow: 0 6px 14px rgba(10,165,138,.3); }
.seccion-titulo h3, .seccion-titulo h4 { margin: 0; font-size: 19px; font-weight: 700; }
.seccion-titulo small { display: block; color: var(--muted); font-size: 13px; font-family: var(--font-body); font-weight: 400; }
.resumen-pago { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.resumen-pago .item { background: #f7f9fc; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.resumen-pago .item .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 600; }
.resumen-pago .item .val { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy-800); word-break: break-all; }
.resumen-pago .item.total { background: linear-gradient(135deg, #e7f8f3, #f1f9e6); border-color: #bfe8da; }
.resumen-pago .item.total .val { color: var(--teal-600); }
.linea-captura { font-family: 'Consolas', 'Courier New', monospace; letter-spacing: 1px; font-size: 15px !important; }
.badge-metodo { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; }
.badge-metodo.linea { background: #e6f0ff; color: #1b4fb3; }
.badge-metodo.practicaja { background: #fff1dd; color: #a35a00; }
.fila-comision td { color: var(--teal-600) !important; font-style: italic; }
.acciones-pago { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 8px; }
.acciones-pago .btn { margin: 0 !important; }
.nota-comision { display: flex; gap: 12px; align-items: flex-start; background: #fff8e8; border: 1px solid #f6dfae; color: #6d4a07; border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-size: 14px; }
.nota-comision .fa { font-size: 20px; color: var(--warning); margin-top: 2px; }
.nota-bloqueo { background: #eef2ff; border-color: #d4dbfb; color: #283574; }
.nota-bloqueo .fa { color: var(--navy-600); }
.btn-banco { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #072146, #1464a5); color: #fff !important; border-radius: 12px; padding: 12px 22px; font-weight: 700; border: 0; box-shadow: 0 10px 22px rgba(20,100,165,.35); cursor: pointer; font-size: 15px; }
.btn-banco:hover { filter: brightness(1.08); }
form.form-banco { display: inline-block; margin: 0; }

/* Selector de forma de pago (modal) */
.metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metodo { border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; background: #fff; text-align: left; width: 100%; }
.metodo:hover { border-color: var(--teal-500); box-shadow: 0 10px 22px rgba(10,165,138,.18); transform: translateY(-2px); }
.metodo .tit { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); font-size: 17px; display: flex; gap: 10px; align-items: center; }
.metodo .tit .fa { color: var(--teal-500); font-size: 22px; }
.metodo .desc { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.metodo .linea-monto { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.metodo .linea-monto.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; color: var(--teal-600); font-size: 16px; }
@media (max-width: 640px) { .metodos { grid-template-columns: 1fr; } }

/* ---------- Ventana emergente propia (aviso de adeudo, confirmaciones) ---------- */
.uttt-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(13,19,56,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.uttt-modal.abierto { display: flex; animation: aparecer .25s ease; }
.uttt-modal .caja { background: #fff; border-radius: 22px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.uttt-modal .caja.ancha { max-width: 720px; }
.uttt-modal .cabecera { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; padding: 20px 22px 18px; position: relative; overflow: hidden; }
.uttt-modal .cabecera:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad-brand); }
.uttt-modal .cabecera h3 { color: #fff; margin: 0; font-size: 21px; font-weight: 700; padding-right: 36px; }
.uttt-modal .cabecera .sub { color: #b8c2ea; font-size: 13px; margin-top: 4px; }
.uttt-modal .cerrar-x { position: absolute; right: 14px; top: 12px; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; z-index: 2; cursor: pointer; }
.uttt-modal .cuerpo { padding: 20px 22px; }
.uttt-modal .pie { padding: 0 22px 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.aviso-adeudo { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 16px; align-items: center; }
.aviso-adeudo img { width: 120px; }
.aviso-adeudo .monto { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--danger); line-height: 1.1; }
@media (max-width: 520px) { .aviso-adeudo { grid-template-columns: 1fr; text-align: center; } .aviso-adeudo img { width: 100px; margin: 0 auto; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Bloqueo de calificaciones ---------- */
.bloqueo { text-align: center; padding: 30px 10px; }
.bloqueo .candado-grande { width: 92px; height: 92px; border-radius: 26px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 42px; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); box-shadow: 0 16px 30px rgba(20,27,77,.3); }
.bloqueo h2 { font-size: 24px; font-weight: 700; }
.bloqueo p { color: var(--muted); max-width: 560px; margin: 8px auto 18px; }
.bloqueo .monto { display: inline-block; background: #fde9ec; color: var(--danger); padding: 8px 18px; border-radius: 999px; font-weight: 700; margin-bottom: 18px; }

/* ---------- Pie ---------- */
.pie-sitio { position: relative; z-index: 2; margin-top: 30px; background: var(--navy-900); color: #b9c2e6; }
.pie-sitio:before { content: ""; display: block; height: 5px; background: var(--grad-brand); }
.pie-sitio .inner { max-width: 1320px; margin: 0 auto; padding: 26px 16px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.pie-sitio strong { color: #fff; font-family: var(--font-display); letter-spacing: 1px; }
.pie-sitio a { color: var(--lime-400) !important; }
.pie-sitio .logos { display: flex; gap: 18px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pie-sitio .logos img { height: 54px; width: auto; }
.pie-sitio small { display: block; color: #8790b5; margin-top: 6px; }
@media (max-width: 767px) { .pie-sitio .inner { grid-template-columns: 1fr; text-align: center; } .pie-sitio .logos { justify-content: center; } }

/* ---------- Inicio de sesión ---------- */
.login-wrap { position: relative; z-index: 2; max-width: 480px; margin: 18px auto 0; padding: 0 16px; }
.login-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 30px 32px 26px; position: relative; overflow: hidden; }
.login-card:before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-brand); }
.login-card h2 { font-size: 19px; font-weight: 700; margin: 0 0 22px; display: flex; gap: 10px; align-items: center; }
.login-card h2 .fa { color: var(--teal-500); }
.campo { margin-bottom: 16px; }
.campo label { display: block; margin-bottom: 6px; }
.campo .control { position: relative; }
.campo .control .fa-icono { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #93a0bd; font-size: 16px; pointer-events: none; z-index: 2; }
.campo .control .form-control { padding-left: 42px; height: 48px; }
.campo .control select.form-control { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366708f' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.ver-clave { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #93a0bd; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; }
.ver-clave:hover { background: #eef2f7; color: var(--navy-800); }
.btn-ingresar { width: 100%; height: 50px; font-size: 16px !important; margin-top: 6px; }
.login-nota { text-align: center; color: var(--muted); font-size: 12.5px; margin: 18px 0 0; }
.login-pie { text-align: center; color: var(--muted); font-size: 12px; margin: 22px 0 30px; position: relative; z-index: 2; }
.login-mascota { position: fixed; right: 2vw; bottom: 0; width: 170px; z-index: 1; pointer-events: none; filter: drop-shadow(0 10px 20px rgba(20,27,77,.25)); }
@media (max-width: 1100px) { .login-mascota { display: none; } }
@media (max-width: 480px) { .login-card { padding: 24px 18px 20px; } }

/* Página de error / estado */
.estado { max-width: 620px; margin: 30px auto; text-align: center; }
.estado .icono-estado { width: 96px; height: 96px; border-radius: 28px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff; }
.estado .icono-estado.ok { background: var(--grad-teal); box-shadow: 0 16px 30px rgba(10,165,138,.35); }
.estado .icono-estado.error { background: linear-gradient(135deg, #c92f44, var(--danger)); box-shadow: 0 16px 30px rgba(224,71,91,.3); }
.estado .icono-estado.info { background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); }

/* Utilidades */
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 12px !important; } .mb-0 { margin-bottom: 0 !important; }
.texto-suave { color: var(--muted); }
.text-teal { color: var(--teal-600) !important; }
.oculto { display: none !important; }

/* Impresión */
@media print {
    .gob-strip, .hero, .sidebar, .topbar-movil, .pie-sitio, .hex-deco, .acciones-pago { display: none !important; }
    .app { display: block; }
    .content-card { box-shadow: none; }
}
