/* ========================================
   FOOTER STYLES — Extraído de footer.php
   ======================================== */

/* ===================================
   VARIABLES Y TOKENS DE DISEÑO
   =================================== */
:root {
    --flch-primary:       #0A1E3C;
    --flch-primary-light: #143B63;
    --flch-primary-dark:  #051020;
    --flch-accent:        #A8861C;
    --flch-accent-light:  #C6A43F;
    --flch-accent-dark:   #8B7718;
    --flch-white:         #FFFFFF;
    --flch-white-90:      rgba(255,255,255,0.9);
    --flch-white-80:      rgba(255,255,255,0.8);
    --flch-white-70:      rgba(255,255,255,0.7);
    --flch-white-60:      rgba(255,255,255,0.6);
    --flch-white-50:      rgba(255,255,255,0.5);
    --flch-white-40:      rgba(255,255,255,0.4);
    --flch-white-30:      rgba(255,255,255,0.3);
    --flch-white-20:      rgba(255,255,255,0.2);
    --flch-white-10:      rgba(255,255,255,0.1);
    --flch-white-05:      rgba(255,255,255,0.05);
    --flch-shadow-sm:     0 4px 12px rgba(0,0,0,.1);
    --flch-shadow-md:     0 8px 24px rgba(0,0,0,.15);
    --flch-shadow-lg:     0 16px 32px rgba(0,0,0,.2);
    --flch-transition-fast: 0.2s ease;
    --flch-transition-base: 0.3s ease;
    --flch-font-primary:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===================================
   FOOTER PRINCIPAL
   =================================== */
.flch-footer {
    position: relative;
    background: linear-gradient(135deg, var(--flch-primary) 0%, var(--flch-primary-light) 50%, var(--flch-primary-dark) 100%);
    color: var(--flch-white);
    width: 100%;
    overflow: hidden;
    padding: 4rem 0 2rem;
    font-family: var(--flch-font-primary);
    line-height: 1.5;
}

.flch-footer__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.flch-footer__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    background: var(--flch-accent);
    will-change: transform;
}

.flch-footer__blob--top-left {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    max-width: 600px; max-height: 600px;
    animation: flch-float-slow 20s infinite alternate;
}

.flch-footer__blob--bottom-right {
    bottom: -10%; right: -10%;
    width: 50vw; height: 50vw;
    max-width: 600px; max-height: 600px;
    animation: flch-float-slower 25s infinite alternate;
}

.flch-footer__pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg,  var(--flch-white-05) 1px, transparent 1px),
        linear-gradient(-45deg, var(--flch-white-05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.flch-footer__accent-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--flch-accent) 20%, var(--flch-accent) 80%, transparent 100%);
}

.flch-footer__container {
    max-width: var(--container-max, 1300px);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Grid responsivo */
.flch-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .flch-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .flch-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Columnas */
.flch-footer__column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    animation: flch-fade-up 0.5s ease forwards;
}

.flch-footer__column--identity { animation-delay: 0.1s; }
.flch-footer__column--journals { animation-delay: 0.2s; }
.flch-footer__column--programs { animation-delay: 0.3s; }
.flch-footer__column--contact  { animation-delay: 0.4s; }

/* Brand / logo */
.flch-footer__brand { display: flex; align-items: center; gap: 1rem; }

.flch-footer__logo {
    width: 3.5rem; height: 3.5rem;
    background: linear-gradient(135deg, var(--flch-accent), var(--flch-accent-dark));
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--flch-shadow-md);
    transition: transform var(--flch-transition-base);
}
.flch-footer__logo:hover { transform: scale(1.05) rotate(5deg); }
.flch-footer__logo-icon { font-size: 1.5rem; color: var(--flch-white); }

.flch-footer__title-group { display: flex; flex-direction: column; }

.flch-footer__pretitle {
    font-size: 0.875rem; font-weight: 400;
    color: var(--flch-white-80); line-height: 1.2;
}

.flch-footer__maintitle {
    font-size: 1.5rem; font-weight: 700;
    color: var(--flch-accent); line-height: 1.2;
}

.flch-footer__description {
    color: var(--flch-white-80); font-size: 0.875rem;
    line-height: 1.6; margin: 0;
}

/* Acreditación */
.flch-footer__accreditation {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--flch-white-10);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    padding: 0.375rem 1rem;
    border: 1px solid var(--flch-white-20);
    width: fit-content;
    transition: all var(--flch-transition-base);
}
.flch-footer__accreditation:hover {
    background: var(--flch-accent);
    border-color: var(--flch-accent);
    transform: translateY(-2px);
}
.flch-footer__accreditation-icon {
    color: var(--flch-accent); font-size: 0.75rem;
    transition: color var(--flch-transition-base);
}
.flch-footer__accreditation:hover .flch-footer__accreditation-icon { color: var(--flch-white); }
.flch-footer__accreditation-text { font-size: 0.75rem; font-weight: 500; color: var(--flch-white-90); }

/* Headings */
.flch-footer__heading,
.flch-footer__social-heading {
    font-size: 1rem; font-weight: 600;
    color: var(--flch-white);
    display: flex; align-items: center; gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--flch-white-20);
    letter-spacing: 0.3px;
}
.flch-footer__heading-icon { color: var(--flch-accent); font-size: 0.875rem; }

/* Listas */
.flch-footer__list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.flch-footer__list--compact { gap: 0.25rem; }
.flch-footer__list-item { margin: 0; }

/* Enlaces */
.flch-footer__link {
    display: flex; align-items: flex-start; gap: 0.5rem;
    color: var(--flch-white-80); font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--flch-transition-fast);
    padding: 0.375rem 0;
    border-radius: 0.375rem;
}
.flch-footer__link:hover { color: var(--flch-white); transform: translateX(4px); }
.flch-footer__link:focus-visible { outline: 2px solid var(--flch-accent); outline-offset: 2px; }
.flch-footer__link--with-icon { align-items: center; gap: 0.75rem; }

.flch-footer__link-bullet {
    width: 0.375rem; height: 0.375rem;
    background: var(--flch-accent); border-radius: 50%;
    margin-top: 0.5rem;
    transition: transform var(--flch-transition-fast);
    flex-shrink: 0;
}
.flch-footer__link-content { display: flex; flex-direction: column; flex: 1; }
.flch-footer__link-title   { font-weight: 500; line-height: 1.4; }
.flch-footer__link-description { font-size: 0.75rem; color: var(--flch-white-60); margin-top: 0.125rem; }
.flch-footer__link-icon-left {
    color: var(--flch-accent); font-size: 0.875rem;
    width: 1.25rem; text-align: center;
}
.flch-footer__link-icon,
.flch-footer__link-arrow {
    font-size: 0.7rem; color: var(--flch-white-50);
    transition: all var(--flch-transition-fast);
    margin-left: auto; flex-shrink: 0;
}
.flch-footer__link:hover .flch-footer__link-icon,
.flch-footer__link:hover .flch-footer__link-arrow {
    color: var(--flch-accent);
    transform: translateX(2px);
}

/* Horario */
.flch-footer__schedule {
    display: flex; align-items: center; gap: 0.75rem;
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--flch-white-20);
}
.flch-footer__schedule-icon {
    width: 2.5rem; height: 2.5rem;
    background: var(--flch-accent); border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--flch-white); font-size: 1rem; flex-shrink: 0;
}
.flch-footer__schedule-info  { display: flex; flex-direction: column; }
.flch-footer__schedule-label {
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--flch-white-50);
}
.flch-footer__schedule-time  { font-size: 0.875rem; font-weight: 500; color: var(--flch-white-90); }

/* Contacto */
.flch-footer__contact-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 1rem;
}
.flch-footer__contact-item  { display: flex; align-items: flex-start; gap: 0.75rem; }
.flch-footer__contact-icon {
    width: 2rem; height: 2rem;
    background: var(--flch-white-10); border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--flch-accent); font-size: 0.875rem; flex-shrink: 0;
    transition: all var(--flch-transition-base);
}
.flch-footer__contact-item:hover .flch-footer__contact-icon {
    background: var(--flch-accent); color: var(--flch-white); transform: scale(1.1);
}
.flch-footer__contact-address {
    color: var(--flch-white-80); font-size: 0.875rem;
    font-style: normal; line-height: 1.5;
}
.flch-footer__contact-email {
    color: var(--flch-white-80); font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--flch-transition-fast);
    word-break: break-all;
}
.flch-footer__contact-email:hover  { color: var(--flch-accent); }
.flch-footer__contact-email:focus-visible { outline: 2px solid var(--flch-accent); outline-offset: 2px; }

/* Redes sociales */
.flch-footer__social         { margin-top: 1rem; }
.flch-footer__social-heading { margin-bottom: 1rem; }
.flch-footer__social-grid    { display: flex; gap: 0.5rem; }

.flch-footer__social-link {
    width: 2.5rem; height: 2.5rem;
    background: var(--flch-white-10); border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--flch-white-80); text-decoration: none;
    transition: all var(--flch-transition-base);
    font-size: 1rem;
}
.flch-footer__social-link:hover     { transform: translateY(-3px); color: var(--flch-white); }
.flch-footer__social-link:focus-visible { outline: 2px solid var(--flch-accent); outline-offset: 2px; }
.flch-footer__social-link--facebook:hover  { background: #1877F2; }
.flch-footer__social-link--instagram:hover { background: #E4405F; }
.flch-footer__social-link--youtube:hover   { background: #FF0000; }
.flch-footer__social-link--linkedin:hover  { background: #0077B5; }

/* ===================================
   FOOTER NAV MENU
   =================================== */
.flch-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--flch-white-10);
    border-bottom: 1px solid var(--flch-white-10);
}

.flch-footer__nav .menu { display: contents; }
.flch-footer__nav .menu-item { list-style: none; margin: 0; }

.flch-footer__nav a {
    font-size: 0.8rem;
    color: var(--flch-white-60);
    text-decoration: none;
    transition: color var(--flch-transition-fast);
    padding: 0.375rem 0;
    display: block;
}
.flch-footer__nav a:hover        { color: var(--flch-accent-light); }
.flch-footer__nav a:focus-visible { outline: 2px solid var(--flch-accent); outline-offset: 2px; border-radius: 3px; }

/* ===================================
   BOTTOM BAR
   =================================== */
.flch-footer__bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--flch-white-20);
}

.flch-footer__bottom-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.875rem;
}

.flch-footer__copyright,
.flch-footer__rights,
.flch-footer__unmsm {
    color: var(--flch-white-70); margin: 0; line-height: 1.5;
}
.flch-footer__copyright-highlight { color: var(--flch-accent-light); font-weight: 600; }

.flch-footer__separator {
    width: 4px; height: 4px;
    background: var(--flch-white-40);
    border-radius: 50%; display: inline-block;
}

@media (max-width: 640px) {
    .flch-footer__bottom-container { flex-direction: column; gap: 0.25rem; }
    .flch-footer__separator { display: none; }
}

/* ===================================
   WHATSAPP BUTTON
   =================================== */
.flch-whatsapp {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 9999;
    text-decoration: none; display: block;
}
@media (max-width: 768px) { .flch-whatsapp { bottom: 1rem; right: 1rem; } }

.flch-whatsapp__ripple,
.flch-whatsapp__ripple-2 {
    position: absolute; inset: 0;
    background: #25D366; border-radius: 50%; opacity: 0.3;
}
.flch-whatsapp__ripple   { animation: flch-ping  2s ease-out infinite; }
.flch-whatsapp__ripple-2 { animation: flch-pulse 2s ease-out infinite; }

.flch-whatsapp__button {
    position: relative;
    width: 3.5rem; height: 3.5rem;
    background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--flch-white);
    box-shadow: var(--flch-shadow-lg);
    transition: all var(--flch-transition-base);
}
@media (max-width: 768px) { .flch-whatsapp__button { width: 3rem; height: 3rem; } }
.flch-whatsapp__button:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 20px 30px rgba(37,211,102,.3); }
.flch-whatsapp__icon { font-size: 1.5rem; }
@media (max-width: 768px) { .flch-whatsapp__icon { font-size: 1.25rem; } }

.flch-whatsapp__tooltip {
    position: absolute;
    right: 100%; top: 50%;
    transform: translateY(-50%);
    margin-right: 1rem;
    background: var(--flch-primary);
    color: var(--flch-white);
    font-size: 0.75rem; font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--flch-transition-base);
    border: 1px solid var(--flch-accent);
    pointer-events: none;
    box-shadow: var(--flch-shadow-md);
}
.flch-whatsapp:hover .flch-whatsapp__tooltip { opacity: 1; }
.flch-whatsapp:focus-visible .flch-whatsapp__tooltip { opacity: 1; }
@media (max-width: 768px) { .flch-whatsapp__tooltip { display: none; } }

/* ===================================
   BACK TO TOP
   =================================== */
.flch-backtotop {
    position: fixed;
    bottom: 2rem; left: 2rem;
    z-index: 9999;
    width: 3rem; height: 3rem;
    background: var(--flch-primary-light);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--flch-white);
    border: 1px solid var(--flch-accent);
    cursor: pointer;
    transition: all var(--flch-transition-base);
    opacity: 0; visibility: hidden;
    transform: scale(0.8);
    padding: 0;
    box-shadow: var(--flch-shadow-lg);
}
@media (max-width: 768px) { .flch-backtotop { bottom: 1rem; left: 1rem; width: 2.5rem; height: 2.5rem; } }

.flch-backtotop--visible { opacity: 1; visibility: visible; transform: scale(1); }
.flch-backtotop:hover    { background: var(--flch-accent); transform: scale(1.1) translateY(-3px); border-color: var(--flch-white); }
.flch-backtotop:focus-visible { outline: 2px solid var(--flch-accent); outline-offset: 3px; }

.flch-backtotop__icon {
    font-size: 1rem; position: relative; z-index: 2;
    transition: transform var(--flch-transition-base);
}
.flch-backtotop:hover .flch-backtotop__icon { transform: translateY(-2px); }

.flch-backtotop__progress {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.flch-backtotop__progress-bg   { stroke: var(--flch-white-20); stroke-width: 2; fill: transparent; }
.flch-backtotop__progress-fill {
    stroke: var(--flch-accent); stroke-width: 2; fill: transparent;
    transition: stroke-dashoffset 0.1s linear;
}

/* ===================================
   ANIMACIONES
   =================================== */
@keyframes flch-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes flch-float-slow    { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(5%,5%) scale(1.1); } }
@keyframes flch-float-slower  { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-5%,-5%) scale(1.1); } }
@keyframes flch-ping  { 0%  { transform: scale(1);   opacity: 0.3; } 75%  { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes flch-pulse { 0%  { transform: scale(1);   opacity: 0.3; } 50%  { transform: scale(1.2); opacity: 0.2; } 100% { transform: scale(1); opacity: 0.3; } }

/* ===================================
   ACCESIBILIDAD
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .flch-footer__blob,
    .flch-footer__column,
    .flch-whatsapp__ripple,
    .flch-whatsapp__ripple-2,
    .flch-backtotop {
        animation: none !important;
        transition: none !important;
    }
    .flch-footer__column { opacity: 1; }
    .flch-footer__link:hover { transform: none; }
}

/* ===================================
   UTILIDADES
   =================================== */
.flch-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
