/*
 Theme Name:   INFOPICO 2026
 Theme URI:    https://www.infopico.com
 Description: Plantilla para InfoPico creado por Matías Oporto
 Author: Matías Oporto
 Author URI: https://www.infopico.com
 Template:     understrap
 Version:      2.0.8
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         news
 Text Domain:  understrapchild
*/

/* --- DISEÑO INFOPICO 2025 --- */
:root {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --color-brand: #009640;
    --color-police: #dc2626;
    --color-sports: #2563eb;
    --color-field: #d97706;
    --radius-lg: 16px;
    --header-height: 70px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    /* padding-bottom: 140px; Removed to fix extra space */
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    /* Moved here to prevent mobile scroll */
}

body.menu-open {
    overflow: hidden;
}

.ip-wrapper * {
    box-sizing: border-box;
}

.ip-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}



.ip-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.ip-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

.ip-flex-center {
    display: flex;
    align-items: center;
}

.ip-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-grid-span-2 {
    grid-column: span 2;
}

.ip-grid-row-2 {
    grid-row: span 2;
}

.text-white {
    color: white !important;
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.ip-text-hero {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.ip-text-vertical {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ip-text-card {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ip-text-list-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ip-text-meta {
    font-size: 0.75rem;
    color: #999;
}

.ip-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.ip-header-content {
    width: 100%;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.ip-nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ip-nav-links li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.ip-nav-links li a:hover {
    color: var(--color-brand);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: -1;
    pointer-events: none;
    overflow-y: auto;
    padding-bottom: 80px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mobile-menu-overlay.is-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 2000;
    pointer-events: auto;
    display: flex !important;
}

.mobile-menu-header {
    margin-bottom: 40px;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
    color: var(--text-main);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.ip-ad-container {
    margin: 30px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.ip-ad-label {
    font-size: 0.65rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
    text-align: center;
}

.ip-widget-container {
    max-width: 100%;
    margin-bottom: 20px;
}

.ip-widget-container img {
    max-width: 100%;
    height: auto;
}

.ip-bento-section {
    margin-top: 20px;
}

.ip-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    grid-auto-flow: dense;
}

.ip-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.ip-card:hover img,
.ip-module-card:hover img {
    transform: scale(1.05);
}

/* Farmacias de Turno Styles */
.ip-farmacias-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.ip-farmacias-wrapper table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-collapse: collapse;
}

.ip-farmacias-wrapper table th,
.ip-farmacias-wrapper table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.ip-farmacias-wrapper table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.ip-farmacias-wrapper table tr:last-child td {
    border-bottom: none;
}

.ip-farmacias-wrapper h2,
.ip-farmacias-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Responsive adjustments for tables if needed */
@media (max-width: 768px) {
    .ip-farmacias-wrapper {
        padding: 15px;
    }

    .ip-farmacias-wrapper table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.ip-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.ip-tag.default {
    color: var(--color-brand);
    border-left: 3px solid var(--color-brand);
}

.ip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 75%);
    z-index: 5;
    pointer-events: none;
}

.ip-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 10;
    color: white;
}

.ip-card-std .img-wrap {
    height: 180px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ip-card-std .content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.ip-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: 0.2s;
}

.ip-audio-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ip-card:hover .ip-video-icon,
.ip-list-item:hover .ip-video-icon,
.ip-module-card:hover .ip-video-icon {
    background: var(--color-police);
    border-color: transparent;
    transform: translate(-50%, -50%) scale(1.1);
}

.layout-urgent .ip-card-urgent {
    grid-column: span 4;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.layout-urgent .ip-card-urgent h1 {
    color: white;
    font-size: 2.8rem;
    margin: 0;
    padding: 20px;
    line-height: 1.1;
}

.layout-urgent .ip-card-urgent .urgent-label {
    background: white;
    color: black;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.layout-urgent_photo .ip-card-urgent-photo {
    grid-column: span 4;
    height: 400px;
    position: relative;
}

.layout-urgent_photo .ip-card-urgent-photo .ip-overlay {
    opacity: 0.9;
}

.layout-urgent_photo .ip-card-urgent-photo h1 {
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.layout-visual .ip-hero-poster {
    grid-column: span 4;
    height: 500px;
}

.layout-visual .ip-hero-poster h1 {
    font-size: 3.5rem;
    max-width: 90%;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ip-service-widget {
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--color-brand);
}

.weather-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: inherit !important;
}

.weather-mini:hover {
    color: inherit !important;
    text-decoration: none !important;
    opacity: 0.9;
}

.weather-mini .temp {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.weather-mini .city {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: 2px;
}

.dolar-mini {
    text-align: right;
}

.dolar-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.dolar-val {
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    color: #4ade80;
}

.service-grid {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex-grow: 1;
    align-content: center;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    background: #f9fafb;
    transition: 0.2s;
    border: 1px solid transparent;
    height: 100%;
    min-height: 65px;
}

.service-btn:hover {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.service-icon {
    margin-bottom: 5px;
}

.service-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #444;
    line-height: 1.1;
}

.ip-module {
    margin: 60px 0;
}

.ip-module-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 30px;
    align-items: flex-end;
}

.ip-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ip-module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ip-module-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ip-module-card .img-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ip-module-card .content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ip-module-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ip-news-list {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.ip-list-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: 0.3s;
}

.ip-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ip-list-thumb {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    position: relative;
}

.widget-ad {
    margin-bottom: 30px;
    background: #f9f9f9;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.widget-sticky {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #eee;
    position: sticky;
    top: 90px;
}

.widget-title {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-view-more {
    background: white;
    border: 1px solid #ddd;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    color: #111;
    font-size: 1rem;
    transition: 0.2s;
    display: inline-block;
}

.btn-view-more:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    padding: 10px;
    cursor: pointer;
}

.radio-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: #111;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-brand);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: 0.2s;
}

.mobile-only {
    display: none;
}

/* Mobile Menu WP Support */
.ip-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ip-mobile-menu li {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.ip-mobile-menu li:last-child {
    border-bottom: none;
}

.ip-mobile-menu li a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

@media (max-width: 1024px) {
    .ip-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ip-grid-span-2 {
        grid-column: span 2;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .layout-urgent .ip-card-urgent {
        grid-column: span 2;
    }

    .layout-urgent .ip-card-urgent h1 {
        font-size: 1.8rem;
    }

    .layout-visual .ip-hero-poster {
        height: 300px;
        grid-column: span 2;
    }

    .layout-visual .ip-hero-poster h1 {
        font-size: 2rem;
    }

    .layout-urgent_photo .ip-card-urgent-photo {
        height: 300px;
        grid-column: span 2;
    }

    .layout-urgent_photo .ip-card-urgent-photo h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .ip-bento-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .ip-grid-row-2 {
        height: auto !important;
        display: flex;
        flex-direction: column;
    }

    .ip-grid-row-2>a {
        height: 230px !important;
        flex-shrink: 0;
        width: 100% !important;
        position: relative !important;
    }

    .ip-grid-row-2 .ip-overlay {
        display: none !important;
    }

    .ip-grid-row-2 .ip-content-overlay {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        padding: 15px 15px 25px 15px !important;
        background: var(--bg-card) !important;
        color: var(--text-main) !important;
        flex-grow: 1;
    }

    .ip-grid-row-2 .ip-text-hero a.text-white,
    .ip-grid-row-2 .ip-text-vertical a.text-white {
        color: var(--text-main) !important;
    }

    /* Mobile Landscape Featured Adjustments */
    .ip-grid-row-2.is-landscape>a {
        height: 230px !important;
    }

    .ip-grid-row-2.is-landscape .ip-content-overlay {
        background: var(--bg-card) !important;
    }

    /* Mobile Portrait Featured Adjustments - Keep Overlay */
    .ip-grid-row-2.is-portrait {
        position: relative;
    }

    .ip-grid-row-2.is-portrait>a {
        height: 450px !important;
        /* Taller for portrait */
    }

    .ip-grid-row-2.is-portrait .ip-overlay {
        display: block !important;
    }

    .ip-grid-row-2.is-portrait .ip-content-overlay {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        background: transparent !important;
        color: white !important;
        padding: 20px !important;
    }

    .ip-grid-row-2.is-portrait .ip-text-hero a.text-white,
    .ip-grid-row-2.is-portrait .ip-text-vertical a.text-white {
        color: white !important;
    }

    .ip-text-hero {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .ip-service-widget {
        min-height: auto;
        order: 2;
    }

    .service-grid {
        padding: 15px;
        gap: 15px;
    }

    .ip-news-list {
        grid-template-columns: 1fr;
    }

    .ip-list-item {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .ip-list-thumb {
        width: 100%;
        height: 200px;
    }

    .ip-module-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .radio-bar {
        width: 95%;
        bottom: 10px;
        padding: 10px 15px;
    }

    .layout-visual .ip-hero-poster h1 {
        font-size: 1.8rem;
    }
}

/* Search Form Styles */
.ip-search-form {
    width: 100%;
    max-width: 400px;
}

.ip-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ip-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 0.95rem;
    transition: 0.2s;
    outline: none;
}

.ip-search-input:focus {
    background: white;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(0, 150, 64, 0.1);
}

.ip-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.ip-search-btn:hover {
    color: var(--color-brand);
    background: rgba(0, 0, 0, 0.05);
}

/* Popout Button */
.popout-btn {
    transition: 0.2s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.popout-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: scale(1.1);
}

/* Necrologicos Styles */
.ip-necro-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    margin-bottom: 40px;
    /* Increased spacing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.ip-necro-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.ip-necro-card.no-image .ip-necro-icon {
    min-width: 120px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
}

.ip-necro-card.has-image .ip-necro-image {
    width: 250px;
    flex-shrink: 0;
}

.ip-necro-card.has-image .necro-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ip-necro-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ip-necro-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111;
}

.ip-necro-title a {
    color: #111;
    text-decoration: none;
}

.ip-necro-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.ip-necro-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 25px;
}

.ip-necro-participations {
    margin-top: 20px;
    border-top: 2px solid #f3f4f6;
    padding-top: 20px;
}

.ip-participation-item {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-brand);
}

.ip-participation-item strong {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ip-participation-text {
    font-size: 0.95rem;
    color: #4b5563;
    font-style: italic;
}

.ip-participation-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .ip-necro-card {
        flex-direction: column;
    }

    .ip-necro-card.has-image .ip-necro-image {
        width: 100%;
        height: 250px;
    }

    .ip-necro-card.no-image .ip-necro-icon {
        height: 100px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* Fix for Archive Hero Card */
.ip-hero-card .ip-content-overlay .ip-tag {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-block;
    margin-bottom: 10px;
    color: var(--text-main) !important;
    /* Fix: Force dark text */
}

.ip-hero-card .ip-content-overlay h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ip-hero-card a {
    color: white !important;
}

/* Mascotas Styles */
.ip-tag.mascota-perdido {
    background-color: #ef4444;
    /* Red */
    color: white;
}

.ip-tag.mascota-encontrado {
    background-color: #10b981;
    /* Green */
    color: white;
}

.ip-tag.mascota-adopcion {
    background-color: #f59e0b;
    /* Amber */
    color: white;
}

/* Footer Styles */
.ip-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 60px 0 30px;
    margin-top: 50px;
}

.ip-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.ip-footer .widget-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.ip-footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.ip-footer a:hover {
    color: var(--color-brand);
}

.ip-footer-menu,
.ip-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ip-footer-menu li,
.ip-footer-contact li {
    margin-bottom: 12px;
}

.ip-footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ip-footer-contact li i {
    width: 18px;
    color: var(--color-brand);
}

.ip-social-icons {
    display: flex;
    gap: 15px;
}

.ip-social-icons a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.ip-social-icons a:hover {
    background: var(--color-brand);
    color: white;
    transform: translateY(-3px);
}

.ip-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Global: Remove underline on hover for titles */
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover,
.ip-card-title a:hover,
.entry-title a:hover {
    text-decoration: none !important;
}

/* Custom Audio Player - Hide native audio elements but keep containers visible */
.wp-block-audio audio,
.entry-content audio,
.ip-article-body audio {
    display: none !important;
    /* Hide only the native audio element */
}

/* Hide MediaElement.js player UI elements (buttons, controls) but NOT the container */
.wp-block-audio .mejs-container .mejs-controls,
.wp-audio-shortcode .mejs-controls,
.mejs-container .mejs-layers {
    display: none !important;
}

/* Hide accessibility text */
.mejs-offscreen {
    display: none !important;
}

/* Make MediaElement.js container transparent and auto-height for custom player */
.mejs-container.wp-audio-shortcode,
.wp-audio-shortcode.mejs-container {
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Hide the MediaElement container in WordPress editor to prevent black rectangle */
.editor-styles-wrapper .mejs-container,
.wp-admin .mejs-container {
    display: none !important;
}

/* Fix: Show default player in Editor */
.editor-styles-wrapper .wp-block-audio audio,
.wp-admin .wp-block-audio audio,
.editor-styles-wrapper .wp-audio-shortcode,
.wp-admin .wp-audio-shortcode,
.editor-styles-wrapper .entry-content audio,
.wp-admin .entry-content audio,
.editor-styles-wrapper .ip-article-body audio,
.wp-admin .ip-article-body audio,
.mce-content-body audio,
.mce-content-body .wp-audio-shortcode,
.mce-content-body .wp-block-audio audio {
    display: block !important;
}

.ip-audio-player {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 50px;
    padding: 10px 20px;
    gap: 15px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    transition: 0.3s;
    clear: both;
    width: 100%;
    position: relative;
    z-index: 1;
}

.ip-audio-player.playing {
    background: white;
    border-color: var(--color-brand);
    box-shadow: 0 4px 12px rgba(0, 150, 64, 0.15);
}

.ip-audio-play-btn {
    background: var(--color-brand);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}

.ip-audio-play-btn:hover {
    transform: scale(1.1);
    background: #007a33;
}

.ip-audio-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ip-audio-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ip-audio-progress-container {
    width: 100%;
    height: 6px;
    background: #d1d5db;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ip-audio-progress-bar {
    height: 100%;
    background: var(--color-brand);
    width: 0%;
    transition: width 0.1s linear;
}

.ip-audio-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    min-width: 90px;
    text-align: right;
}

/* Article Typography (Infobae Style) */
.ip-article-body {
    font-family: 'Roboto', 'Inter', sans-serif;
    /* Prioritize Roboto if available, else Inter */
    color: #333;
    font-size: 20px;
    /* Mobile base */
    line-height: 1.7;
    font-weight: 300;
    display: flow-root;
}

.ip-article-body p {
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .ip-article-body {
        font-size: 22px;
        /* Desktop base */
        line-height: 1.7;
        font-weight: 300;
        /* Lighter weight for larger text on desktop looks elegant */
    }
}

.ip-article-body strong,
.ip-article-body b {
    font-weight: 900;
    color: #000;
}

/* --- Article Block Styles --- */

/* Headings */
.ip-article-body h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #111;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.ip-article-body h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.ip-article-body h4 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

/* Blockquotes */
.ip-article-body blockquote,
.ip-article-body .wp-block-quote {
    border-left: 5px solid var(--color-brand);
    background: #f9fafb;
    margin: 2em 0;
    padding: 1.5em 2em;
    font-style: italic;
    color: #4b5563;
    border-radius: 0 8px 8px 0;
}

.ip-article-body blockquote p {
    margin-bottom: 0;
    font-size: 1.1em;
}

.ip-article-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #6b7280;
    font-style: normal;
    font-weight: 600;
}

/* Lists */
.ip-article-body ul,
.ip-article-body ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.ip-article-body ul li,
.ip-article-body ol li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.ip-article-body ul {
    list-style-type: disc;
}

.ip-article-body ul li::marker {
    color: var(--color-brand);
}

/* Images */
.ip-article-body figure {
    margin: 2em 0;
}

.ip-article-body img {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: auto;
    max-width: 100%;
}

.ip-article-body figcaption {
    text-align: center;
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 10px;
    font-style: italic;
}

/* Separators */
.ip-article-body hr,
.ip-article-body .wp-block-separator {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 3em 0;
    width: 100%;
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
}

.ip-article-body .wp-block-separator.is-style-dots {
    background: none;
    border: none;
    text-align: center;
    height: auto;
}

.ip-article-body .wp-block-separator.is-style-dots::before {
    content: "•••";
    color: var(--color-brand);
    font-size: 2em;
    letter-spacing: 0.5em;
}

/* Buttons */
.ip-article-body .wp-block-button__link {
    background-color: var(--color-brand);
    color: white;
    border-radius: 50px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ip-article-body .wp-block-button__link:hover {
    background-color: #007a33;
    /* Darker shade */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Tables */
.ip-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95em;
}

.ip-article-body table th,
.ip-article-body table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.ip-article-body table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111;
}

.ip-article-body table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* --- Video Player & Cinema Mode --- */

/* Cinema Header (replaces Featured Image) */
/* Cinema Header (replaces Featured Image) */
.ip-video-header {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed min-height to allow fit */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    width: 100%;
}

.ip-video-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

/* Force constraints on the WP generated video containers */
/* Force constraints on the WP generated video containers */
.ip-video-container .wp-video,
.ip-video-container .mejs-container,
.ip-video-container video,
.ip-video-container iframe {
    max-width: 100% !important;
    margin: 0 auto;
    max-height: 550px !important;
}

/* Force wrappers to center their content */
.ip-video-container .wp-video,
.ip-video-container .mejs-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
}

.ip-video-container video {
    width: auto !important;
    height: auto !important;
    display: block !important;
}

.ip-video-container iframe {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16/9;
}

/* Mobile: Reasonable height, avoiding full screen takeover */
@media (max-width: 767px) {

    .ip-video-container .wp-video,
    .ip-video-container .mejs-container,
    .ip-video-container video,
    .ip-video-container iframe {
        max-height: 65vh !important;
    }
}

/* Desktop: Strict limit to mimic horizontal player feel */
@media (min-width: 768px) {
    .ip-video-header {
        max-height: 550px;
        /* Constrain the container itself */
    }

    .ip-video-container .wp-video,
    .ip-video-container .mejs-container,
    .ip-video-container video,
    .ip-video-container iframe {
        max-height: 550px !important;
    }
}

/* Specific fix for MEJS container to ensure it respects the video size */
.ip-video-container .mejs-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* Standard Video Block Styling (in content) */
.wp-block-video {
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #000;
}

.wp-block-video video {
    display: block;
    width: 100%;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ip-video-header {
        min-height: auto;
        border-radius: 0;
        /* Full width on mobile often looks better without radius, or keep it? User likes modern. Let's keep radius but maybe smaller margin */
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }

    .ip-video-container video {
        max-height: 80vh;
        /* Allow taller on mobile vertical */
    }
}

/* Single Post Title Size */
@media (min-width: 992px) {
    #single-wrapper .ip-text-hero {
        font-size: 3.5rem;
    }
}

/* Related Posts Section */
.ip-related-posts {
    margin-top: 3rem;
}

.ip-related-title {
    font-family: 'Space Grotesk', sans-serif;
    color: #111;
    border-left: 4px solid var(--color-brand);
    padding-left: 15px;
}

.ip-related-posts .ip-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ip-related-posts .ip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Author Archive */
/* Author Archive */
.ip-author-header {
    /* background: #f9fafb; Removed for cleaner look */
    /* border-radius: var(--radius-lg); */
    /* padding: 3rem 1rem; */
}

.ip-author-avatar img {
    border: 4px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ip-author-posts .ip-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ip-author-posts .ip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Fix Mobile Scroll */
#single-wrapper {
    /* overflow-x: hidden; Removed to fix sticky */
    width: 100%;
}

body {
    overflow-x: hidden;
    /* Moved here to prevent mobile scroll */
}

/* Share Buttons Desktop */
.ip-share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.ip-share-btn.facebook:hover {
    background: #1465c9 !important;
}

.ip-share-btn.twitter:hover {
    background: #333 !important;
}

.ip-share-btn.whatsapp:hover {
    background: #1da851 !important;
}

/* Share Buttons Mobile (Pill Style) */
.ip-share-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ip-share-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.ip-share-pill.facebook {
    color: #1877f2;
}

.ip-share-pill.twitter {
    color: #000;
}

.ip-share-pill.whatsapp {
    color: #25d366;
}

.ip-share-pill i {
    width: 18px;
    height: 18px;
}

/* Mobile Services Menu */
.mobile-services-grid .d-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.mobile-services-grid .service-item {
    transition: transform 0.2s, background-color 0.2s;
}

.mobile-services-grid .service-item:active {
    transform: scale(0.98);
    background-color: #f3f4f6 !important;
}


/* --- Vertical Featured Image for Desktop --- */
@media (min-width: 768px) {
    .vertical-featured-image-container {
        position: relative;
        width: 100%;
        height: 550px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #111;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .vertical-featured-image-container .blurred-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        filter: blur(25px) brightness(0.7);
        transform: scale(1.1);
        z-index: 0;
    }

    .vertical-featured-image-container .vertical-content {
        position: relative;
        z-index: 2;
        height: 100%;
        width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vertical-featured-image-container .vertical-content a {
        display: flex;
        height: 100%;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    .vertical-featured-image-container .vertical-img {
        max-height: 500px;
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        object-fit: contain;
    }
}

/* --- Author Page Modernization --- */

.ip-author-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem !important;
}

.ip-author-name {
    font-size: 2rem !important;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.ip-author-bio {
    font-size: 1.05rem !important;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
}

.ip-author-link a {
    font-size: 0.95rem !important;
    font-weight: 600;
    color: var(--color-brand) !important;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(var(--color-brand-rgb), 0.05);
    /* Assuming var exists or fallback */
    background: #f0fdf4;
    /* Fallback green tint */
    border-radius: 50px;
    transition: all 0.2s ease;
}

.ip-author-link a:hover {
    background: var(--color-brand);
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ip-author-link i {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.ip-author-posts-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Card Improvements for Author Page */
.author-grid .ip-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.author-grid .ip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.author-grid .ip-card-thumb {
    height: 220px !important;
    border-radius: 12px 12px 0 0 !important;
    position: relative;
    display: block;
    overflow: hidden;
}

.author-grid .ip-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-grid .ip-card:hover .ip-card-thumb img {
    transform: scale(1.05);
}

.author-grid .ip-card-body {
    padding: 1.25rem;
    background: white;
    border: 1px solid #f3f4f6;
    border-top: none;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.author-grid .ip-card-title {
    font-size: 1.15rem !important;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.author-grid .ip-card-meta {
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

/* Badge Tweaks */
.author-grid .badge {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* --- GUTENBERG BLOCK STYLES --- */

/* Message Blocks Base */
.is-style-blue-message,
.is-style-green-message,
.is-style-orange-message,
.is-style-red-message,
.is-style-grey-message {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Blue Message */
.is-style-blue-message {
    background-color: rgba(37, 99, 235, 0.1);
    /* --color-sports with opacity */
    border-color: var(--color-sports);
    color: #1e3a8a;
}

/* Green Message */
.is-style-green-message {
    background-color: rgba(0, 150, 64, 0.1);
    /* --color-brand with opacity */
    border-color: var(--color-brand);
    color: #064e3b;
}

/* Orange Message */
.is-style-orange-message {
    background-color: rgba(217, 119, 6, 0.1);
    /* --color-field with opacity */
    border-color: var(--color-field);
    color: #7c2d12;
}

/* Red Message */
.is-style-red-message {
    background-color: rgba(220, 38, 38, 0.1);
    /* --color-police with opacity */
    border-color: var(--color-police);
    color: #7f1d1d;
}

/* Grey Message */
.is-style-grey-message {
    background-color: #f3f4f6;
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* Floating Blocks */
.is-style-left-block {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1.5rem;
    max-width: 45%;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    font-style: italic;
    border-left: 3px solid var(--color-brand);
}

.is-style-right-block {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    max-width: 45%;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    font-style: italic;
    border-right: 3px solid var(--color-brand);
}

/* Blockquotes */
.is-style-blockquotes {
    border-left: none;
    padding: 2rem;
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    position: relative;
    background: white;
}

.is-style-blockquotes::before {
    content: '“';
    font-family: serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-brand);
    opacity: 0.2;
    display: block;
    margin-bottom: -2rem;
}

/* --- EN POCAS LINEAS BLOCK --- */
.wp-block-create-block-en-pocas-lineas {
    background-color: rgba(0, 150, 64, 0.05) !important;
    /* Extremely light brand green */
    border-left: 4px solid var(--color-brand) !important;
    border-radius: 8px;
    padding: 1.5rem !important;
    margin: 2rem 0 !important;
    font-family: inherit;
}

.wp-block-create-block-en-pocas-lineas h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-brand) !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-block-create-block-en-pocas-lineas ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wp-block-create-block-en-pocas-lineas li {
    position: relative;
    padding-left: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.5;
    color: var(--text-main);
}

.wp-block-create-block-en-pocas-lineas li::before {
    content: "•" !important;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-brand) !important;
    font-weight: bold;
}

.wp-block-create-block-en-pocas-lineas li:last-child {
    margin-bottom: 0 !important;
}

/* Editor Styles for Blockquotes */
.editor-styles-wrapper .wp-block-quote {
    border-left: 5px solid var(--color-brand);
    background: #f9fafb;
    margin: 2em 0;
    padding: 1.5em 2em;
    font-style: italic;
    color: #4b5563;
    border-radius: 0 8px 8px 0;
}

.editor-styles-wrapper .wp-block-quote p {
    margin-bottom: 0;
    font-size: 1.1em;
}

.editor-styles-wrapper .wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #6b7280;
    font-style: normal;
    font-weight: 600;
}

/* Galerias en ancho completo para el formato Imagen */
.format-image .ip-article-body .wp-block-gallery,
.format-image .ip-article-body .gallery {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 !important;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   BANNER: FUENTE PREFERIDA EN GOOGLE
   ============================================ */
.ip-google-source-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 60%, #e0f2fe 100%);
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--color-brand);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 28px;
    animation: gsb-slidein 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes gsb-slidein {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ip-gsb-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.ip-gsb-google-logo {
    width: 72px;
    height: auto;
    flex-shrink: 0;
}

.ip-gsb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ip-gsb-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #166534;
    white-space: nowrap;
}

.ip-gsb-sub {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.35;
}

.ip-gsb-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--color-brand);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 150, 64, 0.3);
}

.ip-gsb-btn:hover {
    background: #007a32;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 150, 64, 0.4);
    color: #fff !important;
}

.ip-gsb-btn svg {
    transition: transform 0.2s;
}

.ip-gsb-btn:hover svg {
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .ip-google-source-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .ip-gsb-title {
        white-space: normal;
    }

    .ip-gsb-btn {
        width: 100%;
        justify-content: center;
    }
}