/**
 * Estilos personalizados para el template "Nadie se Mete con Mamá"
 * Guardar este archivo en: /wp-content/themes/tu-tema/assets/css/nadie-se-mete.css
 */

:root {
  --primary-color: #f5f5f5;
  --text-color: #303030;          /* Escurecido para melhor contraste */
  --light-text-color: #555555;    /* Texto secundário com contraste adequado */
  --logo-color: #0066CC;          /* Azul mais escuro para melhor contraste */
  --card-background-color: #F4F6FC;
  --desk-width: 600px;
  --btn-text-color: #ffffff;      /* Branco puro para texto sobre fundo vermelho */
  --btn-background: #cc0000;      /* Vermelho mais escuro para melhor contraste */
}

/* Estilos básicos */
.wrapper {
  max-width: var(--desk-width);
  margin: 0 auto;
  padding: 20px;
}

.text-center {
  text-align: center;
}

h1 {
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6em;
  margin: 0 0 10px 0;
  color: var(--text-color);
}

h2 {
  font-size: 1.4em;
  margin: 40px 0 30px 0;
  color: var(--text-color);
}

h3 {
  color: var(--text-color);
  font-size: 17px;
  font-weight: 500;
}

p {
  color: var(--text-color);
  margin-bottom: 15px;
}

/* Tarjeta principal */
.credit-card {
  background-color: var(--card-background-color);
  padding: 20px;
  margin-bottom: 20px;
}

/* Botón estilo pill */
.btn-pill {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 18px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  color: var(--btn-text-color);
  text-decoration: none;
  width: auto;
  max-width: 275px;
  transition: opacity .2s;
  margin: 20px auto;
  background-color: var(--btn-background);
}

.btn-pill:hover {
  opacity: .9;
}

.btn-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  margin-left: 10px;
  background: #fff;
  border-radius: 50%;
}

.btn-pill__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--btn-background);
}

.btn-pill__label {
  line-height: 1;
}

/* Lista de beneficios */
.benefits ul {
  list-style: none;
  padding-left: 0;
  clear: both;
  display: block;
  margin: 15px 0 0;
}

.benefits li {
  background-color: #efefef;
  margin-bottom: 15px;
  padding: 16px 16px 16px 42px;
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: 15px 50%;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  border-radius: 8px;
  position: relative;
}

.benefits li:before {
  content: "✓";
  color: #008800;        /* Verde mais escuro para melhor contraste */
  position: absolute;
  left: 15px;
  font-weight: bold;
}

.button-disclaimer {
  text-align: center;
  font-size: 14px;
  color: var(--light-text-color);
}

/* Sección del autor */
.author {
  background-color: var(--card-background-color);
  padding: 20px;
  max-width: var(--desk-width);
  margin: 20px auto;
}

.author p {
  color: var(--text-color);
  margin-bottom: 10px;
}

.author label {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
  display: block;
  color: var(--text-color);
}

.author .author-name {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 16px;
}

.author .author-name a {
  font-weight: bold;
  margin: 10px 0 0 5px;
  text-decoration: inherit;
  color: var(--text-color);
}

/* Margen centralizado */
.m40 {
  margin: 20px auto;
  max-width: var(--desk-width);
}

/* Imagen principal */
img.main-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Contenedor de anuncios */
.ad-container {
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .wrapper {
    padding: 15px;
  }
  
  .footer li {
    display: block;
    padding: 5px 0;
  }
  
  .btn-pill {
    width: 100%;
    max-width: 100%;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .btn-pill {
    transition: none;
  }
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #212121;
    --text-color: #f0f0f0;
    --light-text-color: #cccccc;
    --card-background-color: #2d2d2d;
  }
  
  .benefits li {
    background-color: #333333;
  }
}