/* ====== Base ====== */
:root{
  --text:#111827;
  --muted:#4b5563;
  --muted2:#6b7280;
  --border:#e5e7eb;
  --red:#dc2626;
  --bg:#ffffff;
}

*{ box-sizing:border-box; }
body{ margin:0; color:var(--text); background:var(--bg); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* ====== Layout ====== */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;
}

.section{
  padding:64px 0;
}

.header-kicker{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.25em;
  color:var(--muted2);
}

.h2{
  margin:12px 0 0;
  font-size:40px;
  line-height:1.1;
  font-weight:800;
}

.lead{
  margin:12px 0 0;
  max-width:680px;
  color:var(--muted);
  line-height:1.7;
}

/* ====== Grid ====== */
.grid{
  display:grid;
  gap:24px;
}
.grid-2{ grid-template-columns:1fr; }
.grid-3{ grid-template-columns:1fr; }

@media(min-width:768px){
  .grid-2{ grid-template-columns:1fr 1fr; }
  .grid-3{ grid-template-columns:1fr 1fr 1fr; }
}

/* ====== Cards ====== */
.card{
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 34px rgba(0,0,0,.12);
}

.card-media{
  height:220px;
  background:#f3f4f6;
  background-size:cover;
  background-position:center;
}

.tag{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.2em;
  color:var(--muted2);
}

.title{
  margin:10px 0 0;
  font-size:22px;
  line-height:1.25;
  font-weight:800;
  color:var(--text);
}

.p{
  margin:12px 0 0;
  color:var(--muted);
  line-height:1.7;
}

.link-red{
  display:inline-block;
  margin-top:16px;
  font-weight:800;
  color:var(--red);
  text-decoration:none;
}

/* ====== Column articles (no card) ====== */
.col-article .title{ font-size:24px; }
.col-article:hover .title{ color:var(--red); }

/* ====== Hero ====== */
.hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  color:#fff;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.25) 65%,
    rgba(0,0,0,0.05) 100%
  );
  z-index:1;
}
.hero-inner{
  position:relative;
  z-index:2;
  padding:96px 0;
}
.hero-kicker{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.25em;
  color:rgba(255,255,255,.85);
}
.h1{
  margin:16px 0 0;
  font-size:52px;
  line-height:1.05;
  font-weight:900;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.hero-lead{
  margin-top:18px;
  max-width:720px;
  font-size:18px;
  line-height:1.7;
  color:rgba(255,255,255,.88);
}
@media(min-width:768px){
  .h1{ font-size:72px; }
  .hero-lead{ font-size:20px; }
}

/* ====== Buttons ====== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  text-decoration:none;
  border:0;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-red{ background:var(--red); color:#fff; }
.btn-red:hover{ background:#b91c1c; }

/* ====== Dark section (Newsletter) ====== */
.section-dark{
  position:relative;
  overflow:hidden;
  color:#fff;
}
.section-dark::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 25% 25%, rgba(220,38,38,0.12), transparent 55%),
    radial-gradient(circle at 75% 30%, rgba(234,179,8,0.10), transparent 55%),
    linear-gradient(180deg, #1f2937 0%, #111827 100%);
  z-index:1;
}
.section-dark > .container{ position:relative; z-index:2; }

/* Newsletter layout */
.newsletter-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}
@media(min-width:1024px){
  .newsletter-grid{ grid-template-columns: 1.1fr 0.9fr; }
}
.white-muted{ color:rgba(255,255,255,.80); }
.white-strong{ color:rgba(255,255,255,.92); }

.bullets{
  margin-top:24px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  color:rgba(255,255,255,.92);
}
@media(min-width:640px){
  .bullets{ grid-template-columns:1fr 1fr; }
}
.bullet{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.dot{
  margin-top:7px;
  width:8px; height:8px;
  border-radius:999px;
  flex:0 0 auto;
}
.dot-red{ background:#ef4444; }
.dot-amber{ background:#f59e0b; }

.panel{
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  padding:28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.input{
  width:100%;
  border-radius:14px;
  background: rgba(255,255,255,0.10);
  color:#ffffff;
  border:1px solid rgba(255,255,255,0.18);
  padding:12px 14px;
  outline:none;
}
.input::placeholder{ color: rgba(255,255,255,0.45); }
.form-row{ display:flex; flex-direction:column; gap:12px; }
@media(min-width:640px){
  .form-row{ flex-direction:row; }
  .form-row .input{ flex:1; }
}

/* ====== Categories cards (reusable) ====== */
.category-card{
  position:relative;
  display:block;
  border-radius:24px;
  overflow:hidden;
  min-height:300px;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}
.category-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}
.category-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.45), rgba(0,0,0,0.80));
}
.category-content{
  position:relative;
  height:100%;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#fff;
}
.category-kicker{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.25em;
  color:rgba(255,255,255,0.80);
}
.category-title{
  margin-top:12px;
  font-size:28px;
  line-height:1.15;
  font-weight:900;
}
.category-desc{
  margin-top:12px;
  color:rgba(255,255,255,0.88);
  max-width:520px;
  line-height:1.6;
}
.category-cta{
  margin-top:18px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.category-card:hover .arrow{ transform: translateX(4px); }
.arrow{ transition: transform .2s ease; }

/* ====== Featured city ====== */
.featured{
  background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
  border-top: 1px solid #d1d5db;
}
.featured-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}
@media(min-width:1024px){
  .featured-grid{ grid-template-columns: 1fr 1fr; gap:48px; }
}
.featured-media{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  height:450px;
  box-shadow:0 14px 34px rgba(0,0,0,0.12);
  background-size:cover;
  background-position:center;
  transition: transform .6s ease;
}

.featured:hover .featured-media{
  transform: scale(1.05);
}
.featured-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.15), rgba(0,0,0,0));
}
.featured-badge{
  position:absolute;
  left:24px;
  bottom:24px;
  color:#fff;
}
.featured-badge .header-kicker{ color:rgba(255,255,255,.80); }
.featured-badge h3{ margin:10px 0 0; font-size:32px; line-height:1.1; font-weight:900; }

.rule{
  width:64px;
  height:2px;
  background:var(--red);
  margin:16px 0 24px;
}

.reading-time{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#6b7280;
  font-size:14px;
  letter-spacing:.02em;
}
.reading-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--red);
}

/* ====== Featured meta (categoria + fecha + reading time) ====== */
.meta-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:10px;
  color:var(--muted2);
  font-size:14px;
  letter-spacing:.02em;
}
.meta-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  color:var(--text);
}
.meta-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--red);
  flex:0 0 auto;
}

/* ===== Blog: portada magazine ===== */
.page-hero{
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  color:#fff;
  padding:56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-hero .header-kicker{ color: rgba(255,255,255,.75); }
.page-hero .lead{ color: rgba(255,255,255,.82); }

.mag-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:28px;
  margin-top:28px;
}
@media(min-width: 1024px){
  .mag-grid{ grid-template-columns: 1.35fr 0.65fr; gap:32px; }
}

/* ===== HEADER / NAVIGATION ===== */

.site-header{
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(10, 15, 25, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header-inner{
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-brand{
    flex: 0 0 auto;
}

.site-logo{
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.site-nav{
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav-link{
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease, opacity .2s ease;
}

.site-nav-link:hover{
    color: #ffffff;
}

.site-nav-link-accent{
    color: #ffd9d9;
}

.site-nav-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #b91c1c;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.site-nav-button:hover{
    background: #991b1b;
    transform: translateY(-1px);
}

@media (max-width: 900px){
    .site-header-inner{
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav{
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.site-body {
    min-height: 100vh;
    background: #f3f4f6;
    margin: 0;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer-wrap {
    flex-shrink: 0;
}

/* Footer ultra minimal */
.mini-footer{
    margin-top: 0;
    background: #0b1220;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.62);
}

.mini-footer-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 16px;
    padding: 14px 0;
}

.mini-left{
    display:flex;
    align-items:center;
    gap: 10px;
    flex-wrap:wrap;
    font-size: 12px;
    line-height: 1.2;
}

.mini-brand{
    color: rgba(255,255,255,.82);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.mini-sep{
    opacity:.55;
}

.mini-copy{
    opacity:.75;
}

.mini-nav{
    display:flex;
    gap: 14px;
    flex-wrap:wrap;
    justify-content:flex-end;
    font-size: 12px;
}

.mini-nav a{
    text-decoration:none;
    color: rgba(255,255,255,.58);
    transition: color .2s ease, opacity .2s ease;
}

.mini-nav a:hover{
    color: #ff5b5b;
}

.mini-footer-latest{
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 11px;
    color: rgba(255,255,255,.52);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-footer-latest a{
    text-decoration:none;
    color: rgba(255,255,255,.62);
}

.mini-footer-latest a:hover{
    color: #ff5b5b;
}

.mini-muted{ opacity:.7; margin-right: 8px; }
.mini-dot{ opacity:.45; margin: 0 8px; }

@media (max-width: 780px){
    .mini-footer-inner{
        flex-direction: column;
        align-items:flex-start;
        padding: 14px 0;
    }

    .mini-nav{
        justify-content:flex-start;
    }

    .mini-footer-latest{
        white-space: normal;
        overflow: visible;
    }
}

.feature-card{
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:0 14px 34px rgba(0,0,0,.10);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration:none;
  color: inherit;
}
.feature-card:hover{ transform: translateY(-2px); box-shadow:0 18px 44px rgba(0,0,0,.14); }

.feature-media{
  height:420px;
  background:#f3f4f6;
  background-size:cover;
  background-position:center;
  position:relative;
}
.feature-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.15), rgba(0,0,0,0));
}

.feature-body{ padding:24px; }
.feature-title{
  margin:12px 0 0;
  font-size:34px;
  line-height:1.1;
  font-weight:900;
  color:var(--text);
}
.feature-excerpt{ margin-top:12px; color:var(--muted); line-height:1.7; }

.side-stack{ display:grid; gap:18px; }
.side-item{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:14px;
  align-items:start;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration:none;
  color: inherit;
}
.side-item:hover{ transform: translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.08); }

.side-thumb{
  height:90px;
  border-radius:12px;
  background:#f3f4f6;
  background-size:cover;
  background-position:center;
}
.side-title{
  margin:6px 0 0;
  font-size:16px;
  line-height:1.25;
  font-weight:900;
  color:var(--text);
}

.list-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:22px;
  margin-top:34px;
}
@media(min-width: 768px){
  .list-grid{ grid-template-columns: 1fr 1fr; }
}
@media(min-width: 1100px){
  .list-grid{ grid-template-columns: 1fr 1fr 1fr; }
}

.post-card{
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration:none;
  color: inherit;
}
.post-card:hover{ transform: translateY(-2px); box-shadow:0 14px 34px rgba(0,0,0,.12); }

.post-media{ height:200px; background:#f3f4f6; background-size:cover; background-position:center; }
.post-body{ padding:18px; }
.post-title{
  margin:10px 0 0;
  font-size:18px;
  line-height:1.25;
  font-weight:900;
  color:var(--text);
}
.post-card:hover .post-title{ color:var(--red); }

/* Metadatos */
.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color:var(--muted2);
  font-size:13px;
}
.meta-sep{ opacity:.6; }

/* Badge categoría */
.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  color:var(--text);
}

/* ===== Single post ===== */
.article-wrap{ max-width: 860px; margin:0 auto; }
.article-hero{
  margin-top:18px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}
.article-hero-media{
  height:420px;
  background:#f3f4f6;
  background-size:cover;
  background-position:center;
}
.article-content{
  padding:26px 22px;
  line-height:1.85;
  color:#111827;
}
.article-content p{ margin: 0 0 14px; }
.article-content h2{ margin: 26px 0 10px; font-size:26px; line-height:1.2; }
.article-content h3{ margin: 20px 0 10px; font-size:20px; line-height:1.25; }
.article-content ul{ margin: 0 0 14px 18px; }

.article-content p {
  margin-bottom: 1.6em;
  color: #f2f2f2;
}

.article-content h2 {
  margin-top: 2.2em;
  margin-bottom: .8em;
  color: #ffffff;
  font-weight: 800;
}

.article-content h3 {
  margin-top: 1.8em;
  margin-bottom: .6em;
  color: #f8f8f8;
}

/* ===== DESTACADOS DE LA SEMANA ===== */

.section-white{
    background:#ffffff;
}

.editorial-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
    flex-wrap:wrap;
    margin-bottom:34px;
}

.editorial-link{
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#111827;
    text-decoration:none;
    border-bottom:1px solid rgba(17,24,39,.35);
    padding-bottom:2px;
    transition:color .2s ease, border-color .2s ease;
}

.editorial-link:hover{
    color:#b91c1c;
    border-color:#b91c1c;
}

.weekly-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:24px;
}

.weekly-card{
    background:#ffffff;
    border:1px solid rgba(0,0,0,.08);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,.06);
    transition:transform .2s ease, box-shadow .2s ease;
}

.weekly-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 42px rgba(0,0,0,.10);
}

.weekly-card-media{
    height:210px;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.weekly-card-body{
    padding:22px;
}

.weekly-card-kicker{
    font-size:11px;
    font-weight:800;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#6b7280;
    margin:0;
}

.weekly-card-title{
    margin-top:12px;
    font-size:22px;
    line-height:1.2;
    font-weight:900;
    color:#111827;
    letter-spacing:-0.01em;
}

.weekly-card-excerpt{
    margin-top:12px;
    font-size:15px;
    line-height:1.65;
    color:#4b5563;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.weekly-card-link{
    display:inline-block;
    margin-top:18px;
    font-size:14px;
    font-weight:800;
    color:#b91c1c;
    text-decoration:none;
    transition:opacity .2s ease;
}

.weekly-card-link:hover{
    opacity:.8;
}

@media (max-width: 1024px){
    .weekly-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width: 640px){
    .weekly-grid{
        grid-template-columns:1fr;
    }

    .weekly-card-media{
        height:220px;
    }

    .weekly-card-title{
        font-size:20px;
    }
}

/* ===== AUTH PAGES ===== */

.auth-page{
    min-height: calc(100vh - 160px);
    padding: 46px 24px 70px;
    background:
        radial-gradient(circle at 20% 0%, rgba(185,28,28,.08), transparent 35%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-shell{
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
}

.auth-visual{
    position: relative;
    min-height: 620px;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.12);
}

.auth-visual-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.18) 0%,
        rgba(0,0,0,.38) 40%,
        rgba(0,0,0,.78) 100%
    );
}

.auth-visual-content{
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    color: #fff;
}

.auth-kicker{
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: rgba(255,255,255,.82);
}

.auth-title{
    margin: 12px 0 0;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.auth-text{
    margin-top: 14px;
    max-width: 520px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
}

.auth-card-wrap{
    display: flex;
    align-items: center;
}

.auth-card{
    width: 100%;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(0,0,0,.08);
}

.auth-lead{
    color: #6b7280;
    max-width: 560px;
}

.auth-form{
    margin-top: 22px;
}

.auth-field{
    margin-bottom: 16px;
}

.auth-field label{
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.auth-input{
    width: 100%;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: #111827;
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 15px;
    line-height: 1.3;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input:focus{
    border-color: rgba(185,28,28,.55);
    box-shadow: 0 0 0 4px rgba(185,28,28,.08);
}

.auth-row{
    margin-top: 6px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.auth-checkbox{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}

.auth-link{
    color: #b91c1c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.auth-link:hover{
    opacity: .82;
}

.auth-link-strong{
    font-weight: 800;
}

.auth-button{
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: #b91c1c;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    padding: 14px 16px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.auth-button:hover{
    background: #991b1b;
    transform: translateY(-1px);
}

.auth-alert{
    margin-top: 18px;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
}

.auth-alert-success{
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.28);
    color: #166534;
}

.auth-alert-error{
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.28);
    color: #991b1b;
}

.auth-footer-note{
    margin-top: 18px;
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 960px){
    .auth-shell{
        grid-template-columns: 1fr;
    }

    .auth-visual{
        min-height: 320px;
    }

    .auth-title{
        font-size: 34px;
    }
}

.role-admin {
background:#B91C1C;
color:white;
}

.role-writer {
background:#F59E0B;
color:white;
}

.role-reader {
background:#2563EB;
color:white;
}

.dashboard-card{
background:white;
padding:28px;
border-radius:14px;
border:1px solid #eee;
box-shadow:0 4px 14px rgba(0,0,0,0.05);
}

.dashboard-label{
font-size:12px;
text-transform:uppercase;
letter-spacing:.2em;
color:#777;
margin-bottom:6px;
}

.dashboard-value{
font-size:34px;
font-weight:900;
color:#111;
}

.post-card{
background:white;
border-radius:14px;
border:1px solid #eee;
transition:all .2s;
}

.post-card:hover{
box-shadow:0 6px 22px rgba(0,0,0,0.08);
}

.post-card-body{
padding:22px;
}

.post-card-category{
font-size:11px;
letter-spacing:.15em;
text-transform:uppercase;
color:#999;
}

.post-card-title{
font-size:20px;
font-weight:800;
margin-top:6px;
}

.post-card-excerpt{
color:#666;
margin-top:8px;
font-size:14px;
}

.post-card-link{
color:#b91c1c;
font-weight:700;
margin-top:12px;
display:inline-block;
}


/* ===== USER DROPDOWN ===== */

.nav-user-dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.nav-user-trigger{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:none;
  border:none;
  padding:0;
  color:rgba(255,255,255,0.85);
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  line-height:1;
}

.nav-user-trigger:hover{
  color:#ffffff;
}

.nav-user-caret{
  font-size:12px;
  opacity:.8;
}

.nav-user-menu{
  position:absolute;
  top:100%;
  right:0;
  min-width:240px;
  margin-top:0;
  padding:10px 0;
  background:#ffffff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,0.16);
  display:none;
  z-index:1000;
}

/* puente invisible para que no se pierda el hover */
.nav-user-dropdown::after{
  content:"";
  position:absolute;
  top:100%;
  right:0;
  width:100%;
  height:12px;
}

.nav-user-menu a{
  display:block;
  padding:10px 16px;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  color:#111827;
  white-space:nowrap;
}

.nav-user-menu a:hover{
  background:#f3f4f6;
}

.nav-user-divider{
  height:1px;
  margin:6px 0;
  background:#e5e7eb;
}

.nav-user-dropdown:hover .nav-user-menu,
.nav-user-dropdown:focus-within .nav-user-menu{
  display:block;
}

/* ===== COMMENTS ===== */

.comment-item{
  padding:16px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.comment-item:last-child{
  border-bottom:none;
}

.comment-meta{
  display:flex;
  gap:12px;
  align-items:center;
  font-size:14px;
}

.comment-date{
  opacity:.6;
  font-size:12px;
}

.comment-body{
  margin-top:8px;
  line-height:1.7;
}

.comment-textarea{
  width:100%;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.06);
  color:white;
  padding:12px;
  resize:vertical;
}

.comment-textarea:focus{
  outline:none;
  border-color:#ff5b5b;
}

.comment-note{
  margin-top:10px;
  font-size:12px;
  opacity:.6;
}

/* ===== COMMENTS FIX (dark article theme) ===== */

.comments-section h2,
.comments-section h3{
  color:#ffffff;
}

.comment-item{
  padding:16px 0;
  border-bottom:1px solid rgba(255,255,255,0.12);
}

.comment-meta{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:14px;
  color:#ffffff;
}

.comment-date{
  opacity:.65;
  font-size:12px;
}

.comment-body{
  margin-top:8px;
  line-height:1.7;
  color:rgba(255,255,255,.92);
}

.comment-textarea{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.22);
  background:rgba(255,255,255,0.08);
  color:#ffffff;
  padding:14px;
  font-size:14px;
}

.comment-textarea::placeholder{
  color:rgba(255,255,255,.45);
}

.comment-textarea:focus{
  outline:none;
  border-color:#ff5b5b;
  background:rgba(255,255,255,0.12);
}

.comment-note{
  margin-top:10px;
  font-size:13px;
  color:rgba(255,255,255,.7);
}

.comment-login{
  color:rgba(255,255,255,.85);
}

/* ===== IMÁGENES DENTRO DEL POST ===== */
.article-content img{
  display:block;
  max-width:100%;
  width:100%;
  height:auto;
  margin:28px auto;
  border-radius:16px;
  object-fit:cover;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}

/* Si quieres que no ocupen todo el ancho */
.article-content p > img{
  max-width:780px;
}

/* Leyendas opcionales si luego usas figure/figcaption */
.article-content figure{
  margin:28px 0;
}

.article-content figcaption{
  margin-top:10px;
  font-size:13px;
  line-height:1.6;
  color:rgba(255,255,255,.65);
  text-align:center;
}

/* ===== COMMENT SUCCESS MESSAGE ===== */

.comment-success{
  background:rgba(34,197,94,.15);
  border:1px solid rgba(34,197,94,.35);
  color:#bbf7d0;
  padding:12px 16px;
  border-radius:10px;
  margin-bottom:16px;
  font-size:14px;
}

html {
  scroll-behavior: smooth;
}
