/* =========================================================
   Bolómetro – Estilos globales del sitio web
   ========================================================= */

/* ---------- Variables de color ---------- */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ---------- Reset y base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Header / Hero ---------- */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  text-align: center;
  padding: 60px 20px 50px;
}

.site-header .logo-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 12px;
}

.site-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.site-header .tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--highlight);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  margin-left: 12px;
}

/* ---------- Contenido principal ---------- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ---------- Secciones ---------- */
section {
  margin-bottom: 56px;
}

section h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--highlight);
  display: inline-block;
}

section p {
  color: var(--text-light);
  margin-bottom: 16px;
  max-width: 820px;
}

/* ---------- Tarjetas de características ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--highlight);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ---------- Lista de estadísticas / datos ---------- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
}

.stat-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 140px;
}

.stat-box .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--highlight);
}

.stat-box .label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------- Tabla ---------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

th {
  background-color: var(--primary);
  color: #ffffff;
}

tr:nth-child(even) td {
  background-color: #f9f9f9;
}

/* ---------- Privacy-specific ---------- */
.content-wrap {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.content-wrap h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 6px;
}

.content-wrap h2 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.content-wrap h3 {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

.content-wrap ul {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.content-wrap ul li {
  margin-bottom: 6px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5em;
  color: var(--accent);
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--primary);
  color: #aaaacc;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.88rem;
}

.site-footer a {
  color: #ccccee;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .site-header h1 {
    font-size: 2rem;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 10px;
  }

  .stats-row {
    flex-direction: column;
    align-items: center;
  }
}
