/* ==========================
   BLOG NOTARIAX
========================== */
:root {
  --gold: #DEBF8A;
  --gold-dark: #CDAA5A;
  --gold-soft: #F0D9A8;
  --black: #000000;
  --white: #ffffff;
  --gray: #444444;
  --gray-light: #bbbbbb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.blog-intro {
  font-size: 18px;
  color: #d9d9d9;
  margin-bottom: 40px;
  max-width: 700px;
}

body {
  min-height: 100vh;
  background-color: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/landing/firma-wave.webp');
  background-repeat: no-repeat;
  background-position: center 18%;
  background-size: 130% auto;
  opacity: 0.35;
  pointer-events: none;
}


.blog-header,
.blog-main,
.blog-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-soft);
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================
   HEADER
========================== */

.blog-header {
  background: #000;
  border-bottom: 2px solid var(--gold);
  padding: 16px 24px;
}

.blog-header-container {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-logo img {
  height: 50px;
}

.blog-nav {
  display: flex;
  gap: 24px;
}

.blog-nav a {
  color: white;
  font-size: 14px;
}

.blog-login {
  border: 2px solid var(--gold);
  border-radius: 25px;
  padding: 10px 18px;
}

/* ==========================
   MAIN
========================== */

.blog-main {
  max-width: 950px;
  margin: 60px auto;
  padding: 0 20px;
}

.blog-main article {
  animation: fadeIn 0.4s ease;
}

/* ==========================
   TARJETAS DE ARTICULO (index)
========================== */

.article-card {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(222, 191, 138, 0.25);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 26px;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: #121212;
  box-shadow: 0 10px 30px rgba(222, 191, 138, 0.18);
}

.article-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* El enlace cubre toda la tarjeta: toda la card es clickeable */
.article-card h2 a {
  color: var(--gold);
}

.article-card h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.article-card:hover h2 a {
  color: var(--gold-soft);
}

.article-card p {
  font-size: 16px;
  color: var(--gray-light);
  margin-bottom: 0;
}

/* Indicador visual de que es un enlace */
.article-card::after {
  content: 'Leer artículo →';
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.article-card:hover::after {
  transform: translateX(4px);
}

/* ==========================
   CIERRE DE ARTICULO (CTA + navegacion)
========================== */

.article-cta {
  margin: 56px 0 40px;
  padding: 36px 32px;
  background: #0d0d0d;
  border: 1px solid rgba(222, 191, 138, 0.3);
  border-radius: 16px;
  text-align: center;
}

.article-cta h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

.article-cta p {
  font-size: 16px;
  color: var(--gray-light);
  margin-bottom: 24px;
  text-align: center;
}

.article-cta-button {
  display: inline-block;
  background: var(--gold);
  color: #000 !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 34px;
  border-radius: 30px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.article-cta-button:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(222, 191, 138, 0.18);
  padding-top: 28px;
  margin-bottom: 50px;
}

.article-back {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
}

/* Articulos relacionados */
.article-related {
  margin-bottom: 60px;
}

.article-related h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.article-related ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.article-related li {
  margin: 0;
}

.article-related a {
  display: block;
  padding: 16px 20px;
  background: #0d0d0d;
  border: 1px solid rgba(222, 191, 138, 0.2);
  border-radius: 12px;
  color: var(--gold);
  font-weight: 500;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.article-related a:hover {
  border-color: var(--gold);
  background: #121212;
  transform: translateX(4px);
}

.blog-main h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
  margin-bottom: 24px;
  position: relative;
}

.blog-main h1::after {
  content: '';
  display: block;
  width: 90px;
  height: 3px;
  background: var(--gold);
  margin-top: 14px;
  border-radius: 50px;
}

.blog-main h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 50px;
  margin-bottom: 18px;
}

.blog-main h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-top: 30px;
  margin-bottom: 12px;
}

.blog-main p {
  font-size: 17px;
  color: #e6e6e6;
  margin-bottom: 18px;
  text-align: justify;
}

.blog-main ul {
  margin: 20px 0;
  padding-left: 28px;
}

.blog-main li {
  margin-bottom: 10px;
  color: #e6e6e6;
}

.blog-main li::marker {
  color: var(--gold);
}

.blog-main strong {
  color: var(--gold);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================
   MOBILE
========================== */
@media (max-width: 768px) {

  .blog-main {
    margin: 30px auto;
    padding: 0 16px;
  }

  .blog-main h1 {
    font-size: 30px;
  }

  .blog-main h2 {
    font-size: 24px;
  }

  .blog-main h3 {
    font-size: 20px;
  }

  .blog-main p,
  .blog-main li {
    font-size: 16px;
  }

}
