/* Footer (tema hijo) — prefijo exclusivo .rys-footer para no chocar con Elementor ni el tema. */
.rys-footer {
    --rys-footer-bg: #00329b;
    --rys-footer-text: #ffffff;
    --rys-footer-muted: rgba(255, 255, 255, 0.72);
    --rys-footer-line: rgba(255, 255, 255, 0.16);
    --rys-footer-hover: #51bae7;
    background: var(--rys-footer-bg);
    color: var(--rys-footer-text);
    font-family: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.rys-footer *,
.rys-footer *::before,
.rys-footer *::after { box-sizing: border-box; }

.rys-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

.rys-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-bottom: 48px;
}

/* ---------- Marca ---------- */
.rys-footer .rys-footer__logo {
    display: inline-block;
    line-height: 0;
    color: var(--rys-footer-text);
    text-decoration: none;
}

.rys-footer .rys-footer__logo-img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
}

.rys-footer .rys-footer__tagline {
    margin: 16px 0 24px;
    max-width: 320px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--rys-footer-muted);
}

.rys-footer .rys-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rys-footer .rys-footer__social li { margin: 0; }

.rys-footer .rys-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--rys-footer-text);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rys-footer .rys-footer__social-link--text {
    width: auto;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 13px;
}

.rys-footer .rys-footer__social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.rys-footer .rys-footer__social-link i { font-size: 18px; line-height: 1; }

.rys-footer .rys-footer__social-link:hover,
.rys-footer .rys-footer__social-link:focus-visible {
    background: var(--rys-footer-text);
    color: var(--rys-footer-bg);
    transform: translateY(-2px);
}

/* ---------- Columnas de enlaces ---------- */
.rys-footer .rys-footer__title {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rys-footer-text);
}

.rys-footer .rys-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rys-footer .rys-footer__links li { margin: 0 0 12px; }
.rys-footer .rys-footer__links li:last-child { margin-bottom: 0; }

.rys-footer .rys-footer__links a,
.rys-footer .rys-footer__credit a {
    color: var(--rys-footer-muted);
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rys-footer .rys-footer__links a:hover,
.rys-footer .rys-footer__links a:focus-visible,
.rys-footer .rys-footer__credit a:hover,
.rys-footer .rys-footer__credit a:focus-visible { color: var(--rys-footer-hover); }

.rys-footer a:focus-visible {
    outline: 2px solid var(--rys-footer-hover);
    outline-offset: 3px;
}

/* ---------- Barra inferior ---------- */
.rys-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 20px 0 24px;
    border-top: 1px solid var(--rys-footer-line);
}

.rys-footer .rys-footer__copy,
.rys-footer .rys-footer__credit {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rys-footer-muted);
}

.rys-footer .rys-footer__credit a { font-size: inherit; color: var(--rys-footer-text); }

.rys-footer .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .rys-footer__inner { padding-top: 48px; }
    .rys-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

/* Móvil: marca arriba; navegación e información debajo, lado a lado. */
@media (max-width: 767px) {
    .rys-footer__inner { padding: 40px 20px 0; }
    .rys-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-bottom: 32px; }
    .rys-footer__brand { grid-column: 1 / -1; text-align: center; }
    .rys-footer .rys-footer__tagline { margin-left: auto; margin-right: auto; }
    .rys-footer .rys-footer__social { justify-content: center; }
    .rys-footer__bottom { flex-direction: column; justify-content: center; text-align: center; }
}

@media (max-width: 359px) {
    .rys-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .rys-footer .rys-footer__social-link,
    .rys-footer .rys-footer__links a { transition: none; }
}
