/*
 * tenelo — hoja de estilos base (dark theme)
 * Derivada de tenelo-webapp-client/src/theme.js (theme MUI del sitio).
 * Origen: repo `estilos-mailing` (css/tenelo-base.css) + agregados de la landing.
 *
 * La sirve el edge en https://teneloapp.com/assets/tenelo.css, y la referencian
 * por URL absoluta los templates de Listmonk. Un solo archivo mantiene
 * consistentes la landing, el historial publico y las paginas de baja.
 *
 * OJO: NO aplica a los mails. Los clientes de correo ignoran el CSS externo:
 * el template del mail (templates/campaign.html) lleva estos mismos valores
 * inline. Si cambian los tokens de acá, hay que cambiarlos allá a mano.
 *
 * Paleta (tokens):
 *  fondo pagina   #121212
 *  fondo tarjeta  #1E2125
 *  borde/sutil    #3c4d5b
 *  texto          #e3e6e8
 *  texto suave    #8c969f
 *  primario       #2196F3   (azul MUI 500)
 *  primario hover #1E88E5
 *  secundario     #039BE5   (lightBlue 600)
 *  error          #F44336
 *  cian de marca  #00f0ff   (color del logo; solo acentos, no texto largo)
 *  fuente         Roboto, Helvetica, Arial, sans-serif
 */

:root {
  --tn-bg: #121212;
  --tn-surface: #1E2125;
  --tn-border: #3c4d5b;
  --tn-text: #e3e6e8;
  --tn-text-muted: #8c969f;
  --tn-primary: #2196F3;
  --tn-primary-hover: #1E88E5;
  --tn-secondary: #039BE5;
  --tn-error: #F44336;
  --tn-brand: #00f0ff;
  --tn-radius: 8px;
  --tn-font: Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--tn-bg);
  color: var(--tn-text);
  font-family: var(--tn-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.6em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a {
  color: var(--tn-primary);
  text-decoration: none;
}
a:hover { color: var(--tn-primary-hover); text-decoration: underline; }

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

small, .tn-muted { color: var(--tn-text-muted); font-size: 0.85rem; }

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

/* ---------- Layout ---------- */

.tn-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

.tn-card {
  background-color: var(--tn-surface);
  border: 1px solid rgba(60, 77, 91, 0.5);
  border-radius: var(--tn-radius);
  padding: 24px;
  margin-bottom: 16px;
}

/* ---------- Botones ---------- */

.tn-btn,
button, input[type="submit"] {
  display: inline-block;
  background-color: var(--tn-primary);
  color: #ffffff;
  font-family: var(--tn-font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  cursor: pointer;
}
.tn-btn:hover, button:hover, input[type="submit"]:hover {
  background-color: var(--tn-primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.tn-btn-secondary { background-color: var(--tn-secondary); }
.tn-btn-outline {
  background-color: transparent;
  color: var(--tn-primary);
  border: 1px solid var(--tn-primary);
}
.tn-btn-outline:hover { background-color: rgba(33, 150, 243, 0.12); }

/* ---------- Formularios (suscripción) ---------- */

label {
  display: block;
  color: var(--tn-text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  background-color: #0e1c28;
  color: var(--tn-text);
  font-family: var(--tn-font);
  font-size: 1rem;
  border: 1px solid var(--tn-border);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 16px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--tn-primary);
}

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--tn-primary);
  margin-right: 8px;
}

/* ---------- Estados / avisos ---------- */

.tn-error { color: var(--tn-error); }
.tn-alert {
  background-color: rgba(33, 150, 243, 0.12);
  border-left: 3px solid var(--tn-primary);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.tn-alert-error {
  background-color: rgba(244, 67, 54, 0.12);
  border-left-color: var(--tn-error);
}

/* ---------- Pie ---------- */

.tn-footer {
  color: var(--tn-text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 24px 16px;
}
.tn-footer a { color: var(--tn-text-muted); text-decoration: underline; }


/* =========================================================================
 * Agregados propios de teneloapp.com (landing y archivo publico).
 * No estan en el repo estilos-mailing porque son especificos de este dominio.
 * ========================================================================= */

/* Cabecera con el logo, comun a todas las paginas */
.tn-head {
  text-align: center;
  padding: 8px 0 24px;
}
.tn-head img {
  display: block;
  margin: 0 auto;
  max-width: 72px;
}

/* Migas: "Inicio › Comunicaciones" */
.tn-breadcrumb {
  color: var(--tn-text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Selector de paises de la raiz */
.tn-paises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tn-paises a {
  display: block;
  padding: 18px;
  background-color: var(--tn-surface);
  border: 1px solid rgba(60, 77, 91, 0.5);
  border-radius: var(--tn-radius);
  color: var(--tn-text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tn-paises a:hover {
  border-color: var(--tn-primary);
  color: var(--tn-text);
  text-decoration: none;
  transform: translateY(-2px);
}

.tn-paises .tn-pais {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
  color: #ffffff;
}
.tn-paises .tn-dominio {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--tn-text-muted);
}
