
/* --------------------------------------------------------
    Barra de navegación
-------------------------------------------------------- */
.navbar-custom {
  padding: 5px 0;
  background: radial-gradient(circle, #f600fe, #c900fe, #a136ff, #5142f0, #0033d9);
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  height: auto;
}

/* Logo */
.navbar-custom .navbar-brand img {
  max-width: 100px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Enlaces del menú */
.navbar-custom .navbar-nav .nav-link {
  font-size: 1rem;
  padding: 8px 12px;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
}

.navbar-custom .navbar-nav .nav-link:hover {
  color: #9BE8D8 !important;
}

/* 🔹 Ajuste para Responsive */
@media (max-width: 767px) {
  .navbar-custom {
    padding: 10px 0;
  }

  /* Centrar elementos del menú */
  .navbar-custom .navbar-collapse {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Centrar los enlaces */
  .navbar-custom .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Ajustar tamaño de los enlaces */
  .navbar-custom .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 10px;
    text-align: center;
    width: 100%; /* Ocupar todo el ancho disponible */
  }
}
/* Oculta elementos con la clase .hidden */
.hidden {
  display: none !important;
}
/* Oculta elementos con la clase .hidden */
.hidden {
  display: none !important;
}
/* -------------------------------
   Sección de slider blog (versión compacta final)
------------------------------- */

.fullwidth-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* Slide más compacto en desktop */
.fullwidth-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45vh; /* 👈 este cambio lo compacta más */
  padding: 16px 20px;
  box-sizing: border-box;
}

/* Imagen adaptativa y contenida */
.fullwidth-slider .swiper-slide img.fullwidth-image {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Ajuste del contenido dentro del slide (como texto + botón) */
.fullwidth-slider .article-card-link {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .fullwidth-slider .swiper-slide {
    flex-direction: column;
    height: auto;
    padding: 20px 16px;
  }

  .fullwidth-slider .swiper-slide img.fullwidth-image {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 10px;
  }

  .fullwidth-slider .article-card-link {
    flex-direction: column;
    padding: 0;
    text-align: center;
  }

  .fullwidth-slider .swiper-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .fullwidth-slider .swiper-slide {
    height: 55vh;
  }

  .fullwidth-slider .swiper-slide img.fullwidth-image {
    max-height: 60vh;
  }
}
@media (max-width: 767.98px) {
  .fullwidth-slider {
    margin-top: 120px; /* Ajustalo según el alto de tu navbar en móvil */
  }
}


/*WHATSAPP*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 1000;
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
}

/* -------------------------------
   Sección de búsqueda
------------------------------- */
.search-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
}

/* Encabezado de la sección de búsqueda */
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Campo de entrada dentro del panel de búsqueda */
#searchInput {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  margin: 0 10px;
  font-family: 'Montserrat', sans-serif;
}

/* Botones para retroceder y cerrar */
.modal-back,
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Botón de confirmación de búsqueda */
.search-confirm {
  padding: 10px 15px;
  background-color: #a136ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.search-confirm:hover {
  background-color: #8f2ce6;
}

/* Resultados de búsqueda */
#searchResults {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 320px));
  gap: 20px;
  justify-content: center;
}

#searchResults .article-card {
  font-family: 'Montserrat', sans-serif;
}

/* -------------------------------
   Navbar: Estilo predeterminado para escritorio
------------------------------- */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .navbar-toggler {
  margin-right: 15px;
}

.navbar .search-button {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff !important;
  color: #000 !important;
  border-radius: 30px !important;
  padding: 8px 16px !important;
  margin-right: 15px !important;
  transition: background-color 0.3s ease, transform 0.2s ease !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto;
}

.navbar .search-button:hover {
  background-color: #f0f0f0 !important;
  transform: scale(1.05) !important;
}

.navbar .search-button i {
  margin-right: 5px !important;
  color: #000 !important;
}

/* -------------------------------
   Responsive: Logo arriba y búsqueda junto al desplegable en móviles
------------------------------- */
@media (max-width: 767.98px) {
  .navbar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar-brand {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .navbar-mobile-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .navbar .navbar-toggler,
  .navbar .search-button {
    width: 48% !important;
    margin: 5px 1% !important;
    justify-content: center !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
  }

  .navbar .search-button i {
    margin-right: 8px !important;
  }
}

/* Simulación de barra de búsqueda (opcional) */
#searchTriggerInput {
  width: 80%;
  max-width: 500px;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

#searchTriggerInput:hover {
  background-color: #fff;
}

/* --------------------------------------------------------
    Estilos generales para el cuerpo de la página
-------------------------------------------------------- */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

h2 {
  font-size: 36px !important;
  font-weight: bold !important;
  color: black !important;
  margin-bottom: 40px !important;
  text-align: center !important;
}

/* --------------------------------------------------------
   Sección de Bienvenida (Banner)
-------------------------------------------------------- */
.banner {
  background-image: url('../img/global/banner_principal.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 60vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  padding-bottom: 15px;
}

/* Contenido dentro del banner */
.banner .container {
  text-align: center;
  z-index: 1;
  margin-top: 30px;
}

/* Título principal con clamp para adaptarse a tamaños de pantalla */
.banner h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem); /* ⚡ Responsive sin media queries */
  line-height: 1.2;
  color: black;
  margin-bottom: 1.5rem;
  max-width: 90%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Párrafos dentro del banner */
.banner p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  color: black;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  padding: 0 15px;
  overflow-wrap: break-word;
}

/* Imagen de autor dentro del banner */
.banner .author-image {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.banner .author-image img {
  width: 120px;
  height: auto;
  border-radius: 50%;
  border: 2px solid white;
  margin-top: 10px;
}

/* 🔹 En móviles verticales */
@media (max-width: 768px) {
  .banner {
    background-image: none !important;
    background-color: white !important;
    height: auto;
    padding: 40px 20px;
  }

  .banner h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .banner p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .banner .author-image img {
    width: 100px;
  }
}

/* 🔹 En móviles en horizontal (landscape) */
@media (orientation: landscape) and (max-width: 992px) {
  .banner {
    padding: 30px 16px;
    height: auto;
  }

  .banner h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .banner p {
    font-size: 0.95rem;
  }
}



/* --------------------------------------------------------
    Botón personalizado "Conóceme más"
-------------------------------------------------------- */
.btn-conoceme {
  margin-top: 30px;  /* Añade espacio encima del botón */
  margin-bottom: 20px;  /* Puedes ajustar esto si necesitas más o menos espacio debajo */
  background: radial-gradient(circle, #f600fe, #c900fe, #a136ff, #5142f0, #0033d9); /* Gradiente como fondo */
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  color: white;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease-in-out; /* Transición suave para el cambio de fondo */
  text-decoration: none; /* Elimina el subrayado del texto */
  
}

.btn-conoceme:hover {
  background: #e100fe; /* Morado sólido cuando se hace hover */
}
/* -----------------------------------
    ESTILOS DEL MODAL
----------------------------------- */
.modal {
  display: none; /* Se oculta al inicio */
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Oscurece el fondo */
  backdrop-filter: blur(5px); /* Aplica desenfoque */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  padding: 20px; /* Espacio para pantallas pequeñas */
}

/* Mostrar el modal */
.modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Contenedor del modal */
.modal-content {
  background: white;
  padding: 30px;
  width: 90%;
  max-width: 500px; /* Máximo ancho para pantallas grandes */
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease-in-out;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

/* Estilos para el título */
.modal-content h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Estilos para la descripción (p u otro elemento de texto) */
.modal-content p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 20px;
}

/* Efecto de entrada */
.modal.show .modal-content {
  transform: translateY(0);
}

/* Botón de cierre */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease-in-out;
}

.close:hover {
  color: #f600fe;
}

/* === Estilos de los Botones del Modal === */

/* Botón "Ver Blog" */
.btn-blog {
  display: inline-block;
  margin-top: 15px;
  background: radial-gradient(circle, #ff00ff, #c900fe, #a136ff, #5142f0, #0033d9);
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  color: white;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

/* Hover para "Ver Blog" */
.btn-blog:hover {
  background: linear-gradient(90deg, #ff00ff, #a136ff);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Botón "Ver Proyectos" */
.btn-proyectos-modal {
  display: inline-block;
  margin-top: 15px;
  background: radial-gradient(circle, #00d4ff, #009dff, #006aff, #0040ff, #0020d9);
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  color: white;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

/* Hover para "Ver Proyectos" */
.btn-proyectos-modal:hover {
  background: linear-gradient(90deg, #00d4ff, #006aff);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Ajuste para el contenedor de botones */
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px; /* Espacio entre los botones */
  flex-wrap: wrap;
  margin-top: 20px;
}


/* Responsividad */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
    width: 100%;
    max-width: 90%;
  }
  .modal-content h2 {
    font-size: 18px;
  }
  .modal-content p {
    font-size: 14px;
  }
  .close {
    font-size: 20px;
    top: 10px;
    right: 15px;
  }
  .modal-buttons .btn-primary {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* --------------------------------------------------------
    Sección Sobre Mí
-------------------------------------------------------- */
#sobre-mi {
  background-image: url('../img/global/skills.jpg'); /* Imagen de fondo */
  background-size: cover; /* Asegura que la imagen cubra toda la sección */
  background-position: center center; /* Centra la imagen de fondo */
  padding: 50px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Asegura que los elementos se acomoden verticalmente */
  width: 100%; /* Asegura que la sección ocupe el ancho completo */
  color: #fff; /* Color del texto en la sección (opcional, dependiendo de la imagen) */
}

/* Contenedor con fondo semitransparente para mejorar contraste */
#sobre-mi .container {
  max-width: 960px;
  background-color: rgba(243, 233, 255, 0.8); /* Fondo semitransparente */
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box; /* Asegura que el padding no se sobreponga al tamaño total */
}

/* Estilo del texto */
#sobre-mi p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  color: #333;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Imagen dentro de la sección */
.imagen-video-container {
  max-width: 600px;
  margin: 35px auto;
}

.imagen-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 🔹 Cambiar el fondo a blanco en pantallas pequeñas */
@media (max-width: 768px) {
  #sobre-mi {
    background-image: none !important; /* 🔥 Eliminamos la imagen de fondo */
    background-color: white !important; /* 🔥 Fondo blanco en responsive */
  }
}

/* Aseguramos que toda la tipografía use Montserrat */
body, .blog-post, .blog-section h2, .meta, .more-entries a, .blog-post a, h2 {
  font-family: 'Montserrat', sans-serif;
}
/* === BLOG ÚLTIMAS ENTRADAS ESTILO NETFLIX - AJUSTE ALTURA UNIFORME === */
a {
  text-decoration: none !important;
  color: inherit;
  font-family: 'Montserrat', sans-serif;
}

body {
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
}

.category-row {
  padding: 28px 0;
  background-color: white;
  position: relative;
  text-align: left;
  overflow-x: hidden;
}

/* Título */
.category-row .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-left: 20px;
  font-family: 'Montserrat', sans-serif;
}

.category-row .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Swiper container */
.category-row .swiper-container {
  width: 100vw;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible;
  min-height: 340px; /* Subido de 280px */
  position: relative;
}

.category-row .swiper-wrapper {
  display: flex;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  scroll-padding-left: 0 !important;
}

/* Slide */
.category-row .swiper-slide {
  height: 340px; /* Ajustado igual que min-height del container */
  min-width: 400px;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Tarjeta */
.article-card {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.article-card-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: white;
  font-family: 'Montserrat', sans-serif;
}

/* Imagen superior */
.article-image {
  background-color: black;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.article-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

/* Contenido inferior */
.article-content {
  flex: 1 0 140px; /* Subido desde 120px */
  height: 140px;
  padding: 16px 20px;
  color: #fff;
  text-align: left;
  border-radius: 0 0 10px 10px;
  background-color: #ccc;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* Colores por categoría */
.category-marketing .article-content {
  background-color: #006eff;
}
.category-desarrollo-web .article-content,
.category-desarrollo_web .article-content {
  background-color: #c50ffb;
}
.category-analisis-datos .article-content,
.category-analisis_datos .article-content {
  background-color: #803db5;
}

/* Título */
.article-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
  max-height: 5.25em; /* Soporta hasta 3 líneas */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-family: 'Montserrat', sans-serif;
}

/* Fecha */
.article-date {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* Botón */
.category-row .btn-container {
  margin-top: 32px;
  text-align: center;
}

/* Swiper ocultos */
.swiper-pagination,
.swiper-button-prev,
.swiper-button-next {
  display: none !important;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .category-row .swiper-slide {
    min-width: 320px;
  }
}
@media (max-width: 768px) {
  .category-row .swiper-slide {
    max-width: 85%;
    min-width: unset;
    height: 300px;
  }

  .article-content {
    height: 130px;
    padding: 14px;
  }

  .article-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
  }
}

/* SLIDE MAS VISTO */
.mas-visto-slide {
  position: relative;
}
.ranking-box {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #111;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  padding: 4px 10px;
  z-index: 10;
  opacity: 0.95;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-family: 'Montserrat', sans-serif;
}
.category-row .swiper-container {
  width: 100vw;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible;
  min-height: 310px; /* ↓ bajado */
  position: relative;
}

.category-row .swiper-slide {
  height: 310px; /* ↓ bajado */
  min-width: 400px;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.article-card {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.article-content {
  flex: 1 0 125px; /* ↓ bajado */
  height: 125px;
  padding: 14px 20px;
  color: #fff;
  text-align: left;
  border-radius: 0 0 10px 10px;
  background-color: #ccc;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.article-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
  line-height: 1.4;
  max-height: 4.2em; /* compactado pero aún 3 líneas aprox */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-family: 'Montserrat', sans-serif;
}
.article-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* ← centra verticalmente */
  align-items: flex-start;
  padding: 16px 20px;
  color: #fff;
  text-align: left;
  border-radius: 0 0 10px 10px;
  background-color: #ccc;
  box-sizing: border-box;
  height: 125px; /* o lo que uses actualmente */
  font-family: 'Montserrat', sans-serif;
}

.article-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 8px 0; /* ← importante quitar margin-top extra */
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-date {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0; /* ← evita espacios innecesarios */
}



/* === MODAL FULL SCREEN === */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  overflow-y: auto; /* Permite desplazamiento si el contenido es grande */
}

.fullscreen-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fullscreen-modal-body {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible; /* Permite mostrar contenido largo */
}

/* === HEADER DEL MODAL === */
.fullscreen-modal-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid #ddd;
}

.modal-back,
.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #222;
  padding: 8px;
}

.modal-back:hover,
.modal-close:hover {
  color: red;
}

/* === CONTENIDO DEL MODAL === */
.fullscreen-modal-content {
  flex: 1;
  padding: 20px;
  max-height: none; /* Permite que el contenido crezca si es necesario */
  display: flex;
  flex-direction: column; /* Asegura que el contenido fluya verticalmente */
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto; /* Permite desplazamiento si el contenido es largo */
}

/* Imagen del artículo */
.modal-image-container {
  width: 50%;
  max-width: 500px;
  display: flex;
  justify-content: center;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Información del artículo */
.modal-info {
  width: 100%; /* Ocupa todo el ancho disponible */
  max-width: 90%;
  text-align: center;
}

.modal-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #222;
}

/* Fecha con icono */
.modal-date {
  font-size: 1rem;
  color: #007BFF; /* Color azul */
  margin-bottom: 10px;
  text-align: center;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

/* Ícono de calendario */
.modal-date::before {
  content: "\f073"; /* Código de ícono de calendario en Font Awesome */
  font-family: "Font Awesome 5 Free"; /* Asegúrate de tener Font Awesome cargado */
  font-weight: 900;
  font-size: 1rem;
  color: inherit;
}

.modal-intro {
  font-size: 1.2rem;
  color: black;
  margin-bottom: 20px;
}

/* === ESTILOS PARA EL BOTÓN `.btn-primary-modal` === */
.btn-primary-modal {
  display: inline-block;
  margin-top: 20px;
  background: radial-gradient(circle, #f600fe, #c900fe, #a136ff, #5142f0, #0033d9);
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  color: white;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  width: auto; /* Se ajusta al contenido */
  max-width: 250px;
}

/* Hover para el botón */
.btn-primary-modal:hover {
  background: linear-gradient(90deg, #2575fc, #6a11cb);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* === RESPONSIVO MEJORADO === */
@media (max-width: 768px) {
  /* Ajuste general del modal */
  .fullscreen-modal-content {
    padding: 15px;
    width: 95%;
    max-width: 420px;
  }

  /* Ajusta la imagen para que no ocupe demasiado */
  .modal-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .modal-image {
    width: 85%;
    max-width: 300px;
    border-radius: 12px;
  }

  /* Título en responsive */
  .modal-title {
    font-size: 1.8rem;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    white-space: normal; /* Permite que el texto se muestre completo */
    overflow: visible;
    text-overflow: unset;
  }

  /* Contenedor del texto */
  .modal-info {
    width: 100%;
    max-width: 90%;
    text-align: center;
  }

  /* Texto del artículo */
  .modal-intro {
    font-size: 1rem;
    width: 90%;
    margin: 10px auto;
    overflow-wrap: break-word; /* Evita que el texto se desborde */
    text-align: justify; /* Alineación mejorada para lectura */
  }

  /* Botón en responsive */
  .modal-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
  }

  .modal-buttons .btn-primary-modal {
    font-size: 16px;
    padding: 12px 20px;
    width: 85%;
    max-width: 250px;
  }

  /* Ajuste de la cabecera del modal */
  .fullscreen-modal-header {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .modal-back, .modal-close {
    font-size: 20px;
    padding: 10px;
  }
}

/* INICIA EL FOOTER */
footer {
  background-color: #d189f7;
  color: black;
  padding: 20px;
  text-align: center;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden; /* 🔥 Evita desbordamiento horizontal */
}

/* Contenedor del footer */
.footer-container {
  display: flex;
  justify-content: center; /* 🔥 Centramos los elementos */
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  flex-wrap: wrap;
}

/* Ajuste de columnas */
.column {
  flex: 1;
  padding: 20px;
  text-align: center;
  max-width: 100%;
}

/* Estilo de la frase inspiracional */
.quote {
  font-style: italic;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 5px;
  max-width: 90%;
  margin: 0 auto;
}

/* Sección central con logo (Centrada) */
.logo {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 Centramos todos los elementos */
  justify-content: center;
  text-align: center;
  width: 100%;
}

.logo img {
  max-width: 150px;
}

/* Ajustes de títulos y espaciado */
.footer-title {
  margin-bottom: 5px;
  margin-top: 8px;
  font-weight: bold;
  font-size: 18px;
}

/* Redes sociales */
.social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

.social a {
  color: black;
  text-decoration: none;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.social i {
  font-size: 24px;
}

/* Estilo para enlaces en el footer */
.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}
 /* Hover en los iconos de Conéctame */
 .social a:hover {
  color: white; /* Cambia el color al blanco al pasar el cursor */
  transition: color 0.3s ease-in-out; /* Efecto suave */
  }
/* Sección de suscripción MÁS ANCHA */
.subscribe {
  background: #222;
  color: white;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 450px; /* 🔥 Más ancho */
  margin: 20px auto;
  width: 100%;
}

/* 🔥 Ajuste del formulario de suscripción */
.subscribe-form {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.subscribe input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 75%;
}

.subscribe button {
  background: #f8d1ff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.subscribe button:hover {
  background: #e0a6f7;
}

/* Línea sutil antes del copyright */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin: 5px 0;
}

/* Copyright más cerca del contenido */
.footer-bottom {
  font-size: 14px;
  margin-top: 0px;
}

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

  .column {
    width: 100%;
    padding: 10px;
  }

  /* 📌 Reordenamos los elementos en responsive */
  .logo {
    order: 1;
  }

  .quote {
    order: 2;
  }

  .subscribe {
    order: 3;
    max-width: 90%;
  }

  .footer-bottom {
    order: 4;
  }

  /* 🔥 Evitar scroll horizontal en móviles */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
}

/* FIN FOOTER */


/* Variables de colores para mejor mantenimiento */
:root {
  --color-web: #db11fb;
  --color-marketing: #2d4af3;
  --color-analytics: #8d2df2;
  --color-primario: #007bff;
  --color-texto: #333;
  --color-fondo-grafico: #e9f1ff;
}

/* --------------------------------------------------------
    SECCIÓN HABILIDADES
-------------------------------------------------------- */
#habilidades {
  background-image: url('../img/global/banner_contenido.jpg'); /* Imagen de fondo */
  background-size: cover; /* Ajusta la imagen para cubrir toda la sección */
  background-position: center center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  padding: 50px 0;
  color: black;
  font-family: 'Montserrat', sans-serif; /* Fuente global */
}

/* 🔹 Cambiar el fondo a blanco en pantallas pequeñas */
@media (max-width: 768px) {
  #habilidades {
    background-image: none !important; /* 🔥 Eliminamos la imagen de fondo */
    background-color: white !important; /* 🔥 Fondo blanco en responsive */
  }
}

#habilidades h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--color-texto);
  margin-bottom: 40px;
  text-align: center;
}

#habilidades .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

#habilidades .col-12 {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 480px;
  justify-content: flex-start;
}

#habilidades .col-12:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ICONOS MÁS GRANDES */
#habilidades .icon {
  font-size: 100px; /* Doble de tamaño */
  transition: transform 0.3s ease;
}

.icon-web i {
  color: var(--color-web) !important;
}

.icon-marketing i {
  color: var(--color-marketing) !important;
}

.icon-analytics i {
  color: var(--color-analytics) !important;
}

#habilidades .icon:hover {
  transform: scale(1.15);
}

/* TEXTOS CON MONTSERRAT */
#habilidades .text {
  font-family: 'Montserrat', sans-serif;
}

#habilidades .text h3 {
  font-size: 24px;
  color: var(--color-texto);
}

#habilidades .text p {
  font-size: 16px;
  color: var(--color-secundario);
}

#habilidades .text p strong {
  font-weight: bold;
  color: var(--color-primario);
}

/* ANIMACIÓN PARA NÚMERO */
@keyframes fadeInNumber {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#habilidades .text p span {
  font-size: 30px;
  font-weight: bold;
  color: var(--color-primario);
  animation: fadeInNumber 0.8s ease-out forwards;
}

/* SECCIÓN DE BARRAS DE PROGRESO */
.progress-section {
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contenedor de cada barra */
.progress-bar-container {
  margin-bottom: 20px;
  text-align: left;
}

.progress-bar-container span {
  font-weight: bold;
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}

/* Barra de progreso */
.progress-bar {
  width: 100%;
  height: 20px;
  background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Relleno animado */
.progress-fill {
  height: 100%;
  line-height: 20px;
  text-align: center;
  color: white;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  transition: width 1.5s ease-in-out;
  padding-right: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 10px;
}

/* Colores de cada categoría */
.web { background: linear-gradient(90deg, #db11fb, #a20ecf); }
.marketing { background: linear-gradient(90deg, #2d4af3, #1b34c5); }
.analytics { background: linear-gradient(90deg, #8d2df2, #6620b8); }

/* RESPONSIVE */
@media (max-width: 768px) {
  #habilidades .col-12 {
    flex-direction: column;
    text-align: center;
    max-width: 95%;
  }

  #habilidades .icon {
    font-size: 80px; /* Un poco más pequeño en mobile */
  }

  #habilidades h2 {
    font-size: 30px;
  }

  .progress-section {
    max-width: 90%;
  }
}




/* SECCIÓN DE CASOS PRÁCTICOS */
.casos-practicos-container {
  background-color: rgba(173, 216, 230, 0.2); /* Azul pastel suave */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 30px;
  margin: 50px auto;
  width: 90%;
  max-width: 1200px;
}

.casos-practicos {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

/* CONTENEDOR DE CATEGORÍAS */ 
.categorias {
  display: flex;
  flex-direction: row; /* Asegura que estén en línea */
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Alinea verticalmente */
  gap: 40px; /* Espaciado entre botones */
  width: 100%; /* Ocupa todo el ancho disponible */
  flex-wrap: wrap; /* Evita que se desborden en pantallas pequeñas */
}

/* CATEGORÍA ITEM */
.categoria-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative; /* Para el fondo detrás del icono */
}

/* ICONOS DE CATEGORÍAS */
.categoria-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background: none;
  color: inherit;
}

/* FONDO CIRCULAR DETRÁS DEL ICONO */
.categoria-btn::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  z-index: -1; /* Fondo detrás del icono */
}

/* COLORES POR CATEGORÍA */
#categoria-web::before {
  background-color: #db11fb; /* Rosa */
}
#categoria-marketing::before {
  background-color: #007bff; /* Azul */
}
#categoria-programacion::before {
  background-color: #8e44ad; /* Morado */
}

/* COLORES PARA LOS ICONOS */
#categoria-web i {
  color: white; /* Rosa */
}
#categoria-marketing i {
  color: white; /* Azul */
}
#categoria-programacion i {
  color: white; /* Morado */
}

/* EFECTO HOVER */
.categoria-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Cambio de color en hover */
.categoria-btn:hover i {
  color: white;
}

.categoria-btn:hover::before {
  background-color: rgba(0, 0, 0, 0.2);
}

/* TITULO DE CADA CATEGORÍA */
.categoria-item h3 {
  font-size: 18px;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-top: 5px;
}

/* COLORES PARA LOS TÍTULOS DE LAS CATEGORÍAS */
#categoria-web + h3 {
  color: #db11fb; /* Rosa */
}
#categoria-marketing + h3 {
  color: #007bff; /* Azul */
}
#categoria-programacion + h3 {
  color: #8e44ad; /* Morado */
}

/* SECCIÓN DE PROYECTOS */
.proyectos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 30px;
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, height 0.4s ease, visibility 0.4s ease;
}

/* Mostrar la sección cuando hay proyectos */
.proyectos-container.active {
  visibility: visible;
  opacity: 1;
  height: auto;
  display: flex;
}

/* CONTENEDOR DE PROYECTOS */
.proyectos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* Espaciado uniforme entre proyectos */
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
}

/* PROYECTO INDIVIDUAL */
.proyecto {
  width: 100%;
  max-width: 400px;
  min-height: 350px;
  text-align: center;
  background: transparent;
  padding: 10px;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

/* Mostrar solo proyectos activos */
.proyecto.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* IMAGEN DEL PROYECTO */
.proyecto img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Efecto hover en la imagen del proyecto */
.proyecto img:hover {
  transform: translateY(-5px); /* Elevación ligera */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Sombra más sutil */
}



/* BOTÓN "VER TODOS LOS PROYECTOS" */
.btn-container {
  text-align: center;
  margin-top: 30px;
}

/* Aplicar los mismos estilos de .btn-proyectos a .btn-articulos y .btn-articulos.btn-modal */
.btn-proyectos,
.btn-articulos,
.btn-articulos.btn-modal {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 40px;
  background: radial-gradient(circle, #f600fe, #c900fe, #a136ff, #5142f0, #0033d9);
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  color: white;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

/* Estilo Hover */
.btn-proyectos:hover,
.btn-articulos:hover,
.btn-articulos.btn-modal:hover {
  background: linear-gradient(90deg, #2575fc, #6a11cb);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* RESPONSIVIDAD */
@media (max-width: 768px) {
  .proyectos {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .btn-proyectos {
    padding: 10px 20px;
    font-size: 14px;
  }
}
/*BANNER COOKIES*/
/* Estilo para el banner de cookies */
#cookie-banner {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background: #000; /* Negro */
  color: #fff; /* Blanco */
  padding: 20px 10px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.3);
}

#cookie-banner button {
  margin-left: 10px;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  border-radius: 5px;
}

/* Botón Aceptar */
#cookie-banner button#accept-cookies {
  background: #6a0dad; /* Morado */
  color: #fff; /* Blanco */
}

#cookie-banner button#accept-cookies:hover {
  background: #551a8b; /* Un morado más oscuro para hover */
}

/* Botón Rechazar */
#cookie-banner button#decline-cookies {
  background: #fff; /* Blanco */
  color: #000; /* Negro */
  border: 2px solid #6a0dad; /* Borde morado */
}

#cookie-banner button#decline-cookies:hover {
  background: #6a0dad; /* Morado */
  color: #fff; /* Blanco */
}
@media (max-width: 767px) {
  body.index-page .navbar-custom .container-fluid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  body.index-page .navbar-custom .navbar-brand {
    order: 1;
    margin-bottom: 10px;
  }

  body.index-page .navbar-custom .navbar-toggler {
    order: 2;
    margin: 10px auto;
  }

  body.index-page .navbar-custom .navbar-collapse {
    order: 3;
    width: 100%;
    text-align: center;
  }
}
body {
  padding-top: 80px; /* Ajusta según el alto de tu navbar */
}

@media (min-width: 992px) {
  body {
    padding-top: 0px; /* Puedes ajustar según el alto en escritorio */
  }
}
/* SOLO en index, y SOLO en móvil se aplica el padding-top */
body.index-page {
  padding-top: 80px; /* Ajusta según tu navbar móvil */
}

@media (min-width: 992px) {
  body.index-page {
    padding-top: 0; /* En desktop, sin espacio */
  }
}

