/* ==========================================================================
   TANK IBÉRICA — CSS de "Últimas noticias" + Footer
   --------------------------------------------------------------------------
   Destino: wp-content/themes/[child]/assets/css/tank-news-footer.css
   Carga global (todas las páginas tienen footer; news block solo en home).
   ========================================================================== */


/* === VARIABLES === */
:root {
    --tank-bg: #ffffff;
    --tank-bg-soft: #F1EFE8;
    --tank-text: #1a1a1a;
    --tank-text-soft: #5F5E5A;
    --tank-text-mute: #888780;
    --tank-border: rgba(0, 0, 0, 0.1);
    --tank-accent: #BA7517;
    --tank-accent-bright: #EF9F27;
    --tank-footer-dark: #0F2D31;
    --tank-footer-darker: #0A1F22;
    --tank-footer-darkest: #051518;
}


/* ==========================================================================
   BLOQUE "ÚLTIMAS NOTICIAS"
   ========================================================================== */

.tank-news-section {
    background: var(--tank-bg-soft);
    padding: 64px 32px 80px;
}

.tank-news-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.tank-news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}

.tank-news-header-left {
    flex: 1;
    min-width: 280px;
}

.tank-news-eyebrow {
    color: var(--tank-accent);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 8px;
    font-weight: 500;
}

.tank-news-h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
    color: var(--tank-text);
}

.tank-news-h2 strong { font-weight: 600; }

.tank-news-tagline {
    font-size: 13px;
    color: var(--tank-text-soft);
    margin: 8px 0 0;
    max-width: 480px;
}

.tank-news-link {
    font-size: 13px;
    color: var(--tank-text);
    text-decoration: none;
    font-weight: 500;
    padding: 11px 18px;
    background: #fff;
    border: 0.5px solid var(--tank-border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.tank-news-link:hover {
    background: var(--tank-bg);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--tank-text);
}

.tank-news-link svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.tank-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tank-news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tank-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.tank-news-img {
    height: 180px;
    background-color: var(--tank-bg-soft);
    background-size: cover;
    background-position: center;
    position: relative;
}

.tank-news-cat-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--tank-text);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tank-news-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tank-news-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 12px;
    color: var(--tank-text);
    flex: 1;
}

.tank-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 0.5px solid var(--tank-border);
}

.tank-news-date {
    font-size: 11px;
    color: var(--tank-text-mute);
}

.tank-news-readtime {
    font-size: 11px;
    color: var(--tank-text-mute);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tank-news-readtime svg {
    width: 10px;
    height: 10px;
}


/* ==========================================================================
   FOOTER — CAPA 1: STRIP DE CONTACTO
   ========================================================================== */

.tank-footer {
    margin-top: 0;
    width: 100%;
    clear: both;
}

.tank-footer-contact {
    background: var(--tank-footer-darker);
    padding: 24px 32px;
}

.tank-footer-contact-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 32px;
}

.tank-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.tank-footer-contact-item:hover {
    opacity: 0.85;
}

.tank-footer-contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tank-accent-bright);
    flex-shrink: 0;
}

.tank-footer-contact-icon svg {
    width: 14px;
    height: 14px;
}

.tank-footer-contact-text {
    font-size: 13px;
    line-height: 1.4;
}

.tank-footer-contact-label {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.tank-footer-contact-value {
    color: #fff;
    font-weight: 500;
}


/* ==========================================================================
   FOOTER — CAPA 2: CUERPO PRINCIPAL
   ========================================================================== */

.tank-footer-main {
    background: var(--tank-footer-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 32px 36px;
}

.tank-footer-main-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.tank-footer-cols {
    display: flex;
    justify-content: space-around;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 28px;
}

.tank-footer-col {
    flex: 0 1 180px;
}

.tank-footer-col-eyebrow {
    font-size: 10px;
    color: var(--tank-accent-bright);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 4px;
    font-weight: 500;
}

.tank-footer-col-h {
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    margin: 0 0 22px;
    letter-spacing: -0.005em;
}

.tank-footer-col-h strong { font-weight: 600; }

.tank-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tank-footer-col li {
    padding: 10px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.tank-footer-col li:last-child { border-bottom: none; }

.tank-footer-col a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tank-footer-col a:hover { color: #fff; }

.tank-footer-col a::after {
    content: "→";
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
    opacity: 0;
    transform: translateX(-4px);
}

.tank-footer-col a:hover::after {
    color: var(--tank-accent-bright);
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================================
   FOOTER — LÍNEA INFERIOR (legal + redes)
   ========================================================================== */

.tank-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tank-footer-copy-legal {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.tank-footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.tank-footer-legal {
    display: flex;
    gap: 14px;
}

.tank-footer-legal a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}

.tank-footer-legal a:hover { color: #fff; }

.tank-footer-social {
    display: flex;
    gap: 8px;
}

.tank-footer-social-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #fff;
    transition: all 0.15s ease;
    cursor: pointer;
}

.tank-footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--tank-accent-bright);
}

.tank-footer-social-btn svg {
    width: 14px;
    height: 14px;
}


/* ==========================================================================
   FOOTER — CAPA 3: BANDA KIT DIGITAL
   ========================================================================== */

.tank-footer-kitdigital {
    background: var(--tank-footer-darkest);
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tank-footer-kitdigital-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tank-footer-kitdigital-img {
    width: auto;
    max-width: 100%;
    max-height: 60px;
    height: auto;
    display: block;
}


/* ==========================================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {

    .tank-news-section {
        padding: 48px 24px 60px;
    }

    .tank-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .tank-footer-cols {
        gap: 48px;
    }

}


/* ==========================================================================
   RESPONSIVE — MÓVIL (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* Bloque noticias */
    .tank-news-section {
        padding: 36px 16px 48px;
    }

    .tank-news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tank-news-h2 { font-size: 22px; }

    .tank-news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tank-news-img { height: 160px; }


    /* === FOOTER móvil === */

    /* Strip contacto: solo iconos centrados */
    .tank-footer-contact {
        padding: 18px 16px;
    }

    .tank-footer-contact-wrap {
        gap: 0;
        justify-content: space-around;
    }

    .tank-footer-contact-text {
        display: none; /* ocultar todo el texto, solo iconos */
    }

    .tank-footer-contact-icon {
        width: 48px;
        height: 48px;
    }

    .tank-footer-contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .tank-footer-contact-item {
        gap: 0;
    }

    /* Cuerpo principal: columnas apiladas */
    .tank-footer-main {
        padding: 40px 20px 28px;
    }

    .tank-footer-cols {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 28px;
    }

    .tank-footer-col-h {
        font-size: 16px;
        margin: 0 0 14px;
    }

    /* Línea inferior: en columna */
    .tank-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tank-footer-copy-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        order: 2; /* legal abajo en móvil */
    }

    .tank-footer-legal {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tank-footer-social {
        order: 1; /* redes arriba en móvil */
    }

    /* Kit digital */
    .tank-footer-kitdigital {
        padding: 18px 16px;
    }

}


/* ==========================================================================
   RESPONSIVE — MÓVIL PEQUEÑO (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {

    .tank-footer-contact-icon {
        width: 44px;
        height: 44px;
    }

    .tank-news-h2 { font-size: 20px; }

    .tank-news-link {
        width: 100%;
        justify-content: center;
    }
}
