/*
Theme Name: GeneratePress Child One
Template: generatepress
Version: 1.0.0
Description: Child theme optimizado para portal de empleo alemán
*/

/*
  Los estilos están en:
  - assets/css/main.css   → estilos globales (cargado en todas las páginas)
  - assets/css/single.css → estilos del post individual (cargado solo en is_single())
*/

/* =============================================
   QUITAR FECHA, AUTOR, CATEGORÍAS, COMENTARIOS
   ============================================= */
.entry-meta,
.entry-footer,
.post-navigation,
.comments-area {
    display: none !important;
}

/* =============================================
   FOOTER OSCURO
   ============================================= */
.site-footer,
.footer-widgets {
    background-color: #2c2c2c !important;
    color: #ffffff !important;
}

.site-footer a,
.footer-widgets a {
    color: #ff6600 !important;
}

.site-footer a:hover,
.footer-widgets a:hover {
    color: #e65c00 !important;
}

.footer-widgets .widget-title {
    color: #ffffff !important;
}

/* =============================================
   QUITAR "BUILT WITH GENERATEPRESS"
   ============================================= */
.copyright-bar {
    background-color: #1a1a1a !important;
}

.copyright-bar a {
    color: #ff6600 !important;
}

/* =============================================
   QUITAR ICONO RARO DEL MENÚ
   ============================================= */
.menu-toggle .menu-toggle-icon {
    display: none !important;
}

/* =============================================
   NAVEGACIÓN HOVER NARANJA
   ============================================= */
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #ff6600 !important;
}

/* =============================================
   FOOTER CUSTOM
   ============================================= */
.site-footer {
    background-color: #2c2c2c !important;
    color: #cccccc !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    position: relative !important;
}

.footer-inner {
    padding: 3rem 2rem 1rem;
    max-width: 100%;
    width: 100%;
}

/* 3 columnas */
.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #444;
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #aaaaaa;
    margin: 0;
}

/* Links legales */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer-links a {
    color: #ff6600 !important;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #e65c00 !important;
    text-decoration: underline;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #888888;
}

.footer-copyright p {
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-info,
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   HOMEPAGE - HERO
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* =============================================
   HOMEPAGE - FEATURES
   ============================================= */
.features-section {
    background: #f5f5f5;
    padding: 3rem 2rem;
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
}

.feature-item h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
    border-bottom: 2px solid #2c2c2c;
    padding-bottom: 0.75rem;
}

.feature-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Feature de búsqueda - DESTACADO */
.feature-search {
    background: linear-gradient(135deg, #ff6600 0%, #e65c00 100%) !important;
    color: #ffffff !important;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.feature-search:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.4);
}

.feature-search .feature-icon {
    color: #ffffff;
}

.feature-search h3 {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.feature-search p {
    color: rgba(255, 255, 255, 0.95);
}

.btn-search {
    background: #ffffff;
    color: #ff6600;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-search:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =============================================
   HOMEPAGE - ANUNCIO
   ============================================= */
.ad-section {
    padding: 2rem;
    background: #ffffff;
}

.ad-inner {
    max-width: 800px;
    margin: 0 auto;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px dashed #ddd;
}

.ad-inner:empty::before {
    content: "ADVERTISEMENT";
    color: #999;
    font-size: 0.75rem;
}

/* =============================================
   HOMEPAGE - POSTS RECIENTES
   ============================================= */
.posts-section {
    padding: 3rem 2rem;
    background: #f5f5f5;
}

.posts-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.posts-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.post-card a {
    text-decoration: none;
    display: block;
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card h3 {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.5;
}

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

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   HOMEPAGE OPTIMIZADA - HERO
   ============================================= */
.hero-section {
    background: #2c2c2c;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.hero-subtitle {
    color: #cccccc;
    font-size: 1rem;
    margin: 0;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* =============================================
   HOMEPAGE - FEATURES CON CTA
   ============================================= */
.features-section {
    background: #f5f5f5;
    padding: 2.5rem 1.5rem;
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    background: #ffffff;
    padding: 2rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.feature-icon {
    margin-bottom: 1.25rem;
    color: #2c2c2c;
}

.feature-icon svg {
    width: 70px;
    height: 70px;
}

.feature-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #2c2c2c;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Feature CTA - La lupa destacada */
.feature-cta {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border: 2px solid #ff6600;
    position: relative;
}

.feature-cta::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6600, #ff8833);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-cta:hover::before {
    opacity: 0.1;
}

.feature-icon-primary {
    color: #ff6600 !important;
}

.btn-search {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.875rem 2rem;
    background: #ff6600;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-search:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.4);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .btn-search {
        width: 100%;
    }
    /* Lupa primero en móvil */
    .feature-cta {
        order: -1;
    }
}

/* =============================================
   HOMEPAGE - RESTO DE ESTILOS OPTIMIZADOS
   ============================================= */
.view-all {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #2c2c2c;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.company-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.post-content {
    padding: 1rem 1.5rem;
}

.post-content p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0.75rem 0 0;
}

/* =============================================
   BUSCADOR EN MENÚ MÓVIL
   ============================================= */
.menu-search {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-form-mobile {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-form-mobile .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.95rem;
}

.search-form-mobile .search-field::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-form-mobile .search-submit {
    background: #ff6600;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-form-mobile .search-submit:hover {
    background: #e65c00;
}

.search-form-mobile .search-submit svg {
    color: #ffffff;
}

/* Ocultar en desktop */
@media (min-width: 769px) {
    .menu-search {
        display: none;
    }
}

/* =============================================
   BUSCADOR DESKTOP - ICONO LUPA
   ============================================= */
.search-icon-desktop {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.search-icon-desktop #search-toggle {
    background: #ff6600;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
}

.search-icon-desktop #search-toggle:hover {
    background: #e65c00;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.4);
}

.search-icon-desktop #search-toggle svg {
    color: #ffffff;
}

/* Overlay buscador */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-inner {
    max-width: 600px;
    width: 90%;
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
}

.search-close:hover {
    color: #ff6600;
}

.search-form-overlay {
    display: flex;
    gap: 1rem;
}

.search-field-overlay {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    border-radius: 8px;
}

.search-field-overlay::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-field-overlay:focus {
    outline: none;
    border-color: #ff6600;
}

.search-submit-overlay {
    padding: 1.25rem 2.5rem;
    background: #ff6600;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit-overlay:hover {
    background: #e65c00;
}

/* Ocultar en móvil */
@media (max-width: 768px) {
    .search-icon-desktop {
        display: none;
    }
}

/* =============================================
   PÁGINA ÜBER UNS
   ============================================= */
.team-hero {
    background: #2c2c2c;
    padding: 3rem 2rem;
    text-align: center;
}

.team-hero h1 {
    color: #ffffff;
    font-size: 2rem;
    margin: 0;
}

.team-members {
    padding: 3rem 2rem;
    background: #f5f5f5;
}

.team-members-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.25rem;
    color: #2c2c2c;
    margin: 0;
}

.team-cta {
    text-align: center;
}

.btn-team-contact {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: #ffcc00;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.btn-team-contact:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

.team-about {
    padding: 3rem 2rem;
    background: #ffffff;
}

.team-about-inner {
    max-width: 800px;
    margin: 0 auto;
}

.team-about p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .team-hero h1 {
        font-size: 1.75rem;
    }
}

/* =============================================
   PÁGINA KONTAKT
   ============================================= */
.contact-hero {
    background: #2c2c2c;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.contact-hero h1 {
    color: #ffffff;
    font-size: 2rem;
    margin: 0 0 0.75rem;
}

.contact-hero p {
    color: #cccccc;
    font-size: 1.125rem;
    margin: 0;
}

.contact-form-section {
    padding: 3rem 2rem;
    background: #f5f5f5;
}

.contact-form-inner {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c2c2c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6600;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: #ff6600;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.contact-info {
    padding: 3rem 2rem;
    background: #ffffff;
}

.contact-info-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.info-item p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.info-item a {
    color: #ff6600;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-hero h1 {
        font-size: 1.75rem;
    }
}

/* =============================================
   PÁGINAS LEGALES - MOBILE FIRST
   ============================================= */
.legal-page {
    background: #ffffff;
}

.legal-content {
    padding: 2rem 1.25rem;
}

.legal-inner {
    max-width: 860px;
    margin: 0 auto;
}

.legal-inner h1 {
    font-size: 1.75rem;
    color: #2c2c2c;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ff6600;
}

.legal-inner h2 {
    font-size: 1.125rem;
    color: #2c2c2c;
    margin: 2rem 0 0.75rem;
    font-weight: 700;
}

.legal-inner p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.legal-inner ul,
.legal-inner ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
    padding: 0;
}

.legal-inner li {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0.5rem;
}

.legal-inner a {
    color: #ff6600;
    word-break: break-word;
}

.legal-inner a:hover {
    text-decoration: underline;
}

/* Datos empresa */
.legal-inner address,
.legal-inner p br ~ br {
    line-height: 2;
}

/* Aviso legal destacado */
.legal-notice {
    background: #fff8f0;
    border-left: 4px solid #ff6600;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.legal-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

@media (min-width: 768px) {
    .legal-content {
        padding: 3rem 2rem;
    }
    .legal-inner h1 {
        font-size: 2.25rem;
    }
    .legal-inner h2 {
        font-size: 1.25rem;
    }
}

/* =============================================
   BOTONES IMPORTADOS (posts)
   ============================================= */
.np-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2rem 0;
    justify-content: center;
}

.np-btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.np-btn--primary {
    background: #ff6600;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255,102,0,0.25);
}

.np-btn--primary:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.np-btn--secondary {
    background: #f3f3f3;
    color: #2c2c2c !important;
    border: 1px solid #ddd;
}

.np-btn--secondary:hover {
    background: #e8e8e8;
}

/* Imágenes en posts importados */
.np-img-center {
    text-align: center;
    margin: 1.5rem 0;
}

.np-img-center img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .np-btn {
        width: 100%;
    }
    .np-cta-buttons {
        flex-direction: column;
    }
}

/* =============================================
   SINGLE POST - MOBILE FIRST
   ============================================= */
.single-post-page {
    background: #ffffff;
}

.single-post-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

/* Título */
.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 1.75rem;
    line-height: 1.3;
    color: #2c2c2c;
    font-weight: 700;
    margin: 0;
}

/* Featured image controlada - no ocupa toda la pantalla */
.post-featured-image {
    margin: 0 0 2rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 400px;
}

.post-featured-image .post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenido */
.post-content-area {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.post-content-area h2 {
    font-size: 1.375rem;
    color: #2c2c2c;
    margin: 2rem 0 0.75rem;
    font-weight: 700;
}

.post-content-area h3 {
    font-size: 1.125rem;
    color: #2c2c2c;
    margin: 1.5rem 0 0.5rem;
    font-weight: 700;
}

.post-content-area p {
    margin-bottom: 1.25rem;
}

.post-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 1.5rem auto;
}

.post-content-area a {
    color: #ff6600;
    text-decoration: underline;
}

.post-content-area ul,
.post-content-area ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
}

.post-content-area li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* AdSense en post */
.post-ad {
    margin: 2rem 0;
    text-align: center;
}

/* Navegación entre posts */
.post-navigation {
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-prev,
.nav-next {
    color: #ff6600;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.nav-prev { text-align: left; }
.nav-next { text-align: right; }

.nav-prev:hover,
.nav-next:hover {
    text-decoration: underline;
}

/* Post ad 2 - fuera del article */
.post-ad-2 {
    max-width: 860px;
    margin: 0 auto 2rem;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .single-post-article {
        padding: 2.5rem 2rem;
    }
    .post-title {
        font-size: 2.25rem;
    }
    .post-content-area h2 {
        font-size: 1.625rem;
    }
    .post-featured-image {
        max-height: 500px;
    }
}
/* =============================================
   Post image placeholder (cuando no hay thumbnail)
   ============================================= */
.post-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Ocultar featured image en single (se muestra solo en grids) */
.post-featured-image {
    display: none;
}

/* Limpieza: asegurar que imágenes del contenido no desborden */
.post-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Eliminar espacios vacíos de spans limpiados */
.post-content-area span:empty {
    display: none;
}
