/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
  scroll-behavior: smooth;
}

/* SECCIONES GENERALES DE LA WEB */
section {
  padding: 60px 20px;
  text-align: center;
}

/* HEADER */
header {
  background-color: #111;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* NAV */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 25px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #07d400;
}

/* INICIO */
#inicio {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('Img-inicio.png');
  background-size: cover;
  background-position: center 20%;
  width: 100%;
  height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#inicio h1 {
  margin-top: 100px;
  font-size: 3.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

#inicio p {
  font-size: 1.2rem;
}

/* TÍTULOS GENERALES */
h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: #07d400;
  bottom: -10px;
  left: 20%;
  border-radius: 2px;
}

/* SOBRE MÍ, PORTFOLIO, ETC */
section:nth-child(even) {
  background-color: #ffffff;
}

section:nth-child(odd) {
  background-color: #f0f0f0;
}

/* FOOTER */
footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 20px;
}

/* BOTÓN GENERAL */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background-color: #05a800;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #05a800;
  transform: scale(1.05);
}

/* CONTENEDOR GENERAL */
.contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

/* PRESENTACIÓN */
#presentacion {
  padding: 80px 20px;
  background-color: #ffffff;
}

.texto-presentacion {
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* HABILIDADES */
.habilidades {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.skill {
  background-color: #111;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
}

.skill:hover {
  background-color: #07d400;
  transform: translateY(-5px);
}

/* --- ESTILOS DE CONTACTO --- */

.contacto-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

#contacto-head {
  text-align: center;
  margin-bottom: 40px;
}

.formulario-seccion {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 8px;
}

.input-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #07d400;
  background-color: #f9fff9;
}

.btn-enviar {
  background-color: #07d400;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 10px;
}

.btn-enviar:hover {
  background-color: #05a800;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(7, 212, 0, 0.2);
}

/* RESPONSIVE FORMULARIO */
@media (max-width: 600px) {
  .formulario-seccion {
    padding: 20px;
  }
}

/* =========================
   LAYOUT REUTILIZABLE
   ========================= */

.page-wrap {
  background-color: #dfe5e4;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.page-sheet {
  width: 210mm;
  min-height: 297mm;
  background: #f7f7f7;
  color: #263238;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.two-column {
  display: grid;
  grid-template-columns: 37% 63%;
}

.panel-dark {
  background: linear-gradient(180deg, #15242b 0%, #1c2d35 100%);
  color: white;
}

.panel-light {
  background: #f7f7f7;
  color: #263238;
}

.media-top {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.media-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.panel-body {
  padding: 24px;
}

.hero-box {
  background: #dfe5e2;
  padding: 32px 30px;
  border-bottom: 1px solid #d0d7d4;
}

.content-box {
  padding: 28px 30px;
}

/* =========================
   ESPACIADOS
   ========================= */

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.block {
  display: block;
}

.mt-sm {
  margin-top: 10px;
}

.mt-md {
  margin-top: 18px;
}

/* =========================
   TIPOGRAFÍA
   ========================= */

.hero-title {
  font-size: 3.2rem;
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  color: #153247;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 10px;
  color: #607178;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #153247;
  display: block;
}

.section-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #84a19d;
  margin-bottom: 8px;
}

.section-title::after {
  display: none;
}

.section-title.light {
  color: white;
}

.text-small {
  font-size: 0.85rem;
  line-height: 1.5;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.item-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #607178;
}

.item-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* =========================
   FILAS / BLOQUES
   ========================= */

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.icon-circle {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.bordered-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================
   LISTAS / TIMELINE
   ========================= */

.list-clean {
  padding-left: 18px;
}

.list-clean li {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 3px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  color: #607178;
}

.timeline-content {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* =========================
   BOTÓN IMPRIMIR
   ========================= */

.print-btn-cv {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #15242b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.print-btn-cv:hover {
  background: #07d400;
  transform: translateY(-3px) scale(1.05);
}

.print-btn-cv:active {
  transform: scale(0.97);
}

/* =========================
   CORRECCIÓN MUY IMPORTANTE
   ========================= */

.page-sheet section,
.panel-dark section,
.panel-light section,
.content-box section {
  padding: 0;
  text-align: left;
  background: transparent;
}

/* =========================
   IMPRESIÓN
   ========================= */

@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm;
    height: 297mm;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  header,
  footer,
  nav,
  .print-btn-cv,
  .btn-print {
    display: none !important;
  }

  .page-wrap {
    width: 210mm !important;
    height: 297mm !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    background: white !important;
    display: block !important;
    overflow: hidden !important;
  }

  #cv,
  .page-sheet {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .two-column {
    display: grid !important;
    grid-template-columns: 37% 63% !important;
  }

  .panel-dark,
  .panel-light {
    overflow: hidden !important;
  }

  .media-top {
    height: 260px !important;
  }

  .panel-body {
    padding: 24px !important;
  }

  .hero-box {
    padding: 32px 30px !important;
  }

  .content-box {
    padding: 28px 30px !important;
  }

  .hero-title {
    font-size: 3.2rem !important;
    line-height: 0.9 !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  .text-small,
  .list-clean li,
  .timeline-content,
  .timeline-date,
  .item-title,
  .item-subtitle,
  .item-date {
    line-height: 1.4 !important;
  }

  .stack-lg {
    gap: 28px !important;
  }

  .timeline-row,
  .block,
  .page-sheet section {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* =========================
   RESPONSIVE GENERAL
   ========================= */

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr;
  }

  .page-sheet {
    width: 100%;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .row-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-date {
    text-align: left;
  }
}

/* =========================
   PORTFOLIO
   ========================= */

/* --- HERO DEL PORTFOLIO --- */

#portfolio-hero {
  background: linear-gradient(135deg, #111 0%, #1a2a1a 60%, #0d1f0d 100%);
  padding: 90px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(7, 212, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-hero-inner {
  position: relative;
  z-index: 1;
}

.portfolio-hero-tag {
  display: inline-block;
  background: rgba(7, 212, 0, 0.15);
  color: #07d400;
  border: 1px solid rgba(7, 212, 0, 0.3);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

#portfolio-hero h1 {
  font-size: 3rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
}

#portfolio-hero p {
  font-size: 1.1rem;
  color: #aaa;
}

#portfolio-hero p strong {
  color: #07d400;
}

/* --- SECCIÓN PRINCIPAL --- */

#portfolio-page {
  padding: 60px 20px 80px;
  background: #f5f5f5;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 0;
}

/* TARJETA */
.project-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  border: 1px solid #eee;
  min-height: 340px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

/* IMAGEN IZQUIERDA */
.project-cover {
  width: 48%;
  min-width: 48%;
  height: 340px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.project-cover img:hover {
  transform: scale(1.05);
}

.project-card:nth-child(1) .project-cover img {
  object-position: center center;
}

.project-card:nth-child(2) .project-cover img {
  object-position: center center;
}

.project-card:nth-child(3) .project-cover img {
  object-position: center center;
}

/* CONTENIDO */
.project-content {
  width: 52%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

/* TAG */
.project-tag {
  align-self: flex-start;
  background: #eafbe8;
  color: #05a800;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* TÍTULO */
.project-content h3 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #1f2a37;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TEXTO */
.project-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TECNOLOGÍAS */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tech span {
  font-size: 0.72rem;
  background: #f0f0f0;
  color: #333;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* GALERÍA */
.project-gallery {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.project-gallery img {
  width: 33%;
  height: 60px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.08);
}

/* VIDEO */
.project-video video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

/* BOTONES */
.project-links {
  margin-top: auto;
}

.project-links .btn {
  margin-top: 0;
  font-size: 0.9rem;
  padding: 10px 20px;
}

/* =========================
   MODAL
   ========================= */

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}

.image-modal-content {
  max-width: 1000px;
  width: auto;
  max-height: 80vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.image-modal-close {
  background: #07d400;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.image-modal-close:hover {
  background: #05a800;
}

/* =========================
   RESPONSIVE PORTFOLIO
   ========================= */

@media (max-width: 900px) {
  .project-card {
    flex-direction: column;
  }

  .project-cover {
    width: 100%;
    min-width: 100%;
    height: 220px;
  }

  .project-content {
    width: 100%;
  }

  .project-gallery {
    flex-direction: column;
  }

  .project-gallery img {
    width: 100%;
    height: 140px;
  }

  .project-video video {
    height: auto;
  }

  #portfolio-hero h1 {
    font-size: 2rem;
  }
}

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

/* --- HERO DEL BLOG --- */

#blog-hero {
  background: linear-gradient(135deg, #111 0%, #1a2a1a 60%, #0d1f0d 100%);
  padding: 90px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(7, 212, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
}

.blog-hero-tag {
  display: inline-block;
  background: rgba(7, 212, 0, 0.15);
  color: #07d400;
  border: 1px solid rgba(7, 212, 0, 0.3);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

#blog-hero h1 {
  font-size: 3rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
}

#blog-hero p {
  font-size: 1.1rem;
  color: #aaa;
}

#blog-hero p strong {
  color: #07d400;
}

/* --- MAIN / WRAPPER --- */

#blog-main {
  padding: 60px 20px 80px;
  background-color: #f5f5f5;
}

.blog-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- FILTROS --- */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: #fff;
  color: #333;
  border: 2px solid #e0e0e0;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: #07d400;
  color: #07d400;
}

.filter-btn.active {
  background: #07d400;
  border-color: #07d400;
  color: #fff;
}

/* --- GRID DE ARTÍCULOS --- */

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

/* Artículo destacado: ocupa toda la fila */
.blog-card--featured {
  grid-column: 1 / -1;
  flex-direction: row !important;
}

.blog-card--featured .blog-card__img-wrap {
  width: 48%;
  min-width: 48%;
  height: 320px;
}

.blog-card--featured .blog-card__body {
  padding: 32px 36px;
}

.blog-card--featured h2 {
  font-size: 1.8rem;
}

/* --- TARJETA --- */

.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #efefef;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.4s ease forwards;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

/* IMAGEN */

.blog-card__img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.05);
}

/* CATEGORÍA (badge sobre imagen) */

.blog-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #07d400;
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card__cat--backend {
  background: #1565c0;
}

.blog-card__cat--tools {
  background: #e65100;
}

.blog-card__cat--ia {
  background: #6a1b9a;
}

/* CUERPO DE LA TARJETA */

.blog-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* META */

.blog-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.blog-card__date {
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
}

.blog-card__read {
  font-size: 0.72rem;
  background: #f0f0f0;
  color: #666;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}

/* TÍTULO */

.blog-card h2 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-weight: 700;
}

/* reset del h2::after global para tarjetas */
.blog-card h2::after {
  display: none;
}

/* TEXTO */

.blog-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.blog-card p code {
  background: #f0f4f0;
  color: #07a000;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.84em;
}

/* TAGS */

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.blog-card__tags span {
  font-size: 0.7rem;
  background: #f0f0f0;
  color: #444;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* LINK */

.blog-card__link {
  display: inline-block;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: #07d400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card__link:hover {
  color: #05a800;
}

/* --- ANIMACIÓN --- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE BLOG --- */

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-card--featured {
    grid-column: 1 / -1;
    flex-direction: column !important;
  }

  .blog-card--featured .blog-card__img-wrap {
    width: 100%;
    min-width: 100%;
    height: 240px;
  }

  .blog-card--featured h2 {
    font-size: 1.4rem;
  }
}

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

  #blog-hero h1 {
    font-size: 2rem;
  }

  .blog-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
}

/* =========================
   CONTACTO
   ========================= */

/* --- HERO DEL CONTACTO --- */

#contacto-hero {
  background: linear-gradient(135deg, #111 0%, #1a2a1a 60%, #0d1f0d 100%);
  padding: 90px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#contacto-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(7, 212, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contacto-hero-inner {
  position: relative;
  z-index: 1;
}

.contacto-hero-tag {
  display: inline-block;
  background: rgba(7, 212, 0, 0.15);
  color: #07d400;
  border: 1px solid rgba(7, 212, 0, 0.3);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

#contacto-hero h1 {
  font-size: 3rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
}

#contacto-hero p {
  font-size: 1.1rem;
  color: #aaa;
}

#contacto-hero p strong {
  color: #07d400;
}


#contacto-hero + .contacto-container {
  margin-top: 50px;
}

/* --- RESPONSIVE CONTACTO --- */

@media (max-width: 600px) {
  #contacto-hero h1 {
    font-size: 2rem;
  }
}
/* ICONOS REDES SOCIALES */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.social-icons a {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.8rem;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.social-icons a:hover {
  background-color: #07d400;
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 10px 20px rgba(7, 212, 0, 0.3);
}