/**
 * Footer V2 - GSF Hotels
 * =============================================================================
 * Footer corporativo unificado para todo el sitio (home, hoteles, inversionistas).
 * Namespace: .tr-footer-v2 (no entra en conflicto con CSS legacy del footer).
 *
 * Design tokens:
 *   - Slate base: #2F3A48 (más oscuro que el header para profundidad visual)
 *   - Accent: #A0C4DA
 *   - Tipografía: Red Hat Display (400, 600)
 *
 * Author:   Templates Rocket
 * =============================================================================
 */

.tr-footer-v2 {
    --ftr-bg:           #2F3A48;
    --ftr-bg-deep:      #232C37;
    --ftr-accent:       #A0C4DA;
    --ftr-text:         #FFFFFF;
    --ftr-text-soft:    rgba(255, 255, 255, 0.78);
    --ftr-text-dim:     rgba(255, 255, 255, 0.55);
    --ftr-text-faint:   rgba(255, 255, 255, 0.38);
    --ftr-border:       rgba(255, 255, 255, 0.10);
    --ftr-border-soft:  rgba(255, 255, 255, 0.06);

    background: var(--ftr-bg);
    color: var(--ftr-text-soft);
    font-family: 'Red Hat Display', -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    padding: 64px 0 0;
    margin-top: 0;
}

/* ============================================================================
   RESET / OVERRIDE de CSS legacy del footer original
   ============================================================================ */
footer.tr-footer-v2 {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    z-index: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 28px !important;
}

.tr-footer-v2 .row,
.tr-footer-v2 .container,
.tr-footer-v2 .container-fluid {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.tr-footer-v2 [class*="col-"] {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tr-footer-v2__grid {
    display: grid !important;
}

.tr-footer-v2 ul {
    list-style: none !important;
}



/* =====================  CONTAINER  ===================== */
.tr-footer-v2__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* =====================  GRID 4 COLUMNAS  ===================== */
.tr-footer-v2__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--ftr-border);
}

@media (max-width: 1024px) {
    .tr-footer-v2__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .tr-footer-v2__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 40px;
    }
    .tr-footer-v2 {
        padding: 48px 0 0;
        padding-bottom: 28px !important;
    }
    .tr-footer-v2__inner {
        padding: 0 20px;
    }
}

/* =====================  COLUMNAS  ===================== */
.tr-footer-v2__col h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ftr-text);
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

.tr-footer-v2__col p {
    font-size: 16px;
    color: var(--ftr-text-soft);
    margin: 0;
    line-height: 1.65;
}

.tr-footer-v2__col a {
    color: var(--ftr-text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tr-footer-v2__col a:hover {
    color: var(--ftr-accent);
}

/* =====================  CONTACTO (TEL + EMAIL)  ===================== */
.tr-footer-v2__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-footer-v2__contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ftr-text);
}

.tr-footer-v2__contact a:hover {
    color: var(--ftr-accent);
}

.tr-footer-v2__contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--ftr-accent);
}

/* =====================  LISTA CORPORATIVO  ===================== */
.tr-footer-v2__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tr-footer-v2__list li {
    margin: 0;
    padding: 0;
}

.tr-footer-v2__list a {
    font-size: 16px;
    line-height: 1.5;
    display: inline-block;
    position: relative;
    transition: transform 0.2s ease, color 0.2s ease;
    will-change: transform;
}

.tr-footer-v2__list a:hover {
    transform: translateX(4px);
    color: var(--ftr-accent);
}

/* =====================  NEWSLETTER  ===================== */
.tr-footer-v2__newsletter p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ftr-text-dim);
}

.tr-footer-v2__newsletter strong {
    color: var(--ftr-text);
    font-weight: 600;
}

.tr-footer-v2__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tr-footer-v2__input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ftr-border);
    border-radius: 10px;
    color: var(--ftr-text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.tr-footer-v2__input::placeholder {
    color: var(--ftr-text-faint);
}

.tr-footer-v2__input:focus {
    border-color: var(--ftr-accent);
    background: rgba(255, 255, 255, 0.10);
}

.tr-footer-v2__btn {
    height: 48px;
    padding: 0 20px;
    background: var(--ftr-accent);
    border: none;
    border-radius: 10px;
    color: #1A2230;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.tr-footer-v2__btn:hover {
    background: #B8D4E5;
}

.tr-footer-v2__btn:active {
    transform: scale(0.98);
}

/* Honeypot anti-bot */
.tr-footer-v2__honeypot {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =====================  BARRA INFERIOR  ===================== */
.tr-footer-v2__bottom {
    padding: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}



.tr-footer-v2__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.tr-footer-v2__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ftr-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ftr-text-soft);
    font-size: 15px;
    transition: all 0.2s ease;
}

.tr-footer-v2__social a:hover {
    background: var(--ftr-accent);
    color: var(--ftr-bg-deep);
    border-color: var(--ftr-accent);
    transform: translateY(-2px);
}

.tr-footer-v2__copy {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.tr-footer-v2__copy p {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--ftr-text-soft);
    line-height: 1.6;
}

.tr-footer-v2__copy p:first-child {
    color: var(--ftr-text);
    font-weight: 500;
    font-size: 16px;
}

.tr-footer-v2__brands {
    font-size: 16px !important;
    color: var(--ftr-text-soft) !important;
    line-height: 1.65 !important;
}

.tr-footer-v2__seal {
    margin-top: 16px;
}

.tr-footer-v2__seal img,
.tr-footer-v2__seal iframe,
#siteseal img,
#siteseal iframe {
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
}
#siteseal,
#siteseal a {
    display: inline-block !important;
    transform: none !important;
}


/* ============================================================================
   Eliminar espacio inferior después del footer
   ============================================================================ */
.tr-footer-v2 ~ * {
    /* Cualquier elemento después del footer no debe afectar el layout visual */
}

body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

html {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#toTop {
    /* No reservar espacio si es invisible */
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    margin: 0 !important;
}


/* ============================================================================
   Force kill any space after footer
   ============================================================================ */
.tr-footer-v2 + *,
.tr-footer-v2 ~ *:not(.gsf-cc-banner):not(.gsf-cc-modal):not(#chatLauncher):not(.search-overlay-menu):not(#toTop) {
    margin: 0 !important;
    padding: 0 !important;
}

/* Cookie consent banner: que sea position fixed al fondo cuando se muestre */
.gsf-cc-banner,
.gsf-cc-modal {
    position: fixed !important;
}

/* Si el body tiene padding-bottom legacy lo mato */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* No permitir que ningún elemento al final de body cree espacio */
body > *:last-child {
    margin-bottom: 0 !important;
}
