/* ============================================================
   TEJADOS CUBIERTAS BOGOTÁ — Estilos del Blog / Artículos
   Archivo: estilos.css
   Versión: 1.0
   Descripción: Hoja de estilos principal para las landing
   pages de blog de tejadoscubiertas.com
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rojo:      #c0392b;
  --rojo-oscuro: #922b21;
  --barro:     #8B4513;
  --barro-claro: #D2691E;
  --crema:     #FDF6EC;
  --gris-texto:#2C2C2C;
  --gris-suave:#F5F5F0;
  --gris-medio:#888;
  --borde:     #E0D5C5;
  --negro:     #111111;
  --blanco:    #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--gris-texto);
  background: var(--blanco);
  line-height: 1.75;
  font-size: 17px;
}

/* ─── TOPBAR ─── */
.topbar {
  background: var(--negro);
  color: #ccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px 32px;
}
.topbar a { color: #ccc; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ─── HEADER / NAV ─── */
header {
  background: #1a1a1a;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo img { height: 42px; }
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
nav ul li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #ddd;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background .2s, color .2s;
  letter-spacing: .3px;
}
nav ul li a:hover { background: var(--rojo); color: #fff; }

/* ─── HERO ARTICLE ─── */
.hero-article {
  background: linear-gradient(135deg, #1a0a00 0%, #3d1a0a 40%, #5c2a10 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 32px 70px;
  text-align: center;
}
.hero-article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://tejadoscubiertas.com/img/tejados/10.jpg') center/cover;
  opacity: .18;
}
.hero-article .breadcrumb {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #e0c8a0;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.hero-article .breadcrumb a { color: #e0c8a0; text-decoration: none; }
.hero-article .breadcrumb a:hover { color: #fff; }
.hero-article .breadcrumb span { margin: 0 6px; opacity: .6; }
.article-tag {
  position: relative;
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
}
.hero-article h1 {
  position: relative;
 font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto 22px;
}
.hero-article h1 em {
  color: #f5c87a;
  font-style: normal;
}
.hero-article .subtitulo {
  position: relative;
  font-size: 18px;
  color: #d4bfa0;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.article-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: #b8a080;
  flex-wrap: wrap;
}
.article-meta .dot { opacity: .4; }

/* ─── LAYOUT PRINCIPAL ─── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 60px 0;
  align-items: start;
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* ─── ARTICLE BODY ─── */
article h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--negro);
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--rojo);
  line-height: 1.25;
}
article h3 {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--barro);
  margin: 32px 0 12px;
}
article h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--negro);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
article p { margin-bottom: 20px; color: #333; }
article strong { color: var(--negro); }
article ul, article ol {
  margin: 16px 0 24px 24px;
}
article li { margin-bottom: 8px; color: #333; }

/* ─── INTRO DESTACADA ─── */
.intro-box {
  background: var(--crema);
  border-left: 5px solid var(--rojo);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 36px;
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

/* ─── TABLA COMPARATIVA ─── */
.tabla-wrap {
  overflow-x: auto;
  margin: 32px 0 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
}
thead th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
thead th:first-child { background: #2C2C2C; color: #fff; }
thead th:nth-child(2) { background: var(--barro); color: #fff; }
thead th:nth-child(3) { background: var(--rojo); color: #fff; }
tbody tr:nth-child(even) td { background: var(--gris-suave); }
tbody tr:nth-child(odd) td { background: var(--blanco); }
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--borde);
  vertical-align: middle;
  color: #333;
}
tbody td:first-child { font-weight: 600; color: var(--negro); }
.badge-si   { color: #1a7a3c; font-weight: 700; }
.badge-no   { color: var(--rojo); font-weight: 700; }
.badge-medio{ color: #c07a00; font-weight: 700; }

/* ─── CARDS VENTAJAS/DESVENTAJAS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0 40px;
}
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }
.card-pros, .card-cons {
  border-radius: 10px;
  padding: 24px;
}
.card-pros { background: #eaf7ee; border: 1px solid #b7dfc4; }
.card-cons { background: #fdf0f0; border: 1px solid #f0b8b8; }
.card-pros h4 { color: #1a7a3c; font-size: 15px; margin-bottom: 12px; }
.card-cons h4 { color: var(--rojo-oscuro); font-size: 15px; margin-bottom: 12px; }
.card-pros ul, .card-cons ul { margin-left: 18px; }
.card-pros li, .card-cons li { font-size: 14.5px; margin-bottom: 7px; }
.card-pros li { color: #1a5c2e; }
.card-cons li { color: #7a1a1a; }

/* ─── GALERÍA 3 FOTOS ─── */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 40px;
}
@media (max-width: 640px) { .galeria { grid-template-columns: 1fr 1fr; } }
.galeria figure {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.galeria figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.galeria figure:hover img { transform: scale(1.05); }
.galeria figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 18px 10px 10px;
}

/* ─── PASO A PASO (NUMBERED) ─── */
.steps { margin: 24px 0 36px; }
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rojo);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h4 { margin: 0 0 6px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; color: var(--negro); }
.step-content p { margin: 0; font-size: 15px; color: #555; }

/* ─── CALLOUT DESTACADO ─── */
.callout {
  background: linear-gradient(135deg, #1a0a00, #5c2a10);
  color: #f5e8d0;
  border-radius: 12px;
  padding: 32px 36px;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '"';
  position: absolute;
  top: -20px; left: 16px;
  font-size: 140px;
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,.07);
  line-height: 1;
}
.callout p {
  font-size: 20px;
  line-height: 1.6;
  font-style: italic;
  color: #f5e8d0;
  position: relative;
  margin: 0 0 12px;
}
.callout cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #c8a878;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
}

/* ─── CTA FLOTANTE ─── */
.cta-box {
  background: var(--rojo);
  color: #fff;
  border-radius: 12px;
  padding: 30px 28px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.cta-box p { font-size: 15px; color: rgba(255,255,255,.88); margin-bottom: 20px; }
.btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--rojo-oscuro);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
  letter-spacing: .3px;
}
.btn-cta:hover { background: #fef3e2; transform: translateY(-2px); }

/* ─── FAQ ─── */
.faq { margin: 32px 0 40px; }
.faq-item {
  border: 1px solid var(--borde);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--gris-suave);
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--negro);
  text-align: left;
  transition: background .2s;
}
.faq-q:hover { background: #eae4d8; }
.faq-q .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--rojo);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  transition: transform .25s;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 22px;
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 16px 22px; }
.faq-item.open .icon { transform: rotate(45deg); }

/* ─── SIDEBAR ─── */
aside { position: sticky; top: 88px; }
.sidebar-block {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
}
.sidebar-header {
  background: var(--negro);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 18px;
}
.sidebar-body { background: var(--gris-suave); padding: 20px 18px; border: 1px solid var(--borde); border-top: none; }

/* Tabla de contenidos */
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 9px; }
.toc a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--barro);
  text-decoration: none;
  font-weight: 500;
}
.toc a:hover { color: var(--rojo); text-decoration: underline; }

/* Ficha técnica sidebar */
.ficha-item {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  padding: 9px 0;
  border-bottom: 1px solid var(--borde);
}
.ficha-item:last-child { border: none; }
.ficha-label { color: #888; font-weight: 500; }
.ficha-val { color: var(--negro); font-weight: 600; }

/* CTA sidebar */
.cta-side {
  background: linear-gradient(135deg, #c0392b, #8a1a0a);
  color: #fff;
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
}
.cta-side h4 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.cta-side p { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 18px; line-height: 1.5; }
.btn-side {
  display: block;
  background: #fff;
  color: var(--rojo-oscuro);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform .15s, background .2s;
  margin-bottom: 10px;
}
.btn-side:hover { transform: translateY(-2px); background: #fff5f0; }
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform .15s, background .2s;
}
.btn-whatsapp:hover { transform: translateY(-2px); background: #1ebe5a; }

/* Servicios sidebar */
.servicios-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #444;
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--borde);
  transition: color .2s;
}
.servicios-list a:last-child { border: none; }
.servicios-list a:hover { color: var(--rojo); }
.servicios-list a::before {
  content: '→';
  color: var(--rojo);
  font-weight: 700;
}

/* ─── SECCIÓN EMPRESA ─── */
.empresa-strip {
  background: var(--gris-suave);
  border-top: 3px solid var(--rojo);
  border-bottom: 3px solid var(--rojo);
  padding: 48px 32px;
  margin: 48px 0 0;
}
.empresa-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.emp-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--rojo);
  line-height: 1;
  margin-bottom: 6px;
}
.emp-item p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin: 0;
}

/* ─── BADGES CONFIANZA ─── */
.badges-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 32px 24px;
  background: var(--negro);
}
.badge-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.badge-trust .ico {
  width: 36px; height: 36px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ─── ARTÍCULOS RELACIONADOS ─── */
.relacionados {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.relacionados h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--negro);
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.rel-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--borde);
  text-decoration: none;
  display: block;
  transition: transform .25s, box-shadow .25s;
  background: var(--blanco);
}
.rel-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.rel-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.rel-card-body { padding: 18px; }
.rel-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 8px;
  display: block;
}
.rel-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.3;
  margin-bottom: 8px;
}
.rel-card-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: #777;
  margin: 0;
  line-height: 1.55;
}

/* ─── FORMULARIO CONTACTO ─── */
.form-section {
  background: var(--crema);
  border-top: 1px solid var(--borde);
  padding: 60px 24px;
}
.form-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.form-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 10px;
}
.form-inner p { font-size: 16px; color: #666; margin-bottom: 32px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--negro);
  background: #fff;
  transition: border-color .2s;
  outline: none;
}
.form-grid input:focus,
.form-grid textarea:focus { border-color: var(--rojo); }
.form-grid textarea { height: 110px; resize: vertical; }
.btn-form {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--rojo);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: .3px;
}
.btn-form:hover { background: var(--rojo-oscuro); transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer {
  background: #111;
  color: #aaa;
  padding: 48px 32px 24px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #2a2a2a;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col p { font-size: 14px; line-height: 1.7; color: #888; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 14px; color: #888; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--rojo); }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 38px; filter: brightness(0) invert(1); opacity: .7; }
.footer-bottom {
  max-width: 1200px;
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #555;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── FLOATING BUTTONS ─── */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s;
}
.float-btn:hover { transform: scale(1.12); }
.float-wa { background: #25d366; }
.float-tel { background: var(--rojo); }

/* ─── RESPONSIVE GENERAL ─── */
@media (max-width: 600px) {
  .topbar { display: none; }
  .hero-article { padding: 50px 18px 44px; }
  .page-wrap { padding: 0 14px; }
}