/* Hoja de estilos extraída de legal_es.html */
:root{
  --header-height: 96px;
}
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: #f7f8fb;
    color: #222;
}

.site-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-font-smoothing:antialiased;
}

.site-header::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, rgb(239, 249, 253), rgb(77, 163, 234));
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    filter: blur(3px) saturate(1.05);
    transform: scale(1.03);
    opacity: 0.95;
}

.site-header .container{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.brand{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img{
    height: 56px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.06);
    padding: 6px;
}

.brand .title{
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    display: inline-block;
    transform: translateY(30px) translateX(150px);
    transition: transform 180ms ease;
}

.main-nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
    align-items: center;
    transform: translateY(30px);
    transition: transform 180ms ease;
}

.main-nav a{
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 160ms ease, transform 160ms ease;
}

.main-nav .cta-link{
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    color: var(--header-accent, #0b74d1);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(11,116,209,0.14);
}
.main-nav .cta-link:hover{ transform: translateY(-2px); }

.back-btn{
    position: absolute;
    right: 50px;
    bottom: 16px;
    background: #ffffff;
    color: #0b74d1;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: background 160ms ease, transform 160ms ease;
}
.back-btn:hover{ background: rgba(255,255,255,0.9); transform: translateY(-2px); }

.content {
    flex: 1; /* 👈 Esto empuja el footer hacia abajo */
    padding-top: calc(var(--header-height) + 20px);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-footer {
    background: linear-gradient(to bottom, rgb(240, 245, 250), rgb(220, 235, 250));
    border-top: 1px solid rgba(11, 116, 209, 0.1);
    padding: 40px 20px;
    margin-top: 60px; /* puedes dejarlo */
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: #0b74d1;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 160ms ease, color 160ms ease;
}

.footer-links a:hover {
    background: rgba(11, 116, 209, 0.1);
    color: #0a5ba8;
}

.footer-divider {
    width: 1px;
    height: 24px;
    background: rgba(11, 116, 209, 0.2);
}

@media (max-width: 640px){
    .brand .title{ display: none; }
    .brand img{ height:48px; }
    .main-nav ul{ gap: 12px; transform: translateY(6px); }
    .main-nav a{ font-size: 14px; }
    .brand .title{ transform: translateY(6px); }
    .back-btn{ left: 50%; transform: translateX(-50%); bottom: 12px; }
    .site-footer .container { gap: 15px; }
    .footer-links { gap: 10px; }
    .footer-links a { padding: 6px 10px; font-size: 13px; }
}
