body {
    margin: 0;
    padding-top: 60px; /* 👈 espacio arriba */
    font-family: "Georgia", serif;
    background: #f5f5f5;
}

/* LAYOUT */
.main-container {
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
    max-width: 1400px;
    width: 100%;
}

.ads-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ARTÍCULO */
.article {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.article h1 {
    font-size: 48px;
}

/* =========================================
   PÁRRAFO ARTÍCULO PERIODÍSTICO ELEGANTE
   ========================================= */

 p {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.125rem;        /* lectura cómoda */
    line-height: 1.8;           /* aire entre líneas */
    color: #1a1a1a;             /* negro suave, no puro */
    margin-bottom: 1.5rem;      /* separación entre párrafos */
    text-align: justify;        /* estilo editorial clásico */
    letter-spacing: 0.2px;      /* ligera mejora de lectura */
    word-spacing: 0.5px;
    max-width: 75ch;            /* evita líneas demasiado largas */
}

/* Primera letra estilo editorial (opcional premium) */
 p:first-of-type::first-letter {
    font-size: 3rem;
    font-weight: bold;
    float: left;
    line-height: 1;
    margin-right: 8px;
    color: #D4AF37; /* dorado elegante tipo Cosmópolis */
}

/* Versión para móvil */
@media (max-width: 768px) {
     p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left; /* más natural en pantallas pequeñas */
    }

    article p:first-of-type::first-letter {
        font-size: 2.2rem;
    }
}

h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;

  color: #111;
  
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

/* Línea editorial sutil debajo */
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 1px;
  background-color: #111;
  opacity: 0.6;
}

/* Variante con aire más “luxury” */
h2.editorial-luxe {
  font-family: "Didot", "Bodoni Moda", "Georgia", serif;
  font-weight: 200;
  letter-spacing: 0.12em;
  font-size: 2.4rem;
  text-transform: uppercase;
  color: #0b0b0b;
}

.meta {
    color: #777;
    margin-bottom: 2px;
}

.main-image,
.sub-image {
    width: 100%;
    border-radius: 10px;
    margin: 25px 0;
}

/* ADS */
.ad {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.ad h4 {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

/* REEL STYLE */
.ad-box {
    width: 100%;
    aspect-ratio: 9 / 16;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.ad-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ad-box img.active {
    opacity: 1;
}

.ad-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    font-size: 11px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 5px;
    border-radius: 5px;
}

/* FOOTER */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
}

/* Bloque meta discreto */
.meta {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
  gap: 0.2rem;

  font-family: "Georgia", "Times New Roman", serif;
  color: rgba(0, 0, 0, 0.75);
}

/* Autor (sin mayúsculas agresivas) */
.meta .author {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* “Por” más tenue */
.meta .by {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.55);
}

/* Fecha más ligera y neutra */
.meta .date {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.45);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .ads-column {
        flex-direction: row;
        overflow-x: auto;
    }
}