body.page-id-63 .entry-header {
  display: none !important;
}

body.page-id-63 .entry-content {
  margin-top: 0;
}

.tmde-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #3c3c3c;
}

.editor-styles-wrapper .tmde-shell {
  width: 100%;
  margin-left: 0;
}

.tmde-container {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto !important;
  margin-right: auto !important;
}

.editor-styles-wrapper .tmde-container {
  width: 100%;
}

.tmde-hero {
  background:
    radial-gradient(circle at 80% 22%, rgba(255,195,60,.18), transparent 34%),
    radial-gradient(circle at 20% 10%, rgba(18,140,235,.2), transparent 32%),
    linear-gradient(135deg, #262e4f 0%, #1a2240 100%);
  color: #fff;
  padding: 76px 0 58px;
}

.editor-styles-wrapper .tmde-hero {
  padding: 76px 48px 58px !important;
}

.tmde-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 900;
  margin: 0;
}

.tmde-hero p {
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
}

.tmde-kicker {
  color: #ffc33c !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.tmde-section {
  background: #f5f7fa;
  padding: 54px 0 78px;
}

.editor-styles-wrapper .tmde-section {
  padding: 54px 48px 78px !important;
}

.tmde-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.tmde-filters {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(38,46,79,.06);
  position: sticky;
  top: 86px;
}

.tmde-filters h2 {
  color: #262e4f;
  font-size: 18px;
  margin: 0 0 12px;
}

.tmde-filters p {
  color: #5e748b;
  font-size: 14px;
  line-height: 1.55;
}

.tmde-heading-row {
  margin-bottom: 24px;
}

.tmde-heading-row h2 {
  color: #262e4f;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
  line-height: 1.1;
}

.tmde-heading-row p {
  color: #5e748b;
  margin: 8px 0 0;
}

.tmde-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tmde-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(38,46,79,.06);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}

.tmde-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(18,140,235,.13);
}

.tmde-image {
  height: 188px;
  background:
    radial-gradient(circle at 24% 28%, rgba(255,195,60,.42), transparent 30%),
    radial-gradient(circle at 78% 66%, rgba(18,140,235,.34), transparent 36%),
    #eef3f9;
  display: block;
  overflow: hidden;
}

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

.tmde-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tmde-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.tmde-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(18,140,235,.1);
  color: #128ceb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tmde-card h3 {
  color: #262e4f;
  font-size: 21px;
  line-height: 1.18;
  margin: 0 0 8px;
  font-weight: 900;
}

.tmde-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tmde-excerpt {
  color: #5e748b;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.tmde-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}

.tmde-specs div {
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  padding: 10px;
  background: #fbfcfe;
}

.tmde-specs span {
  display: block;
  color: #5e748b;
  font-size: 11px;
  margin-bottom: 4px;
}

.tmde-specs strong {
  display: block;
  color: #262e4f;
  font-size: 13px;
}

.tmde-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tmde-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.tmde-btn-primary {
  background: #128ceb;
  color: #fff;
}

.tmde-btn-secondary {
  border: 1px solid #128ceb;
  color: #128ceb;
}

.tmde-filters-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tmde-filter-group {
  border: 0;
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid #e8ecf2;
}

.tmde-filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tmde-filter-group legend {
  color: #262e4f;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 12px;
}

.tmde-filter-option {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: #5e748b;
  font-size: 14px;
  cursor: pointer;
}

.tmde-filter-option input {
  width: 16px;
  height: 16px;
  accent-color: #128ceb;
}

.tmde-filter-option span {
  color: #3c3c3c;
}

.tmde-filter-option em {
  font-style: normal;
  color: #5e748b;
  background: #f5f7fa;
  border-radius: 999px;
  min-width: 24px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.tmde-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmde-active-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(18,140,235,.1);
  color: #128ceb;
  font-size: 11px;
  font-weight: 900;
}

.tmde-clear-filters {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: #262e4f;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
}

.tmde-empty {
  background: #fff;
  border: 1px dashed #b9c4d2;
  border-radius: 18px;
  padding: 28px;
  color: #5e748b;
}

.tmde-cta {
  margin-top: 46px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,195,60,.28), transparent 28%),
    linear-gradient(135deg, #128ceb, #262e4f);
  color: #fff;
  padding: 38px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.tmde-cta h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.tmde-cta p {
  color: rgba(255,255,255,.78);
  margin: 10px 0 0;
}

.tmde-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 7px;
  background: #ffc33c;
  color: #262e4f;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1060px) {
  .tmde-layout {
    grid-template-columns: 1fr;
  }

  .tmde-filters {
    position: static;
  }

  .tmde-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tmde-hero {
    padding: 58px 0 44px;
  }

  .tmde-section {
    padding: 38px 0 58px;
  }

  .tmde-grid {
    grid-template-columns: 1fr;
  }

  .tmde-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mejor visualización de Energía dentro del editor Gutenberg */
.editor-styles-wrapper .tmde-hero h1,
.editor-styles-wrapper .tmde-hero .wp-block-heading {
  color: #ffffff !important;
}

.editor-styles-wrapper .tmde-hero p:not(.tmde-kicker) {
  color: rgba(255,255,255,.78) !important;
}

.editor-styles-wrapper .tmde-kicker {
  color: #ffc33c !important;
}

.editor-styles-wrapper .tmde-cta h2 {
  color: #ffffff !important;
}

.editor-styles-wrapper .tmde-cta p {
  color: rgba(255,255,255,.78) !important;
}

.editor-styles-wrapper .tmde-cta a {
  background: #ffc33c !important;
  color: #262e4f !important;
}

/* TMD_ENERGY_GRID_WIDTH_FIX_START */
.tmde-container {
  width: min(1280px, calc(100% - 32px));
}

.tmde-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
}

.tmde-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tmde-card h3 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.tmde-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmde-specs strong,
.tmde-specs span {
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: none;
}

@media (min-width: 1180px) {
  .tmde-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
  }
}

@media (max-width: 1180px) {
  .tmde-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  .tmde-layout {
    grid-template-columns: 1fr;
  }

  .tmde-grid {
    grid-template-columns: 1fr;
  }
}
/* TMD_ENERGY_GRID_WIDTH_FIX_END */

/* TMD_ENERGY_FILTER_NARROW_START */
.tmde-container {
  width: min(1320px, calc(100% - 32px));
}

.tmde-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.tmde-filters {
  padding: 18px;
}

.tmde-filters h2 {
  font-size: 17px;
}

.tmde-filters p {
  font-size: 13px;
}

.tmde-filter-group legend {
  font-size: 13px;
}

.tmde-filter-option {
  grid-template-columns: 16px minmax(0, 1fr) 24px;
  gap: 8px;
  font-size: 13px;
}

.tmde-filter-option em {
  min-width: 22px;
  height: 21px;
}

@media (min-width: 1180px) {
  .tmde-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

@media (max-width: 980px) {
  .tmde-layout {
    grid-template-columns: 1fr;
  }
}
/* TMD_ENERGY_FILTER_NARROW_END */

/* TMD_ENERGY_FORCE_NARROW_FILTER_START */
body.page-id-63 .tmde-layout,
body.page .tmde-layout {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 26px !important;
  align-items: start !important;
}

body.page-id-63 .tmde-layout > .wp-block-column,
body.page .tmde-layout > .wp-block-column {
  flex-basis: auto !important;
  flex-grow: 0 !important;
  min-width: 0 !important;
}

body.page-id-63 .tmde-layout > .wp-block-column:first-child,
body.page .tmde-layout > .wp-block-column:first-child {
  width: 220px !important;
  max-width: 220px !important;
}

body.page-id-63 .tmde-layout > .wp-block-column:last-child,
body.page .tmde-layout > .wp-block-column:last-child {
  width: auto !important;
  max-width: none !important;
  flex-grow: 1 !important;
}

body.page-id-63 .tmde-filters,
body.page .tmde-filters {
  width: 220px !important;
  max-width: 220px !important;
  padding: 16px !important;
}

body.page-id-63 .tmde-filter-option,
body.page .tmde-filter-option {
  grid-template-columns: 15px minmax(0, 1fr) 22px !important;
  font-size: 12.5px !important;
}

body.page-id-63 .tmde-filter-group legend,
body.page .tmde-filter-group legend {
  font-size: 12.5px !important;
}

body.page-id-63 .tmde-grid,
body.page .tmde-grid {
  grid-template-columns: repeat(3, minmax(270px, 1fr)) !important;
  gap: 22px !important;
}

@media (max-width: 1180px) {
  body.page-id-63 .tmde-layout,
  body.page .tmde-layout {
    grid-template-columns: 1fr !important;
  }

  body.page-id-63 .tmde-layout > .wp-block-column:first-child,
  body.page .tmde-layout > .wp-block-column:first-child,
  body.page-id-63 .tmde-filters,
  body.page .tmde-filters {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-id-63 .tmde-grid,
  body.page .tmde-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.page-id-63 .tmde-grid,
  body.page .tmde-grid {
    grid-template-columns: 1fr !important;
  }
}
/* TMD_ENERGY_FORCE_NARROW_FILTER_END */

/* TMD_ENERGY_CARD_CLEAN_START */
.tmde-card {
  min-height: auto;
}

.tmde-card-body {
  padding: 22px;
}

.tmde-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.tmde-specs div {
  min-height: 72px;
  padding: 13px;
}

.tmde-specs div:nth-child(n+5) {
  display: none;
}

.tmde-actions {
  display: flex !important;
  margin-top: 4px;
}

.tmde-btn {
  flex: 1;
  min-height: 42px;
}

.tmde-excerpt {
  min-height: 96px;
}

.tmde-image {
  height: 210px;
}

@media (max-width: 980px) {
  .tmde-excerpt {
    min-height: auto;
  }
}
/* TMD_ENERGY_CARD_CLEAN_END */

/* TMD_ENERGY_CARD_ALIGN_START */
.tmde-grid {
  align-items: stretch;
}

.tmde-card {
  height: 100%;
}

.tmde-card-body {
  display: flex;
  flex-direction: column;
}

.tmde-card h3 {
  min-height: 58px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tmde-excerpt {
  min-height: 112px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tmde-specs {
  min-height: 172px;
}

.tmde-specs strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tmde-actions {
  margin-top: auto !important;
}

.tmde-image img {
  object-fit: cover;
}

@media (max-width: 980px) {
  .tmde-card h3,
  .tmde-excerpt,
  .tmde-specs {
    min-height: auto;
  }
}
/* TMD_ENERGY_CARD_ALIGN_END */

/* TMD_ENERGY_HERO_COMPACT_START */
body.page-id-63 .tmde-hero {
  padding: 46px 0 42px !important;
}

body.page-id-63 .tmde-hero h1 {
  max-width: 880px !important;
  font-size: clamp(42px, 4.6vw, 64px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
}

body.page-id-63 .tmde-hero p:not(.tmde-kicker) {
  max-width: 760px !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  margin-top: 10px !important;
}

body.page-id-63 .tmde-section {
  padding-top: 42px !important;
}

body.page-id-63 .tmde-heading-row {
  margin-bottom: 22px !important;
}

body.page-id-63 .tmde-heading-row h2 {
  font-size: clamp(34px, 3.4vw, 48px) !important;
}

@media (max-width: 760px) {
  body.page-id-63 .tmde-hero {
    padding: 36px 0 34px !important;
  }

  body.page-id-63 .tmde-hero h1 {
    font-size: 38px !important;
  }
}
/* TMD_ENERGY_HERO_COMPACT_END */

/* TMD_ENERGY_HERO_FINAL_COMPACT_START */
body.page-id-63 .site-main,
body.page-id-63 main,
body.page-id-63 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-id-63 .tmde-shell {
  margin-top: -32px !important;
}

body.page-id-63 .tmde-hero {
  padding: 34px 0 32px !important;
}

body.page-id-63 .tmde-hero h1 {
  max-width: 1180px !important;
  font-size: clamp(38px, 4vw, 56px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
  margin: 10px 0 0 !important;
}

body.page-id-63 .tmde-hero p:not(.tmde-kicker) {
  max-width: 720px !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
  margin-top: 10px !important;
}

body.page-id-63 .tmde-kicker {
  margin-bottom: 0 !important;
}

body.page-id-63 .tmde-section {
  padding-top: 36px !important;
}

@media (min-width: 1100px) {
  body.page-id-63 .tmde-hero h1 {
    white-space: nowrap !important;
  }
}

@media (max-width: 760px) {
  body.page-id-63 .tmde-shell {
    margin-top: 0 !important;
  }

  body.page-id-63 .tmde-hero {
    padding: 32px 0 30px !important;
  }

  body.page-id-63 .tmde-hero h1 {
    white-space: normal !important;
    font-size: 36px !important;
  }
}
/* TMD_ENERGY_HERO_FINAL_COMPACT_END */

/* TMD_ENERGY_TOP_GAP_FIX_START */
body.page-id-63 .tmde-shell {
  margin-top: -72px !important;
}

body.page-id-63 .tmde-hero {
  padding-top: 32px !important;
  padding-bottom: 30px !important;
}

body.page-id-63 .tmde-section {
  padding-top: 28px !important;
}

@media (max-width: 760px) {
  body.page-id-63 .tmde-shell {
    margin-top: 0 !important;
  }
}
/* TMD_ENERGY_TOP_GAP_FIX_END */
