/**
 * Footer RESCOP - Nuevo Diseño 2024
 * Fondo negro (#222222), layout de posicionamiento absoluto
 */

/* === CONTENEDOR PRINCIPAL === */
.rescop-footer {
    width: 100%;
    min-height: 400px;
    background: #222222;
    position: relative;
    margin-top: auto;
    padding: 0 0 2rem 0; /* Añadir padding-bottom de 2rem */
    overflow: hidden;
}

/* === CONTENEDOR INTERNO CON POSICIONAMIENTO === */
.rescop-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    height: 400px;
    min-height: 400px;
        padding: 0 2rem;
    box-sizing: border-box;
    /* Opcional: también puedes añadir margen inferior aquí */
    margin-bottom: 1rem;
}

/* === CONTENEDOR WRAPPER PARA CENTRAR TODO === */
.rescop-footer-content-wrapper {
        position: relative;
    width: 1200px; /* Ancho del contenido real */
    height: 400px;
}

/* === LOGO PRINCIPAL - CON MARGEN === */
.rescop-footer-logo {
    position: absolute;
    left: 2rem; /* Margen izquierdo */
    top: 73px;
    width: 227px;
    height: 228px;
}
.rescop-footer-logo img {
    width: 227px !important;
    height: 228px !important;
    object-fit: contain;
    display: block;
}

/* === COLUMNAS DE NAVEGACIÓN === */
.rescop-footer-columns {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
}

/* === COLUMNAS DE NAVEGACIÓN - AJUSTAR PARA EL PADDING === */
.rescop-footer-column-left {
    position: absolute;
    left: 439px;
    top: 0;
    width: 207px;
}

.rescop-footer-column-left .rescop-footer-menu-list {
    color: white;
    font-size: 14px;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    line-height: 22px;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rescop-footer-column-left .rescop-footer-menu-list li {
    margin-bottom: 6px;
    font-size: 14px !important;
}

.rescop-footer-column-left .rescop-footer-menu-list a {
    color: white !important;
    font-size: 14px !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.rescop-footer-column-left .rescop-footer-menu-list a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.rescop-footer-column-right {
    position: absolute;
    left: 705px;
    top: 0;
    width: 207px;
}

.rescop-footer-column-right .rescop-footer-menu-list {
    color: white;
    font-size: 14px;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    line-height: 22px;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rescop-footer-column-right .rescop-footer-menu-list li {
    margin-bottom: 6px;
    font-size: 14px !important;
}

.rescop-footer-column-right .rescop-footer-menu-list a {
    color: white !important;
    font-size: 14px !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.rescop-footer-column-right .rescop-footer-menu-list a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* === NAVEGACIÓN HORIZONTAL (ENLACES SUPERIORES) === */
.rescop-footer-top-nav {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
}

/* Items individuales de navegación superior */
.rescop-footer-nav-item {
    position: absolute;
    color: #222222;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 24px;
    word-wrap: break-word;
    width: 173px;
    height: 24px;
}

/* === NAVEGACIÓN HORIZONTAL - AJUSTAR PARA MÁRGENES === */
.rescop-footer-nav-item[data-position="0"] {
    left: 112px; /* 80px + 32px de ajuste */
    text-align: left;
}

.rescop-footer-nav-item[data-position="1"] {
    left: 255px; /* 223px + 32px */
    text-align: left;
}

.rescop-footer-nav-item[data-position="2"] {
    left: 396px; /* 364px + 32px */
    text-align: left;
}

.rescop-footer-nav-item[data-position="3"] {
    left: 729px; /* Ajustado para quedar dentro */
    text-align: right;
}

.rescop-footer-nav-item[data-position="4"] {
    left: 872px; /* Ajustado para quedar dentro */
    text-align: right;
}

.rescop-footer-nav-item[data-position="5"] {
    left: 1013px; /* Ajustado para quedar dentro */
    text-align: right;
}

/* === BOTÓN DE SUSCRIPCIÓN - DENTRO DEL CONTENEDOR === */
.rescop-footer-newsletter {
    position: absolute;
    right: 2rem; /* Margen derecho igual al izquierdo */
    top: 73px;
    width: 243px;
    height: 41px;
}

.rescop-footer-newsletter-btn {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #BE252D 0%, #BE252D 100%), #ED2E38;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.rescop-footer-newsletter-btn:hover {
    transform: translateY(-1px);
}

.rescop-footer-newsletter-text {
    color: white;
    font-size: 16px;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.80px;
    text-align: center;
}

/* === ICONOS SOCIALES - DENTRO DEL CONTENEDOR === */
.rescop-footer-social {
    position: absolute;
    top: 144px;
    right: 2rem; /* Margen derecho igual al izquierdo */
    display: flex;
    gap: 11px;
}

.rescop-social-icon {
    width: 40.66px;
    height: 40.66px; /* Mismo ancho y alto para círculo perfecto */
    background: #E5E5E5;
    border: 1px rgba(0, 0, 0, 0.30) solid;
    border-radius: 50%; /* Círculo completo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rescop-social-icon:hover {
    background: white;
    border-color: rgba(0, 0, 0, 0.50);
    transform: translateY(-2px);
}

.rescop-social-icon svg {
    width: 20px;
    height: 20px;
    color: rgba(0, 0, 0, 0.70);
}

.rescop-social-icon:hover svg {
    color: #BE252D;
}

/* === TEXTO DE LICENCIA - AJUSTAR PARA MÁRGENES === */
.rescop-footer-license {
    position: absolute;
    left: 385px;
    top: 231px;
    width: calc(100% - 385px - 2rem); /* Ancho dinámico con margen derecho */
    color: white;
    font-size: 12px;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    line-height: 22px;
    word-wrap: break-word;
    text-align: justify;
}

/* === CRÉDITOS - AJUSTAR PARA MÁRGENES === */
.rescop-footer-credits {
    position: absolute;
    left: 385px;
    top: 320px;
    margin-top: 4rem;
    width: calc(100% - 385px - 2rem); /* Ancho dinámico con margen derecho */
    color: white;
    font-size: 11px;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    line-height: 22px;
    text-align: right;
}

.rescop-footer-credits a {
    color: white;
    text-decoration: none;
}

.rescop-footer-credits a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */

/* Tablets y pantallas medianas */
@media (max-width: 1280px) {
    .rescop-footer-inner {
        max-width: 100%;
        padding: 0 2rem;
        transform: scale(0.9);
        transform-origin: top left;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .rescop-footer {
        min-height: 600px;
    }
    
    .rescop-footer-inner {
        height: auto;
        min-height: 600px;
        transform: none;
        padding: 2rem;
    }
    
    /* Reorganizar para tablet - layout vertical */
    .rescop-footer-logo {
        position: relative;
        left: auto;
        top: auto;
        width: 150px;
        height: 150px;
        margin: 0 auto 2rem;
        display: block;
        text-align: center;
    }
    
    .rescop-footer-logo img {
        width: 150px !important;
        height: 150px !important;
    }
    
    .rescop-footer-columns,
    .rescop-footer-top-nav,
    .rescop-footer-newsletter,
    .rescop-footer-social,
    .rescop-footer-license,
    .rescop-footer-credits {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        margin-bottom: 2rem;
    }
    
    .rescop-footer-column-left,
    .rescop-footer-column-right {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .rescop-footer-nav-item {
        position: relative;
        left: auto !important;
        width: 100%;
        text-align: center !important;
        margin-bottom: 1rem;
        display: block;
    }
    
    .rescop-footer-social {
        justify-content: center;
        gap: 1rem;
    }
    
    .rescop-footer-newsletter {
        max-width: 300px;
        margin: 0 auto 2rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .rescop-footer {
        min-height: 500px;
    }
    
    .rescop-footer-inner {
        min-height: 500px;
        padding: 1rem;
    }
    
    .rescop-footer-logo {
        width: 120px;
        height: 120px;
    }
    
    .rescop-footer-logo img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .rescop-footer-newsletter {
        width: 100%;
        max-width: 280px;
    }
    
    .rescop-footer-newsletter-text {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: 0.4px;
    }
    
    .rescop-footer-license {
        font-size: 11px;
        line-height: 18px;
        text-align: left;
    }
    
    .rescop-footer-credits {
        font-size: 10px;
        line-height: 18px;
    }
}

/* === SOBREESCRIBIR ESTILOS DEL TEMA PADRE === */
.rescop-footer * {
    box-sizing: border-box;
}

.rescop-footer h1,
.rescop-footer h2,
.rescop-footer h3,
.rescop-footer h4,
.rescop-footer h5,
.rescop-footer h6 {
    margin: 0 !important;
    padding: 0 !important;
}

.rescop-footer ul {
    margin: 0 !important;
    padding: 0 !important;
}

.rescop-footer li {
    list-style: none !important;
}

/* === FORZAR TAMAÑO DE FUENTE IGUAL EN AMBAS COLUMNAS === */
.rescop-footer-column-left .rescop-footer-menu-list,
.rescop-footer-column-left .rescop-footer-menu-list li,
.rescop-footer-column-left .rescop-footer-menu-list a,
.rescop-footer-column-right .rescop-footer-menu-list,
.rescop-footer-column-right .rescop-footer-menu-list li,
.rescop-footer-column-right .rescop-footer-menu-list a {
    font-size: 14px !important;
    font-family: 'Merriweather', serif !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    color: white !important;
}

/* === ASEGURAR QUE NO HAY INTERFERENCIA DE REFINEMENT-GLOBAL === */
.rescop-footer li,
.rescop-footer .rescop-footer-menu-list li {
    font-size: 14px !important;
    font-family: 'Merriweather', serif !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
}

