/*
Theme Name: EndoraSoft Modern v2
Theme URI: https://endorasoft.com
Author: EndoraSoft
Description: Tema moderno y ligero con portada centrada, acceso a Blog real y enlaces funcionales.
Version: 6.0
Text Domain: endorasoft-modern
*/

/* Base */
:root{
  --bg: #f6f7fb;
  --card: rgba(255,255,255,.85);
  --card2: rgba(255,255,255,1);
  --text: rgba(0,0,0,.92);
  --muted: rgba(0,0,0,.62);
  --line: rgba(0,0,0,.12);
  --accent: #2f5cff;
  --shadow: 0 18px 50px rgba(20,24,33,.12);
}

*{box-sizing:border-box}
html,body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 25% 5%, rgba(47,92,255,.10), transparent 60%),
    radial-gradient(900px 700px at 85% 25%, rgba(0,170,255,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 25% 5%, rgba(47,92,255,.10), transparent 60%),
    radial-gradient(900px 700px at 85% 25%, rgba(0,170,255,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{color: var(--text); text-decoration: none}
a:hover{color: white; text-decoration: underline}
.container{max-width:1100px;margin:0 auto;padding: 0 22px}

/* Header */
.site-header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.68);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 18px;
}
.brand{
  display:flex; align-items:center; gap: 12px;
}
.brand img{height:42px; width:auto; display:block}
.nav{
  display:flex; align-items:center; gap: 18px;
}
.nav a{
  padding: 10px 12px; border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}
.nav a:hover{
  background: rgba(255,255,255,.06);
  color: white;
  text-decoration:none;
}
.nav .gen-link{
  display:flex; align-items:center; gap:10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.nav .gen-link img{height:36px; width:auto}

/* Hero */
.hero{
  padding: 56px 0 34px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items:center;
}
.hero-card{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.03));
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 10px 6px;
}
.hero-logo img{
  max-width: 520px;
  width: 100%;
  height: auto;
}
.hero-actions{
  display:flex; gap: 12px; justify-content:center; flex-wrap:wrap;
  margin-top: 16px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: white;
  font-weight: 700;
  text-decoration:none;
}
.btn:hover{background: rgba(255,255,255,.10); text-decoration:none}
.btn.primary{
  background: rgba(124,140,255,.22);
  border-color: rgba(124,140,255,.38);
}
.btn.primary:hover{background: rgba(124,140,255,.30)}

.gen-side{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 22px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
  text-align:center;
  min-width: 460px;
}
.gen-side img{
  max-width: 210px;
  width: 100%;
  height: auto;
  display:block;
  margin: 2px auto 10px;
}
.gen-side .small{color: var(--muted); font-size: 14px}

/* Side links (Blog + GEN) */
.side-links{
  display:flex;
  gap: 18px;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
}

/* Fixed frames so both icons match the proportions shown in the mock */
.gen-side .side-link{
  flex: 0 0 auto;
  width: 220px;
  height: 160px;
  display:block;
  border-radius: 22px;
  overflow: hidden;
  /* The images already include their own frame/border */
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

.gen-side .side-link img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
  margin: 0;
}

/* No extra border here — the GEN image already includes it */
.gen-side .side-link--gen{ border: 0; }

/* Posts */

.section-title{
  margin: 12px 0 16px;
  font-size: 22px;
  letter-spacing: .2px;
}
.post-list{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 26px;
}
.post-card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 16px;
  transition: transform .12s ease, background .12s ease;
}
.post-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  text-decoration:none;
}
.post-card h3{margin: 0 0 8px; font-size: 18px}
.post-card .meta{color: var(--muted); font-size: 13px; margin-bottom: 10px}
.post-card .excerpt{color: rgba(255,255,255,.82); margin:0}

/* Single */
.single{
  padding: 30px 0 50px;
}
.single .single-card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.sir-top-actions{
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 5;
}

.sir-home-link{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.sir-auth-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  color: inherit;
}
.sir-auth-link:hover{ filter: brightness(0.98); }

.sir-home-link img{
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.sir-home-link:hover{
  background: rgba(255,255,255,.75);
  text-decoration: none;
}
.single h1{margin:0 0 8px; font-size: 30px}
.single .meta{color: var(--muted); margin-bottom: 16px}
.single .content img{max-width:100%; height:auto}

/* Single actions (Volver al Blog / Añadir comentario) */
.single-actions{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Comments */
.comments-area{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.comments-title{margin: 0 0 14px; font-size: 18px}
.comment-list{margin: 0 0 18px; padding-left: 20px}
.comment-list li{margin: 0 0 14px}
.comment-body{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  border-radius: 18px;
  padding: 14px;
}
.comment-meta{color: var(--muted); font-size: 13px; margin-bottom: 8px}
.comment-meta a{color: inherit}
.comment-content{color: rgba(0,0,0,.92)}
.reply a{display: inline-flex; margin-top: 10px}

.comment-form-wrap{margin-top: 18px}
.comment-auth{
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  border-radius: 18px;
  padding: 12px 14px;
}
.comment-auth p{margin: 0}
.comment-auth a{font-weight: 800}
.comment-auth-note{color: var(--muted); font-size: 13px; margin-top: 6px}
.comment-notes{color: var(--muted); font-size: 13px; margin: 0 0 10px}
.comment-form p{margin: 0 0 12px}
.comment-form label{display:block; font-weight: 700; margin-bottom: 6px}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  color: rgba(0,0,0,.92);
  padding: 10px 12px;
  outline: none;
}
.comment-form textarea{min-height: 120px; resize: vertical}
.comment-form .form-submit{margin-top: 10px}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0;
  margin-top: 18px;
  background: rgba(0,0,0,.12);
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{grid-template-columns: 1fr}
  .gen-side{min-width: unset}
  .post-list{grid-template-columns: 1fr}
  .brand img{height:38px}
}


/* v3 changes: no top header/menu */
.site-header{display:none}


/* v4: force readable black text on light background (imported Blogger content often has legacy colors) */
body, p, li, td, th, div, span, article, section { color: rgba(0,0,0,.92); }
.post-card, .post-card h3, .post-card .excerpt, .post-card .meta { color: rgba(0,0,0,.92); }
.post-card .meta { color: rgba(0,0,0,.62); }
.section-title { color: rgba(0,0,0,.92); }
.single h1 { color: rgba(0,0,0,.92); }
.single .meta { color: rgba(0,0,0,.62); }
.single .content, .single .content * { color: rgba(0,0,0,.92) !important; }
a { color: rgba(0,0,0,.92); }
a:hover { color: rgba(0,0,0,1); }

/* Footer centered */
.site-footer .container { text-align: center; }

/* v5: Back to Blog button readability */
.btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(0,0,0,.25);
}

.btn:hover {
  background: #e00000;
  color: #ffffff;
  border-color: #e00000;
}

/* Pager (blog listing page) */
.pager{
  margin-top: 18px;
}
.pager .page-numbers{
  display:inline-block;
  padding: 6px 10px;
  margin: 0 4px 6px 0;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.7);
}
.pager .page-numbers.current{
  background: rgba(224,0,0,.10);
  border-color: rgba(224,0,0,.35);
}

.single-actions{ justify-content: flex-start; }
.single-actions .add-comment{ margin-left: auto; }


/* --- Auth / Register (theme virtual page) --- */
.endora-auth-form{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.endora-auth-form label{
  font-weight: 700;
  font-size: 13px;
  opacity: .9;
}
.endora-auth-form input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: white;
  outline: none;
}
.endora-auth-form input::placeholder{ color: rgba(255,255,255,.65); }
.endora-auth-actions{ margin-top: 8px; }

.notice{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 14px;
}
.notice ul{ margin: 0; padding-left: 18px; }
.notice-error{ border-color: rgba(224,0,0,.35); background: rgba(224,0,0,.10); }
.notice-success{ border-color: rgba(20,160,80,.35); background: rgba(20,160,80,.10); }

/* Honeypot field (hidden) */
.hp-field{ position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
