/* ==========================================================================
   ROBOTS LIMPIAFONDOS - NICHE SITE STYLES
   Mobile-First Approach | Alta Conversión
   ========================================================================== */

/* 1. VARIABLES (Tema Limpio y Niche) */
:root {
  --primary: #0284c7; /* Azul confianza */
  --primary-hover: #0369a1;
  --amazon: #f59e0b; /* Amarillo Amazon */
  --amazon-hover: #d97706;
  --text-main: #334155;
  --text-light: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --pro-bg: #f0fdf4;
  --pro-text: #166534;
  --con-bg: #fef2f2;
  --con-text: #991b1b;
  --border: #e2e8f0;
  --radius: 8px;
}

/* 2. RESET Y TIPOGRAFÍA */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
}
a { text-decoration: none; color: var(--primary); }
ul { list-style: none; }
img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* 3. LAYOUT GLOBAL */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 4. HEADER Y NAVEGACIÓN */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo { font-size: 1.4rem; font-weight: 800; color: #0f172a; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-main); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Modo móvil para Nav */
@media (max-width: 768px) {
  .nav-links { display: none; } /* En un caso real llevaría un menú hamburguesa */
}

/* 5. BREADCRUMBS (Internal Linking & UX) */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 20px 0;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 5px; }

/* 6. TYPOGRAPHY (H1-H3 Semánticos) */
h1 { font-size: 2.2rem; leading-trim: both; margin-bottom: 15px; color: #0f172a; }
h2 { font-size: 1.8rem; margin: 40px 0 20px 0; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; color: #1e293b; }
h3 { font-size: 1.4rem; margin: 30px 0 15px 0; color: #334155; }
p { margin-bottom: 20px; font-size: 1.1rem; }

/* 7. BOTONES CTA (Amazon Conversion) */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--amazon);
  color: #0f172a;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
  text-align: center;
  width: 100%;
}
.btn-amazon:hover { background-color: var(--amazon-hover); transform: translateY(-2px); }
@media (min-width: 768px) { .btn-amazon { width: auto; min-width: 250px; } }

/* 8. TABLA COMPARATIVA */
.table-wrapper { overflow-x: auto; margin: 30px 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 600px;
}
.compare-table th, .compare-table td {
  padding: 15px;
  border: 1px solid var(--border);
  text-align: center;
}
.compare-table th { background: #f1f5f9; color: #1e293b; }
.compare-table td.winner { background: #f0fdf4; font-weight: 700; color: var(--pro-text); }

/* 9. PROS Y CONTRAS */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}
@media (min-width: 768px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pro-box, .con-box { padding: 20px; border-radius: var(--radius); }
.pro-box { background: var(--pro-bg); border: 1px solid #bbf7d0; }
.con-box { background: var(--con-bg); border: 1px solid #fecaca; }
.pro-box h4 { color: var(--pro-text); margin-bottom: 15px; display: flex; align-items: center; gap: 8px;}
.con-box h4 { color: var(--con-text); margin-bottom: 15px; display: flex; align-items: center; gap: 8px;}
.pro-box ul li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.pro-box ul li::before { content: "✓"; position: absolute; left: 0; color: var(--pro-text); font-weight: bold;}
.con-box ul li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.con-box ul li::before { content: "✕"; position: absolute; left: 0; color: var(--con-text); font-weight: bold;}

/* 10. BLOQUES ADSENSE (Simulados) */
.ad-slot {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  color: #94a3b8;
  text-align: center;
  padding: 20px;
  margin: 30px 0;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* 11. FAQ ACCORDION */
.faq-item { margin-bottom: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.faq-q { padding: 15px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { padding: 0 20px 20px 20px; display: none; color: var(--text-light); }
.faq-item.active .faq-a { display: block; }

/* 12. STICKY CTA (Móvil) */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 15px 20px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
  transform: translateY(100%); /* Oculto por defecto */
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}
.sticky-cta-mobile.show { transform: translateY(0); }
@media (min-width: 768px) { .sticky-cta-mobile { display: none !important; } }

/* 13. CONTENT WRAPPERS */
.main-content {
  background: var(--bg-card);
  padding: 30px 20px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
@media (min-width: 768px) { .main-content { padding: 50px; } }
