
@media (min-width: 768px) {
  #navbar .navbar-menu {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .info-section .info-img img {
    object-position: center top;
  }
}

/* ==================================================
   Portfolio
================================================== */

:root {
  --portfolio-accent: #9214ab;
}

/* Todas las miniaturas conservan la misma proporción */
.portfolio-section .portfolio-grid .portfolio-wrapper > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

/* Mejora ligeramente el efecto de las tarjetas */
.portfolio-section .portfolio-wrapper {
  background-color: #161616;
  border-radius: 4px;
}

.portfolio-section .portfolio-wrapper img {
  transition: transform 0.35s ease;
}

.portfolio-section .portfolio-wrapper:hover img {
  transform: scale(1.04);
}

/* Ficha emergente */
.project-modal {
  width: min(960px, calc(100vw - 40px));
  max-height: 88vh;
  overflow-y: auto;
  background-color: #161616;
  color: #9f9f9f;
  padding: 35px;
  border-radius: 6px;
}

.project-modal-image {
  display: block;
  width: 100%;
  max-height: 460px;
  margin-bottom: 28px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}

.project-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--portfolio-accent);
  font-size: 14px;
  font-weight: 600;
}

.project-title {
  margin-bottom: 15px;
  font-size: 32px;
  font-weight: 700;
}

.project-introduction {
  margin-bottom: 25px;
  font-size: 15px;
  line-height: 1.9;
}

/* Datos: función, tipo, arquitectura... */
.project-data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #1d1d1d;
}

.project-data > div {
  display: flex;
  flex-direction: column;
}

.project-data-label {
  margin-bottom: 4px;
  color: #f0f0f0;
  font-weight: 600;
}

/* Lista de funciones */
.project-modal h4 {
  margin-bottom: 14px;
  font-size: 20px;
}

.project-features {
  margin-bottom: 25px;
  padding-left: 20px;
}

.project-features li {
  margin-bottom: 7px;
}

/* Tecnologías */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.project-tags span {
  padding: 6px 12px;
  background-color: #242424;
  border: 1px solid #303030;
  border-radius: 20px;
  color: #cfcfcf;
  font-size: 12px;
}

/* Botones */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-actions .button-main {
  display: inline-block;
}

/* Responsive */
@media (max-width: 767.98px) {
  .project-modal {
    width: calc(100vw - 24px);
    padding: 22px;
  }

  .project-modal-image {
    max-height: 300px;
  }

  .project-title {
    font-size: 27px;
  }

  .project-data {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   BLOG PERSONAL
================================================== */

:root {
  --blog-accent: #9214ab;
  --blog-background: #161616;
  --blog-background-secondary: #1d1d1d;
  --blog-border: #2b2b2b;
  --blog-text: #a7a7a7;
  --blog-title: #f1f1f1;
}

/* ==================================================
   Tarjetas del listado
================================================== */

.blog-section .row {
  row-gap: 30px;
}

.blog-card {
  height: 100%;
  overflow: hidden;
  background-color: var(--blog-background);
  border: 0;
}

.blog-card-image {
  display: block;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.045);
}

.blog-card .post-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card .content-title {
  transition: color 0.25s ease;
}

.blog-card .content-title:hover {
  color: var(--blog-accent);
}

.blog-card .content-description {
  flex-grow: 1;
}

/* Categorías de las tarjetas */
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-card-meta span {
  color: var(--blog-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.blog-card-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: #666;
}

/* Enlace de lectura */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 8px;
  color: var(--blog-accent);
  font-size: 14px;
  font-weight: 600;
  transition:
    gap 0.25s ease,
    opacity 0.25s ease;
}

.blog-read-more:hover {
  gap: 12px;
  color: var(--blog-accent);
  opacity: 0.8;
}

/* ==================================================
   Modal del artículo
================================================== */

.blog-modal {
  width: min(1020px, calc(100vw - 40px));
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--blog-background);
  color: var(--blog-text);
  border-radius: 6px;
}

/* Imagen de portada */
.blog-hero {
  position: relative;
  margin: 0;
}

.blog-hero img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.blog-hero figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  padding: 7px 12px;
  background-color: rgba(10, 10, 10, 0.78);
  color: #d0d0d0;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

/* Cabecera */
.blog-article-header {
  padding: 42px 45px 24px;
}

.blog-article-category {
  margin-bottom: 10px;
  color: var(--blog-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.blog-article-header h2 {
  max-width: 850px;
  margin-bottom: 18px;
  color: var(--blog-title);
  font-size: 38px;
  line-height: 1.25;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: #8f8f8f;
  font-size: 13px;
}

.blog-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-article-meta i {
  color: var(--blog-accent);
  font-size: 16px;
}

/* Introducción */
.blog-article-intro {
  padding: 0 45px 25px;
}

.blog-article-intro p {
  margin: 0;
  color: #bebebe;
  font-size: 18px;
  line-height: 1.9;
}

/* Datos destacados */
.blog-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 10px 45px 38px;
  overflow: hidden;
  background-color: var(--blog-border);
  border: 1px solid var(--blog-border);
}

.blog-highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  padding: 20px;
  background-color: var(--blog-background-secondary);
  text-align: center;
}

.blog-highlight strong {
  margin-bottom: 4px;
  color: var(--blog-accent);
  font-size: 27px;
  font-weight: 700;
}

.blog-highlight span {
  color: #aaa;
  font-size: 13px;
}

/* Secciones de contenido */
.blog-article-section {
  padding: 0 45px 25px;
}

.blog-article-section h3,
.blog-gallery-section h3 {
  margin-bottom: 16px;
  color: var(--blog-title);
  font-size: 25px;
}

.blog-article-section p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.95;
}

/* Imagen interior */
.blog-featured-image {
  margin: 12px 45px 38px;
}

.blog-featured-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.blog-featured-image figcaption {
  margin-top: 9px;
  color: #777;
  font-size: 12px;
  font-style: italic;
}

/* Cita */
.blog-quote {
  position: relative;
  margin: 28px 0 10px;
  padding: 22px 25px 22px 28px;
  background-color: var(--blog-background-secondary);
  border-left: 4px solid var(--blog-accent);
  color: #c9c9c9;
  font-size: 17px;
  font-style: italic;
  line-height: 1.8;
}

/* ==================================================
   Galería
================================================== */

.blog-gallery-section {
  padding: 5px 45px 40px;
}

.blog-section-heading {
  margin-bottom: 18px;
}

.blog-section-heading > span {
  display: block;
  margin-bottom: 4px;
  color: var(--blog-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.blog-section-heading h3 {
  margin-bottom: 0;
}

.blog-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.blog-gallery figure {
  margin: 0;
  overflow: hidden;
  background-color: var(--blog-background-secondary);
  border-radius: 3px;
}

.blog-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.blog-gallery figure:hover img {
  transform: scale(1.05);
}

/* ==================================================
   Pie del artículo
================================================== */

.blog-article-footer {
  margin-top: 5px;
  padding: 32px 45px 42px;
  background-color: var(--blog-background-secondary);
  border-top: 1px solid var(--blog-border);
}

.blog-article-footer p {
  margin-bottom: 20px;
  color: #aaa;
  font-size: 15px;
  line-height: 1.9;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tags span {
  padding: 6px 12px;
  background-color: #242424;
  border: 1px solid #303030;
  border-radius: 20px;
  color: #bdbdbd;
  font-size: 12px;
}

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

@media (max-width: 767.98px) {
  .blog-modal {
    width: calc(100vw - 20px);
  }

  .blog-hero img {
    height: 280px;
  }

  .blog-hero figcaption {
    position: static;
    max-width: none;
    padding: 10px 18px;
    background-color: var(--blog-background-secondary);
    border-radius: 0;
  }

  .blog-article-header {
    padding: 30px 22px 20px;
  }

  .blog-article-header h2 {
    font-size: 28px;
  }

  .blog-article-meta {
    flex-direction: column;
    gap: 8px;
  }

  .blog-article-intro,
  .blog-article-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .blog-article-intro p {
    font-size: 16px;
  }

  .blog-highlights {
    grid-template-columns: 1fr;
    margin-right: 22px;
    margin-left: 22px;
  }

  .blog-highlight {
    min-height: 95px;
  }

  .blog-featured-image {
    margin-right: 22px;
    margin-left: 22px;
  }

  .blog-gallery-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .blog-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .blog-article-footer {
    padding: 28px 22px 34px;
  }
}

@media (max-width: 479.98px) {
  .blog-gallery {
    grid-template-columns: 1fr;
  }
}

/* Separación uniforme entre tarjetas de servicios */
.services-section .services-grid {
  row-gap: 30px;
}

.services-section .services-grid > [class*="col-"] {
  display: flex;
}

.services-section .services-grid .single-service {
  flex: 1 1 auto;
  width: 100%;
  margin-bottom: 0;
}