
/* =========================
   FOOTER NUEVO — versión crema con borde rojo
========================= */

/* Fix franja blanca debajo del footer en iPhone Safari (barra de URL inferior).
   Evita que se vea el fondo blanco del html cuando la página es corta o el
   navegador muestra/oculta su URL bar. */
html {
    background-color: #f1efe8 !important;
}

/* Selectores explícitos + !important para ganar sobre la regla en main.css
   línea 5332 que en mobile fuerza body.single, body.page { background-color: white }
   y rompía el fondo crema en germinando, glosario, nosotras y otras páginas
   que usan page-template o son single posts. También cubre body.archive,
   body.category y body.search por consistencia. */
body,
body.single,
body.page,
body.search,
body.archive,
body.category {
    background-color: #f1efe8 !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex !important;
    flex-direction: column !important;
}

.germina-footer {
    margin-top: auto;
}

.germina-footer {
    background: #f1efe8;          /* crema */
    border-top: 4px solid #b8353f; /* hilo rojo de marca */
    padding: 30px 0 20px 0;
    color: #2c2c2a;               /* texto principal oscuro */
    width: 100%;
}

.germina-footer > .container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Barrita sutil de créditos al final del footer */
.germina-footer__credits {
    padding: 10px 0 0;
    border-top: 1px solid rgba(184, 53, 63, 0.15);
}

.germina-footer__credits .container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.germina-footer__credits p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #8a807a;
    text-align: center;
    letter-spacing: 0.02em;
}

/* IMPORTANT: usamos !important porque más abajo en este mismo archivo hay
   una regla `.germina-footer a { color: #2c2c2a; }` que pinta TODOS los
   links del footer en oscuro. Sin !important ese selector gana por orden
   (aunque tenga menor especificidad por cascada o caché del navegador). */
.germina-footer__credits a {
    color: #b8353f !important;       /* rojo de marca */
    font-weight: 700;
    text-decoration: none !important;
}

.germina-footer__credits a:hover,
.germina-footer__credits a:focus {
    color: #8a232d !important;       /* rojo más oscuro al hacer hover */
    text-decoration: underline !important;
}

.germina-footer__credits span {
    margin: 0 6px;
    color: #c5b9b0;
}

/* Separador entre la línea del copyright y la línea de "Desarrollado por" */
.germina-footer__credits-sep {
    color: #c5b9b0;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-block h4 {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f5e5a;               /* gris medio para títulos */
    margin: 0 0 14px;
}

/* Logo: sin fondo blanco, va directo sobre el crema */
.footer-block.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-logo-link {
    display: inline-block;
    margin: 0 0 22px -10px;   /* el -10px compensa el aire interno del SVG */
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.logofooter {
    max-width: 180px;
    height: auto;
    display: block;
    margin-top: -2px;
}
.footer-license {
    width: 180px;          /* mismo ancho que el logo */
    margin-left: -10px;    /* mismo offset que el logo */
    text-align: center;    /* centra h4, link e imagen */
}

.footer-license img {
    display: block;
    margin: 0 auto;        /* asegura que la imagen quede centrada */
    max-width: 120px;
    height: auto;
}
.footer-license h4 {
    margin: 0 0 10px 0;
    text-align: center;
}
.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-license a {
    display: inline-block;
    margin: 0;
    padding: 0;
}


.footer-menu-list li {
    margin-bottom: 10px;
}

/* Enlaces oscuros, hover en rojo de marca */
.footer-menu-list a,
.footer-contact-item a,
.germina-footer a {
    color: #2c2c2a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu-list a:hover,
.footer-contact-item a:hover,
.germina-footer a:hover {
    color: #b8353f;
    opacity: 1;
    text-decoration: none;
}

.footer-contact-item {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #2c2c2a;
}

/* Redes sociales: círculos rellenos rojos con ícono blanco */
.footer-socials {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-socials .address-button {
    display: inline-block;
    margin: 0;
}

.footer-socials .address-button a,
.footer-socials a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1.5px solid #b8353f;
    border-radius: 50%;
    background: #b8353f;
    color: #fff;
    box-shadow: none;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-socials .address-button a:hover,
.footer-socials .address-button a:focus,
.footer-socials a:hover,
.footer-socials a:focus {
    background: transparent;
    color: #b8353f;
    border-color: #b8353f;
    text-decoration: none;
    opacity: 1;
}

.footer-socials .address-button a i,
.footer-socials i {
    font-size: 16px;
    line-height: 1;
    display: block;
}

.footer-socials .address-button a .fa-fw {
    width: auto;
}

.goback i,
.goback:before,
.goback:after {
    pointer-events: none;
}
/* Usamos `a.goback` (no solo `.goback`) y !important en color/background
   porque main.css línea 6467 tiene `a.goback { color: #000; background: gris; }`
   con la misma especificidad y carga antes — sin esto, en mobile se veía
   negro/gris en vez del rojo del diseño. */
a.goback,
.goback {
    position: fixed !important;
    right: 20px;
    bottom: 20px;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* Diseño inspirado en el punto central del separador de "Qué es Germina":
       fondo rojo de marca + anillo blanco interno + halo rojo translúcido */
    background-color: #c13946 !important;
    border: 3px solid #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 0 0 2px rgba(193, 57, 70, 0.45),
                0 6px 18px rgba(0, 0, 0, 0.18);
    color: #fff !important;
    z-index: 9999;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.goback:hover,
a.goback:focus,
.goback:hover,
.goback:focus {
    background-color: #8a232d !important;
    box-shadow: 0 0 0 3px rgba(138, 35, 45, 0.5),
                0 8px 22px rgba(0, 0, 0, 0.22);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

a.goback i,
.goback i {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1;
}

.goback i,
.goback:before,
.goback:after {
    pointer-events: none;
}

@media screen and (min-width: 769px) and (max-width: 991px) {
    .goback {
        right: 24px;
        bottom: 24px;
    }
    .footer-main > .col-md-4:nth-child(3) {
        width: 25%;
    }
    .footer-main > .col-md-4 {
        width: 25%;
        float: none;
    }
}

@media screen and (min-width: 992px) {

    .goback {
        right: 32px;
        bottom: 32px;
    }

    /* Hacemos invisibles los wrappers col-md-4 a nivel de layout.
       Los .footer-block pasan a ser hijos directos del flex. */
    .germina-footer .footer-main > div[class*="col-"] {
        display: contents;
    }

    /* Flex sobre los .footer-block con space-between */
    .germina-footer .footer-main {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
        flex-wrap: nowrap;
    }
}
@media screen and (max-width: 991px) {
    .footer-block.footer-brand {
        align-items: center;
    }
}