/* ========================= */
/*   ESTILOS GENERALES       */
/* ========================= */

body {
  font-family: Arial, sans-serif;
  background: #0f1b1d; /* grafito azulado/verde */
  margin: 0;
  padding: 0;
  color: #e8e8e8; /* texto claro para contraste */
}

/* ========================= */
/*         HEADER / LOGO     */
/* ========================= */

.header {
  width: 100%;
  background: rgba(15, 27, 29, 0.85); /* mismo tono, con transparencia */
  padding: 1rem 0;
  border-bottom: 1px solid #1f2f31;
  position: sticky; /* queda fijo arriba */
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.4));
}

/* ========================= */
/* SECCIÓN INSTITUCIONAL */
/* ========================= */

.hero {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.hero-text {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.hero-images img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 220px;
}

/* ========================= */
/* SECCIÓN PRODUCTOS AMAZON */
/* ========================= */

.ev-ml-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.ev-ml-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.ev-ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ev-ml-box {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 1rem;
  transition: box-shadow .2s ease, transform .2s ease;
}

.ev-ml-box:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.ev-ml-box img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.ev-ml-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ev-ml-btn {
  display: block;
  text-align: center;
  padding: 0.6rem;
  background: #3483fa;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background .2s ease;
}

.ev-ml-btn:hover {
  background: #2968c8;
}

/* ========================= */
/* SECCIÓN DE CONTACTO */
/* ========================= */

.contacto-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem 1rem;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
}

.contacto-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contacto-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contacto-botones {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-whatsapp,
.btn-email {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.btn-whatsapp {
  background: #25D366;
}

.btn-email {
  background: #3483fa;
}

.btn-whatsapp:hover,
.btn-email:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.ev-ml-box {
  background: #ffffff;
  color: #000;
}

.hero-text h1,
.hero-text p,
.ev-ml-section h2,
.contacto-section h2,
.contacto-section p {
  color: #e8e8e8;
}

.contacto-section {
  background: #112326;
  border: 1px solid #1f3a3d;
}

.btn-email {
  background: #1c7ed6;
}

.btn-email:hover {
  background: #1864ab;
}

/* ========================= */
/*        HEADER / MENÚ      */
/* ========================= */

.header {
  width: 100%;
  background: rgba(15, 27, 29, 0.9);
  padding: 0.8rem 0;
  border-bottom: 1px solid #1f2f31;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color .2s ease;
}

.nav a:hover {
  color: #4dd2c0;
}

/* BOTÓN HAMBURGUESA (MÓVIL) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #e8e8e8;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #0f1b1d;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    display: none;
    border-top: 1px solid #1f2f31;
  }

  .nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ========================= */
/*      SECCIÓN SERVICIOS    */
/* ========================= */

.servicios-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.servicios-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #e8e8e8;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.servicio-box {
  background: #112326;
  border: 1px solid #1f3a3d;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.servicio-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.servicio-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.servicio-box h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #4dd2c0;
}

.servicio-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #d6d6d6;
}

/* ========================= */
/*          FOOTER           */
/* ========================= */

.footer {
  background: #0c1617;
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid #1f3a3d;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer p {
  color: #bfcfcf;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.footer-aviso {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ========================= */
/*   BOTÓN FLOTANTE WHATSAPP */
/* ========================= */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 65px;
  height: 65px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 2000;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float img {
  width: 38px;
  height: 38px;
  filter: brightness(0) invert(1);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);

/* ========================= */
/*   PRODUCTOS GLASSMORPHISM */
/* ========================= */

.ev-ml-box {
  position: relative;
  background: rgba(255, 255, 255, 0.06); /* transparencia */
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px); /* efecto glass */
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ev-ml-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.55);
  border-color: rgba(77,210,192,0.6);
}

/* Imagen con efecto premium */
.ev-ml-box img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: transform .25s ease;
}

.ev-ml-box:hover img {
  transform: scale(1.04);
}

/* Título con glow */
.ev-ml-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #4dd2c0;
  text-shadow: 0 0 8px rgba(77,210,192,0.35);
}

/* Lista */
.ev-ml-box ul li {
  color: #d6d6d6;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* Botón premium */
.ev-ml-btn {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, #1c7ed6, #4dd2c0);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

.ev-ml-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
}
/* ========================= */
/*   SLIDER HORIZONTAL MOVIL */
/* ========================= */

@media (max-width: 768px) {

  .ev-ml-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.2rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .ev-ml-grid::-webkit-scrollbar {
    display: none; /* Oculta scrollbar en móviles */
  }

  .ev-ml-box {
    min-width: 80%;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
}
/* ========================= */
/*       SECCIÓN BLOG        */
/* ========================= */

.blog-preview {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.blog-preview h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #e8e8e8;
}

.blog-intro {
  font-size: 1.1rem;
  color: #cfd9da;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.blog-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  padding: 2rem;
  border-radius: 16px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.blog-card h3 {
  color: #4dd2c0;
  margin-bottom: 1rem;
}

.blog-card p {
  color: #d6d6d6;
  margin-bottom: 1.5rem;
}

.blog-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, #1c7ed6, #4dd2c0);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}



/* ========================= */
/*     ARTÍCULO DEL BLOG     */
/* ========================= */

.blog-article {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
  color: #e8e8e8;
}

.blog-article h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #4dd2c0;
}

.blog-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.blog-article h2 {
  margin-top: 2rem;
  color: #4dd2c0;
}

.blog-article p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #d6d6d6;
}

/* ========================= */
/*   BLOG REVISTA PREMIUM    */
/* ========================= */

.blog-hero {
  max-width: 1200px;
  margin: 3rem auto 1rem auto;
  padding: 0 1rem;
}

.blog-hero-content {
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.blog-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #4dd2c0;
}

.blog-hero p {
  font-size: 1.1rem;
  color: #d6d6d6;
  max-width: 800px;
}

/* Layout tipo revista: dos columnas */
.blog-layout {
  max-width: 1200px;
  margin: 2.5rem auto 4rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2rem;
}

.blog-main {
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.blog-featured-article h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #e8e8e8;
}

.blog-featured-article .blog-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.blog-featured-article h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: #4dd2c0;
}

.blog-featured-article p,
.blog-featured-article ul li {
  line-height: 1.7;
  color: #d6d6d6;
}

.blog-featured-article ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

/* Sidebar revista */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.sidebar-card h3 {
  margin-bottom: 0.8rem;
  color: #4dd2c0;
}

.sidebar-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-card ul li {
  margin-bottom: 0.5rem;
  color: #d6d6d6;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    order: -1;
  }
}
/* ========================= */
/*       BLOG PREVIEW        */
/* ========================= */

.blog-preview {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.blog-preview h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #e8e8e8;
}

.blog-intro {
  font-size: 1.1rem;
  color: #cfd9da;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  text-align: left;
}

.blog-card-content h3 {
  color: #4dd2c0;
  margin-bottom: 0.8rem;
}

.blog-card-content p {
  color: #d6d6d6;
  margin-bottom: 1.2rem;
}

.blog-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, #1c7ed6, #4dd2c0);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* ========================= */
/*     BLOG ÉPICO PREMIUM    */
/* ========================= */

.blog-cover {
  position: relative;
  margin-bottom: 2rem;
}

.blog-cover img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 18px;
  filter: brightness(0.6);
}

.blog-cover h1 {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: #fff;
  font-size: 2.8rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.blog-content {
  max-width: 900px;
  margin: 0 auto;
  color: #d6d6d6;
  line-height: 1.8;
}

.blog-content .lead {
  font-size: 1.3rem;
  color: #e8e8e8;
  margin-bottom: 2rem;
}

.blog-content h2 {
  color: #4dd2c0;
  margin-top: 2.5rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  border-left: 4px solid #4dd2c0;
  border-radius: 8px;
  font-style: italic;
  color: #cfeeee;
}

.blog-image-box {
  margin: 2rem 0;
  text-align: center;
}

.blog-image-box img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.caption {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}
/* ========================= */
/*     BLOG PREVIEW BOXES    */
/* ========================= */

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card-box {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  border-color: #4dd2c0;
}

.blog-card-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-content h3 {
  color: #4dd2c0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.blog-card-content p {
  color: #d6d6d6;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.blog-card-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, #1c7ed6, #4dd2c0);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

.blog-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
}

/* Etiqueta premium */
.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 8px;
  color: #fff;
  background: rgba(77,210,192,0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* Estrellas genéricas */
.blog-stars {
  font-size: 1.1rem;
  color: #ffd700;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* ========================= */
/*     BLOG PREVIEW BOXES    */
/* ========================= */

.blog-preview {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.blog-preview h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #e8e8e8;
}

.blog-intro {
  font-size: 1.1rem;
  color: #cfd9da;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card-box {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  border-color: #4dd2c0;
}

.blog-card-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  text-align: left;
}

.blog-card-content h3 {
  color: #4dd2c0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.blog-card-content p {
  color: #d6d6d6;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.blog-card-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, #1c7ed6, #4dd2c0);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

.blog-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
}

/* Etiqueta premium */
.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 8px;
  color: #fff;
  background: rgba(77,210,192,0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* Scroll suave global */
html {
  scroll-behavior: smooth;
}

/* PORTADA ÉPICA CON EFECTO */
.blog-cover-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  margin-bottom: 2.5rem;
}

.blog-cover-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: brightness(0.6);
  animation: heroFloat 10s ease-in-out infinite alternate;
}

.blog-cover-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(77,210,192,0.35), transparent 55%);
}

.blog-cover-text {
  position: absolute;
  bottom: 30px;
  left: 40px;
  max-width: 600px;
  color: #fff;
}

.blog-cover-text h1 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.blog-cover-text p {
  font-size: 1rem;
  opacity: 0.9;
}

@keyframes heroFloat {
  from { transform: scale(1.08) translateY(0); }
  to   { transform: scale(1.08) translateY(-12px); }
}

/* LAYOUT REVISTA */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 0.9fr 2.4fr;
  gap: 2rem;
}

/* ÍNDICE FIJO */
.blog-index {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.blog-index h3 {
  margin-bottom: 0.8rem;
  color: #4dd2c0;
}

.blog-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-index ul li {
  margin-bottom: 0.5rem;
}

.blog-index ul li a {
  color: #d6d6d6;
  text-decoration: none;
  font-size: 0.95rem;
}

.blog-index ul li a:hover {
  color: #4dd2c0;
}

/* COLUMNA PRINCIPAL */
.blog-main {
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* CONTENIDO */
.blog-content {
  color: #d6d6d6;
  line-height: 1.8;
}

.blog-content .lead {
  font-size: 1.2rem;
  color: #e8e8e8;
  margin-bottom: 2rem;
}

.blog-content h2 {
  color: #4dd2c0;
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
}

.blog-content p {
  margin-bottom: 1.1rem;
}

.blog-content ul {
  margin-left: 1.2rem;
  margin-bottom: 1.2rem;
}

/* CITA DESTACADA */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  border-left: 4px solid #4dd2c0;
  border-radius: 8px;
  font-style: italic;
  color: #cfeeee;
}

/* IMÁGENES EN EL ARTÍCULO */
.blog-image-box {
  margin: 2rem 0;
  text-align: center;
}

.blog-image-box img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.caption {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* ARTÍCULOS RELACIONADOS */
.related-articles {
  margin-top: 3rem;
}

.related-articles h3 {
  margin-bottom: 1rem;
  color: #4dd2c0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.related-card {
  display: block;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #e8e8e8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.related-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.related-card h4 {
  padding: 0.9rem 1rem 1.1rem 1rem;
  font-size: 0.98rem;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

/* BOTÓN VOLVER ARRIBA */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1c7ed6, #4dd2c0);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* MODO LECTURA TIPO MEDIUM */
.reading-mode .blog-layout {
  max-width: 900px;
  grid-template-columns: 1fr;
}

.reading-mode .blog-index {
  display: none;
}

.reading-mode .blog-main {
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.reading-mode .blog-content {
  font-size: 1.05rem;
  line-height: 1.9;
}

/* BOTÓN MODO LECTURA */
.reading-mode-toggle {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  color: #e8e8e8;
  cursor: pointer;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-index {
    display: none;
  }

  .blog-cover-text {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .blog-cover-text h1 {
    font-size: 1.9rem;
  }
}
/* ========================= */
/*   ESTILOS PARA EL BLOG    */
/* ========================= */

.blog-intro {
  max-width: 800px;
  margin: 20px auto 40px auto;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #d9d9d9;
  text-align: center;
  padding: 0 20px;
}

h1 {
  font-size: 2.4rem;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 700;
}

.blog-section {
  padding: 40px 20px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.blog-card h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #00e0c6; /* tu turquesa premium */
}

.blog-card p {
  color: #cfcfcf;
  line-height: 1.6;
}

.blog-card a {
  display: inline-block;
  margin-top: 15px;
  color: #00e0c6;
  font-weight: 600;
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
}