/* ===================================================================
   BASE / ESCRITORIO (≥1200px recomendado, pero válido para ≥992px)
   Orden: Navbar → Hero → Sobre mí → Skills → Formación → Proyectos
   =================================================================== */

/* ---------- Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 86px;
  z-index: 10000;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar-inverse {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.navbar-brand {
  line-height: 86px;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  color: #4f46e5 !important;
  font-weight: 800;
  letter-spacing: 1.2px;
  transition: color 0.25s ease;
}

.navbar-brand em {
  font-style: normal;
  color: #4f46e5;
  font-size: 32px;
}

.navbar-nav > li {
  margin-left: 70px;
}

.navbar-nav > li > a {
  color: #4f46e5 !important;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 6px;
  line-height: 86px;
  padding: 0;
  background: transparent !important;
  transition: color 0.25s ease;
}

.navbar-brand:hover,
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  color: #ffffff !important;
}

.header.active {
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header.active .navbar-inverse .navbar-brand,
.header.active .navbar-inverse .navbar-nav > li > a {
  color: #fff !important;
  text-shadow: none;
}

/* ---------- Hero ---------- */
.hero-clean {
  background: #000;
  padding: 100px 0;
  text-align: center;
}

.hero-title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 45px;
  color: #fff !important;
}

.hero-subtitle {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 45px;
  color: #fff !important;
}

.hero-text {
  font-size: 20px;
  color: #fff !important;
  margin-bottom: 28px;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #4f46e5;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 50px;
}

.profile-pic:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.btn-cta,
.btn-ghost {
  display: inline-block;
  margin: 14px;
  padding: 12px 22px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 20px;
  padding: 16px 28px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 2px solid #4f46e5;
  color: #4f46e5;
  background: transparent;
}

.btn-cta:hover,
.btn-ghost:hover {
  background: #4f46e5;
  color: #fff !important;
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

/* ---------- Sobre mí ---------- */
.section-about {
  background: #1a1a1a;
  padding: 150px 0;
  position: relative;
  background-image: none !important;
}
.section-about .soft-skills {
    display: flex;
    justify-content: center;       /* centra todo el bloque */
    gap: 60px;                      /* separación entre skills */
    list-style: none;
    padding: 0;
    margin-top: 40px;
    flex-wrap: nowrap;              
}

.section-about .soft-skills li {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;            
}


/* Separador con | */
.section-about .soft-skills li::after {
    content: " |";
    margin: 0 20px;
    color: #777;
}

.section-about .soft-skills li:last-child::after {
    content: "";
    margin: 0;
}

.section-about p,
.section-about .about-list,
.section-about .about-list li,
.section-about .about-list li strong,
.section-about .soft-skills,
.section-about .soft-skills li,
.section-about .social-links,
.section-about .social-links a{
  font-size: 20px;        /* resto de textos */
  line-height: 1.6;
}
.section-about p,
.section-about .about-list li,
.section-about .about-list li strong,
.section-about .soft-skills li {
  color: #fff !important;
}

.section-about .about-list a,
.section-about .social-links a {
  color: #4f46e5 !important;
}

.section-about .about-list a:hover,
.section-about .social-links a:hover {
  color: #7c73f9 !important;
  text-decoration: underline;
}



.section-about .col-md-5 {
  padding-right: 80px;
}

.section-about .col-md-7 {
  padding-left: 220px;
}



/* ---------- Skills ---------- */
.section-skills {
  background: #000;
  padding: 100px 0 140px;
}

.skills-title {
  text-align: center;
  color: #fff !important;
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 50px;
}

.skills-gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 50px 90px;
  justify-items: center;
}

.skills-gauges .gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 150px;
  text-align: center;
  color: #fff;
}



/* ---------- FORMACIÓN (#blog) ---------- */
#blog {
  background: #1a1a1a;
  background-image: none !important;
  color: #fff;
  padding: 60px 0;
}

/* Título centrado, 50px y blanco (varias posibilidades) */
#blog h2#formacion-title,
#blog .section-title--center h2,
#blog .section-heading h2 {
  font-size: 50px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
  color: #fff;
  margin: 0 0 22px;
  margin-top: 50px;
}

.line-dec {
  width: 120px;
  height: 2px;
  background: #4f46e5;
  margin: 12px auto 28px;
  border-radius: 2px;
}

h4 {
  color: #7c73f9 !important;
  margin-top: 20px !important;
}
/* Tipografía dentro de las tarjetas */
#blog .tabgroup .text-content h4,
#blog .tabgroup .text-content span,
#blog .tabgroup .text-content p,
#blog .tabgroup .text-content li {
  color: #fff !important;
}

#blog #first-tab-group .text-content .formacion-title{
  font-size: 30px !important;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 10px;
}
#blog #first-tab-group .text-content > span{
  display: block;
  font-size: 25px !important;
  line-height: 1.25;
  font-weight: 600;
  margin: 10px 0 30px;
}
/* Tarjetas/contenido de cada pestaña con borde alrededor */
#blog .tabgroup .text-content {
  background: #000000;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 0px 24px #4f46e5;
  padding: 22px 24px;
  text-align: left;
  font-size: 20px;
}


#blog .tabgroup .text-content ul {
  margin: 10px 0 20px 20px;
  padding: 0;
  list-style: disc;
  line-height: 1.6;
}

/* Enlaces dentro de FORMACIÓN como botones */
#blog .tabgroup .text-content a {
  display: inline-block;
  text-decoration: none;
  color: #4f46e5;
  border: 1.5px solid #4f46e5;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

#blog .tabgroup .text-content a:hover,
#blog .tabgroup .text-content a:focus {
  background: #4f46e5;
  color: #fff !important;
  text-decoration: none;
}

#blog .wrapper{
  display: flex;            /* hace que las dos columnas se alineen por arriba */
  align-items: flex-start;
  padding:70px;
}

#blog .col-md-4 .section-heading{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Pestañas laterales (lista de estudios) */
#blog .tabs {
  display: flex;
  flex-direction: column;
  gap: 30px;          /* separación vertical entre botones */
  padding: 0 45px;
  margin-top: 0 !important;
}

#blog .tabs li {
  margin: 0;          /* resetea márgenes antiguos del <li> */
}

#blog .tabs li::marker {
  content: none;
}

#blog .tabs a {
  display: block;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.3px;
  color: #000000;
  font-size: 20px;
  font-weight: 600;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  transition: color 0.2s ease;
}

#blog .tabs a:hover,
#blog .tabs .active {
  color: #4f46e5;
}

/* ---------- Proyectos (Portfolio) ---------- */
#portfolio {
  background: #000; /* fondo negro */
  padding:80px 0 140px;
}

#portfolio .col-md-4,
#portfolio .col-md-8 {
  float: none !important;
  width: 100% !important;
}

#portfolio .section-heading h2 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #fff !important;
  text-align: center;
  padding-top: 24px;
  padding-bottom: 40px;
}

#portfolio .section-heading p {
  font-size: 20px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  color: #fff !important;
}

#portfolio .project-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(380px, 1fr)); /* 2 columnas */
  gap: 40px 44px;                                       /* espacio fila/columna */
  margin-top: 24px;
  align-items: stretch;
}

#portfolio .project-grid li::marker {
  content: none;
}

#portfolio .project-card a {
  margin-top: 30px;
  display: block;
  position: relative;
  background: #1a1a1a;
  border: none;
  border-radius: 16px;
  padding: 20px 18px 18px; /* hueco para “Próximamente” */
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#portfolio .project-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px #4f46e5;
}

#portfolio .project-card h3 {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
}

#portfolio .project-card p {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
}

#portfolio .project-card a:hover h3,
#portfolio .project-card a:hover p {
  color: #4f46e5 !important;
}

#portfolio .project-card .pc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

/* ===================================================================
   TABLET (≥768px y ≤991.98px)
   =================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Navbar (tamaños “anteriores”) */
  .header {
    height: 80px;
  }

  .navbar-brand {
    font-size: 25px;
    letter-spacing: 0.5px;
    line-height: 80px;
  }

  .navbar-nav > li {
    margin-left: 45px;
  }

  .navbar-nav > li > a {
    font-size: 13px;
    letter-spacing: 0.5px;
    line-height: 80px;
  }

  /* Sobre mí: menos separación y sin barra */
  .section-about .col-md-5 {
    padding-right: 40px;
  }

  .section-about .col-md-7 {
    padding-left: 40px;
  }

  .section-about .row::before {
    display: none;
  }

  /* Skills: 2 por fila */
  .section-skills .skills-gauges {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 24px 24px;
  }
  .section-about .soft-skills{
    max-width: 680px;
    gap: 14px 16px;
  }
  .section-about .soft-skills li{ min-height: 68px; }
}

/* ===================================================================
   MÓVIL (≤767px)
   =================================================================== */
@media (max-width: 767px) {
  /* Navbar — botón hamburguesa (normal/abierto/hover) */
  .navbar-inverse .navbar-toggle {
    background: #000 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }

  .navbar-inverse .navbar-toggle .icon-bar {
    background-color: #fff !important;
  }

  .navbar-inverse .navbar-toggle:hover,
  .navbar-inverse .navbar-toggle:focus {
    background: #000 !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
  }

  .navbar-inverse .navbar-toggle[aria-expanded="true"],
  .navbar-inverse .navbar-toggle:not(.collapsed) {
    background: #fff !important;
    border-color: #000 !important;
  }

  .navbar-inverse .navbar-toggle[aria-expanded="true"] .icon-bar,
  .navbar-inverse .navbar-toggle:not(.collapsed) .icon-bar {
    background-color: #000 !important;
  }

  .navbar-inverse .navbar-toggle[aria-expanded="true"]:hover,
  .navbar-inverse .navbar-toggle[aria-expanded="true"]:focus,
  .navbar-inverse .navbar-toggle:not(.collapsed):hover,
  .navbar-inverse .navbar-toggle:not(.collapsed):focus {
    background: #fff !important;
    border-color: #000 !important;
  }

  /* Menú desplegable: fondo blanco + texto negro */
  #main-nav {
    margin: 15px -15px 0;
    background: #fff;
  }

  .navbar-inverse .navbar-nav > li {
    margin-left: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navbar-inverse .navbar-nav > li > a {
    color: #111 !important;
    line-height: 55px;
    background: transparent !important;
  }

  .navbar-inverse .navbar-nav > li > a:hover,
  .navbar-inverse .navbar-nav > li > a:focus {
    color: #000 !important;
  }

  .header.active .navbar-inverse .navbar-nav > li > a,
  .header.active .navbar-inverse .navbar-nav > li > a:hover,
  .header.active .navbar-inverse .navbar-nav > li > a:focus {
    color: #111 !important;
  }

  

  .section-about h3.mt-30 {
    font-size: 28px;
  }

  .section-about .col-md-5 {
    padding-right: 0;
  }

  .section-about .col-md-7 {
    padding-left: 0;
  }

  .section-about .row::before {
    display: none;
  }

  /* Skills — 1 por fila (FIX definitivo) */
  .section-skills .skills-gauges {
    grid-template-columns: 1fr !important;
    gap: 28px 0 !important;
    justify-items: center;
  }

  .section-skills .gauge {
    width: 220px;
    margin: 0 auto;
  }

  .section-skills .label {
    max-width: 220px;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
  }

    
  .section-about .soft-skills li{
    width: 100%;
    text-align: center;
  }
}
.social-icons {
  display: flex;
  justify-content: center;   /* 🔥 Centra horizontalmente */
  align-items: center;
  gap: 24px;                 /* Separación entre los iconos */
  margin-top: 20px;
}


.social-img{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:60px;
  height:60px;
  border-radius:12px;
  border:1.5px solid #4f46e5;
  background: transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration:none;
}

.icon{
  width:35px;
  height:35px;
  display:block;
  color:#4f46e5;           /* color base de los iconos */
}

.social-img:hover,
.social-img:focus{
  background:#4f46e5;
  border-color:#4f46e5;
  transform: translateY(-2px) scale(1.06);
  box-shadow:0 10px 22px rgba(79,70,229,.35);
  outline:none;
}

.social-img:hover .icon,
.social-img:focus .icon{
  color:#fff;              /* icono blanco sobre fondo lila */
}

@media (max-width:480px){
  .social-icons{ gap:12px; }
  .social-img{ width:45px; height:45px; border-radius:10px; }
  .icon{ width:30px; height:30px; }
}


.skills-logos {
  display: flex;
  justify-content: space-between; /* 🔥 uno a cada lado */
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 0 20px; /* Separación lateral */
}

.skill-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px; /* 🔥 controla el espacio reservado por icono */
}



.skill-item img:hover {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

/* Contenedor de los logos */
.skills-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 140px; /* Espacio uniforme y razonable */
  justify-items: center;   /* 🔥 Centra horizontalmente cada celda */
  align-items: center;     /* 🔥 Centra verticalmente cada celda */
  margin-top: 100px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Cada celda */
.skill-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Imágenes */
.skill-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: 0.25s ease;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
}

/* Hover efecto */
.skill-item img:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

/* CENTRAR BLOQUE DE INFORMACIÓN */
.about-wrapper {
  text-align: center;
}

/* Título Sobre mí y Soft skills iguales */
.section-about #about-title,
.section-about .skills-subtitle {
  text-align: center;
  color: #fff !important;
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 50px;
}

.skills-subtitle {
  margin-top: 80px;
}

/* Centrar UL de información */
.about-list {
  list-style: none;
  padding-left: 0;
  margin: 0 auto 30px;
  max-width: 600px;
  text-align: center;
  line-height: 1.8;
}

.about-list li {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.about-list a {
  color: #4f46e5 !important;
}




/* Contenedor en una fila totalmente centrada */
.section-about .soft-skills {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;                    /* separación uniforme */
  padding: 0;
  list-style: none;
  margin: 35px auto 0;
}

/* Estilo de cada ítem */
.section-about .soft-skills li {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;          /* NO permite que salte a 2 líneas */
  position: relative;
  padding: 0 24px;              /* espacio para la barra */
}

/* Separador | como pseudo-elemento centrado */
.section-about .soft-skills li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -5px;                  /* ajuste fino */
  top: 50%;
  transform: translateY(-50%);  /* centrado vertical PERFECTO */
  color: rgba(255,255,255,0.4); /* color más suave */
  font-weight: 300;
  font-size: 22px;
}
.softskills-text {
  text-align: center;        
  margin: 0 auto;            
  font-size: 20px;
  color: #fff;
  max-width: 1100px;         /* 🔥 limita el ancho y centra */
  white-space: nowrap;        /* evita que salte de línea */
}

/* --- BOTONES DE PESTAÑAS (tamaño uniforme) --- */

.tabs li {
    list-style: none !important;
    margin-bottom: 12px !important;
}

.tabs li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 220px !important;       
    height: 55px !important;          
    background: #000000 !important; 
    border: 2px solid #000 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-decoration: none !important;

    transition: all 0.25s ease !important;
}

/* Hover */
.tabs li a:hover {
    border-color: #7c73f9 !important; /* lila */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(124,115,249,0.25) !important;
}

/* Activo */
.tabs li a.active {
    border-color: #4f46e5 !important;
    background: #3a3a3a !important;
    box-shadow: 0 0 12px rgba(79,70,229,0.4) !important;
}
/* BOTONES DE FILTRO */
.filter-btn {
  background: #2b2b2b;
  color: #fff;
  padding: 12px 20px;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 150px;
  text-align: center;
  margin-top: 50px;
}

.filter-btn:hover {
  border-color: #a26dfd;
  transform: translateY(-2px) scale(1.03);
}

.filter-btn:active {
  transform: scale(0.97);
}

/* TAGS DE TECNOLOGÍA MÁS GRANDES */
.tech-tag {
  display: inline-block;
  margin-top: 10px;
  background: #3a3a3a;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  color: #fff;
  border: 2px solid #000;
  transition: 0.2s;
}

.tech-tag:hover {
  border-color: #a26dfd;
  transform: scale(1.05);
}

/* WRAPPER: centra el título sin mover el buscador */
.section-heading-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;
  margin-bottom: 25px;
}

/* ⬇️ TU TÍTULO con tus estilos EXACTOS */
.portfolio-title {
  text-align: center;
  color: #fff !important;
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 50px;
  width: 100%;
}

/* BUSCADOR alineado a la derecha sin tocar el título */
.section-heading-wrapper .search-input {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border: 2px solid #000;
  border-radius: 8px;
  font-size: 16px;
}

/* RESPONSIVE: en móvil el buscador baja */
@media (max-width: 768px) {
  .section-heading-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .section-heading-wrapper .search-input {
    position: static;
    transform: none;
    width: 100%;
    max-width: 260px;
  }
}

/* PORTFOLIO RESPONSIVE */
@media (max-width: 1200px) {
  #portfolio .project-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  #portfolio .project-grid {
    grid-template-columns: 1fr; /* una columna */
    gap: 26px;
  }
}

@media (max-width: 768px) {
  .section-about .soft-skills {
    flex-direction: column;
    gap: 12px;
  }

  .section-about .soft-skills li {
    white-space: normal !important;
    padding: 0 !important;
  }

  .section-about .soft-skills li::after {
    display: none !important;
  }
}

/* Skills logos responsive */
@media (max-width: 992px) {
  .skills-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}

@media (max-width: 600px) {
  .skills-logos {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .skill-item img {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 992px) {
  .section-about .col-md-5,
  .section-about .col-md-7 {
    padding: 0 !important;
  }
}

@media (max-width: 420px) {
  .portfolio-title {
    font-size: 36px !important;
  }

  .section-heading-wrapper .search-input {
    max-width: 200px;
  }
}

@media (max-width: 600px) {
  .profile-pic {
    width: 180px;
    height: 180px;
    margin-top: 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-text {
    font-size: 18px;
  }
}
/* ============================================================
   🔥 RESPONSIVE FIX TOTAL — PORTFOLIO DE PAU GUIJARRO ROIG
   ============================================================ */

/* ---------- TITULARES GRANDES ---------- */
@media (max-width: 768px) {
  h1, .hero-title, #about-title, .skills-title,
  #formacion-title, .portfolio-title {
    font-size: 32px !important;
  }
}

@media (max-width: 450px) {
  h1, .hero-title, #about-title, .skills-title,
  #formacion-title, .portfolio-title {
    font-size: 28px !important;
  }
}

/* ---------- HERO ---------- */
@media (max-width: 650px) {
  .hero-clean {
    padding: 60px 20px !important;
  }
  .profile-pic {
    width: 160px !important;
    height: 160px !important;
  }
  .hero-title { font-size: 38px !important; }
  .hero-subtitle { font-size: 20px !important; }
  .hero-text { font-size: 16px !important; }
}

/* ---------- SOCIAL ICONS ---------- */
@media (max-width: 480px) {
  .social-icons {
    gap: 10px;
  }
  .social-img {
    width: 40px !important;
    height: 40px !important;
  }
  .icon {
    width: 26px !important;
    height: 26px !important;
  }
}

/* ---------- SOBRE MÍ + SOFT SKILLS ---------- */
@media (max-width: 900px) {
  .about-list {
    font-size: 18px !important;
    padding: 0 10px;
  }
}

@media (max-width: 700px) {
  .softskills-text {
    white-space: normal !important;
    font-size: 17px !important;
    line-height: 1.4;
  }
}

/* ---------- SKILLS LOGOS ---------- */
@media (max-width: 900px) {
  .skills-logos {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 50px !important;
  }
}

@media (max-width: 520px) {
  .skills-logos {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .skill-item img {
    width: 100px !important;
    height: 100px !important;
  }
}

/* ---------- FORMACIÓN (Pestañas) ---------- */
@media (max-width: 992px) {
  #blog .wrapper {
    flex-direction: column;
    padding: 25px !important;
  }
  #blog .tabs {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 12px !important;
    padding: 0 !important;
  }
  #blog .tabs a {
    width: 160px !important;
    height: 50px !important;
    font-size: 16px !important;
  }
}

/* ---------- GRID PROYECTOS ---------- */
@media (max-width: 1200px) {
  #portfolio .project-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 700px) {
  #portfolio .project-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  #portfolio .project-card h3 {
    font-size: 22px !important;
  }
  #portfolio .project-card p {
    font-size: 16px !important;
  }
}

/* ---------- FILTROS ---------- */
@media (max-width: 600px) {
  .filter-btn {
    min-width: 100% !important;
    text-align: center;
    padding: 12px !important;
    font-size: 16px !important;
    margin-top: 5px !important;
  }
}

/* ---------- TÍTULO + BUSCADOR ---------- */
@media (max-width: 768px) {
  .section-heading-wrapper {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .search-input {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 300px !important;
  }
}

@media (max-width: 430px) {
  .search-input {
    max-width: 220px !important;
    font-size: 14px !important;
  }
}

html, body {
  overflow-x: hidden !important;
}

section, .container, .row, div {
  overflow-y: visible !important;
}
