/* =========================================================
   🎨 VARIABLES GLOBALES (TEMA DEL SISTEMA)
========================================================= */
:root {
  --primary:#d32f2f;
  --bg:#f5f7fb;
  --surface:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow:0 6px 18px rgba(0,0,0,.08);
}

/* =========================================================
   🌍 RESET GLOBAL
========================================================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* =========================================================
   🧾 BASE DEL SISTEMA
========================================================= */
body {
  margin:0;
  font-family:Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* =========================================================
   🖼️ CONTENEDOR GENÉRICO DE IMAGEN (RESPONSIVE)
========================================================= */
.contenedor-img{
  width:100%;
  max-width:500px;
  height:300px;
  margin:auto;
  overflow:hidden;
  border-radius:12px;
  border:2px solid #ccc;
}

/* Imagen dentro del contenedor genérico */
.contenedor-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Responsive imagen contenedor */
@media (max-width:500px){
  .contenedor-img{
    height:220px;
  }
}

@media (max-width:480px){
  .contenedor-img{
    height:180px;
  }
}

/* =========================================================
   🧭 TOPBAR (CABECERA SUPERIOR)
========================================================= */
.techd_home-topbar {
  height:60px;
  background:var(--surface);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 15px;
  border-bottom:1px solid var(--border);
}

.techd_home-logo {
  color:var(--primary);
  font-weight:bold;
  font-size:20px;
}

.techd_home-search input {
  width:100%;
  padding:10px 14px;
  border-radius:20px;
  border:1px solid var(--border);
}

/* =========================================================
   📐 LAYOUT GENERAL (SIDEBAR + CENTRO + DERECHA)
========================================================= */
.techd_home-layout {
  display:flex;
  width:100%;
  min-height:100vh;
}

/* =========================================================
   📌 SIDEBAR IZQUIERDO
========================================================= */
.techd_home-left {
  width:280px;
  padding:15px;
  background:var(--surface);
}

.techd_home-benefits {
  list-style:none;
  padding:0;
}

.techd_home-benefits li {
  margin:8px 0;
  font-size:1em;
}

/* =========================================================
   📊 CENTRO (FEED PRINCIPAL)
========================================================= */
.techd_home-center {
  flex:1;
  display:flex;
  gap:15px;
  padding:15px;
}

/* columnas internas del feed */
.techd_home-column {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:15px;
  max-height:calc(100vh - 60px);
  overflow-y:auto;
}

/* =========================================================
   🧩 CARDS (POST / BLOQUES)
========================================================= */
.techd_home-active,
.techd_home-post {
  background:var(--surface);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:12px;
  width:100%;
  height:300px;
}

/* =========================================================
   🖼️ IMAGEN DENTRO DEL POST (FIX RESPONSIVE REAL)
========================================================= */
.techd_home-post img {
  width:100%;
  max-width:100%;
  height:auto;              /* 🔥 clave para mobile */
  aspect-ratio:16 / 9;      /* mantiene proporción */
  object-fit:cover;
  display:block;
  border-radius:10px;
  object-position:center;
}

/* =========================================================
   ✏️ TEXTOS DE CARD
========================================================= */
.techd_home-title {
  font-weight:bold;
  text-align:center;
}

.techd_home-meta {
  font-size:12px;
  color:var(--muted);
  text-align:center;
}

.techd_home-price {
  color:var(--primary);
  font-weight:bold;
  text-align:center;
}

/* =========================================================
   🔘 BOTÓN PRINCIPAL
========================================================= */
.techd_home-btn {
  background:var(--primary);
  color:white;
  border:none;
  padding:10px 15px;
  border-radius:8px;
  cursor:pointer;
  width:100%;
}

.techd_home-btn:hover {
  background:#b71c1c;
}

/* =========================================================
   📌 SIDEBAR DERECHO
========================================================= */
.techd_home-right {
  width:260px;
  background:var(--surface);
  border-left:1px solid var(--border);
  padding:15px;
}

.techd_home-item {
  padding:10px;
  border-radius:10px;
  cursor:pointer;
}

.techd_home-item:hover {
  background:#f3f3f3;
}

/* =========================================================
   📱 RESPONSIVE GENERAL
========================================================= */
@media(max-width:900px){

  .techd_home-center {
    flex-direction:column;
  }

  .techd_home-left,
  .techd_home-right {
    display:none;
  }

  /* imagen adaptada en mobile */
  .techd_home-post img {
    width:100%;
    height:auto;
    aspect-ratio:16 / 9;
    object-fit:cover;
  }
}

/* =========================================================
   🎯 LEMA COLORES
========================================================= */
h3 span {
  margin-right:8px;
  font-weight:bold;
}

.learn { color:#2a9d8f; }
.build { color:#264653; }
.approve { color:#e9c46a; }
.monetize { color:#e76f51; }

/* =========================================================
   🟥 HEADER TITULO DESTACADO
========================================================= */
.techd_home-titlebar {
  background-color:red;
  color:white;
  display:block;
  padding:16px 20px;
  border-radius:6px;
  text-align:center;
}

/* =========================================================
   📋 LISTAS LIMPIAS
========================================================= */
.techd_home-active ul {
  list-style:none;
  margin:0;
  padding-left:0;
}

.techd_home-active li {
  padding:4px 0;
  border-bottom:1px solid var(--border);
}