/* estilos.css - minimal */
:root {
  --bg:#f7f7f7;
  --text:#222;
  --muted:#888;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}
.site-header, .site-footer{background:#000;color:#fff}
.site-header{padding:22px 0;border-bottom:2px solid #111}
.header-inner{width:92%;max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}
.logo{font-family:Playfair Display,serif;font-size:28px;letter-spacing:1px}
.header-inner nav a{color:#ccc;margin-left:18px;text-decoration:none;font-weight:600}
.header-inner nav a:hover{color:#fff}
.container{width:92%;max-width:900px;margin:40px auto;background:#fff;padding:28px;border-radius:10px;box-shadow:0 6px 22px rgba(0,0,0,0.06)}
.container h2{font-family:Playfair Display,serif;font-size:24px;margin-bottom:14px}
label{display:block;margin-top:12px;font-weight:600}
input,textarea,select{width:100%;padding:10px;border:1px solid #ddd;border-radius:8px;margin-top:6px;font-size:15px}
button{margin-top:18px;padding:12px 18px;background:#000;color:#fff;border:none;border-radius:8px;cursor:pointer}
button:hover{opacity:0.9}
.site-footer{padding:28px;text-align:center;color:var(--muted);border-top:2px solid #111;margin-top:40px}
#clock-wrap{position:fixed;top:120px;right:18px;background:rgba(0,0,0,0.78);color:#0ff;padding:10px 14px;border-radius:8px;z-index:9999;font-family:Orbitron,monospace}
.article-meta{font-size:.9rem;color:var(--muted);margin-bottom:12px}
.tags span,.categorias span{background:#0ff;color:#000;padding:4px 8px;border-radius:6px;margin-right:6px;font-size:.85rem}
.rating i{cursor:pointer;margin-right:6px;color:#888}
.rating i.hovered,.rating i.selected{color:#f5c518}
.article-content img{max-width:100%;height:auto;border-radius:6px;margin-bottom:18px}
/* ============================================================
   RESPONSIVE UNIVERSAL – para cualquier dispositivo
============================================================ */

/* --- Ajuste global --- */
img, video {
    max-width: 100%;
    height: auto;
}
.container {
    width: 92%;
    max-width: 900px;
    margin: 40px auto;
    padding: 24px;
}

/* Tipografías fluidas */
h1, h2, h3 {
    line-height: 1.2;
}
h2 {
    font-size: clamp(20px, 3vw, 28px);
}
body {
    font-size: clamp(14px, 2.2vw, 16px);
}

/* ============================================
   Header Responsive
============================================ */
.header-inner {
    flex-wrap: wrap;
    text-align: center;
}
.logo {
    width: 100%;
    margin-bottom: 12px;
}
.header-inner nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.header-inner nav a {
    margin: 8px 10px;
}

/* ============================================
   Formularios Responsive
============================================ */
input, textarea, select {
    font-size: clamp(14px, 2.4vw, 16px);
    padding: 10px;
}
button {
    padding: 12px 18px;
    font-size: clamp(14px, 3vw, 17px);
}

/* ============================================
   Contenido y Artículos
============================================ */
.article-content {
    font-size: clamp(15px, 2.6vw, 18px);
}
.article-content img {
    margin: 16px 0;
    border-radius: 8px;
}

/* ============================================
   Reloj Responsive
============================================ */
@media (max-width: 768px) {
    #clock-wrap {
        position: static;
        margin: 20px auto;
        width: 90%;
        text-align: center;
        right: 0;
    }
}

/* ============================================
   Pantallas medianas (tablets)
============================================ */
@media (max-width: 900px) {
    .container {
        width: 94%;
        margin: 30px auto;
        padding: 20px;
    }
}

/* ============================================
   Celulares (layout compacto)
============================================ */
@media (max-width: 600px) {
    .site-header {
        padding: 16px 0;
    }
    .container {
        padding: 18px;
    }
    button {
        width: 100%;
    }
}

/* ============================================
   Teléfonos pequeños (<360px)
============================================ */
@media (max-width: 360px) {
    .logo {
        font-size: 22px;
    }
    .container {
        padding: 14px;
    }
}

/* ============================================
   Pantallas grandes (TV o 4K)
============================================ */
@media (min-width: 1600px) {
    body {
        font-size: 18px;
    }
    .container {
        max-width: 1100px;
    }
}
/* =========================================================
   ESTILO EDITORIAL — NATGEO / DISCOVERY
   (sobrescribe el minimal)
========================================================= */

/* Contenedor tipo revista */
.container {
    background: #fff;
    max-width: 820px;
    padding: 36px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Título principal del artículo */
.container > h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.15;
    margin-bottom: 14px;
    color: #0a0a0a;
}

/* Metadata estilo documental */
.article-meta {
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    color: #6f6f6f;
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

/* Imagen principal tipo HERO */
.container > img {
    width: 100%;
    margin: 26px 0 34px;
    border-radius: 6px;
    box-shadow: 0 22px 44px rgba(0,0,0,0.22);
}

/* Categorías y tags — NatGeo amarillo */
.categorias span,
.tags span {
    background: #ffcc00;
    color: #000;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    padding: 5px 8px;
}

/* Contenido largo estilo revista */
.article-content {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    line-height: 1.75;
    color: #1f1f1f;
}

/* Primer párrafo destacado */
.article-content p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Párrafos */
.article-content p {
    margin-bottom: 22px;
    text-align: justify;
}

/* Citas */
.article-content blockquote {
    border-left: 4px solid #ffcc00;
    padding-left: 18px;
    margin: 32px 0;
    font-style: italic;
    color: #444;
}

/* Imágenes internas */
.article-content img {
    margin: 30px auto;
    display: block;
    border-radius: 8px;
}

/* Separador elegante */
.article-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 42px 0;
}

/* Rating más editorial */
.rating {
    margin-top: 46px;
    font-size: 22px;
}

/* Footer más sobrio */
.site-footer {
    background: #111;
    color: #aaa;
    padding: 46px 0;
}
.article-content p:first-of-type::first-letter {
    float: left;
    font-size: 3.4em;
    line-height: 1;
    padding-right: 8px;
    font-weight: 700;
}
@media (min-width: 769px) {
    .header-inner {
        flex-wrap: nowrap;
        text-align: left;
    }
    .logo {
        width: auto;
        margin-bottom: 0;
    }
    .header-inner nav {
        width: auto;
        justify-content: flex-end;
    }
}
/* =====================================================
   OPINIONES – AISLADAS DEL LAYOUT GENERAL
===================================================== */

.opiniones-wrap {
  width: 100%;
  max-width: 820px;           /* mismo ancho del artículo */
  margin: 60px auto 0;
  padding: 0 12px;            /* seguridad mobile */
  box-sizing: border-box;
}

.opiniones {
  width: 100%;
  box-sizing: border-box;
}

/* ===============================
   Caja de opinión
================================ */

.opinion-box {
  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

/* Título */
.opinion-box h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

/* ===============================
   Formulario
================================ */

#form-opinion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Input nombre */
.opinion-input {
  width: 60%;
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  box-sizing: border-box;
  margin: 0 auto;             /* centrado */
}

/* Textarea opinión */
.opinion-textarea {
  width: 60%;
  min-height: 40px;
  max-height: 160px;
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  resize: none;
  overflow: hidden;
  line-height: 1.45;
  box-sizing: border-box;
  margin: 0 auto;             /* centrado */
}

/* ===============================
   Botón
================================ */

#form-opinion button {
  align-self: center;
  padding: 7px 18px;
  font-size: 0.85rem;
  border-radius: 20px;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
}

#form-opinion button:hover {
  opacity: 0.9;
}

/* ===============================
   Lista de opiniones
================================ */

#opiniones-lista {
  margin-top: 28px;
}

/* ===============================
   Responsive
================================ */

@media (max-width: 600px) {
  .opinion-input,
  .opinion-textarea {
    width: 100%;
  }

  #form-opinion button {
    width: 100%;
  }
}
.article-fecha {
  margin-top: 6px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

