/* MyFamGPS — estilos compartidos del sitio (FAQ, borrado de datos, etc.)
   Hereda la estética de las páginas legales. */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

html {
  scroll-behavior: smooth;
}

.col-md-12.centered {
  max-width: 900px;
  margin: 20px auto;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 40px;
}

h4 {
  color: #2c3e50;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h4::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

h5 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin: 32px 0 16px 0;
  padding: 15px 20px;
  border-left: 5px solid #3498db;
  background-color: #f8f9fa;
  border-radius: 8px;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #444;
}

ul,
ol {
  margin: 12px 0;
  padding-left: 30px;
}

li {
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
}

ul li::before {
  content: "▶";
  color: #3498db;
  font-size: 0.8rem;
  position: absolute;
  left: -15px;
  top: 2px;
}

a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

b,
strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Intro bajo el título */
.intro {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-bottom: 8px;
}

/* Pasos numerados (página informativa de borrado) */
ol.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

ol.steps li {
  counter-increment: step;
  padding: 14px 16px 14px 56px;
  margin-bottom: 12px;
  background-color: #f8f9ff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Callout / nota destacada */
.note {
  background-color: #fff8e6;
  border-left: 4px solid #f0a500;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 20px 0;
  color: #5c4a00;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Acordeón de preguntas (details/summary nativo, sin JS) */
details {
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  margin-bottom: 12px;
  background-color: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

details[open] {
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  border-color: #c7d2fe;
}

summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: #2c3e50;
  list-style: none;
  position: relative;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: #667eea;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
}

summary:hover {
  background-color: #f8f9ff;
}

.answer {
  padding: 0 20px 18px 20px;
}

.answer p:last-child {
  margin-bottom: 0;
}

/* Bloque de contacto al pie */
.contact {
  margin-top: 36px;
  background-color: #e8f4f8;
  padding: 18px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
  text-align: center;
  color: #2c3e50;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.lang-switcher a {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid #667eea;
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: all 0.2s ease;
}

.lang-switcher a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  text-decoration: none;
}

.lang-switcher a.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .col-md-12.centered {
    margin: 10px;
    padding: 20px;
    border-radius: 8px;
  }

  h4 {
    font-size: 2rem;
  }

  h5 {
    font-size: 1.2rem;
    padding: 12px 15px;
  }

  p {
    font-size: 0.9rem;
  }
}
