/* =========================================================
   LosLinks.de - Home CSS (limpio y consistente)
   - Hero grande
   - Cards 340x170 (aspect-ratio 2:1)
   - Header centrado + icono izquierda
   ========================================================= */

/* ===== Reset ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#0f172a;

  /* Fondo suave premium */
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(11,87,208,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(15,23,42,.06), transparent 55%),
    #ffffff;
}

/* ===== Top / Bottom bars ===== */
.topbar{
  background: linear-gradient(90deg, #0b57d0, #114dd7);
  height:90px;
  display:flex;
  align-items:center;
}
.topbar__inner{
  width:min(1100px, 100%);
  margin:0 auto;
  padding:0 22px;

  /* ✅ centro real del título */
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}

.brand__icon{
  /* ✅ icono a la izquierda sin afectar el centrado */
  position:absolute;
  left:22px;
  width:44px;
  height:44px;
  opacity:.95;
}

.brand__title{
  color:#fff;
  font-weight:950;
  letter-spacing:-1px;
  font-size: clamp(28px, 4vw, 50px);
  line-height:1;
}

.bottombar{
  margin-top: 26px;
  height:90px;
  background: linear-gradient(90deg, #0b57d0, #114dd7);
}

/* ===== Layout ===== */
.wrap{
  width:min(1100px, 100%);
  margin:0 auto;
  padding: 34px 22px 0;
}

.section{
  padding: 18px 0 8px;
}

.section__title{
  margin: 28px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  letter-spacing: -1.2px;
  color:#0b0f1a;
}

/* ===== Hero ===== */
.hero{
  padding: 42px 0 22px;
  text-align: left;
}

.hero__title{
  margin: 0 0 14px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  font-weight: 950;
  color:#0b0f1a;
}

.hero__sub{
  margin:0;
  font-size: clamp(16px, 1.8vw, 22px);
  max-width: 100%;
  opacity: .72;
  line-height: 1.6;
}

.hero__actions{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, #0b57d0, #114dd7);
  box-shadow: 0 14px 30px rgba(11,87,208,.22);
  transition: transform .12s ease, filter .12s ease;
}

.hero__btn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.hero__link{
  text-decoration: none;
  font-weight: 800;
  color: rgba(15,23,42,.75);
}
.hero__link:hover{
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ===== Grid ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ===== Card ===== */
.card{
  position:relative;
  display:block;
  border-radius: 28px;
  overflow:hidden;
  text-decoration:none;
  transform: translateZ(0);

  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 16px 44px rgba(15,23,42,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;

  /* ✅ relación 340x170 */
  aspect-ratio: 340 / 170; /* 2:1 */
  min-height: 170px;
}

.card__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.card__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.60), rgba(0,0,0,.10));
}

.card__avatar{
  position:absolute;
  left: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background-size:cover;
  background-position:center;
  box-shadow:
    0 0 0 5px rgba(255,255,255,.22),
    0 0 0 9px rgba(0,0,0,.18);
}

.card__text{
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  color:#fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.card__name{
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.3px;
}

.card__desc{
  margin-top: 2px;
  font-size: 13px;
  opacity: .92;
}

.card__meta{
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 800;
  opacity: .92;
}

/* Hover */
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(15,23,42,.14);
  border-color: rgba(15,23,42,.12);
}
.card:hover .card__overlay{
  background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.14));
}

/* ===== Contacto ===== */
.contact{
  margin: 60px auto 80px;
  max-width: 520px;
  padding: 0 22px;
  text-align: center;
}

.contact__title{
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.contact__text{
  font-size: 15px;
  opacity: .75;
  margin-bottom: 22px;
}

.contact__form{
  display: grid;
  gap: 14px;
}

.contact__form input,
.contact__form textarea{
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.15);
  font-size: 14px;
  font-family: inherit;
  background: rgba(255,255,255,.92);
  outline: none;
}

.contact__form textarea{ resize: vertical; }

.contact__form input:focus,
.contact__form textarea:focus{
  border-color: rgba(11,87,208,.45);
  box-shadow: 0 0 0 4px rgba(11,87,208,.12);
}

.contact__form button{
  margin-top: 6px;
  height: 50px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  background: linear-gradient(90deg, #0b57d0, #114dd7);
  color: #fff;
  font-size: 15px;
  font-weight: 900;

  box-shadow: 0 14px 30px rgba(11,87,208,.22);
  transition: transform .12s ease, filter .12s ease;
}

.contact__form button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Honeypot */
.hp{ display:none !important; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar{ height:84px; }
}

@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .topbar{ height:78px; }
  .wrap{ padding: 26px 16px 0; }
  .brand__icon{ width:38px; height:38px; left:16px; }
  .card{ min-height: 165px; }
}

/* ===== Topbar acciones derecha ===== */
.topbar__actions{
  position:absolute;
  right:22px;
  top:50%;
  transform: translateY(-50%);
  display:flex;
  gap:10px;
  align-items:center;
}

.topbar__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  line-height:1;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  white-space:nowrap;
}

.topbar__btn--solid{
  color:#0b57d0;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.topbar__btn--ghost{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
}

.topbar__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Responsive: en móvil, achicamos */
@media (max-width: 560px){
  .topbar__actions{
    right:16px;
    gap:8px;
  }
  .topbar__btn{
    height:36px;
    padding:0 10px;
    font-size:12px;
  }
}

/* =========================
   LOGIN: password eye toggle
   Scoped para que el CSS global no lo dañe
   ========================= */

.login-page .password-wrap{
  position: relative;
}

.login-page .password-wrap input{
  padding-right: 56px;
}

.login-page .password-wrap .toggle-pass{
  all: unset;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  cursor: pointer;
  border-radius: 999px;
}

.login-page .password-wrap .toggle-pass:hover{
  background: rgba(255,255,255,.08);
}

.login-page .password-wrap .toggle-pass svg{
  width: 22px;
  height: 22px;
  display: block;
  opacity: .85;
}

/* Tus SVG son de stroke */
.login-page .password-wrap .toggle-pass svg path,
.login-page .password-wrap .toggle-pass svg circle,
.login-page .password-wrap .toggle-pass svg line{
  stroke: rgba(255,255,255,.75);
}

.login-page .password-wrap .toggle-pass:hover svg path,
.login-page .password-wrap .toggle-pass:hover svg circle,
.login-page .password-wrap .toggle-pass:hover svg line{
  stroke: #fff;
}
.span-3{ grid-column: 1 / -1; }

.social-preview{
  margin-top: 6px;
  font-size: 12px;
  opacity: .78;
  line-height: 1.35;
}
.social-preview code{
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  padding: 2px 8px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}
.social-preview .muted{ opacity:.7; }


