.mw-footer {
    position: relative;
    margin-top: 48px;
    background: linear-gradient(135deg, #0f1a2f 0%, #1a263b 30%, #0a1220 100%);
    color: #e9f0fa;
    overflow: hidden;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(122, 169, 226, 0.2);
}

.mw-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 6px),
        radial-gradient(circle at 30% 40%, rgba(122, 169, 226, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(100, 150, 220, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.mw-footer-torn {
    position: relative;
    height: 24px;
    background: transparent;
    box-shadow: none;
    z-index: 2;
}

.mw-footer-torn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 32px;
    background: #0f1a2f;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path fill='black' d='M0,20 Q120,0 240,20 T480,20 T720,10 T960,25 T1200,15 T1440,25 L1440,100 L0,100 Z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path fill='black' d='M0,20 Q120,0 240,20 T480,20 T720,10 T960,25 T1200,15 T1440,25 L1440,100 L0,100 Z'/></svg>");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-bottom: 2px solid #7AA9E2;
}

.mw-footer-shell {
    position: relative;
    z-index: 3;
}

.mw-footer-shell::before {
    content: "🜁☀︎🜂▽𖦹";
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 42px;
    color: rgba(122, 169, 226, 0.08);
    white-space: nowrap;
    transform: rotate(-5deg);
    pointer-events: none;
    font-family: serif;
    z-index: 0;
}

.mw-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 32px;
    position: relative;
    z-index: 2;
}

/* Grid principal */
.mw-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 32px;
}

/* Marca/Logo */
.mw-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
}

.mw-footer-logo-mark {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7AA9E2;
    flex: 0 0 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.mw-footer-logo-mark svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke-width: 2.5;
}

.mw-footer-logo-mark svg circle {
    fill: #1e3a6f;
}

.mw-footer-logo-mark svg path {
    stroke: #7AA9E2;
}

.mw-footer-brand-text h3 {
    margin: 0 0 8px;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 32px;
    line-height: 1.1;
    color: #B8D4FF;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #0f1a2f;
}

.mw-footer-brand-text p {
    margin: 0;
    color: #b0c6e0;
    font-size: 16px;
    line-height: 1.6;
    max-width: 450px;
}

/* Meta (enlaces, sociales, copyright) */
.mw-footer-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mw-footer-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 24px;
}

.mw-footer-links a {
    color: #b0c6e0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(122, 169, 226, 0.3);
}

.mw-footer-links a:hover {
    color: #B8D4FF;
    border-bottom-style: solid;
    border-color: #7AA9E2;
}

/* Redes sociales */
.mw-footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.mw-footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e9f0fa;
    background: #1e2a3a;
    border: 2px solid #3d506e;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 0 #0f1a2f;
}

.mw-footer-social a:hover {
    transform: translateY(-3px);
    background: #2b384b;
    border-color: #7AA9E2;
    box-shadow: 0 6px 0 #0f1a2f;
}

.mw-footer-social svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

/* Copyright */
.mw-footer-copy {
    color: #a0b3cc;
    font-size: 14px;
    line-height: 1.6;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(61, 80, 110, 0.5);
}

/* Línea inferior */
.mw-footer-bottom-line {
    height: 20px;
    background: repeating-linear-gradient(90deg, #0f1a2f 0px, #0f1a2f 20px, #1e2a3a 20px, #1e2a3a 40px);
    border-top: 2px solid #7AA9E2;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    position: relative;
}

.mw-footer-bottom-line::after {
    content: "▽ 𓃀 𓅱 𓃭 ▷";
    position: absolute;
    right: 20px;
    top: -22px;
    font-size: 18px;
    color: #7AA9E2;
    opacity: 0.3;
    text-shadow: 1px 1px 0 #00000055;
}

/* ===== RESPONSIVE ===== */

/* Tablets y pantallas medianas */
@media screen and (max-width: 900px) {
    .mw-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mw-footer-brand {
        align-items: center;
        text-align: center;
        flex-direction: column;
        gap: 16px;
    }
    
    .mw-footer-brand-text {
        text-align: center;
    }
    
    .mw-footer-brand-text p {
        max-width: 100%;
    }
    
    .mw-footer-meta {
        text-align: center;
    }
    
    .mw-footer-links {
        justify-content: center;
    }
    
    .mw-footer-social {
        justify-content: center;
    }
    
    .mw-footer-copy {
        text-align: center;
    }
}

/* Móviles grandes */
@media screen and (max-width: 640px) {
    .mw-footer {
        margin-top: 32px;
    }
    
    .mw-footer-torn {
        height: 20px;
    }
    
    .mw-footer-torn::after {
        height: 28px;
    }
    
    .mw-footer-inner {
        padding: 32px 20px 24px;
    }
    
    .mw-footer-logo-mark {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }
    
    .mw-footer-brand-text h3 {
        font-size: 28px;
    }
    
    .mw-footer-brand-text p {
        font-size: 15px;
    }
    
    .mw-footer-links {
        gap: 14px 20px;
    }
    
    .mw-footer-links a {
        font-size: 15px;
    }
    
    .mw-footer-social {
        gap: 15px;
    }
    
    .mw-footer-social a {
        width: 48px;
        height: 48px;
    }
    
    .mw-footer-social svg {
        width: 22px;
        height: 22px;
    }
    
    .mw-footer-copy {
        font-size: 14px;
        padding-top: 20px;
    }
    
    .mw-footer-bottom-line {
        height: 16px;
    }
    
    .mw-footer-bottom-line::after {
        font-size: 16px;
        top: -18px;
    }
}

/* Móviles pequeños */
@media screen and (max-width: 400px) {
    .mw-footer-inner {
        padding: 28px 16px 20px;
    }
    
    .mw-footer-logo-mark {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }
    
    .mw-footer-brand-text h3 {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .mw-footer-brand-text p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Enlaces secundarios en columna */
    .mw-footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .mw-footer-links a {
        font-size: 15px;
        padding: 5px 0;
    }
    
    /* Botones sociales más compactos */
    .mw-footer-social {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .mw-footer-social a {
        width: 44px;
        height: 44px;
    }
    
    .mw-footer-copy {
        font-size: 13px;
        padding-top: 16px;
    }
    
    .mw-footer-bottom-line::after {
        font-size: 14px;
        right: 10px;
    }
}

/* Pantallas muy pequeñas */
@media screen and (max-width: 320px) {
    .mw-footer-social {
        gap: 8px;
    }
    
    .mw-footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .mw-footer-social svg {
        width: 18px;
        height: 18px;
    }
}