/* Identidad */
:root {
  --marron: #8C2633;
  --naranja: #EAAF0F;
  --gris-oscuro: #2b2b2a;
  --marron-2: #A1263F;
  --naranja-2: #E67800;

  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #1c1d1e;
  --text-muted: #636a74;
  --border: #e5e7eb;
  --shadow: rgba(0,0,0,0.06);
}

.product-detail-box {
    display: table !important;    /* !important asegura que no lo sobrescriba otro estilo en Geras */
    margin: 40px auto !important; /* Centra horizontalmente y da espacio vertical */
    background-color: white;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 85%;               /* Un poco más estrecho para que parezca más una "hoja" */
}

/* Aseguramos que los títulos dentro de la caja no fuercen un ancho del 100% */
.product-detail-box h3, 
.product-detail-box h4 {
    margin-left: 0;
    margin-right: 0;
    text-align: center; /* Mantiene el texto centrado dentro de la hoja */
}

/* En Itálica de color gris oscuro */
.destacado-negro {
    color: black; /* Negro */
    font-style: italic;   /* Mantener normal según tu código actual */
    
    /* Sombra: x(0) y(0) difuminado(4px) color(naranja suave con transparencia) */
    text-shadow: 0px 1px 1px rgb(128, 126, 126);
}

/* Subtítulos de color gris oscuro */
.subtitulo-negro {
    color: rgb(39, 38, 38); 
    font-style: italic;
    font-size: 24px; /* <--- Añade esta línea (ajusta el número a tu gusto) */
    
    /* Sombra */
    text-shadow: 0px 1px 1px rgb(128, 126, 126);
}


/* ARGOS en marron con negrita */
.marca-argos {
    color: #581821;
    font-weight: bold; /* El equivalente al estilo de la etiqueta <strong> */
}

/* Para resaltar textos en los párrafos */
.texto-enfasis-gris {
  color: rgb(66, 43, 43); /* Un gris oscuro equilibrado */
   /* color: #333333; <- Usa este si lo quieres aún más oscuro, casi negro */
}

/* Reset y tipografía */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI","Calibri",system-ui,-apple-system,Tahoma,Geneva,Verdana,sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.marca-argos-h2 {
  color: var(--marron);
  font-weight: 700;
}

.titulo-centrado {
  text-align: center;
}

img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Accesibilidad foco */
a:focus-visible,
button:focus-visible,
.subnav-link:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: 2px;
}

/* Quitar color y subrayado de los enlaces de productos */
.product-link {
  text-decoration: none;   /* Sin subrayado */
  color: inherit;          /* Mantiene el color original del texto */
  display: block;          /* Hace clicable toda la tarjeta */
}

/* Evitar cambios de color al pasar el ratón */
.product-link:hover,
.product-link:visited,
.product-link:active {
  text-decoration: none;
  color: inherit;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100;
  background: var(--bg);
  box-shadow: 0 2px 12px var(--shadow);
}

.site-header .logo img {
  transform: scale(1.05);   /* aumenta un 5% */
  transform-origin: left center; /* evita que se desplace visualmente */
}

.logo img { 
  height: 60px; 
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: var(--marron); border-color: var(--naranja); }
.mobile-menu {
  display: none;
  font-size: 1.2rem;
  color: var(--marron);
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {

  /* Evita que el menú empuje o aplaste el logo */
  .header-container {
    position: relative;
  }

  /* El menú se despliega debajo del header, no dentro */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .main-nav ul li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  /* Asegura que el logo NO se deforma */
  .logo img {
    height: 60px;
    width: auto; /* 🔥 evita aplastamiento */
  }
}


/* Hero con overlay - Home */
.hero {
  position: relative;
  padding: 160px 0 96px;
  text-align: center;
  color: #fff;
  background: url("../img/portatil.jpg") center/cover no-repeat;
  overflow: hidden;
}

/* Hero - Producto GERAS */
    .hero-geras {
      position: relative;
      padding: 160px 0 96px;
      text-align: center;
      color: #fff;
      /*background: url("../img/geras-hero.png") center/cover no-repeat;*/
      background: url("../img/geras-hero.png") center 0% / auto auto no-repeat;
      overflow: hidden;
    }

    .hero-geras::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 0;
    }

    .hero-geras::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(1200px 400px at 20% 0%, rgba(236,181,24,0.06), transparent 60%);
      z-index: 1;
      pointer-events: none;
    }
/* Fin del Hero - Producto GERAS */

/* Hero - Producto ARGOS */
.hero-argos {
  position: relative;
  padding: 160px 0 96px;
  text-align: center;
  color: #fff;
  background: url("../img/argos-fondo.png") center/cover no-repeat;
  overflow: hidden;
}


/* Hero - Producto COMyTED */
.hero-comyted {
  position: relative;
  padding: 160px 0 96px;
  text-align: center;
  color: #fff;
  background: url("../img/comyted-hero.png") center/cover no-repeat;
  overflow: hidden;
}
.hero-comyted h1 {
    font-size: 2.1rem;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #ffffff;
    /* Efecto de borde negro nítido */
    text-shadow: 
        1.5px 1.5px 0 #616161,
       -1.5px 1.5px 0 #616161,
        1.5px -1.5px 0 #616161,
       -1.5px -1.5px 0 #616161,
        0px 1.5px 0 #616161,
        0px -1.5px 0 #616161,
        1.5px 0px 0 #616161,
       -1.5px 0px 0 #616161;
}

/* Hero - Producto HERMES */
    .hero-hermes {
      position: relative;
      padding: 160px 0 96px;
      text-align: center;
      color: #fff;
      background: url("../img/hermes-hero.png") center/cover no-repeat;
      overflow: hidden;
    }

    .hero-hermes::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 0;
    }

    .hero-hermes::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(1200px 400px at 20% 0%, rgba(236,181,24,0.06), transparent 60%);
      z-index: 1;
      pointer-events: none;
    }


/* Hero - Proyecto GEXIWEB */
    .hero-gexiweb {
      position: relative;
      padding: 160px 0 96px;
      text-align: center;
      color: #fff;
      background: url("../img/hermes-hero.png") center/cover no-repeat;
      overflow: hidden;
    }

    .hero-gexiweb h1 {
        font-size: 2.1rem;
        line-height: 1.1;
        margin: 0 0 16px;
        color: #ffffff;
        /* Efecto de borde negro nítido */
        text-shadow: 
            1.5px 1.5px 0 #616161,
          -1.5px 1.5px 0 #616161,
            1.5px -1.5px 0 #616161,
          -1.5px -1.5px 0 #616161,
            0px 1.5px 0 #616161,
            0px -1.5px 0 #616161,
            1.5px 0px 0 #616161,
          -1.5px 0px 0 #616161;
      }

      .hero-gexiweb::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 0;
      }

      .hero-gexiweb::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 400px at 20% 0%, rgba(236,181,24,0.06), transparent 60%);
        z-index: 1;
        pointer-events: none;
      }

.hero::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.55); 
    z-index: 0; 
  }

.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 400px at 20% 0%, rgba(236,181,24,0.06), transparent 60%); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
/*.hero h1 { font-size: 2.6rem; line-height: 1.2; margin: 0 0 16px; color: #fff; }*/
.hero-argos h1 {
    font-size: 2.1rem;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #ffffff;
    /* Efecto de borde negro nítido */
    text-shadow: 
        1.5px 1.5px 0 #616161,
       -1.5px 1.5px 0 #616161,
        1.5px -1.5px 0 #616161,
       -1.5px -1.5px 0 #616161,
        0px 1.5px 0 #616161,
        0px -1.5px 0 #616161,
        1.5px 0px 0 #616161,
       -1.5px 0px 0 #616161;
}
.hero p { max-width: 800px; margin: 0 auto 28px; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* Botones base */
.btn,
.btn-outline,
.btn-small {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn {
  background: var(--naranja);
  color: #1f2937;
  padding: 12px 20px;
  box-shadow: 0 6px 16px rgba(234,175,15,0.25);
}
.btn:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 10px 18px;
}
.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }
.btn-small {
  background: transparent;
  color: var(--marron);
  border: 1.5px solid var(--marron);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
}
.btn-small:hover { background: var(--marron); color: #fff; transform: translateY(-1px); }

/* Secciones */
.section { padding: 80px 0; }
.section-alt { padding: 80px 0; background: var(--bg-alt); }
.section-title { text-align: center; margin: 0 0 40px; }
.section-title h2 { font-size: 2.2rem; margin: 0 0 8px; color: var(--marron); }
.section-title p { color: var(--text-muted); max-width: 720px; margin: 0 auto; }

/* Quiénes somos */
.who-section { 
  padding: 64px 0; 
}

.who-container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 20px; 
}


.who-grid-top {
  display: grid;
  grid-template-columns: 1fr 1.25fr; /* 🔥 texto +25% más ancho */
  gap: 28px;
  align-items: center;
}



.who-main h3 { 
  color: var(--marron); 
  margin: 0 0 12px; 
}
.who-main p { 
  color: var(--text); 
  margin: 0 0 8px; 
  text-align: left; /*Para que el texto salga alineado a la izquierda */
}

.who-image { 
  display: flex; 
  align-items: 
  flex-start; 
  justify-content: center; 
}

.who-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow);
}
.who-subgrid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.who-box { background: transparent; border: none; box-shadow: none; padding: 20px; }
.who-box h4 { margin: 0 0 10px; color: var(--marron); }
.who-box ul { margin: 0; padding-left: 18px; color: var(--text); }
.who-box li { margin: 8px 0; color: var(--text-muted); }

/* Botones en Quiénes somos */
.who-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
}
.who-actions .btn,
.who-actions .btn-outline {
  background: #fff;
  color: var(--marron);
  border: 2px solid var(--marron);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .18s, color .18s, transform .12s;
}
.who-actions .btn:hover,
.who-actions .btn-outline:hover { background: var(--marron); color: #fff; transform: translateY(-2px); }

/* Subnav servicios */
.services-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px;
}
.subnav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--naranja);
  color: var(--text);
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.subnav-link:hover {
  border-color: var(--naranja);
  color: white;
  background: var(--marron);
}
.subnav-link.active {
  border-color: var(--marron);
  color: var(--marron);
  background: #fff3d6;
}

/* Grids de tarjetas */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card,
.project-card,
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 24px var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover,
.project-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.09);
  border-color: #e1e3e8;
}
.service-card h3,
.project-card h3,
.product-card h3 {
  margin: 0 0 8px;
  color: var(--marron);
  font-size: 1.25rem;
}
.service-card p,
.project-card p,
.product-card p { color: var(--text); margin: 0 0 12px; }
.service-card ul,
.project-card ul { margin: 8px 0 0; padding: 0; list-style: none; }
.service-card li,
.project-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  margin: 6px 0;
}
.service-card li::before,
.project-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--naranja);
  font-weight: 700;
}

/* --- Balanceo de tarjetas en Proyectos I+D+i --- */

/* Asegura que todas las columnas estiran los artículos a la misma altura */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Cada tarjeta se comporta como una columna flexible */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Contenedor de la imagen al fondo de la tarjeta */
.project-media {
  margin-top: auto;              /* empuja la imagen al final de la tarjeta */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;                 /* altura fija para todas las imágenes */
}

/* Imagenes de proyectos: tamaño unificado y 25% más pequeñas aprox. */
.project-media .project-image {
  max-height: 100%;
  width: 75%;                    /* reducción de tamaño respecto a ocupar todo el ancho */
  object-fit: contain;
}

/* Solo afecta a las imágenes de la sección Proyectos I+D+i */
#innovacion .project-media .project-image {
  max-height: 100%;
  width: 75%;
  object-fit: contain;
}

.image-placeholder {
  background: #fff;
  border: 1px dashed var(--border);
  color: var(--marron);
  border-radius: 10px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Contadores */
.counters {
  position: relative;
  background: url("img/puente-gentalia.jpg") center/cover no-repeat;
  overflow: hidden;
  padding: 64px 0;
}

.counters::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  z-index: 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.counter-item {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1; /* asegura que se pinten encima del overlay */
}

.counter-number {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #000; /* negro sólido para los números */
  line-height: 1;
}

.counter-text {
  font-weight: 600;
  color: var(--marron); /* marrón corporativo para el texto */
  opacity: 1; /* sin transparencia */
  font-size: 1.1rem; /* ✅ aumenta el tamaño del texto */
}

.counter-number.counter-percent::after {
  content: "%";
  margin-left: 4px;
  font-weight: 800;
  color: #000; /* negro sólido */
}

.counter-number.plus::before {
  content: "+";
  margin-right: 2px;
  font-weight: 800;
  color: #000; /* negro sólido */
}

/* Responsivo */
@media (max-width: 560px) {
  .counter-number { font-size: 1.9rem; }
  .counter-item { padding: 10px; }
}


/* Contacto */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info h3 { color: var(--marron); margin: 0 0 12px; }
.contact-item { display: flex; gap: 10px; margin: 10px 0; align-items: flex-start; }
.contact-icon { color: var(--naranja); }
.contact-text p { margin: 0; color: var(--text-muted); }
.map-container { margin-top: 16px; }
.map-iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px var(--shadow);
}

/* Footer */
footer { background: var(--marron); color: #fff; padding: 40px 0 18px; }
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.footer-logo img { height: 40px; margin-bottom: 10px; }
.footer-logo p { color: rgba(255,255,255,0.85); }
.footer-links h4,
.footer-contact h4 { margin: 0 0 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact p { margin: 6px 0; color: rgba(255,255,255,0.85); }
.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 12px;
}

/* Animaciones aparición */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .content-grid,
  .work-content,
  .contact-container { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; background-position: center top; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .mobile-menu { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 0 6px; }
  .main-nav a { padding: 10px 6px; }
  .section,
  .section-alt { padding: 64px 0; }
  .services-subnav { justify-content: flex-start; }
  .who-subgrid { grid-template-columns: 1fr; }
  .who-section { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.careers-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 16px var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* asegura misma altura */
}

.careers-block h3 {
  color: var(--marron);
  margin: 0 0 8px; /* solo una línea de separación debajo del título */
}

.careers-block p {
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.6;
}

.careers-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.careers-block li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  color: var(--text-muted);
}

.careers-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--naranja);
  font-weight: 700;
}

/* Texto del mail al fondo */
.careers-mail {
  margin-top: auto; /* empuja el mail al fondo del bloque */
  font-weight: 600;
  color: var(--marron);
}

.careers-mail a {
  color: var(--marron);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
}

/* Contenedor centrado */
.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fila superior: logo + datos */
.contact-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

/* Logo centrado verticalmente respecto a los datos */
.contact-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-logo img {
  max-width: 220px;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

/* Datos de contacto */
.contact-info h3 {
  color: var(--marron);
  margin: 0 0 16px;
}

.contact-item {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.2rem;
  color: var(--naranja);
}

.contact-text p {
  margin: 0;
  color: var(--text-muted);
}

.contact-text a {
  color: var(--marron);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .image-grecos-large .product-image {
    width: 90% !important;
    max-width: 90% !important;
  }
}

@media (max-width: 768px) {
  .product-detail-box {
    max-width: 100% !important;
    padding: 20px !important;
  }
}


/* Mapa ocupa todo el ancho del wrapper */
.contact-map {
  margin-top: 12px;
}

.map-iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-logo img {
    max-width: 180px;
    margin: 0 auto;
  }

  .map-iframe {
    height: 220px;
  }
}

/* Bloque mapa */
.contact-map {
  margin-top: 12px;
  display: flex;
  justify-content: center; /* centra el mapa */
}

.map-iframe {
  width: 75%;   /* ocupa el 75% del ancho total */
  height: 280px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px var(--shadow);
}

.footer-contact a.footer-mail {
  color: #fff;              /* blanco sólido */
  text-decoration: none;    /* sin subrayado */
  font-weight: 600;
}

.footer-contact a.footer-mail:hover {
  text-decoration: underline; /* subrayado al pasar el ratón */
}

.footer-links-legal {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.footer-links-legal li {
  margin: 6px 0;
}

.footer-link {
  color: #fff; /* blanco sobre fondo marrón */
  text-decoration: underline;
  cursor: pointer;
}

/* Alineación vertical de los 3 bloques del footer */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* asegura que los títulos queden alineados arriba */
}

/* Corrección del bloque GENTALIA */
.footer-logo p {
  margin: 0;              /* elimina márgenes por defecto */
  padding: 0;
  line-height: 1.3;
}

/* El primer párrafo (GENTALIA S.L.) debe estar pegado al siguiente */
.footer-logo p:first-of-type {
  margin-bottom: 4px;     /* espacio mínimo entre líneas */
}

/* Ajuste de la lista legal */
.footer-links-legal {
  margin-top: 10px;       /* espacio justo debajo del texto */
  padding: 0;
  list-style: none;
}

.footer-links-legal li {
  margin: 4px 0;
}

/* Contenedor uniforme para todas las imágenes */
.service-media {
  width: 100%;
  height: 160px; /* ✅ AJUSTA este valor al alto exacto de Consultoría */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px; /* separa la imagen del texto */
  overflow: hidden;
}

/* Imagen uniforme para todos los servicios */
.service-image {
  width: 60%;        /* ✅ mismo ancho que Consultoría */
  height: 100%;      /* ✅ misma altura para todas */
  object-fit: cover; /* ✅ recorte proporcional */
  border: 1px solid #f28c28; /* ✅ borde naranja fino */
  border-radius: 12px;       /* ✅ esquinas redondeadas */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* ✅ sombra suave */
  display: block;
}

.marca-gentalia {
  color: var(--marron);
  font-weight: bold; /* opcional */
}

/* Solución: Sobrescribe el ancho máximo para los modales de PDF */

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: white;
  padding: 20px;
  box-sizing: border-box;
}

/* Contenedor del modal */
.modal-content {
  background: white;
  color: #333;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  width: 95%;              /* casi todo el ancho de la pantalla */
  max-width: 900px;       /* ancho máximo amplio */
  height: 90vh;            /* casi toda la altura */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Título y botón cerrar */
.modal-content h2 {
  margin-top: 0;
  color: var(--marron);
}

.close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.pdf-modal {
    max-width: 90%; /* Permite que ocupe el 90% del ancho de la ventana */
    width: 90%; /* Asegura que se aplique el ancho */
    /* También puedes usar un ancho fijo más grande si lo prefieres, e.g., max-width: 1000px; */

    /* Asegura que el contenedor tenga suficiente altura para que el iframe crezca */
    height: 90vh; /* Ocupa el 90% de la altura de la ventana visible */
    display: flex;
    flex-direction: column;
}

/* PDF a todo lo ancho */
.pdf-frame {
    width: 100%;
    flex-grow: 1; /* Esto es correcto si el padre tiene display: flex y flex-direction: column */
    border: none;
    margin-top: 10px;
    border-radius: 6px;
    background-color: white; /* Asegura que si hay márgenes internos, sean blancos */
}

.product-image {
  width: 25%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.who-main {
  text-align: center;
  margin-bottom: 40px;
}

.who-main h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--marron);
  margin-bottom: 10px;
}

.who-main h4 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gris-oscuro);
}

.titulo-producto {
  color: var(--marron);
  font-weight: 700;
}

.image-float-left {
  float: left;
  margin: 0 25px 15px 0;
  max-width: 220px;
}

.image-float-left img {
  width: 100%;
  height: auto;
  display: block;
}

/* Media Query para móviles (normalmente hasta 768px) */
@media (max-width: 768px) {
  .image-float-left.image-large {
    float: none;          /* Elimina el desplazamiento lateral */
    display: block;       /* Fuerza a que ocupe su propia línea */
    margin: 0 auto 20px;  /* La centra horizontalmente y añade espacio abajo */
    max-width: 100%;      /* Permite que la imagen crezca en móvil si es necesario */
    text-align: center;   /* Centra la imagen si es más pequeña que el ancho móvil */
  }

  .image-float-left.image-large img {
    margin: 0 auto;       /* Asegura que la imagen interna esté centrada */
  }
}

@media (max-width: 768px) {
  .product-detail .project-media .product-image {
    width: 60% !important;
    max-width: 300px;
    margin: 0 auto;
  }
}


/* Nueva clase para esquemas más grandes */
.image-large {
  max-width: 400px !important; /* El !important asegura que ignore el 220px previo */
}

.image-grecos-large {
  width: 70%;
  max-width: none !important;
  margin: 0 auto;      /* 🔥 ESTO LA CENTRA */
  display: block;      /* Asegura que el margin:auto funcione */
  text-align: center;  /* Por si la imagen es inline */
}

.image-grecos-large .product-image {
  width: 100%;
  max-width: 75% !important;
  height: auto;
  display: block;      /* Evita espacios raros */
  margin: 0 auto;      /* Centrado adicional por seguridad */
}

/* Contenedor principal */
.flex-container {
  display: flex;
  align-items: center; /* Centra verticalmente si el texto es más corto que la imagen */
  gap: 40px;           /* Espacio entre imagen y texto */
  flex-wrap: wrap;     /* Para que en móviles se apile uno bajo otro */
}

/* Columna de la imagen */
.image-hermes-large {
  flex: 1;             /* Toma el 50% del ancho */
  min-width: 300px;    /* Evita que se vea muy pequeña en pantallas medianas */
}

.image-hermes-large .product-image {
  width: 80%;
  height: 80%;
  object-fit: cover;   /* Crucial: Hace que la imagen cubra el área sin deformarse */
  display: block;
}

/* Columna del texto */
.product-list {
  flex: 1;             /* Toma el otro 50% */
  min-width: 300px;
  list-style: disc;    /* Recupera los puntos de la lista */
  padding-left: 20px;
}

.image-large {
  max-width: 400px !important; /* El !important asegura que ignore el 220px previo */
}

/* Nueva clase para el producto ARGOS */
.image-argos-large {
  width: 70%;
  max-width: none !important;
  margin: 0 auto;      /* 🔥 ESTO LA CENTRA */
  display: block;      /* Asegura que el margin:auto funcione */
  text-align: center;  /* Por si la imagen es inline */
}

.image-argos-large .product-image {
  width: 100%;
  max-width: 100% !important;
  height: auto;
  display: block;      /* Evita espacios raros */
  margin: 0 auto;      /* Centrado adicional por seguridad */

  /* --- NUEVAS PROPIEDADES --- */
  border: 1px solid #FF8C00;          /* Borde fino naranja (puedes usar 'orange' o un código hex) */
  border-radius: 10px;                  /* Bordes redondeados iguales a who-image */
  box-shadow: 0 8px 24px var(--shadow); /* Misma sombra que who-image */
}

.project-media.iimage-argos-large {
  margin-top: 1px !important;
}

.project-media.image-grecos-large {
  margin-top: 1px !important;
}

.image-argos-large .product-image {
  width: 50%;
  max-width: 100% !important;
  height: auto;
  display: block;      /* Evita espacios raros */
  margin: 0 auto;      /* Centrado adicional por seguridad */
}

.project-media.image-argos-large {
  margin-top: 1px !important;
}

.separador-producto {
  border: none;
  height: 2px;
  background-color: #8C2633; /* color corporativo ARGOS */
  margin: 60px 0;
  opacity: 0.8;
}

/* Contenedor principal con aspecto de "cuadrado" o recuadro */
.product-detail-box {
    background-color: #f9f9f9; /* Fondo ligero para resaltar */
    border: 1px solid #ddd;
    padding: 40px;
    margin: 20px 0;
    border-radius: 8px;
}

/* Rejilla de dos columnas */
.grid-dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 40px; /* Espacio entre columnas */
    align-items: start; /* Alinea el contenido arriba */
}

/* Ajustes de los títulos y listas dentro del cuadro */
.titulo-producto-box {
    color: var(--marron);
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--marron);
    display: inline-block;
    padding-bottom: 5px;
}

.grid-dos-columnas ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.grid-dos-columnas li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Responsivo: En móviles se pone en una sola columna */
@media (max-width: 768px) {
    .grid-dos-columnas {
        grid-template-columns: 1fr;
    }
}

.subtitulo-producto {
    font-size: 1.2rem;
    color: black; /* Un gris oscuro suave */
    max-width: 800px; /* Evita que el texto sea demasiado ancho para leerlo bien */
    margin: 10px auto 0; /* Lo centra horizontalmente */
    font-style: italic; /* Opcional: le da un toque distintivo */
    line-height: 1.4;
}

/* --- CONTENEDOR HOJA DE BLOC --- */
.product-detail-box {
  position: relative;
  background: #f7f7f7; /* gris claro tipo papel */
  padding: 35px 45px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  /*font-size: 1.2rem;  ligeramente más pequeño */
  line-height: 1.55;
  color: #333; /* 🔥 texto más oscuro para contraste */
  overflow: hidden;
}

/* --- LÍNEAS HORIZONTALES (efecto cuaderno) --- */
.product-detail-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 22px,
    rgba(0,0,0,0.06) 23px
  );
  pointer-events: none;
}

/* --- BORDE SUPERIOR PERFORADO (efecto bloc arrancado) --- */
.product-detail-box::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 12px;

  background: radial-gradient(circle at 10px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 40px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 70px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 100px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 130px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 160px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 190px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 220px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 250px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 280px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 310px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 340px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 370px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 400px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 430px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 460px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 490px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 520px 6px, #f7f7f7 6px, transparent 7px),
              radial-gradient(circle at 550px 6px, #f7f7f7 6px, transparent 7px);
  background-size: 100% 12px;
  background-repeat: no-repeat;
}

/* Hace clicable toda la tarjeta de Proyectos I+D+i */ 
.project-link { 
  text-decoration: none; 
  color: inherit; 
  display: block; 
} 

.project-link:hover { 
  text-decoration: none; 
  color: inherit; 
}

/* --- Corrección móvil para sección Quiénes somos --- */
@media (max-width: 768px) {

  /* El grid pasa a una sola columna */
  .who-grid-top {
    grid-template-columns: 1fr !important;
  }

  /* Forzamos que la imagen vaya DEBAJO del título */
  .who-image {
    order: 2; /* la imagen baja */
  }

  .who-main {
    order: 1; /* el texto principal sube */
  }

  /* Asegura que la imagen ocupe todo el ancho disponible */
  .who-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* --- NUEVA REJILLA BALANCEADA --- */
.who-grid-balanced {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch; /* 🔥 fuerza que ambos bloques tengan misma altura */
  margin-top: 28px;
}

/* Imagen con altura completa */
.who-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.who-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow);
}

/* Texto descriptivo */
.who-description {
  display: flex;
  align-items: center;
}

.who-description p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* Título centrado arriba */
.who-main {
  text-align: center;
  margin-bottom: 20px;
}

.who-main h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--marron);
  margin-bottom: 10px;
}

.who-main h4 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
  .who-grid-balanced {
    grid-template-columns: 1fr;
  }

  .who-image img {
    height: auto;
    max-height: 320px;
  }

  .who-description {
    padding-top: 20px;
  }
}

/* --- Grid para COMyTED: texto + imagen --- */
.comyted-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}

/* Imagen ajustada */
.comyted-imagen img {
  width: 100%;
  max-width: 483px; /* evita que se haga demasiado grande */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Responsive: en móvil la imagen pasa arriba */
@media (max-width: 768px) {
  .comyted-grid {
    grid-template-columns: 1fr;
  }

  .comyted-imagen {
    order: -1; /* 🔥 coloca la imagen encima del texto */
    text-align: center;
  }

  .comyted-imagen img {
    max-width: 80%;
  }
}

.product-detail .project-media {
  margin-top: 40px;  /* 🔥 ELIMINA el auto */
  height: auto;      /* 🔥 deja que el flujo calcule */
}

.product-detail .geras-media {
  margin-top: 40px;  /* 🔥 ELIMINA el auto */
  max-height: max-content;      /* 🔥 deja que el flujo calcule */
}

.product-detail-box .titulo-producto {
  text-align: center;
  display: block;
  margin-bottom: 25px;
}

.product-detail-box ul li {
  line-height: 1.7; /* antes ~1.4 */
  margin-bottom: 14px; /* más separación entre elementos */
}

.product-detail-box p {
  line-height: 1.7;
}

.titulo-producto {
  font-size: 1.6rem;   /* mismo tamaño que otros h3 destacados */
  font-weight: 700;
  color: var(--marron);
  text-align: center;  /* como pediste antes */
  margin-bottom: 25px;
}

.grecos-sectores strong,
.product-detail-box strong {
  color: var(--marron);
  font-size: 1.1rem
}

.grecos-img {
  width: 30%;      /* tu tamaño actual */
  transform: scale(1.25); /* 🔥 aumenta un 25% */
  transform-origin: center;
}

/*limpiar el flujo antes de cada Título Importante */ 
.clearfix {
  clear: both;
}

/* --- CONTENEDOR GENERAL --- */
.hermes-product-detail {
  padding: 40px 0;
}

.hermes-titulo-producto {
  margin-bottom: 15px;
}

/* --- GRID DE CARACTERÍSTICAS --- */
.hermes-security-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* --- CAJAS INDIVIDUALES --- */
.hermes-feature-box {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- TITULOS DE CADA BLOQUE --- */
.hermes-feature-box h4 {
  color: var(--marron);
  margin-bottom: 10px;
}

/* --- CONTENEDOR GENERAL --- */
.hermes-product-detail {
  padding: 40px 0;
}

.hermes-titulo-producto {
  margin-bottom: 15px;
}

/* --- LISTA DE ALARMAS --- */
.hermes-alarm-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

/* --- ELEMENTOS INDIVIDUALES --- */
.hermes-alarm-item {
  background: #ffffff;
  padding: 15px;
  border-left: 4px solid brown;
}

/* --- LISTA DE ALARMAS --- */
/* --- LISTA DE ALARMAS --- */
.grecos-alarm-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
  /* Mantenemos el estilo de lista romana */
  list-style: upper-roman inside; 
  padding: 0;
}

/* --- ESTILO ESPECÍFICO PARA LOS NÚMEROS --- */
.grecos-alarm-item::marker {
  color: #8C2633;
  font-weight: bold;
}

/* --- ELEMENTOS INDIVIDUALES --- */
.grecos-alarm-item {
  background: #ffffff;
  padding: 15px;
  border-left: 4px solid brown;
}


/* --- ESTILOS ESPECÍFICOS HERMES (Corregidos) --- */

/* 1. Contenedor general de la sección (fondo, padding) */
.hermes-product-detail {
  padding: 40px 0;
  /* background-color: #f9f9f9;  <- Descomenta si quieres un fondo gris suave para diferenciarla */
}

/* 2. Contenedor principal: ESTO ES LO QUE FALTABA PARA CENTRARLO */
.hermes-container {
  max-width: 1200px;      /* Mismo ancho que el resto de la web */
  margin: 0 auto;         /* Centra el bloque horizontalmente */
  padding: 0 24px;        /* Mismo padding lateral que .container */
  width: 100%;
}

.hermes-titulo-producto {
  margin-bottom: 15px;
  text-align: center;     /* Opcional: centra el título como en otras secciones */
}

/* 3. Grid de las cajas */
.hermes-security-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center; /* Asegura que las cajas queden centradas si sobran espacios */
}

/* 4. Diseño de cada caja */
.hermes-feature-box {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: left; /* O center si prefieres el texto centrado */
}

/* Títulos de las cajas */
.hermes-feature-box h4 {
  color: var(--marron);
  margin-bottom: 10px;
  font-weight: 700;
}

html {
  scroll-behavior: smooth;
}

/* Convertir los punto del CheckList en CheckMark */
.checklist-checkmark {
  list-style: none;
  padding-left: 0;
}

.checklist-checkmark li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.checklist-checkmark li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--naranja);
  font-weight: bold;
}

.grecos-core-img {
  width: 80% !important;       /* 🔥 fuerza el ancho reducido */
  max-width: 420px !important; /* 🔧 opcional: límite máximo */
  height: auto !important;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .product-detail .project-media .product-image {
    width: 60% !important;   /* antes 25% */
    max-width: 300px;        /* límite razonable */
    margin: 0 auto;
  }
}

/* --- Ajustes responsive para imágenes y bloques en proyecto-grecos.html --- */

@media (max-width: 768px) {

  /* 1. Imagen Por qué GRECOS */
  .product-detail .project-media .product-image {
    width: 60% !important;
    max-width: 300px;
    margin: 0 auto;
  }

  /* 2. Imagen esquema-general.png */
  .grecos-img {
    width: 70% !important;
    max-width: 360px;
    margin: 0 auto;
  }

  /* 3. Imagen grecos-logo-idi.png */
  .image-grecos-large .product-image {
    width: 90% !important;
    max-width: 90% !important;
  }

  /* 4. Bloque Soluciones Verticales más ancho */
  .product-detail-box {
    max-width: 100% !important;
    padding: 20px !important;
  }
}

/* === Fases de Implantación GRECOS === */

.grecos-fases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.grecos-fase-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px 20px 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grecos-fase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* Título de la tarjeta */
.grecos-fase-card h4 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--marron);
}

/* Texto */
.grecos-fase-card p {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #444;
  margin: 0;
}

/* Número de fase */
.fase-numero {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  background: var(--naranja);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forzar 3 columnas en escritorio para las fases GRECOS */
@media (min-width: 1100px) {
  .grecos-fases-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* En tablets: 2 columnas */
@media (max-width: 1099px) and (min-width: 600px) {
  .grecos-fases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* En móviles: 1 columna */
@media (max-width: 599px) {
  .grecos-fases-grid {
    grid-template-columns: 1fr;
  }
}


/* Enlaces de texto corporativos (solo en contenido, sin afectar a botones) */
.product-detail a:not(.btn):not(.btn-outline):not(.btn-small):not(.product-link):not(.subnav-link):not(.footer-link):not(.footer-mail),
#plataforma-verticales a:not(.btn):not(.btn-outline):not(.btn-small):not(.product-link):not(.subnav-link):not(.footer-link):not(.footer-mail) {
  color: var(--marron); /* Texto marrón */
  text-decoration: underline;
  text-decoration-color: var(--naranja); /* Subrayado naranja */
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Enlace visitado → sigue siendo marrón */
.product-detail a:not(.btn):not(.btn-outline):not(.btn-small):not(.product-link):not(.subnav-link):not(.footer-link):not(.footer-mail):visited,
#plataforma-verticales a:not(.btn):not(.btn-outline):not(.btn-small):not(.product-link):not(.subnav-link):not(.footer-link):not(.footer-mail):visited {
  color: var(--marron);
  text-decoration-color: var(--naranja);
}

/* Hover → opcional: naranja */
.product-detail a:not(.btn):not(.btn-outline):not(.btn-small):not(.product-link):not(.subnav-link):not(.footer-link):not(.footer-mail):hover,
#plataforma-verticales a:not(.btn):not(.btn-outline):not(.btn-small):not(.product-link):not(.subnav-link):not(.footer-link):not(.footer-mail):hover {
  color: var(--naranja);
  text-decoration-color: var(--naranja);
}

/* Imagen específica de las fases de implantación */
.image-fases-large {
  padding-top: 32px;        /* separa la imagen del título */
  margin-bottom: 50px;     /* opcional: da aire por debajo */
  text-align: center;      /* asegura centrado */
}

.image-fases-large .product-image {
  width: 75%;              /* igual que las otras imágenes grandes */
  max-width: 700px;        /* límite para pantallas grandes */
  margin: 0 auto;          /* centrado */
  display: block;
}

.subtitulo-comercial-secciones {
  max-width: none;
  margin-bottom: 2rem;
  text-align:center;
}

