/* Reset y configuración básica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    line-height: 1.2;
    color: #000;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Contenedor principal boxed */
.page-wrapper {
    max-width: 1600px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.4), 0 0 40px rgba(0,0,0,0.2);
    min-height: 100vh;
    border: 3px outset #ddd;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 3px solid #000;
    border-top: 1px solid #ccc;
    padding: 10px 0;
    text-align: center;
    position: relative;
}

/* Header Ad */
.header-ad {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.header-ad .ad-placeholder {
    width: 600px;
    height: 90px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.header-ad .ad-content {
    text-align: center;
}

.header-ad .ad-text {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.header-ad .ad-size {
    font-size: 12px;
    color: #999;
}

.header-ad .banner-image {
    width: 600px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.ad-placeholder .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.ad-placeholder:has(.banner-image) {
    padding: 0;
    position: relative;
    border: none;
    background-color: transparent;
}

.ad-placeholder:has(.tag-tee-ad) {
    padding: 0;
    position: relative;
    border: none;
    background-color: transparent;
}

.ad-section:has(.ad-placeholder) .section-header {
    background-color: #cc0000;
    color: #fff;
}

.tag-tee-ad {
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.tag-tee-ad .ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.buy-now-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.buy-now-btn:hover {
    background-color: #0052a3;
    color: white;
    text-decoration: none;
}

.ad-label {
    position: absolute;
    top: 3px;
    right: 3px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 1px;
    z-index: 20;
    font-weight: bold;
    text-transform: uppercase;
}

.register-box {
    position: absolute;
    top: 10px;
    left: 20px;
    background-color: #008000;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
}

.masthead {
    margin: 20px 0 10px 0;
}

.logo {
    height: 60px;
    width: auto;
    margin: 0;
}

.tagline {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    font-family: "Times New Roman", Times, serif;
}

.masthead a {
    text-decoration: none;
    display: inline-block;
}

.masthead a:hover {
    opacity: 0.8;
}

/* Main Navigation */
.main-navigation {
    background-color: #000;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    margin: 10px 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid #555;
    transition: background-color 0.3s ease;
}

.nav-menu li:last-child .nav-link {
    border-right: none;
}

.nav-link:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

.nav-link.active {
    background-color: #AF0116;
    color: #fff;
    font-weight: bold;
}

/* Filter Info */
.filter-info {
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.clear-filters-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
}

.clear-filters-btn:hover {
    background-color: #0052a3;
}

/* Article transitions */
article {
    transition: opacity 0.3s ease, display 0.3s ease;
}

.subtitle {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    letter-spacing: 2px;
}

.date-info {
    font-size: 13px;
    color: #000;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

.weather-info {
    display: inline;
}

.weather-link {
    color: #0066cc;
    text-decoration: none;
}

.weather-link:hover {
    text-decoration: underline;
}

.temperature {
    color: #0066cc;
    font-weight: bold;
}

.weather-desc {
    color: #666;
    font-size: 11px;
}

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    padding: 20px 20px 0 20px;
    gap: 20px;
    border-top: 1px solid #ccc;
    flex: 1;
}

/* Sidebars */
.sidebar {
    width: 180px;
    flex-shrink: 0;
}

.left-sidebar {
    order: 1;
}

.right-sidebar {
    order: 3;
}

/* Secciones */
.section {
    margin-bottom: 25px;
    border: 2px outset #ddd;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section a {
    transition: background-color 0.2s ease;
    display: block;
}

.section a:hover {
    background-color: #f0f0f0;
}

.section-header {
    background-color: #003366;
    color: #fff;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #003366;
}

/* Colores de fondo específicos para cada sección */
.section:nth-child(2) { /* NEWS section */
    background-color: #CECECE;
}

.section:nth-child(5) { /* FEATURES section */
    background-color: #f5f5f5;
}

.section:nth-child(6) { /* SERVICES section */
    background-color: #fff;
}

.more-link {
    float: right;
    color: #fff;
    text-decoration: none;
    font-weight: normal;
}

.more-link:hover {
    text-decoration: underline;
}

/* Navegación */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.nav-list li {
    margin-bottom: 3px;
    padding: 2px 0;
    border-bottom: 1px dotted #ccc;
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-list a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.1;
    font-family: Arial, sans-serif;
}

.nav-list a:hover {
    text-decoration: underline;
}

/* Búsqueda */
.search-form {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px inset #ddd;
}

.search-form input[type="radio"] {
    margin-right: 5px;
}

.search-form label {
    font-size: 13px;
    margin-right: 15px;
    font-family: Arial, sans-serif;
}

.search-input {
    width: 100%;
    padding: 3px;
    border: 2px inset #ddd;
    font-size: 13px;
    margin: 5px 0;
    font-family: Arial, sans-serif;
}

.search-btn {
    background-color: #f0f0f0;
    color: #000;
    border: 2px outset #ddd;
    padding: 3px 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.search-btn:active {
    border: 2px inset #ddd;
    background-color: #e0e0e0;
}

.tips-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
    margin-left: 5px;
}

.tips-link:hover {
    text-decoration: underline;
}

.quick-links {
    margin-top: 10px;
    padding: 0 10px 10px 10px;
    background-color: #fff;
}

.quick-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    margin-right: 10px;
    font-family: Arial, sans-serif;
}

.quick-links a:hover {
    text-decoration: underline;
}

/* Correcciones */
.corrections {
    margin: 0;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #999;
    border: 2px outset #ddd;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.corrections a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.corrections a:hover {
    text-decoration: underline;
}

/* Contenido principal */
.main-content {
    flex: 1;
    order: 2;
    max-width: 800px;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
}



/* Artículos */
.lead-story, .story {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ccc;
}



.category {
    font-size: 10px;
    font-weight: bold;
    color: #AF0116;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.headline {
    font-family: "Times New Roman", Times, serif;
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.1;
}

.headline a {
    color: #000;
    text-decoration: none;
}

.headline a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.byline {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.article-meta {
    margin-bottom: 15px;
    font-size: 12px;
    color: #0066cc;
    padding-bottom: 8px;
}

.article-date {
    font-weight: bold;
    margin-right: 15px;
}

.article-author {
    font-style: italic;
}

.opinion-text {
    font-size: 14px;
    color: #333;
    font-style: italic;
    line-height: 1.4;
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 3px solid #0066cc;
}

.story-content {
    margin-bottom: 15px;
}

.story-content p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.3;
}

.inline-image {
    margin: 25px 0;
    text-align: center;
}

.inline-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.story-links {
    margin-top: 15px;
}

.go-to-article {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-right: 15px;
}

.go-to-article:hover {
    text-decoration: underline;
}

.related-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
}

.related-link:hover {
    text-decoration: underline;
}

/* Sección de imagen */
.image-section {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    padding: 15px 0;
}

.image-placeholder {
    width: 120px;
    height: 80px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
    flex-shrink: 0;
}

.image-container {
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    position: relative;
    margin: 10px 0;
}

/* Higher images for internal article pages */
body:not(.home) .image-container {
    height: 400px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ccc;
}

.image-caption {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.image-story {
    flex: 1;
}

.image-story p {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Subsecciones */
.subsection {
    margin-bottom: 20px;
    padding: 10px;
}

.subsection-header {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
    background-color: #003366;
    color: #fff;
    padding: 5px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-header {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.sub-header a {
    color: #0066cc;
    text-decoration: none;
}

.sub-header a:hover {
    text-decoration: underline;
}

.subsection-content {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.subsection-image {
    margin-top: 10px;
}

.image-placeholder-small {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #666;
    font-weight: bold;
}

/* Opiniones de lectores */
.poll-section {
    margin-top: 10px;
    padding: 10px;
}

.poll-question {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.poll-question a {
    color: #0066cc;
    text-decoration: none;
}

.poll-question a:hover {
    text-decoration: underline;
}

.poll-text {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.poll-buttons {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.poll-btn {
    background-color: #0066cc;
    color: #fff;
    border: 1px solid #0066cc;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
}

.poll-btn:hover {
    background-color: #0052a3;
}

/* Newsletter */
.newsletter-box {
    padding: 5px 0;
}

.newsletter-input {
    width: 85%;
    padding: 4px;
    border: 2px inset #ccc;
    font-size: 11px;
    font-family: "Times New Roman", serif;
    margin-bottom: 5px;
    background-color: #f0f0f0;
    color: #000;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.newsletter-input:focus {
    outline: none;
    border: 2px inset #999;
}

.newsletter-btn {
    width: 85%;
    background-color: #c0c0c0;
    color: #000;
    border: 2px outset #c0c0c0;
    padding: 4px;
    font-size: 11px;
    cursor: pointer;
    font-family: "Times New Roman", serif;
    font-weight: bold;
    margin: 0 auto;
    display: block;
}

.newsletter-btn:hover {
    background-color: #d0d0d0;
}

.newsletter-btn:active {
    border: 2px inset #c0c0c0;
}



/* Mercados */
.market-time {
    float: right;
    font-weight: normal;
    font-size: 10px;
}

.market-data {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
}

.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 9px;
    border-bottom: 1px solid #ccc;
}

.market-rank {
    flex: 0 0 25px;
    font-size: 9px;
    color: #666;
    font-weight: normal;
}

.market-name {
    font-weight: bold;
}

.market-value {
    font-family: monospace;
}

.market-change {
    font-family: monospace;
    font-weight: bold;
}

.market-change.negative {
    color: #cc0000;
}

.market-change.negative::after {
    content: "▾";
    margin-left: 2px;
}

.market-change.positive {
    color: #00aa00;
}

.market-change.positive::after {
    content: "▴";
    margin-left: 2px;
}

.stock-lookup {
    margin-top: 15px;
    padding: 0 10px 10px 10px;
}

.stock-label {
    font-size: 11px;
    display: block;
    margin-bottom: 5px;
}

.stock-input {
    width: 80px;
    padding: 2px;
    border: 1px solid #ccc;
    font-size: 10px;
    margin-right: 5px;
}

.stock-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 2px 8px;
    font-size: 10px;
    cursor: pointer;
}

.stock-btn:hover {
    background-color: #0052a3;
}

.lookup-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 10px;
    margin-left: 10px;
}

.lookup-link:hover {
    text-decoration: underline;
}

/* Ad Section */
.ad-section {
    margin-bottom: 20px;
    border: 2px outset #ddd;
    background-color: #fff;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.ad-header {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-bottom: 0;
    background-color: #003366;
    color: #fff;
    padding: 8px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

.ad-placeholder {
    width: calc(100% - 20px);
    height: 150px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    box-sizing: border-box;
    padding: 10px;
}

.ad-section .ad-placeholder {
    height: 150px;
}

.ad-content {
    text-align: center;
    color: #666;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-text {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
    font-family: Arial, sans-serif;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.ad-size {
    font-size: 10px;
    color: #999;
    font-family: Arial, sans-serif;
    text-align: center;
    max-width: 100%;
}

/* Ad Banner Styles */
.ad-banner {
    width: 180px;
    height: 150px;
    background: linear-gradient(135deg, #808080, #a0a0a0);
    border: 2px solid #666666;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    animation: colorChange1 4s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
    .ad-banner {
        width: 100%;
        max-width: 100%;
        height: 80px;
    }
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.banner-content {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.banner-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-subtitle {
    font-size: 12px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    font-weight: 500;
}

.banner-url {
    font-size: 10px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: bold;
    text-decoration: underline;
}



/* Ad Banner 2 Styles - Green Theme */
.ad-banner-2 {
    width: 180px;
    height: 150px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: 2px solid #27ae60;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    animation: colorChange 3s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
    .ad-banner-2 {
        width: 100%;
        max-width: 100%;
        height: 80px;
    }
}

@keyframes colorChange1 {
    0% {
        background: linear-gradient(135deg, #808080, #a0a0a0);
        border-color: #666666;
    }
    25% {
        background: linear-gradient(135deg, #ff1493, #ff69b4);
        border-color: #dc143c;
    }
    50% {
        background: linear-gradient(135deg, #00ff00, #32cd32);
        border-color: #228b22;
    }
    75% {
        background: linear-gradient(135deg, #00bfff, #1e90ff);
        border-color: #0066cc;
    }
    100% {
        background: linear-gradient(135deg, #ff4500, #ff6347);
        border-color: #ff4500;
    }
}

@keyframes colorChange {
    0% {
        background: linear-gradient(135deg, #808080, #a0a0a0);
        border-color: #666666;
    }
    25% {
        background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
        border-color: #ff4757;
    }
    50% {
        background: linear-gradient(135deg, #00ff00, #32cd32);
        border-color: #228b22;
    }
    75% {
        background: linear-gradient(135deg, #ff1493, #ff69b4);
        border-color: #dc143c;
    }
    100% {
        background: linear-gradient(135deg, #00bfff, #1e90ff);
        border-color: #0066cc;
    }
}

@keyframes colorChange3 {
    0% {
        background: linear-gradient(135deg, #ff4500, #ff6347);
        border-color: #ff4500;
    }
    20% {
        background: linear-gradient(135deg, #808080, #a0a0a0);
        border-color: #666666;
    }
    40% {
        background: linear-gradient(135deg, #ff1493, #ff69b4);
        border-color: #dc143c;
    }
    60% {
        background: linear-gradient(135deg, #00ff00, #32cd32);
        border-color: #228b22;
    }
    80% {
        background: linear-gradient(135deg, #00bfff, #1e90ff);
        border-color: #0066cc;
    }
    100% {
        background: linear-gradient(135deg, #9b59b6, #8e44ad);
        border-color: #8e44ad;
    }
}

.banner-title-2 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-url-2 {
    font-size: 10px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: bold;
    text-decoration: underline;
}



/* Ad Banner 3 Styles - Blue Theme */
.ad-banner-3 {
    width: 180px;
    height: 150px;
    background: linear-gradient(135deg, #ff4500, #ff6347);
    border: 2px solid #ff4500;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    animation: colorChange3 5s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
    .ad-banner-3 {
        width: 100%;
        max-width: 100%;
        height: 80px;
    }
}

.banner-title-3 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-url-3 {
    font-size: 10px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: bold;
    text-decoration: underline;
}



/* Sección de fiestas */
.holidays-section {
    background-color: #f9f9f9;
    padding: 15px;
    border: 2px outset #ddd;
    position: relative;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* PIC OF THE WEEK Section - Gray Background */
.latest-ap-section {
    background-color: #f5f5f5;
    min-height: 200px;
    padding: 20px;
}

/* Instagram Ad Styling */
.ad-section:has(.instagram-ad) {
    margin-bottom: 20px;
    border: 2px outset #ddd;
    background-color: #fff;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    padding: 0;
}

.ad-placeholder:has(.instagram-ad) {
    padding: 0;
    position: relative;
    border: none;
    background-color: transparent;
    margin: 0;
    width: 100%;
    height: 100%;
}

.instagram-ad {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: none;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.instagram-ad .ad-text {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instagram-ad .ad-size {
    font-size: 12px;
    color: #fff;
    font-weight: normal;
}

.instagram-ad a {
    text-decoration: none !important;
    color: inherit !important;
}

.instagram-ad a:hover {
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
    transform: none !important;
}

/* Calculator Banner Styling */
.calculator-banner {
    background: linear-gradient(135deg, #2a2a2a, #404040);
    border: 2px solid #000;
    color: #fff;
    text-align: center;
    padding: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
}

.calculator-display {
    margin-bottom: 8px;
}

.calculator-display input {
    width: 100%;
    height: 25px;
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-align: right;
    padding: 0 5px;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.calc-btn {
    height: 20px;
    border: 1px solid #666;
    background-color: #333;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.1s;
}

.calc-btn:hover {
    background-color: #555;
}

.calc-btn.number {
    background-color: #444;
}

.calc-btn.operator {
    background-color: #666;
    color: #00ff00;
}

.calc-btn.equals {
    background-color: #0066cc;
    color: #fff;
}

.calc-btn.clear {
    background-color: #cc0000;
    color: #fff;
}

.calc-btn.zero {
    grid-column: span 2;
}

/* Features Section - Hidden on Mobile */
@media (max-width: 768px) {
    .features-section {
        display: none;
    }
    
    .latest-ap-section {
        display: none;
    }
}

.holidays-section::before {
    content: "🐦";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
}

.holidays-section .section-header {
    background-color: #8B4513;
    color: #fff;
}

.holidays-header {
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    color: #8B4513;
    text-align: center;
    margin-bottom: 10px;
}

.more-holidays {
    color: #0066cc;
    text-decoration: none;
    font-size: 11px;
    display: block;
    margin-top: 10px;
}

.more-holidays:hover {
    text-decoration: underline;
}

/* Responsive design mejorado para mantener estilo vintage */
@media (max-width: 1024px) {
    .page-wrapper {
        margin: 15px;
        box-shadow: 0 0 25px rgba(0,0,0,0.5), 0 0 50px rgba(0,0,0,0.3);
        border: 3px outset #ddd;
    }
    
    .container {
        flex-direction: column;
        padding: 15px 15px 0 15px;
        gap: 20px;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .main-content {
        order: 1;
        max-width: none;
        margin: 0;
    }
    
    .right-sidebar {
        order: 3;
    }
    
    /* Mantener efectos 3D en tablet */
    .section {
        border: 2px outset #ddd;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }
    
    .ad-section {
        border: 2px outset #ddd;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        margin: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.4), 0 0 40px rgba(0,0,0,0.2);
        border: 2px outset #ddd;
    }
    
    .header {
        padding: 10px 0;
        border-bottom: 2px solid #000;
    }
    
    .register-box {
        position: static;
        display: block;
        margin: 10px auto;
        width: fit-content;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .logo {
        height: 50px;
    }
    
    .tagline {
        font-size: 11px;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .date-info {
        font-size: 12px;
        padding-top: 8px;
    }
    
    .container {
        padding: 10px 10px 0 10px;
        gap: 15px;
    }
    
    /* Mantener efectos vintage en móvil */
    .section {
        border: 1px outset #ddd;
        box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 15px;
    }
    

    

    
    .section-header {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .ad-section {
        border: 1px outset #ddd;
        box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    }
    
    /* Hide sidebars in tablet - override existing styles */
    .sidebar {
        display: none !important;
        width: 0 !important;
        order: 0 !important;
        flex-direction: none !important;
        gap: 0 !important;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none !important;
        order: 0 !important;
    }
    
    /* Make main content full width in tablet */
    .container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        flex-direction: row !important;
        padding: 15px !important;
    }
    
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
    }
    
    /* TikTok Embed Tablet */
    .tiktok-embed {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tiktok-embed iframe {
        height: 650px !important;
        min-height: 550px !important;
    }
    
    .ad-placeholder {
        height: 120px;
        margin: 8px;
        border: 1px dashed #ccc;
    }
    
    .image-section {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .image-placeholder {
        width: 100%;
        height: 100px;
    }
    
    .headline {
        font-size: 32px;
    }
    
    .story-content p {
        font-size: 24px !important;
    }
    
    .byline {
        font-size: 22px !important;
    }
    
    /* Sidebar en móvil - mantener colores */
    .sidebar {
        gap: 10px;
    }
    
    .nav-list {
        padding: 8px;
    }
    
    .nav-list a {
        font-size: 12px;
    }
    
    /* Mantener colores de fondo en móvil */
    .section:nth-child(2) { /* NEWS section */
        background-color: #CECECE;
    }
    
    .section:nth-child(5) { /* FEATURES section */
        background-color: #FFCF59;
    }
    
    .section:nth-child(6) { /* SERVICES section */
        background-color: #fff;
    }
    
    /* Hide Calculator in Mobile */
    .calculator-banner {
        display: none;
    }
    
    /* TikTok Embed Mobile */
    .tiktok-embed {
        margin: 20px 0;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tiktok-embed iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 600px !important;
        min-height: 500px !important;
    }
    
    /* Center throwing money away image in mobile */
    .throwing-money-away .image-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .throwing-money-away .article-image {
        object-position: center center;
    }
    
    .home article[data-tags*="waste"] .image-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .home article[data-tags*="waste"] .article-image {
        object-position: center center;
    }
    
    /* Hide sidebars in mobile */
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    /* Make main content full width in mobile */
    .container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-link {
        border-right: 1px solid #555;
        border-bottom: none;
        text-align: center;
        padding: 8px 4px;
        font-size: 0.7rem;
        flex: 1;
    }
    
    .nav-menu li:last-child .nav-link {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        margin: 8px;
        box-shadow: 0 0 15px rgba(0,0,0,0.3), 0 0 30px rgba(0,0,0,0.15);
        border: 2px outset #ddd;
    }
    
    .logo {
        height: 30px;
    }
    
    .tagline {
        font-size: 10px;
    }
    
    .header-ad .ad-placeholder {
        width: 300px;
        height: 60px;
    }
    
    .register-box {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .headline {
        font-size: 28px;
    }
    
    .story-content p {
        font-size: 22px !important;
    }
    
    .byline {
        font-size: 20px !important;
    }
    
    .section-header {
        font-size: 11px;
        padding: 5px 6px;
    }
    
    .nav-list a {
        font-size: 11px;
    }
    

    
    /* Hide Tag Tee Ad in Mobile */
    .ad-section:has(.tag-tee-ad) {
        display: none !important;
    }
    
    .tag-tee-ad {
        display: none !important;
    }
    
    .ad-placeholder:has(.tag-tee-ad) {
        display: none !important;
    }
    
    /* Alternative selector for better compatibility */
    .left-sidebar .ad-section:nth-child(3) {
        display: none !important;
    }
    
    /* Hide Calculator in Mobile */
    .calculator-banner {
        display: none;
    }
}

/* Footer */
/* Category Indicator Styles */
.category-indicator {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
    border: 1px solid #c82333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Business Article Image - Start from left */
.article-image[src*="richest-men.png"] {
    object-position: left center;
}

/* Throwing Money Away Article Image - Start from left */
.article-image[src*="become-rich.jpg"] {
    object-position: left center;
}


/* Pagination Styles */
#pagination-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 20px 0;
}

.pagination-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.pagination-btn:hover:not(:disabled) {
    color: #666;
}

.pagination-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

.pagination-numbers {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pagination-number {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.pagination-number:hover {
    color: #666;
    text-decoration: underline;
}

.pagination-number.active {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.pagination-ellipsis {
    color: #666;
    font-size: 14px;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    #pagination-container {
        padding: 0 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 15px;
        margin: 30px 0;
        padding: 15px 0;
    }
    
    .pagination-btn {
        font-size: 13px;
    }
    
    .pagination-number {
        font-size: 13px;
    }
    
    .pagination-ellipsis {
        font-size: 13px;
    }
}

/* TikTok Embed Styles */
.tiktok-embed {
    margin: 30px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tiktok-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px;
}

/* Center coffin image */
.coffin-mystery-box .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.coffin-mystery-box .article-image {
    object-position: center center;
}

/* Center coffin featured image in home */
.home article[data-tags*="coffin"] .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home article[data-tags*="coffin"] .article-image {
    object-position: center center;
}

/* Center throwing money away image */
.throwing-money-away .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.throwing-money-away .article-image {
    object-position: center center;
}

/* Center throwing money away featured image in home */
.home article[data-tags*="waste"] .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home article[data-tags*="waste"] .article-image {
    object-position: center center;
}

/* Related Articles Styles */
.related-articles {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 2px solid #ddd;
}

.related-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Times New Roman", serif;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.related-item {
    border: 2px outset #ddd;
    background-color: #fff;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.15);
}

.related-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.related-item h4 {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 15px 5px 15px;
    color: #333;
    line-height: 1.3;
    font-family: "Times New Roman", serif;
}

.related-item p {
    font-size: 12px;
    color: #666;
    margin: 0 15px 15px 15px;
    line-height: 1.4;
    font-family: "Times New Roman", serif;
}

/* Hide opinion box and calculator on mobile */
@media (max-width: 768px) {
    .section:has(.opinion-text) {
        display: none !important;
    }
    
    .section:has(.calculator-banner) {
        display: none !important;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-item img {
        height: 120px;
    }
}



/* MOBILE TEXT SIZE OVERRIDE - HIGHEST PRIORITY */
@media (max-width: 768px) {
    .story-content p {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    .byline {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .story-content p {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    .byline {
        font-size: 15px !important;
    }
}



/* Share Buttons Styles - Vintage 3D Embossed */
.share-buttons {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 2px outset #c0c0c0;
    background: #c0c0c0;
    color: #000;
    text-decoration: none;
    border-radius: 0;
    font-size: 11px;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.1s ease;
    cursor: pointer;
    box-shadow: none;
    position: relative;
}

.share-btn:hover {
    background: #d0d0d0;
    border: 2px outset #c0c0c0;
}

.share-btn:active {
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
}

.share-btn.twitter:hover {
    background: #696969;
    color: white;
    border: 2px outset #696969;
}

.share-btn.twitter:active {
    background: #696969;
    color: white;
    border: 2px inset #696969;
}

.share-btn.facebook:hover {
    background: #696969;
    color: white;
    border: 2px outset #696969;
}

.share-btn.facebook:active {
    background: #696969;
    color: white;
    border: 2px inset #696969;
}

.share-btn.linkedin:hover {
    background: #696969;
    color: white;
    border: 2px outset #696969;
}

.share-btn.linkedin:active {
    background: #696969;
    color: white;
    border: 2px inset #696969;
}

.share-btn.copy:hover {
    background: #696969;
    color: white;
    border: 2px outset #696969;
}

.share-btn.copy:active {
    background: #696969;
    color: white;
    border: 2px inset #696969;
}



.footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 30px 20px 10px 20px;
    margin: 0 auto;
    max-width: 1400px;
    border: 2px outset #ddd;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #666;
    padding-bottom: 5px;
}

.footer-section p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

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

.social-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #666;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* FORCE HIDE SIDEBARS IN TABLET - MAXIMUM PRIORITY */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar,
    .left-sidebar,
    .right-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 15px !important;
    }
    
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}
