/* ============================================
   BLOG REPARACION DE CALEFONES UY - ESTILOS UNIFICADOS
   Sistema completo para todas las páginas del blog
   ============================================ */

/* Variables CSS - Coherencia con sitio principal */
:root {
  --primary-color: #1a73e8;
  --primary-dark: #0d47a1;
  --secondary-color: #f57c00;
  --emergency-color: #d32f2f;
  --success-color: #4caf50;
  --text-dark: #212121;
  --text-medium: #424242;
  --text-light: #757575;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --info-color: #2196f3;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width-content: 800px;
  --max-width-wide: 1200px;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--bg-light);
  font-size: 16px;
}

.container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

strong {
  color: var(--text-dark);
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================
   NAVEGACIÓN PRINCIPAL
   ============================================ */
.main-nav {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
}

.main-nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.main-nav .logo:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* Navegación móvil */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--text-medium);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.breadcrumbs .current {
  color: var(--text-dark);
  font-weight: 500;
}

/* ============================================
   ESTRUCTURA PRINCIPAL DEL BLOG
   ============================================ */
.blog-main {
  background-color: var(--bg-white);
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.blog-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.blog-header h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 3rem;
}

.blog-header .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-category {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.post-date {
  color: var(--text-light);
  font-size: 0.875rem;
}

.post-reading-time {
  color: var(--text-light);
  font-size: 0.875rem;
}

.post-excerpt {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 1.5rem 0;
}

/* ============================================
   CONTENIDO DEL ARTÍCULO
   ============================================ */
.article-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 2rem 20px;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 3rem;
  margin-top: 2rem;
}

.main-content {
  min-width: 0;
}

/* ============================================
   TABLA DE CONTENIDOS
   ============================================ */
.table-of-contents {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.table-of-contents h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  display: block;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: var(--transition);
}

.table-of-contents a:hover,
.table-of-contents a.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  text-decoration: none;
}

/* ============================================
   ELEMENTOS DE CONTENIDO
   ============================================ */
.intro-text {
  background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.intro-text::before {
  content: '💡';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
}

.content-section {
  margin: 3rem 0;
}

.note-box {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--warning-color);
}

.tip-box {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--info-color);
}

.warning-box {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--danger-color);
}

.success-box {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--success-color);
}

.costo-box, .price-box {
  background: linear-gradient(135deg, #f1f8e9, #e8f5e8);
  border: 1px solid var(--success-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.costo-box h4, .price-box h4 {
  color: var(--success-color);
  margin-bottom: 1rem;
}

/* ============================================
   LISTAS Y ELEMENTOS ESTRUCTURALES
   ============================================ */
ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  background-color: var(--bg-light);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: var(--bg-light);
}

/* ============================================
   CALL TO ACTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-section h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #e65100;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: white;
}

.cta-emergency {
  background: linear-gradient(135deg, var(--emergency-color), #b71c1c);
  animation: pulse-emergency 2s infinite;
}

@keyframes pulse-emergency {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(211, 47, 47, 0);
  }
}

.phone-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emergency-color);
  text-decoration: none;
  display: inline-block;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border: 2px solid var(--emergency-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.phone-link:hover {
  background-color: var(--emergency-color);
  color: white;
  text-decoration: none;
}

/* ============================================
   FOOTER DEL BLOG
   ============================================ */
.blog-footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #ccc;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .table-of-contents {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .post-meta {
    gap: 1rem;
  }
  
  .cta-section {
    padding: 2rem 1rem;
  }
  
  .cta-section h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-content {
    padding: 1rem 15px;
  }
  
  .intro-text,
  .note-box,
  .tip-box,
  .warning-box,
  .success-box,
  .costo-box {
    padding: 1rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}