/* RESET BÁSICO */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* HEADER */
.header {
  background: white;
  padding: 15px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.logo {
  text-decoration: none;
  font-weight: bold;
  color: #2e7d32;
}

/* TARJETA PRINCIPAL */
.tarjeta-principal {
  background: white;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 700px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tarjeta-principal h1 {
  font-size: 22px;
  margin-bottom: 20px;
}

/* BLOQUES */
.bloque {
  margin-bottom: 15px;
}

.bloque h2 {
  font-size: 16px;
  margin-bottom: 5px;
}

.ahorro {
  font-weight: bold;
  color: #2e7d32;
}

.consejo {
  background: #e8f5e9;
  padding: 10px;
  border-radius: 8px;
}

/* BOTÓN */
.acciones {
  text-align: center;
  margin: 20px;
}

button {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  background: #1b5e20;
}

/* GRID DE TARJETAS */
.grid-consejos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 15px;
}

/* 2 columnas en móviles grandes */
@media (min-width: 480px) {
  .grid-consejos {
    grid-template-columns: 1fr 1fr;
  }
}

/* TARJETAS */
.tarjeta {
  display: block;
  background: white;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: 0.15s;
}

.tarjeta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.tarjeta h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.tarjeta .ahorro {
  font-size: 14px;
  color: #2e7d32;
  font-weight: bold;
}

.tarjeta,
.tarjeta:visited,
.tarjeta:hover,
.tarjeta:active {
  color: #333;
  text-decoration: none;
}

/* BASE */
.bloque {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* COLORES POR TIPO */
.ahorro {
  background: #e8f5e9; /* verde suave */
}

.ejemplo {
  background: #e3f2fd; /* azul suave */
}

.explicacion {
  background: #f3e5f5; /* morado suave */
}

.error {
  background: #ffebee; /* rojo suave */
}

.comparativa {
  background: #fff3e0; /* naranja suave */
}

.consejo {
  background: #e0f2f1; /* verde agua */
}

.contenedor {
  max-width: 900px;
  margin: auto;
}

.intro {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.extra {
  font-size: 14px;
  color: #444;
  margin-top: 8px;
}

.intro a {
  color: #2e7d32;
  text-decoration: none;
}

.breadcrumbs {
  font-size: 13px;
  color: #777;
  margin: 10px auto;
  max-width: 700px;
}

.breadcrumbs a {
  color: #2e7d32;
  text-decoration: none;
}

.enlaces-extra {
  max-width: 700px;
  margin: 20px auto;
}

.enlaces-extra h3 {
  margin-bottom: 10px;
}

.tarjeta-mini {
  display: block;
  background: white;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  transition: 0.15s;
}

.tarjeta-mini:hover {
  background: #f0f0f0;
}

.tarjeta-mini small {
  display: block;
  color: #2e7d32;
  font-size: 12px;
  margin-top: 4px;
}

.header {
  background: white;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.logo {
  text-decoration: none;
  font-weight: bold;
  color: #2e7d32;
  font-size: 16px;
}

.intro-categoria {
  margin-bottom: 15px;
}

.intro-categoria p {
  font-size: 14px;
  color: #555;
}

.section-title {
  font-size: 18px;
  margin: 20px 0 10px;
  font-weight: 600;
  border-left: 4px solid #2e7d32;
  padding-left: 10px;
}

.tarjeta {
  display: block;
  background: linear-gradient(135deg, #ffffff, #f7f7f7);
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}

.tarjeta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.tarjeta .categoria {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}

.tarjeta h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.tarjeta .ahorro {
  font-weight: bold;
  color: #2e7d32;
}

.cierre {
  text-align: center;
}

.destacado .tarjeta-principal {
  display: block;
  background: linear-gradient(135deg, #2e7d32, #66bb6a);
  color: white;
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  margin-bottom: 15px;
}

.tarjeta-principal h3 {
  margin-bottom: 10px;
}

.tarjeta-principal .ahorro {
  font-size: 16px;
  font-weight: bold;
}