/* styles.css */




/* Fuente global */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600&display=swap');

/* === Global === */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: linear-gradient(60deg, #000000 0%, #0a0a14 70%, #1a1a28 100%);
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  line-height: 1.6;
  /* === Nuevo === */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
  margin: 0;
}

/* === Wrapper === */
.wrapper {
  max-width: 2400px;
  margin: 0 auto;
  width: 100%;
}

/* === Menu Section === */
.menu-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333333;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-section .logo {
  font-size: 0.9em;
  font-weight: bold;
  color: #ffffff;
}

.menu-section .nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin-top: 10px;
  /* === add === */
  margin-bottom: 10px;
}

.menu-section .nav a {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #e0e2e3;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #333333;
  transition: background 0.3s, color 0.3s;
}

.menu-section .nav a:hover {
  background-color: #27fbf4;
  color: #09196d;
}

.hamburger {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #ffffff;
}


/* === Theme Section === */
/* === Theme Section === */
.theme-section {
  width: 100%;
  box-sizing: border-box;
}

.theme-container {
  max-width: 2400px;
  margin: 0 auto;
  padding: 40px;
  background-color: #333333;
  /* Cyan */
  color: #2bd2db;
  /* Texto negro */
  width: 100%;
  box-sizing: border-box;
}

.theme-text {
  margin: 0 auto;
  font-size: 1em;
  text-align: center;
  width: 100%;
  max-width: 900px;
  /* Ancho óptimo para lectura */
  box-sizing: border-box;
}

/* Tipografía responsive */
.theme-text h1 {
  font-size: 2.2em;
  line-height: 1.3;
  margin-bottom: 25px;
  font-weight: 700;
}

.theme-text h2 {
  font-size: 1.8em;
  line-height: 1.3;
  margin-top: 30px;
  font-weight: 600;
}

.theme-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.theme-text strong {
  font-weight: 700;
  color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
  .theme-container {
    padding: 30px 20px;
  }

  .theme-text h1 {
    font-size: 1.8em;
  }

  .theme-text h2 {
    font-size: 1.5em;
  }

  .theme-text p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .theme-container {
    padding: 25px 15px;
  }

  .theme-text h1 {
    font-size: 1.5em;
  }

  .theme-text h2 {
    font-size: 1.3em;
  }
}

.tagline {
  font-weight: 700;
}

/* === Intro Section === */
.intro-section {
  width: 100%;
}

.intro-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 2400px;
  margin: 0 auto;
}

.intro-container>div {
  flex: 1 1 33%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}


/* === Artefact Section === */

/* === Lista filosófica === */
.philosophy-list {
  text-align: left;
  margin: 20px auto;
  padding: 0;
  max-width: 800px;
}

.philosophy-list li {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.05em;
  position: relative;
}

.philosophy-list strong {
  color: #ffffff;
  /* f1ace */
  position: relative;
  display: inline-block;
  transition: color 0.6s ease, text-shadow 0.6s ease;
}


/* === Language Switcher Styles === */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.language-switcher .lang {
  position: relative;
  color: #fff;
  /* color base del menú */
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

/* Línea animada elegante debajo del texto */
.language-switcher .lang::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background-color: #a6e1fa;
  /* tono azulado sutil */
  transition: width 0.35s ease;
}

/* Al pasar el mouse: color y subrayado aparecen suavemente */
.language-switcher .lang:hover {
  color: #a6e1fa;
}

.language-switcher .lang:hover::after {
  width: 100%;
}

/* Separador visual */
.language-switcher .divider {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* Móvil: centrado y espaciado natural */
@media (max-width: 768px) {
  .language-switcher {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.4rem;
  }
}




/* Efecto de “activación neuronal” con retardo de 0.3s */
.fade-in.visible strong {
  animation: glow-pulse 1.5s ease-in-out 1 forwards;
  animation-delay: 0.3s;
  /* Aquí está el retardo */
}

@keyframes glow-pulse {
  0% {
    color: #a1ace7;
    /* cambio1 */
    text-shadow: none;
  }

  40% {
    color: #27fbf4;
    text-shadow: 0 0 8px #27fbf4, 0 0 16px #27fbf4;
  }

  100% {
    color: #ffffff;
    text-shadow: none;
  }
}

/* === Animaciones de aparición === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

.delay-5 {
  transition-delay: 1s;
}

.delay-6 {
  transition-delay: 1.2s;
}



/* === Panorama Section === */
#panorama-section.panorama-estilo {
  position: relative;
  width: 100%;
  height: 80vh;
  font-family: 'Georgia', serif;
  color: #e6d6b3;
  background: #000;
  overflow: hidden;
}

#panorama-section.panorama-estilo #canvas-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#panorama-section.panorama-estilo #ui-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(25, 15, 5, 0.7);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #7a5c3c;
  backdrop-filter: blur(5px);
  max-width: 300px;
}

#panorama-section.panorama-estilo button {
  background: #3a2c1a;
  color: #e6d6b3;
  border: 1px solid #7a5c3c;
  padding: 8px 15px;
  margin: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  transition: all 0.3s;
}

#panorama-section.panorama-estilo button:hover {
  background: #5a4a3a;
}

#panorama-section.panorama-estilo #info-panel {
  margin-top: 15px;
  line-height: 1.6;
}

#panorama-section.panorama-estilo .hidden {
  display: none;
}

#panorama-section.panorama-estilo #loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.2em;
  z-index: 100;
}

/* === Fichas Section === */
#fichas-section {
  padding: 40px 20px;
  text-align: center;
}

.filtro-busqueda {
  margin-bottom: 30px;
}

#busqueda {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #e0e2e3;
  background-color: #333333;
  color: #ffffff;
  width: 250px;
}

#tags {
  margin-top: 20px;
}

.fichas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.ficha {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #111;
  color: #ffffff;
  width: calc(33.333% - 40px);
  padding: 0;
  box-sizing: border-box;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 0;
  animation: fadeInUp 0.6s ease both;
}

.ficha::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(135deg, #0f1010, #2f3333, #1f2525);
  background-size: 400% 400%;
  border-radius: inherit;
  animation: neonBorder 5s linear infinite;
  opacity: 0.6;
  filter: blur(5px);
}

.ficha:hover {
  transform: scale(1.03);
  z-index: 1;
  box-shadow: 0 0 12px rgba(39, 251, 244, 0.4), 0 0 20px rgba(0, 180, 216, 0.5);
}

.ficha img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px 12px 0 0;
}

.ficha .contenido {
  display: flex;
  flex-direction: column;
  padding: 16px;
  flex-grow: 1;
  justify-content: space-between;
}

.ficha .fecha {
  font-size: 0.85em;
  color: #aaaaaa;
  margin-bottom: 8px;
}

.ficha .titulo {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.ficha .resumen {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
  flex-grow: 1;
}


/* Botones Dos */
.botonDos {
  background-color: #27fbf4;
  border: none;
  color: #09196d;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 24px;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 10px;
  text-decoration: none;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  /* para centrarlo */
}


/* Botones Genéricos */
button,
.boton {
  background-color: #27fbf4;
  border: none;
  color: #09196d;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 24px;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 10px;
  text-decoration: none;
  max-width: 80%;

}

button:hover,
.boton:hover {
  opacity: 0.85;
}

.ficha button {
  margin-top: 32px;
  /* más espacio solo en fichas */
  align-self: flex-start;
  background-color: #27fbf4;
  color: #09196d;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 20px;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s;
  position: relative;
  text-decoration: none;
  max-width: 40% !important;
  /* fuerza el ancho solo en ficha */
  margin-top: 32px !important;
  margin-left: auto;
  margin-right: auto;
  /* para centrarlo */
  display: block;
  border-radius: 20px;

}

.ficha button:hover {
  opacity: 0.85;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-section .nav {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 0;
  }

  .menu-section .nav.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }



  .intro-container {
    flex-direction: column;
  }

  .intro-container>div {
    flex: 1 1 100%;
    min-height: 360px;
  }

  .intro-container img {
    width: 100%;
    height: auto;
    display: block;
  }

  .ficha {
    width: 100%;
    aspect-ratio: auto;
  }

  .ficha button {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    align-self: stretch;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neonBorder {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {

  /* Oculta menú por defecto en móvil */
  .menu-section .nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #111;
    /* Fondo oscuro */
    position: absolute;
    top: 60px;
    /* Ajusta según altura del header */
    right: 10px;
    width: 200px;
    padding: 12px;
    border-radius: 6px;
    z-index: 100;
  }

  /* Muestra menú cuando se activa */
  .menu-section .nav.active ul {
    display: flex;
  }

  /* Estilo de enlaces en móvil */
  .menu-section .nav a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    background-color: #333;
    border-radius: 4px;
  }

  .menu-section .nav a:hover {
    background-color: #27fbf4;
    color: #09196d;
  }

  /* Muestra ícono hamburguesa en móvil */
  .hamburger {
    display: block;
  }
}

/* Sección principal del blog */


.blog-home {
  max-width: 100px;
  float: right;
  padding: 2rem;
}

.home-icon a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.home-icon a:hover {
  transform: scale(1.1);
}

.blog-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Imagen con overlay */
.hero-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85);
}

.image-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 15, 20, 0.6);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.overlay-text {
  font-size: 1.1rem;
  font-weight: 400;
  color: #f8f8f8;
  line-height: 1.4;
}

/* Títulos y párrafos */
.post-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 1.5rem 0;
  color: #ffffff;
  line-height: 1.2;
}

.post-content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.post-content strong {
  color: #ffffff;
  font-weight: 600;
}

.post-content em {
  color: #ccc;
}

/* Listas */
.post-content ul {
  list-style: none;
  padding-left: 1rem;
}

.post-content ul li {
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
  position: relative;
}

.post-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #27fbf4;
  font-weight: bold;
}

/* Citas destacadas */
blockquote {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid #27fbf4;
  font-style: italic;
  color: #cccccc;
  font-size: 1.05rem;
}

/* Cierre narrativo */
.closing {
  text-align: center;
  font-size: 1.05rem;
  font-style: italic;
  margin-top: 2rem;
  color: #f0f0f0;
}

/* Nota al pie */
.footnote {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2rem;
  border-top: 1px solid #333;
  padding-top: 0.8rem;
}

/* Transiciones suaves */
.hero-image img,
.overlay-text,
.post-content p,
blockquote {
  transition: all 0.3s ease-in-out;
}

.hero-image:hover img {
  filter: brightness(1);
}




/* TRAILER SECTION */
.trailer-container {
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
  max-width: 1920px;
  margin: 80px auto 0;
  /* Espacio para el icono home */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.trailer-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.trailer-container:hover img {
  transform: scale(1.02);
}

.trailer-container .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Triángulo de play más elegante */
.trailer-container .play-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.trailer-container:hover .play-button {
  background: rgba(200, 50, 100, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* LIGHTBOX - CORREGIDO */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Cuando está activo */
#lightbox.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

#video-container {
  position: relative;
  width: 90%;
  max-width: 1920px;
  margin: 20px;
}

#lightbox iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Botón de cerrar */
.close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .trailer-container {
    margin: 60px 10px 0;
  }

  .trailer-container .play-button {
    width: 80px;
    height: 80px;
  }

  .trailer-container .play-button::after {
    border-left: 16px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  #video-container {
    width: 95%;
    margin: 10px;
  }

  .close-btn {
    top: -40px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .trailer-container .play-button {
    width: 60px;
    height: 60px;
  }
}

.trailer-container .play-button::after {
  border-left: 12px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.blog-home {
  top: 15px;
  left: 15px;
}

.home-icon img {
  width: 50px;
  height: 50px;
}


/* Tabla ancha personalizada (forzado) */
.post-content .wide-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1.5rem 0 !important;
}

.wide-table th,
.wide-table td {
  padding: 0.75rem 1rem !important;
  /* más aire horizontal */
  text-align: left !important;
  vertical-align: top !important;
}

.wide-table th {
  font-weight: 600 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.wide-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.wide-table tr:last-child td {
  border-bottom: none !important;
  /* quita la línea de la última fila */
}

/* Personajes */
.personajes {
  padding: 50px 20px;
  background: #111;
  color: #fff;
  text-align: center;
}

.personajes h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.personajes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.personaje-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.personaje-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.personaje-card:hover img {
  transform: scale(1.05);
}

.personaje-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
  text-align: left;
}

.personaje-card:hover .overlay {
  opacity: 1;
}

.personaje-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #00d0ff;
}

.personaje-card p {
  font-size: 0.95rem;
  line-height: 1.4rem;
  margin-top: 10px;
}

.personaje-card blockquote {
  margin-top: 15px;
  font-size: 1rem;
  font-style: italic;
  color: #ffef99;
  border-left: 3px solid #ffef99;
  padding-left: 10px;
}


/* FOOTER */

.site-footer {
  background-color: #333333;
  color: #ffffff;
  padding: 2rem 1rem;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-posts li {
  margin-bottom: 0.5rem;
}

.footer-posts a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-posts a:hover {
  color: #dddddd;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a svg {
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-icons a:hover svg {
  transform: scale(1.1);
}

.footer-section p a {
  color: #ffffff;
  text-decoration: none;
}

.footer-section p a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* COMPRAR */
.buy-block.hybrid {
  background: #222;
  padding: 20px;
  margin: 30px auto;
  max-width: 800px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: #fff;
  gap: 20px;
}

.buy-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.buy-info {
  flex: 1;
}

.buy-info p {
  margin: 0 0 15px;
  font-size: 1rem;
  line-height: 1.4rem;
}

.buy-button {
  display: inline-block;
  padding: 10px 30px;
  background: #00d0ff;
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.buy-button:hover {
  background: #00a0cc;
}

/* Versión vertical automática para móviles */
@media (max-width: 768px) {
  .buy-block.hybrid {
    flex-direction: column;
    text-align: center;
  }

  .buy-icon {
    margin-bottom: 15px;
  }

  .buy-button {
    margin-top: 10px;
  }
}

/* Hero para la página Comprar */
.hero-comprar {
  position: relative;
  text-align: center;
  /* Centra el contenido interno */
  margin: 0 auto 3rem auto;
  /* Espaciado vertical y centrado horizontal */
  max-width: 900px;
  /* Limita el ancho para que no se desborde */
}

.hero-comprar img {
  display: block;
  margin: 0 auto;
  /* Centra la imagen dentro del div */
  width: 100%;
  height: auto;
  border-radius: 12px;
  /* Opcional, mismo estilo redondeado que el resto del sitio */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  /* Opcional para darle profundidad */
}

.hero-comprar .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}


/* Sección Comprar nuevo */
.comprar {
  max-width: 1200px;
  /* Limita el ancho */
  margin: 0 auto;
  /* Centra horizontalmente */
  padding: 2rem 1rem;
  /* Espaciado interno */
  text-align: center;
  /* Centra títulos y texto */
}

.comprar h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #ffffff;
  /* Ajusta si tu tema es oscuro */
}



/* === ESTILOS PARA EL BLOQUE INTERACTIVO (VERSIÓN 2.0) === */

.interactivo {
  /* --- Estilos Generales --- */
  background-color: #2dd2d0;
  color: black;
  padding: 20px 15px;

  /* --- Layout para Escritorio (Desktop) con Flexbox --- */
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.interactivo-texto {
  text-align: center;
}

.interactivo-texto h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.interactivo-texto span {
  font-size: 1.1rem;
  font-style: italic;
}

.interactivo-flecha img {
  width: 50px;
  height: auto;
  display: block;
}

/* Ocultamos por defecto el contenedor de flechas de móvil */
.interactivo-flechas-movil {
  display: none;
}


/* === Contenedor principal de contenido === */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;        /* centra el bloque principal */
  padding: 2rem 1rem;
  box-sizing: border-box;
  /* deja la alineación de texto por defecto (izquierda) */
  text-align: left;
  float: none !important;
  clear: both;
}

/* Evita forzar display:flex en el artículo entero (esto centraba todo) */
.post-article {
  display: block;           /* RESTAURA flujo normal del artículo */
  /* si necesitas un flex, úsalo solo en subelementos puntuales */
}

/* Figura hero: comportarse como bloque centrado y responsivo */
.main-content .post-hero {
  display: block;           /* evitar flex para no romper el flujo del texto */
  max-width: 100%;
  margin: 2rem auto;        /* centra el bloque figure dentro del main-content */
  text-align: center;       /* centra internamente la imagen y el figcaption */
}

/* Imagen responsiva dentro del figure */
.main-content .post-hero img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;        /* nunca más ancha que el contenedor principal */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

/* Pie de foto: centrado, discreto y no rompe líneas */
.main-content .post-hero figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #6b6b6b;
  text-align: center;
  max-width: 900px;
  font-style: italic;
  margin-left: auto;
  margin-right: auto;
}

/* Si tienes listas o párrafos que se centraron, asegúrate que vuelvan a la izquierda */
.main-content p,
.main-content ul,
.main-content ol,
.main-content h1,
.main-content h2,
.main-content h3,
.main-content blockquote {
  text-align: left;
}


/* Extras links */

a,
a:visited,
a:active {
  color: white;          /* Color blanco */
  text-decoration: none; /* Sin subrayado */
}

/* 2. Define lo que pasa al pasar el ratón por encima */
a:hover {
  color: white; /* Mantenemos el color blanco */
  text-decoration: underline; /* Le añadimos un subrayado solo al pasar el ratón */
}

/* === ESTILOS RESPONSIVOS PARA MÓVIL === */

@media (max-width: 768px) {

  .interactivo {
    flex-direction: column;
    gap: 20px;
    /* Aumentamos un poco el espacio */
  }

  .interactivo-texto {
    order: 1;
    /* El texto va primero */
  }

  /* Ocultamos las flechas de escritorio en la vista móvil */
  .flecha-escritorio {
    display: none;
  }

  /* Mostramos y centramos el nuevo contenedor de flechas para móvil */
  .interactivo-flechas-movil {
    display: block;
    /* Lo hacemos visible */
    order: 2;
    /* Va después del texto */
    text-align: center;
    /* Centramos la imagen */
  }

  .interactivo-flechas-movil img {
    width: 100px;
    /* Ancho de la imagen 'flechas.png', ajústalo a tu gusto */
    height: auto;
  }
}