/* Tecnorep - Main CSS
 * @package Tecnorep
 * @since 1.0.0
 */

/* ICONS */
.trp-icon { width: 24px; height: 24px; flex-shrink: 0; }
.trp-icon--sm { width: 18px; height: 18px; }

/* TOP BAR */
.trp-topbar { background-color: var(--trp-mediterraneo-dark); color: var(--trp-blanco); font-size: 0.8125rem; }
.trp-topbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--trp-topbar-height); gap: 16px; }
.trp-topbar__info { display: flex; align-items: center; gap: 20px; }
.trp-topbar__item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); transition: color var(--trp-transition); white-space: nowrap; }
a.trp-topbar__item:hover { color: var(--trp-blanco); }
.trp-topbar__actions { display: flex; align-items: center; gap: 16px; }
.trp-topbar__social { display: flex; align-items: center; gap: 8px; }
.trp-topbar__social-link { display: inline-flex; color: rgba(255,255,255,0.7); transition: color var(--trp-transition); }
.trp-topbar__social-link:hover { color: var(--trp-blanco); }

/* DARK MODE TOGGLE */
.trp-dark-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: none; background: transparent; color: rgba(255,255,255,0.85); cursor: pointer; border-radius: 50%; transition: all var(--trp-transition); }
.trp-dark-toggle:hover { background: rgba(255,255,255,0.1); color: var(--trp-blanco); }
.trp-dark-toggle__sun, .trp-dark-toggle__moon { width: 18px; height: 18px; }
.trp-dark-toggle__moon { display: none; }
body.dark-mode .trp-dark-toggle__sun { display: none; }
body.dark-mode .trp-dark-toggle__moon { display: block; }

/* HEADER MAIN */
.trp-header { position: relative; z-index: 1000; }
.trp-header-main { background-color: var(--trp-bg); border-bottom: 1px solid var(--trp-border); transition: all var(--trp-transition); }
.trp-header-main__inner { display: flex; align-items: center; justify-content: space-between; height: var(--trp-header-height); gap: 24px; }
.trp-header.scrolled .trp-header-main { position: fixed; top: 0; left: 0; right: 0; height: 60px; box-shadow: 0 2px 12px var(--trp-shadow); animation: trp-slide-down 0.3s ease; }
.trp-header.scrolled .trp-topbar { transform: translateY(-100%); height: 0; overflow: hidden; }
.trp-header.scrolled ~ .site-content { margin-top: calc(var(--trp-header-height) + var(--trp-topbar-height)); }
@keyframes trp-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* LOGO */
.trp-header-main__logo .custom-logo-link { display: inline-flex; }
.trp-header-main__logo .custom-logo { max-height: 60px; width: auto; transition: max-height var(--trp-transition); }
.trp-header.scrolled .trp-header-main__logo .custom-logo { max-height: 45px; }
.trp-logo-text { display: flex; flex-direction: column; text-decoration: none; }
.trp-logo-text__brand { font-family: var(--trp-font-heading); font-size: 1.25rem; font-weight: 700; color: var(--trp-mediterraneo); line-height: 1.2; }
.trp-logo-text__tagline { font-size: 0.75rem; color: var(--trp-text-light); }

/* NAVIGATION */
.trp-header-main__nav { flex: 1; display: flex; justify-content: center; }
.trp-nav-menu { display: flex; align-items: center; gap: 4px; }
.trp-nav-menu li { position: relative; }
.trp-nav-menu > li > a { display: inline-flex; align-items: center; padding: 8px 16px; font-family: var(--trp-font-heading); font-size: 0.9375rem; font-weight: 500; color: var(--trp-text-dark); transition: color var(--trp-transition); white-space: nowrap; }
.trp-nav-menu > li > a:hover, .trp-nav-menu > li.current-menu-item > a, .trp-nav-menu > li.current_page_item > a { color: var(--trp-primary); }
.trp-nav-menu > li > a::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background-color: var(--trp-primary); transform: scaleX(0); transition: transform var(--trp-transition); }
.trp-nav-menu > li > a:hover::after, .trp-nav-menu > li.current-menu-item > a::after, .trp-nav-menu > li.current_page_item > a::after { transform: scaleX(1); }

/* SUBMENU */
.trp-nav-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background-color: var(--trp-bg); border: 1px solid var(--trp-border); border-radius: var(--trp-border-radius); box-shadow: 0 8px 24px var(--trp-shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--trp-transition); padding: 8px 0; z-index: 100; }
.trp-nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.trp-nav-menu .sub-menu li a { display: block; padding: 10px 20px; font-size: 0.875rem; color: var(--trp-text); transition: all var(--trp-transition); }
.trp-nav-menu .sub-menu li a:hover { background-color: var(--trp-bg-surface); color: var(--trp-primary); padding-left: 24px; }

/* HEADER ACTIONS */
.trp-header-main__actions { display: flex; align-items: center; gap: 8px; }
.trp-header-search-toggle, .trp-header-account { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: none; background: transparent; color: var(--trp-text); cursor: pointer; border-radius: 50%; transition: all var(--trp-transition); text-decoration: none; }
.trp-header-search-toggle:hover, .trp-header-account:hover { background-color: var(--trp-bg-surface); color: var(--trp-primary); }

/* CART */
.trp-header-cart__link { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 40px; height: 40px; color: var(--trp-text); transition: color var(--trp-transition); text-decoration: none; }
.trp-header-cart__link:hover { color: var(--trp-primary); }
.trp-header-cart__count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; background-color: var(--trp-primary); color: var(--trp-blanco); font-size: 0.6875rem; font-weight: 700; border-radius: 50%; padding: 0 4px; }

/* SEARCH OVERLAY */
.trp-search-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--trp-overlay); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding-top: 120px; opacity: 0; visibility: hidden; transition: all var(--trp-transition); }
.trp-search-overlay.active { opacity: 1; visibility: visible; }
.trp-search-overlay__inner { position: relative; width: 100%; max-width: 600px; }
.trp-search-overlay .search-form { display: flex; }
.trp-search-overlay .search-field { flex: 1; padding: 16px 24px; font-size: 1.25rem; border: none; border-radius: var(--trp-border-radius) 0 0 var(--trp-border-radius); background: var(--trp-bg); color: var(--trp-text); }
.trp-search-overlay .search-submit { padding: 16px 24px; background-color: var(--trp-primary); color: var(--trp-blanco); border: none; border-radius: 0 var(--trp-border-radius) var(--trp-border-radius) 0; cursor: pointer; font-weight: 600; transition: background-color var(--trp-transition); }
.trp-search-overlay .search-submit:hover { background-color: var(--trp-primary-hover); }
.trp-search-overlay__close { position: absolute; top: -50px; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: none; background: rgba(255,255,255,0.2); color: var(--trp-blanco); cursor: pointer; border-radius: 50%; transition: all var(--trp-transition); }
.trp-search-overlay__close:hover { background: rgba(255,255,255,0.3); }

/* HEADER MOBILE */
.trp-header-mobile { display: none; background-color: var(--trp-bg); border-bottom: 1px solid var(--trp-border); }
.trp-header-mobile__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.trp-header-mobile__logo .custom-logo { max-height: 40px; width: auto; }
.trp-header-mobile__actions { display: flex; align-items: center; gap: 8px; }

/* HAMBURGER */
.trp-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; padding: 6px; border: none; background: transparent; cursor: pointer; }
.trp-hamburger__line { display: block; width: 100%; height: 2px; background-color: var(--trp-text-dark); border-radius: 2px; transition: all var(--trp-transition); transform-origin: center; }
.trp-hamburger.active .trp-hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.trp-hamburger.active .trp-hamburger__line:nth-child(2) { opacity: 0; }
.trp-hamburger.active .trp-hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.trp-mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9998; pointer-events: none; visibility: hidden; opacity: 0; transition: visibility 0s linear 0.3s, opacity 0.3s ease; }
.trp-mobile-menu.active { pointer-events: all; visibility: visible; opacity: 1; transition-delay: 0s; }
.trp-mobile-menu__overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); }
.trp-mobile-menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 85%; max-width: 360px; background-color: var(--trp-bg); transform: translateX(100%); transition: transform var(--trp-transition); overflow-y: auto; display: flex; flex-direction: column; }
.trp-mobile-menu.active .trp-mobile-menu__panel { transform: translateX(0); }
.trp-mobile-menu__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--trp-border); }
.trp-mobile-menu__title { font-family: var(--trp-font-heading); font-size: 1.125rem; font-weight: 600; color: var(--trp-heading); }
.trp-mobile-menu__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: none; background: transparent; color: var(--trp-text); cursor: pointer; border-radius: 50%; transition: all var(--trp-transition); }
.trp-mobile-menu__close:hover { background-color: var(--trp-bg-surface); }
.trp-mobile-menu__nav { flex: 1; padding: 16px 0; }
.trp-mobile-nav li a { display: block; padding: 12px 20px; font-family: var(--trp-font-heading); font-size: 1rem; font-weight: 500; color: var(--trp-text-dark); border-bottom: 1px solid var(--trp-border-light); transition: all var(--trp-transition); }
.trp-mobile-nav li a:hover { background-color: var(--trp-bg-surface); color: var(--trp-primary); padding-left: 24px; }
.trp-mobile-nav .sub-menu { padding-left: 16px; }
.trp-mobile-nav .sub-menu li a { font-size: 0.9375rem; font-weight: 400; color: var(--trp-text); }
.trp-mobile-menu__contact { padding: 20px; border-top: 1px solid var(--trp-border); display: flex; flex-direction: column; gap: 12px; }
.trp-mobile-menu__contact-item { display: inline-flex; align-items: center; gap: 10px; color: var(--trp-text); font-size: 0.9375rem; text-decoration: none; transition: color var(--trp-transition); }
.trp-mobile-menu__contact-item:hover { color: var(--trp-primary); }
.trp-mobile-menu__contact-item--whatsapp { color: #25D366; }

/* FOOTER */
.trp-footer { background-color: var(--trp-mediterraneo-dark); color: rgba(255,255,255,0.8); }
.trp-footer a { color: rgba(255,255,255,0.7); transition: color var(--trp-transition); }
.trp-footer a:hover { color: var(--trp-blanco); }
.trp-footer-widgets { padding: 60px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.trp-footer-widgets__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.trp-footer-widget-title { font-family: var(--trp-font-heading); font-size: 1.125rem; font-weight: 600; color: var(--trp-blanco); margin-bottom: 20px; }
.trp-footer-about p { font-size: 0.9375rem; line-height: 1.7; }
.trp-footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trp-footer-links a { font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 6px; }
.trp-footer-links a::before { content: '\203A'; font-size: 1.2em; }
.trp-footer-contact { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.trp-footer-contact__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.trp-footer-contact__item { display: flex; align-items: flex-start; gap: 12px; }
.trp-footer-contact__item .trp-icon { flex-shrink: 0; color: var(--trp-turquesa-light); margin-top: 2px; }
.trp-footer-contact__item h5 { font-family: var(--trp-font-heading); font-size: 0.9375rem; font-weight: 600; color: var(--trp-blanco); margin-bottom: 4px; }
.trp-footer-contact__item p, .trp-footer-contact__item a { font-size: 0.875rem; line-height: 1.6; }
.trp-footer-social { padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
.trp-footer-social__inner { }
.trp-footer-social__title { font-family: var(--trp-font-heading); font-size: 1rem; font-weight: 500; color: var(--trp-blanco); margin-bottom: 20px; }
.trp-footer-social__links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
.trp-social-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--trp-border-radius); font-size: 0.875rem; color: rgba(255,255,255,0.8); transition: all var(--trp-transition); }
.trp-social-link:hover { border-color: var(--trp-turquesa-light); background-color: rgba(255,255,255,0.05); color: var(--trp-blanco); }
.trp-social-link--whatsapp:hover { border-color: #25D366; }
.trp-footer-bottom { padding: 20px 0; }
.trp-footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; }
.trp-footer-bottom__copyright p { font-size: 0.8125rem; margin: 0; color: rgba(255,255,255,0.6); }
.trp-footer-bottom__links { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; }
.trp-footer-bottom__links a { color: rgba(255,255,255,0.6); }
.trp-footer-bottom__links a:hover { color: var(--trp-blanco); }
.trp-footer-bottom__sep { color: rgba(255,255,255,0.3); }

/* WHATSAPP FLOAT */
.trp-whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.trp-whatsapp-float__btn { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background-color: #25D366; color: white; border-radius: 50%; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: all var(--trp-transition); text-decoration: none; }
.trp-whatsapp-float__btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(37,211,102,0.5); color: white; }
.trp-whatsapp-float__icon { width: 28px; height: 28px; }
.trp-whatsapp-float__icon svg { width: 28px; height: 28px; display: block; }
.trp-whatsapp-float__tooltip { position: absolute; bottom: 66px; right: 0; background-color: var(--trp-bg); color: var(--trp-text); padding: 8px 14px; border-radius: var(--trp-border-radius); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; box-shadow: 0 4px 12px var(--trp-shadow-md); opacity: 0; transform: translateY(10px); transition: all var(--trp-transition); pointer-events: none; }
.trp-whatsapp-float__tooltip::after { content: ''; position: absolute; bottom: -6px; right: 22px; width: 12px; height: 12px; background-color: var(--trp-bg); transform: rotate(45deg); }
.trp-whatsapp-float:hover .trp-whatsapp-float__tooltip { opacity: 1; transform: translateY(0); }

/* SCROLL TO TOP */
.trp-scroll-top { position: fixed; bottom: 24px; left: 24px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background-color: var(--trp-primary); color: var(--trp-blanco); border: none; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--trp-transition); z-index: 998; box-shadow: 0 4px 12px var(--trp-shadow-md); }
.trp-scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.trp-scroll-top:hover { background-color: var(--trp-primary-hover); transform: translateY(-4px); box-shadow: 0 6px 16px var(--trp-shadow-md); }
.trp-scroll-top .trp-icon { width: 24px; height: 24px; }

/* CONTENT LAYOUT */
.trp-content-layout { display: flex; gap: 40px; }
.trp-content-layout__main { flex: 1; min-width: 0; }
.trp-content-layout--with-sidebar .trp-content-layout__main { flex: 1; }
.trp-content-layout__sidebar { width: 300px; flex-shrink: 0; }

/* SIDEBAR */
.trp-sidebar { position: sticky; top: 100px; }
.trp-widget { background-color: var(--trp-bg); border: 1px solid var(--trp-border); border-radius: var(--trp-border-radius); padding: 24px; margin-bottom: 24px; }
.trp-widget-title { font-family: var(--trp-font-heading); font-size: 1.125rem; font-weight: 600; color: var(--trp-heading); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--trp-primary); }

/* ARTICLE */
.trp-article { margin-bottom: 40px; }
.trp-article__header { margin-bottom: 16px; }
.trp-article__title { font-size: 1.5rem; margin-bottom: 8px; }
.trp-article__title a { color: var(--trp-heading); text-decoration: none; transition: color var(--trp-transition); }
.trp-article__title a:hover { color: var(--trp-primary); }
.trp-article__meta { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--trp-text-light); }
.trp-article__meta-sep { color: var(--trp-border); }
.trp-article__thumbnail { margin-bottom: 20px; border-radius: var(--trp-border-radius); overflow: hidden; }
.trp-article__thumbnail img { width: 100%; height: auto; transition: transform var(--trp-transition-slow); }
.trp-article:hover .trp-article__thumbnail img { transform: scale(1.03); }
.trp-article__excerpt { margin-bottom: 20px; color: var(--trp-text); }
.trp-btn--sm { padding: 8px 20px; font-size: 0.8125rem; }

/* ARCHIVE GRID */
.trp-archive-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 30px; }
.trp-archive-card { background: var(--trp-bg); border: 1px solid var(--trp-border); border-radius: var(--trp-border-radius); overflow: hidden; transition: all var(--trp-transition); }
.trp-archive-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--trp-shadow-md); }
.trp-archive-card__thumbnail { overflow: hidden; aspect-ratio: 16/10; }
.trp-archive-card__thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trp-transition-slow); }
.trp-archive-card:hover .trp-archive-card__thumbnail img { transform: scale(1.05); }
.trp-archive-card__body { padding: 20px; }
.trp-archive-card__meta { font-size: 0.8125rem; color: var(--trp-text-light); margin-bottom: 8px; }
.trp-archive-card__title { font-size: 1.125rem; margin-bottom: 8px; }
.trp-archive-card__title a { color: var(--trp-heading); text-decoration: none; }
.trp-archive-card__title a:hover { color: var(--trp-primary); }
.trp-archive-card__excerpt { font-size: 0.875rem; color: var(--trp-text); margin-bottom: 16px; }
.trp-archive-card__link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 600; color: var(--trp-primary); }
.trp-archive-card__link:hover { gap: 8px; }

/* SEARCH RESULTS */
.trp-search-result { border-bottom: 1px solid var(--trp-border); padding: 20px 0; }
.trp-search-result__inner { display: flex; gap: 20px; }
.trp-search-result__thumbnail { flex-shrink: 0; width: 100px; height: 100px; border-radius: var(--trp-border-radius); overflow: hidden; }
.trp-search-result__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.trp-search-result__title { font-size: 1.125rem; margin-bottom: 8px; }
.trp-search-result__title a { color: var(--trp-heading); }
.trp-search-result__title a:hover { color: var(--trp-primary); }
.trp-search-result__excerpt { font-size: 0.875rem; color: var(--trp-text); margin-bottom: 8px; }
.trp-search-result__link { font-size: 0.875rem; font-weight: 600; color: var(--trp-primary); }

/* 404 */
.trp-404 { text-align: center; padding: 80px 0; }
.trp-404__code { font-family: var(--trp-font-heading); font-size: clamp(6rem,15vw,10rem); font-weight: 800; color: var(--trp-primary); line-height: 1; opacity: 0.3; }
.trp-404__title { font-size: 2rem; margin-bottom: 16px; }
.trp-404__text { max-width: 500px; margin: 0 auto 30px; color: var(--trp-text); }
.trp-404__search { max-width: 400px; margin: 0 auto 30px; }
.trp-404__links { display: inline-block; text-align: left; }
.trp-404__links h3 { font-size: 1rem; margin-bottom: 12px; }
.trp-404__links ul { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.trp-404__links a { display: inline-block; padding: 8px 16px; background-color: var(--trp-bg-surface); border-radius: var(--trp-border-radius); color: var(--trp-text); font-size: 0.875rem; transition: all var(--trp-transition); }
.trp-404__links a:hover { background-color: var(--trp-primary); color: var(--trp-blanco); }

/* NO RESULTS */
.trp-no-results { text-align: center; padding: 40px 0; }
.trp-no-results__title { font-size: 1.5rem; margin-bottom: 12px; }
.trp-no-results__text { color: var(--trp-text); margin-bottom: 24px; }
.trp-no-results__search { max-width: 400px; margin: 0 auto 30px; }
.trp-no-results__links h3 { font-size: 1rem; margin-bottom: 12px; }
.trp-no-results__links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; }
.trp-no-results__links a { display: inline-block; padding: 8px 16px; background-color: var(--trp-bg-surface); border-radius: var(--trp-border-radius); color: var(--trp-text); transition: all var(--trp-transition); }
.trp-no-results__links a:hover { background-color: var(--trp-primary); color: var(--trp-blanco); }

/* PAGINATION */
.trp-pagination { margin-top: 40px; }
.trp-pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.trp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--trp-border); border-radius: var(--trp-border-radius); font-size: 0.875rem; font-weight: 500; color: var(--trp-text); text-decoration: none; transition: all var(--trp-transition); }
.trp-pagination .page-numbers:hover, .trp-pagination .page-numbers.current { background-color: var(--trp-primary); border-color: var(--trp-primary); color: white; }

/* BREADCRUMBS */
.trp-breadcrumbs { margin-top: 12px; font-size: 0.8125rem; }
.trp-breadcrumbs__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.trp-breadcrumbs__home, .trp-breadcrumbs__link { color: var(--trp-text-light); text-decoration: none; transition: color var(--trp-transition); }
.trp-breadcrumbs__home:hover, .trp-breadcrumbs__link:hover { color: var(--trp-primary); }
.trp-breadcrumbs__sep { color: var(--trp-border); margin: 0 2px; }
.trp-breadcrumbs__current { color: var(--trp-text); font-weight: 500; }

/* ENTRY CONTENT */
.trp-entry-content { font-size: 1.0625rem; line-height: 1.8; }
.trp-entry-content h2, .trp-entry-content h3, .trp-entry-content h4 { margin-top: 1.5em; }
.trp-entry-content p { margin-bottom: 1.25em; }
.trp-entry-content a { color: var(--trp-primary); text-decoration: underline; }
.trp-entry-content img { border-radius: var(--trp-border-radius); margin: 1.5em 0; }
.trp-entry-content blockquote { border-left: 4px solid var(--trp-primary); padding: 16px 24px; margin: 1.5em 0; background-color: var(--trp-bg-surface); border-radius: 0 var(--trp-border-radius) var(--trp-border-radius) 0; font-style: italic; }
.trp-entry-content ul, .trp-entry-content ol { margin: 1em 0; padding-left: 1.5em; list-style: disc; }
.trp-entry-content ol { list-style: decimal; }
.trp-entry-content li { margin-bottom: 0.5em; }
.trp-entry-content pre { background-color: var(--trp-bg-surface); padding: 20px; border-radius: var(--trp-border-radius); overflow-x: auto; font-size: 0.875rem; }
.trp-entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.trp-entry-content th, .trp-entry-content td { padding: 12px; border: 1px solid var(--trp-border); text-align: left; }
.trp-entry-content th { background-color: var(--trp-bg-surface); font-weight: 600; }

/* POST NAVIGATION */
.trp-post-navigation { margin: 40px 0; padding-top: 30px; border-top: 1px solid var(--trp-border); }
.trp-post-navigation__inner { display: flex; justify-content: space-between; gap: 20px; }
.trp-post-navigation__link { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--trp-border); border-radius: var(--trp-border-radius); text-decoration: none; transition: all var(--trp-transition); max-width: 48%; }
.trp-post-navigation__link:hover { border-color: var(--trp-primary); background-color: var(--trp-bg-surface); }
.trp-post-navigation__next { margin-left: auto; text-align: right; }
.trp-post-navigation__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--trp-text-light); }
.trp-post-navigation__title { display: block; font-size: 0.9375rem; font-weight: 500; color: var(--trp-text-dark); }

/* SINGLE TAGS */
.trp-single-tags { margin: 30px 0; padding-top: 20px; border-top: 1px solid var(--trp-border); }
.trp-single-tags__label { font-weight: 600; color: var(--trp-text-dark); margin-right: 8px; }
.trp-single-tags a { display: inline-block; padding: 4px 12px; background-color: var(--trp-bg-surface); border-radius: var(--trp-border-radius-sm); font-size: 0.8125rem; color: var(--trp-text); margin: 2px; transition: all var(--trp-transition); }
.trp-single-tags a:hover { background-color: var(--trp-primary); color: var(--trp-blanco); }

/* ELEMENTOR PRO COMPATIBILITY */
.trp-page-elementor,
.trp-single-elementor {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.trp-page-elementor .elementor-location-header + section,
.trp-single-elementor .elementor-location-header + section {
    margin-top: 0;
}

.trp-page-elementor .elementor-location-footer,
.trp-single-elementor .elementor-location-footer {
    margin-bottom: 0;
}

/* Elementor Full Width Templates */
.elementor-template-canvas .trp-header,
.elementor-template-canvas .trp-footer {
    display: none;
}

.elementor-template-canvas #content {
    padding-top: 0;
}

.elementor-template-full-width .elementor-section {
    width: 100%;
    max-width: 100%;
}

/* Elementor Canvas Template - No header/footer */
body.elementor-template-canvas {
    padding: 0;
}

body.elementor-template-canvas #page {
    max-width: 100%;
    padding: 0;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .trp-header-main { display: none; }
    .trp-header-mobile { display: block; }
}
@media (max-width: 768px) {
    .trp-footer-widgets__grid { grid-template-columns: 1fr; }
    .trp-footer-contact__grid { grid-template-columns: repeat(2,1fr); }
    .trp-footer-bottom__inner { flex-direction: column; gap: 12px; text-align: center; }
    .trp-content-layout { flex-direction: column; }
    .trp-content-layout__sidebar { width: 100%; }
}
@media (max-width: 480px) {
    .trp-footer-contact__grid { grid-template-columns: 1fr; }
}
