/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f8f9fa; /* Un blanco muy claro y suave */
  font-family: 'Segoe UI', sans-serif;
  color: #111;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 30px;
  border-bottom: 1px solid #ddd;
  height: 80px;
}

.logo-left img,
.logo-right img {
  height: 90px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #cc0000;
  text-align: center;
  flex: 1;
  margin: 0;
  margin-left: 300px;
}
/* ================================
   CONTENEDOR DE CONTENIDO EMBEBIDO
   ================================ */

#contenido {
  position: fixed;
  top: 80px;     /* ALTURA DEL HEADER */
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background-color: #f8f9fa;
}

#iframe-embed {
  width: 100%;
  height: 100%;
  border: none;
}
/* Overlay para iframe */
#iframe-overlay {
  position: fixed;
  top: 80px; /* altura del header */
  left: 0;
  width: 100%;
  bottom: 0;
  background-color: #fff; /* fondo blanco */
  z-index: 1000;          /* encima de todo */
  display: none;           /* oculto al inicio */
  flex-direction: column;
}

#iframe-overlay iframe {
  flex: 1;               /* ocupa todo el espacio restante */
  width: 100%;
  border: none;
}

#close-iframe {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #cc0000;
  cursor: pointer;
  z-index: 1010; /* encima del iframe */
}


/* Categorías */
.category {
  margin: 40px 20px;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #cc0000;
}
.category-title2 {
  text-align: center;
  font-size: 32px;   /* más grande */
  color: #cc0000;
  margin-top: 20px;  /* separación desde arriba */
}


.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

/* Elimina subrayado en los enlaces */
.card-link {
  text-decoration: none;
}

/* Estilo general de la tarjeta */
.card {
  position: relative;
  width: 180px;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease;
}

/* Imagen que llena toda la tarjeta */
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}



.wide-logo-container {
  flex: 1;           /* ocupa todo el espacio restante */
  display: flex;
  justify-content: center; /* centra la imagen larga */
  align-items: center;
}

.wide-logo {
  height: 100%;       /* altura igual al header */
  width: 100%;        /* ocupa todo el contenedor */
  object-fit: contain; /* mantiene proporción sin deformarse */
}
/* Zoom a la imagen al hacer hover */
.card:hover .card-img {
  transform: scale(1.2);
}

/* Título oculto inicialmente */
.card-title {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 16px;
  text-align: center;
  transition: bottom 0.3s ease;
  z-index: 1; /* asegura que esté por encima */
}

/* Título se desliza hacia arriba al hacer hover */
.card:hover .card-title {
  bottom: 0;
}

/* Sombra más fuerte en hover */
.card:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.9);
}


/* Contenedor de búsqueda */
.search-container {
  flex: 1;
  text-align: center;
  margin-left: 0px;
  margin-right: 100px;
}

.search-container input {
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 200px;
  transition: box-shadow 0.3s;
}

.search-container input:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
  border-color: #cc0000;
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    height: auto;
    padding: 15px 20px;
    text-align: center;
  }

  .search-container {
    width: 900%;
    text-align: center;
    margin-left: auto;
    margin-right: 30px;
    display: flex;
    justify-content: center;
  }

  .search-container input {
    width: 80%;
    max-width: 500px;
  }

  .logo-left, .logo-right {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    margin: 5px 0;
  }

  .header h1 {
    flex: 1 1 100%;
    font-size: 1.8rem;
    margin: 10px 0;
  }
}

/* Diseño responsivo general */
@media (max-width: 1024px) {
  .header {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 20px;
    text-align: center;
  }

  .logo-left, .logo-right {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    margin: 5px 0;
  }

  .header h1 {
    flex: 1 1 100%;
    font-size: 1.8rem;
    margin: 10px 0;
  }

  .search-container {
    flex: 1 1 100%;
    margin: 10px 0;
    display: flex;
    justify-content: center;
  }

  .search-container input {
    width: 90%;
    max-width: 500px;
  }

  .card-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    width: 45%;
    margin: 10px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .card {
    width: 90%;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .logo-left img, .logo-right img {
    height: 60px;
  }
}

/* Footer de noticias */
.footer-news {
  position: fixed;
  bottom: 0;
  left: 0px; /* igual que el sidebar */
  width: calc(100%);
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
  z-index: 1000;
  padding-left: 10px;
}
.news-ticker {
  overflow: hidden;
  white-space: nowrap;
  background-color: #f2f2f2;
  padding: 10px;
  font-weight: bold;
  position: relative;
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader .logo-carga {
  width: 200px;
  height: auto;
  animation: salto 1s ease-in-out infinite;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loader img {
  width: 300px;
  height: auto;
  margin-bottom: 20px;
  animation: bounceIn 0.8s ease;
}

#loader p {
  font-size: 1.2em;
  color: #333;
  animation: bounceIn 0.8s ease;
}

/* === EQUIPO - NUEVO CSS === */
/* Tarjetas del equipo */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
}

.team-section {
  margin-bottom: 4rem;
}

.team-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #cc0000;
  text-align: center;
}

.team-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  width: 280px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 1.5rem 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  animation: fadeInOpacity 0.6s ease forwards;
  transform: scale(1); /* deja transform libre */
}

.team-card:hover {
  transform: scale(1.12);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.9);
}

.team-photo {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

/* Títulos dentro de las tarjetas */
.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #222;
}

.team-card h4 {
  font-size: 1rem;
  font-weight: normal;
  color: #555;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

/* Animación de aparición de tarjetas */
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

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

.portfolio-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 30px;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  height: 80px;
}

.portfolio-header img {
  height: 70px;
  cursor: pointer;
  width: auto;
  object-fit: contain;
}

.portfolio-header h1 {
  margin: 0;
  color: #cc0000;
  font-size: 2rem;
  font-weight: 700;
}

.scroll-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

.portfolio-section {
  height: 100vh;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-box {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  max-width: 500px;
  border-radius: 0.75rem;
  color: white;
  position: absolute;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: fadeIn 1s ease;
}

.portfolio-box.light-box {
  background-color: rgba(255, 255, 255, 0.85);
  color: #222;
}

.top-left { top: 5%; left: 5%; }
.bottom-right { bottom: 5%; right: 5%; }
.top-right { top: 5%; right: 5%; }
.center-box { top: 50%; left: 50%; transform: translate(-50%, -50%); }

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

.portfolio-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 5rem;
  background: white;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

.portfolio-header img {
  height: 5.5rem;
  cursor: pointer;
}

.portfolio-header h1 {
  font-size: 1.45rem;
  color: #cc0000;
  text-align: center;
  margin: 0 1rem;
}

/* === HERO INTRO === */
.portfolio-hero-intro {
  height: 100vh;
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f4f8 100%);
  scroll-snap-align: start;
  width: 100%;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-illustration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.9;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 62.5rem; /* 1000px */
  }

.hero-tagline {
  background-color: #ffecec;
  color: #cc0000;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-overlay-text h1 {
  font-size: 5rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-overlay-text p {
  font-size: 1.75rem;
  color: #111;
  max-width: 50rem;
  margin: 0 auto;
}

/* === SECTIONS === */
.scroll-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

.portfolio-section {
  height: 100vh;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === BOXES === */
.portfolio-box {
  position: absolute;
  padding: 2rem;
  border-radius: 0.75rem;
  max-width: 90%;
  box-sizing: border-box;
}

.portfolio-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.portfolio-box p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

/* === POSITION HELPERS === */
.bottom-block {
  bottom: 5%;
  left: 5%;
  right: 5%;
}

.center-box {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* NUEVO estilo sin fondo marcado */
.transparent-box {
  background-color: rgba(0, 0, 0, 0.29); /* casi transparente */
  color: #f8f8f8;
  text-shadow: 0 2px 3px rgba(0,0,0,0.9);
  padding: 2rem;
  width: 25vw;
  min-width: 700px;
  max-width: 900px;
}

/* NUEVA posición bottom-left */
.bottom-left {
  position: absolute;
  bottom: 4rem;
  left: 2rem;
}

/* Estética del texto */
.transparent-box h2 {
  font-size: 3.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffeeee;
}

.transparent-box p {
  font-size: 1.55rem;
  line-height: 1.9;
  margin: 0;
}

/* === NUEVO: Caja blanca centrada con degradado sutil en bordes === */
.gradient-white-box {
  background: radial-gradient(circle, rgba(255,255,255,0.69) 60%, rgba(255,255,255,0.1) 100%);
  color: #111;
  padding: 3rem;
  padding-left: 5rem;
  padding-right: 5rem;
  border-radius: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
  min-width: 90%;
  max-width: 90%;
}

/* Centrado vertical y horizontal */
.center-box {
  position: absolute;
  top: 60%;
  left: 50%;
}

/* Texto */
.gradient-white-box h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #8a0000;
}

.gradient-white-box p {
  font-size: 1.575rem;
  line-height: 1.85;
  font-weight: 400;
  margin: 0;
}

/* === NUEVA caja con degradado oscuro horizontal === */
.dark-gradient-box {
  position: absolute;
  top: 20%;
  left: 0;
  width: 50%;
  height: 60%;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Contenedor interior del texto (ocupa la mitad izquierda de la caja) */
.text-wrapper {
  max-width: 50%;
  color: #f2f2f2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* Estilo refinado del h2 */
.dark-gradient-box h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #f0eada; /* beige suave */
}

/* Texto explicativo */
.dark-gradient-box p {
  font-size: 1.45rem;
  line-height: 1.8;
  margin: 0;
  color: #eaeaea;
}

.minimal-bottom-left {
  position: absolute;
  bottom: 9rem;
  left: 3rem;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  max-width: 62%;
  z-index: 2;
  background: linear-gradient(to right, rgba(29, 29, 29, 0.9) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%);

}

.minimal-bottom-left h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.minimal-bottom-left p {
  font-size: 1.65rem;
  line-height: 1.75;
  margin: 0;
}

.translucent-box2 {
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.2) 100%);
  color: #111;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  max-width: 90vw;
  min-width: 90vw;
  text-shadow: 0 2px 2px rgba(255,255,255,0.7);
  text-align: center;
}

.translucent-box2 h2 {
  font-size: 3.3rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.translucent-box2 p {
  font-size: 1.75rem;
  line-height: 1.85;
  margin: 0;
  font-weight: 600;
}

.bright-box-bottom {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.29) 100%);
  color: #111;
  padding: 3rem 5rem;
  border-radius: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  width: 90%;
  max-width: 95%;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.bright-box-bottom h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #aa0000;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9);
}

.bright-box-bottom p {
  font-size: 1.7rem;
  line-height: 1.85;
  font-weight: 500;
  margin: 0;
}

.glass-blur-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 100%);
  border-radius: 2.5rem;
  padding: 3.5rem 4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  text-align: center;
  width: 90%;
  max-width: 70%;
  color: #111;
  z-index: 2;
}

.glass-blur-box h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #c00000;
  text-shadow: 0 1px 2px rgba(80, 80, 80, 0.9);
}

.glass-blur-box p {
  font-size: 1.7rem;
  line-height: 1.85;
  font-weight: 500;
  margin: 0 auto;
  max-width: 90%;
  color: #222;
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

.scada-blur-box {
  position: absolute;
  backdrop-filter: blur(12px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 50%, rgba(240, 240, 240, 0.2) 100%);
  border-radius: 2rem;
  padding: 4rem 4.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  text-align: center;
  width: 85%;
  max-width: 90%;
  color: #111;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scada-blur-box h2 {
  font-size: 3.1rem;
  font-weight: 800;
  margin-bottom: 1.4rem;
  color: #2a002b;
  text-shadow: 0 1px 3px rgba(200, 200, 200, 0.5);
}

.scada-blur-box p {
  font-size: 1.6rem;
  line-height: 1.85;
  font-weight: 500;
  margin: 0 auto;
  max-width: 90%;
  color: #333;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/* Posicionador renombrado para evitar conflictos */
.center-box-scada {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.baseform-glass-box {
  backdrop-filter: blur(14px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 50%, rgba(240, 240, 240, 0.15) 100%);
  border-radius: 2rem;
  padding: 3.5rem 4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  text-align: right;
  max-width: 38rem;
  z-index: 2;
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.baseform-glass-box h2 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.3rem;
  color: #003366; /* Azul oscuro */
  text-shadow: 0 1px 3px rgba(200, 200, 255, 0.5);
}

.baseform-glass-box p {
  font-size: 1.6rem;
  line-height: 1.85;
  font-weight: 500;
  margin: 0;
  color: #222;
}

/* Nueva posición top-right para esta caja */
.top-right-box {
  position: absolute;
  top: 7%;
  right: 5%;
}

/* === FOOTER === */
.portfolio-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  padding: 0.5rem;
  font-size: 0.875rem;
  color: #444;
  text-align: center;
  z-index: 998;
}

/* === BUTTON SCROLL UP === */
#scrollToTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #cc0000;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999;
}

#scrollToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 0,9;
    transform: translateY(0);
  }
}

@media (min-width: 1367px) and (max-width: 1680px) {
  .portfolio-header h1 {
    font-size: 1.45rem;
  }
  /* HERO */
  .hero-overlay-text h1 {
    font-size: 3.2rem;
  }

  .hero-overlay-text p {
    font-size: 1.3rem;
  }

  /* CAJAS GENÉRICAS */
  .portfolio-box h2,
  .gradient-white-box h2,
  .glass-blur-box h2,
  .scada-blur-box h2,
  .baseform-glass-box h2,
  .translucent-box2 h2,
  .bright-box-bottom h2,
  .dark-gradient-box h2,
  .minimal-bottom-left h2 {
    font-size: 2.2rem;
  }

  .portfolio-box p,
  .gradient-white-box p,
  .glass-blur-box p,
  .scada-blur-box p,
  .baseform-glass-box p,
  .translucent-box2 p,
  .bright-box-bottom p,
  .dark-gradient-box p,
  .minimal-bottom-left p {
    font-size: 1.2rem;
    line-height: 1.2;
  }
}

/* === RESPONSIVE: PORTÁTILES (≤ 1366px) === */
@media (max-width: 1366px) {
  .portfolio-header h1 {
    font-size: 1.25rem;
  }

  .hero-overlay-text h1 {
    font-size: 2.8rem;
  }

  .hero-overlay-text p {
    font-size: 1.1rem;
  }
  .hero-tagline {
    font-size: 1.1rem;
  }
  /* Títulos */
  .portfolio-box h2,
  .glass-blur-box h2,
  .scada-blur-box h2,
  .baseform-glass-box h2 {
    font-size: 2rem;
  }

  .portfolio-box p,
  .glass-blur-box p,
  .scada-blur-box p,
  .baseform-glass-box p {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .gradient-white-box,
  .bright-box-bottom,
  .glass-blur-box,
  .scada-blur-box,
  .baseform-glass-box {
    padding: 2rem 3rem;
    max-width: 85%;
  }

  .transparent-box {
    width: 80vw;
    padding: 2rem;
    min-width: unset;
  }
}

/* === RESPONSIVE: TABLETS (≤ 1024px) === */
@media (max-width: 1024px) {
  .portfolio-header h1 {
    font-size: 1.1rem;
  }

  .hero-overlay-text h1 {
    font-size: 2.1rem;
  }

  .hero-overlay-text p {
    font-size: 1.1rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }
  /* Títulos */
  .portfolio-box h2,
  .glass-blur-box h2,
  .scada-blur-box h2,
  .baseform-glass-box h2,
  .gradient-white-box h2,
  .bright-box-bottom h2,
  .translucent-box2 h2,
  .dark-gradient-box h2,
  .minimal-bottom-left h2 {
    font-size: 1.8rem;
  }

  /* Textos */
  .portfolio-box p,
  .glass-blur-box p,
  .scada-blur-box p,
  .baseform-glass-box p,
  .gradient-white-box p,
  .bright-box-bottom p,
  .translucent-box2 p,
  .dark-gradient-box p,
  .minimal-bottom-left p {
    font-size: 1rem;
  }

  /* Ajustes de padding para cajas grandes */
  .gradient-white-box,
  .bright-box-bottom,
  .glass-blur-box,
  .scada-blur-box,
  .baseform-glass-box,
  .translucent-box2 {
    padding: 1rem 2rem;
  }

  /* Ajustes de ancho si fuera necesario */
  .glass-blur-box,
  .scada-blur-box {
    max-width: 95%;
  }

  .baseform-glass-box {
    max-width: 90%;
    text-align: left;
  }

  .text-wrapper {
    max-width: 95%;
  }
}

/* === RESPONSIVE: MÓVILES (≤ 768px) === */
@media (max-width: 768px) {
  .portfolio-header h1 {
    font-size: 0.8rem;
  }

  .hero-overlay-text h1 {
    font-size: 1.8rem;
  }

  .hero-overlay-text p {
    font-size: 1.1rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .portfolio-box h2,
  .glass-blur-box h2,
  .scada-blur-box h2,
  .baseform-glass-box h2 {
    font-size: 1.5rem;
  }

  .portfolio-box p,
  .glass-blur-box p,
  .scada-blur-box p,
  .baseform-glass-box p {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .transparent-box {
    min-width: unset;
    width: 90vw;
    padding: 1.5rem;
  }

  .text-wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }

  .gradient-white-box,
  .bright-box-bottom,
  .glass-blur-box,
  .scada-blur-box,
  .baseform-glass-box {
    padding: 1.2rem;
    max-width: 95%;
  }
}

/* === RESPONSIVE: EXTRA SMALL (≤ 480px) === */
@media (max-width: 480px) {
  .hero-overlay-text h1 {
    font-size: 1.3rem;
  }

  .hero-overlay-text p {
    font-size: 1rem;
  }

  .portfolio-box h2,
  .glass-blur-box h2,
  .scada-blur-box h2,
  .baseform-glass-box h2 {
    font-size: 1.3rem;
  }

  .portfolio-box p,
  .glass-blur-box p,
  .scada-blur-box p,
  .baseform-glass-box p {
    font-size: 0.9rem;
  }

  .minimal-bottom-left {
    max-width: 95%;
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
  }

  .baseform-glass-box {
    text-align: left;
    padding: 1rem;
  }
}