/* =====================================================================
   Método 10 — Sistema de diseño de marca
   ===================================================================== */

:root {
    /* Paleta UD Tomares: azul royal + amarillo dorado del escudo */
    --navy:        #14336B;
    --navy-800:    #102B5C;
    --navy-700:    #1B4488;
    --blue:        #2A5FC0;
    --blue-600:    #224FA3;
    --blue-300:    #8FB4F0;
    --amber:       #F5C518;
    --amber-600:   #E0B000;
    --amber-300:   #FFDA4B;
    --ink:         #0E1116;
    --muted:       #5B6478;
    --line:        #E5E9F2;
    --bg:          #F6F8FC;
    --white:       #FFFFFF;

    --radius:      16px;
    --radius-sm:   10px;
    --radius-lg:   24px;
    --shadow-sm:   0 2px 8px rgba(11, 27, 59, .06);
    --shadow:      0 12px 32px rgba(11, 27, 59, .10);
    --shadow-lg:   0 24px 60px rgba(11, 27, 59, .18);

    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 760px; }
.container-xs { max-width: 520px; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.hidden { display: none; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem;
    padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(30,107,255,.32); }
.btn-primary:hover { background: var(--blue-600); }
.btn-accent  { background: var(--amber); color: #14336B; box-shadow: 0 8px 20px rgba(245,197,24,.4); }
.btn-accent:hover { background: var(--amber-600); color:#14336B; }
.btn-ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Tarjetas ---------- */
.card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); padding: 24px;
}
.card-lg { padding: 32px; border-radius: var(--radius-lg); }

/* ---------- Chips / badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600;
    padding: .3rem .7rem; border-radius: 999px; background: #eef3ff; color: var(--blue);
}
.badge-green { background: #fff3df; color: #b9760a; }
.badge-amber { background: #fff3df; color: #b9760a; }
.badge-red   { background: #fdeaea; color: #d23b3b; }
.badge-gray  { background: #eef0f5; color: var(--muted); }

/* ---------- Alertas ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: #e6faef; border-color: #b9eccb; color: #15803d; }
.alert-error   { background: #fdeaea; border-color: #f5c6c6; color: #b91c1c; }
.alert-info    { background: #eef3ff; border-color: #cdddff; color: #1e40af; }

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--navy); }
.form-control {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 1rem; background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,107,255,.12); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.form-error { font-size: .85rem; color: #d23b3b; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px){ .form-row { grid-template-columns: 1fr; } }

/* ---------- Header público ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(11,27,59,.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: #d7e0f4; font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 860px) {
    .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--navy);
        padding: 1rem 20px 1.5rem; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700;
    color: #fff; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo .logo-badge { width: 46px; height: 46px; display: block; flex: 0 0 auto;
    filter: drop-shadow(0 6px 14px rgba(11,27,59,.45)); }
.logo .logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-word b { font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
.logo .logo-word b .num { color: var(--amber-300); }
.logo .logo-word small { font-family: var(--font-body); font-weight: 600; font-size: .58rem;
    color: var(--blue-300); letter-spacing: .22em; text-transform: uppercase; margin-top: .28rem; }
.logo .logo-udt { height: 44px; width: auto; margin-left: .8rem; padding-left: .85rem;
    border-left: 1px solid rgba(255,255,255,.2); filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
@media (max-width: 480px){ .logo .logo-udt { height: 38px; margin-left: .55rem; padding-left: .6rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebbd6; padding: 56px 0 28px; margin-top: 64px; }
.site-footer a { color: #d7e0f4; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section-tag { display:inline-block; font-family: var(--font-display); font-weight:600; color: var(--blue); text-transform: uppercase; letter-spacing:.14em; font-size:.8rem; margin-bottom:.8rem; }

/* ---------- Tablas ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.table th { font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfe; }
.table tbody tr:hover { background: #fafbff; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
