/* =============================================
   GENERATEPRESS - OVERRIDES GLOBALES
   ============================================= */
.entry-meta,
.entry-footer,
.post-navigation,
.comments-area {
    display: none !important;
}

/* menu-toggle-icon: visible (fix layout móvil) */

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #ff6600 !important;
}

/* =============================================
   FOOTER
   ============================================= */
.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;
}

.copyright-bar {
    background-color: #1a1a1a !important;
}

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

.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%;
}

.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;
}

.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;
}

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

.footer-copyright p {
    margin: 0;
}

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

/* =============================================
   BUSCADOR 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;
}

@media (min-width: 769px) {
    .menu-search {
        display: none;
    }
}

/* =============================================
   BUSCADOR DESKTOP
   ============================================= */
.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;
}

.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;
}

@media (max-width: 768px) {
    .search-icon-desktop {
        display: none;
    }
}

/* =============================================
   HOMEPAGE - 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
   ============================================= */
.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 {
    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%;
    }
    .feature-cta {
        order: -1;
    }
}

/* =============================================
   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 - EMPRESAS
   ============================================= */
.companies-section {
    padding: 3rem 2rem;
    background: #ffffff;
}

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

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

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

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

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

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

.company-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

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

.company-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: #f0f0f0;
}

.company-card h3 {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #2c2c2c;
    margin: 0;
}

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

/* =============================================
   HOMEPAGE - GRID 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: 2rem;
    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-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.post-content {
    padding: 0.75rem 1.25rem 1.25rem;
}

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

.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);
}

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

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

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

.np-cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    min-height: 48px; /* touch target mínimo recomendado */
    letter-spacing: 0.02em;
}

.np-cta-buttons a:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.np-cta-buttons a:active {
    transform: translateY(0);
    opacity: 1;
}

.np-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    line-height: 1.3;
    min-height: 48px;
}

.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;
}

.np-img-center {
    text-align: center;
    margin: 1.5rem 0;
}

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

/* Mobile: botones apilados, full-width, táctiles */
@media (max-width: 600px) {
    .np-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0;
    }
    .np-cta-buttons a {
        width: 100%;
        font-size: 1rem;
        padding: 1rem 1.5rem;
        min-height: 52px;
        border-radius: 12px; /* menos pill, más legible en móvil */
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    .np-btn {
        width: 100%;
        border-radius: 12px;
    }
}

/* =============================================
   PÁGINAS LEGALES
   ============================================= */
.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;
}

.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;
    }
}

/* =============================================
   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-photo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6600, #cc5200);
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.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;
    }
}

/* =============================================
   ANUNCIO INTERCALADO EN GRID DE POSTS
   ============================================= */
.ad-section-inline {
    grid-column: 1 / -1; /* ocupa todo el ancho del grid */
    padding: 1.5rem 0;
    background: transparent;
    border: none;
}

.ad-section-inline .ad-inner {
    border: 1px dashed #ddd;
    background: #fafafa;
    min-height: 90px;
}

/* =============================================
   MENÚ EMPRESAS DESTACADAS (bajo el header)
   ============================================= */
.empresa-nav {
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
}
.empresa-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.empresa-nav-inner::-webkit-scrollbar { display: none; }
.empresa-nav-inner a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 1.1rem;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    border-right: 1px solid #2a2a2a;
}
.empresa-nav-inner a:first-child { border-left: 1px solid #2a2a2a; }
.empresa-nav-inner a:hover { color: #ff6600; background: #222; }


/* =============================================
   HEADER MÓVIL - GeneratePress fix limpio
   ============================================= */

/* 1. Quitar borde/sombra bajo el header */
.site-header {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 2. inside-header: logo + hamburger en una fila */
.inside-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 10px 16px !important;
    min-height: 56px !important;
}

/* 3. Logo: izquierda */
.site-branding {
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* 4. Hamburger: derecha, compacto */
.menu-toggle {
    order: 2 !important;
    flex-shrink: 0 !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    font-size: 0 !important; /* ocultar texto "Menu" */
    line-height: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: #fff !important;
    position: relative !important;
}

/* 5. Mostrar icono hamburger (3 líneas) */
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #ffffff !important;
    position: relative !important;
    transition: all 0.25s ease !important;
}
.menu-toggle-icon {
    margin: 10px 0 !important;
}
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
}
.menu-toggle-icon::before { top: -8px !important; }
.menu-toggle-icon::after  { top:  8px !important; }

/* 6. Menú desplegado: fila completa debajo del header */
.main-navigation {
    width: 100% !important;
    order: 3 !important;
}

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

/* 8. En desktop: hamburger oculto, nav en línea */
@media (min-width: 769px) {
    .menu-toggle { display: none !important; }
    .inside-header { flex-wrap: nowrap !important; }
    .main-navigation { width: auto !important; flex: 1 !important; }
}

/* =============================================
   ESPACIOS MÓVIL - reducir padding excesivo
   ============================================= */
@media (max-width: 768px) {
    .hero-section    { padding: 1.8rem 1rem 1.5rem !important; }
    .search-section  { padding: 14px 16px !important; }
    .features-section{ padding: 1.2rem 1rem !important; }
    .ad-section      { margin: 6px 0 !important; padding: 0 1rem !important; }
    .companies-section,
    .posts-section   { padding: 1.2rem 1rem !important; }
}

/* =============================================
   LOGO - Tamaño aumentado
   ============================================= */
.site-branding .custom-logo,
.site-header .custom-logo {
    height: 52px !important;
    width: auto !important;
    max-width: none !important;
}

@media (min-width: 769px) {
    .site-branding .custom-logo,
    .site-header .custom-logo {
        height: 64px !important;
    }
}
