/* ==========================================================================
   Ajustes propios de Ingeniería Hidráulica sobre el sistema del sitio base.
   Va DESPUÉS de todas las hojas del original, así puede corregirlas.
   Es el único lugar donde escribimos CSS nuestro: si algo se toca, se toca
   acá y no adentro de las hojas heredadas, que se pisan si hay que reclonar.
   ========================================================================== */

/* --- Tabla de especificaciones de las fichas -----------------------------
   Los modelos son códigos largos ("4WRPE 6 E32-2X/G24K31/F1V") y en un
   celular la tabla se iba a 402px dentro de una pantalla de 375: el valor
   quedaba cortado y sin forma de scrollear. En pantalla chica se apilan
   etiqueta y valor. */
.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  table-layout: fixed;
}

.specs th {
  width: 42%;
  padding: 9px 14px 9px 0;
  text-align: left;
  color: #666;
  font-weight: 400;
  vertical-align: top;
}

.specs td {
  padding: 9px 0;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: break-word;
}

.specs tr + tr th,
.specs tr + tr td {
  border-top: 1px solid #eee;
}

@media (max-width: 600px) {
  .specs,
  .specs tbody,
  .specs tr,
  .specs th,
  .specs td {
    display: block;
    width: auto;
  }

  .specs tr {
    padding: 10px 0;
    border-top: 1px solid #eee;
  }

  .specs tr + tr th,
  .specs tr + tr td {
    border-top: 0;
  }

  .specs th {
    padding: 0 0 2px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .specs td {
    padding: 0;
  }
}

/* --- Cartel de foto pendiente --------------------------------------------
   Preferimos decir que falta la foto antes que poner una que no es del
   producto. Cuando Diego mande las fotos, esto desaparece solo. */
.sin-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: #f2f2f0;
  color: #8a8a86;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}

.sin-foto--grande {
  height: 260px;
}

/* --- Bajada del banner de cada página ----------------------------------- */
.page-heading .bajada {
  color: #fff;
  font-size: 18px;
  max-width: 760px;
  margin: 14px auto 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* --- Fila de familias / servicios --------------------------------------- */
.item-lista {
  margin-bottom: 34px;
}

.item-lista h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.item-lista p {
  margin: 0;
}

/* --- Ficha de producto --------------------------------------------------- */
.ficha-cat {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  color: #D9531E;
  margin-bottom: 6px;
}

.ficha-datos {
  color: #666;
}

.ficha-foto {
  width: 100%;
  height: auto;
}


/* --- Logo real (dorado, mas cuadrado que el placeholder) ------------------
   El original PMP era apaisado 3:1; el logo real es 2:1 y con los anchos
   heredados quedaba enorme. Se achican solo aca, no en style.css. */
.home-v2-logo {width: 140px;}
.menu-nav-sec.sticky_menu .home-v2-logo {width: 100px;}
@media only screen and (max-width: 991px) and (min-width: 768px) {
  .home-v2-logo {width: 110px;}
}

/* --- Marcas de agua de la portada en el negro de marca -------------------- */
.mission-section::before {color: #111827;}
.products-section::before {color: #111827;}

/* --- Pasos de "Brindamos soluciones de ingenieria" ------------------------ */
.pasos-solucion {margin: 20px 0 30px; padding: 0; list-style: none;}
.pasos-solucion li {position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 16px;}
.pasos-solucion li::before {content: "—"; position: absolute; left: 0; color: #D9531E;}

/* --- Footer: datos de contacto mas legibles ------------------------------- */
.footer-sec .footer-copyright p {font-size: 16px; line-height: 1.7;}


/* --- "Brindamos soluciones" con la foto de fondo, como el hero de oleo ---- */
.highlight-item {background-image: url('/img/ihp/soluciones-ingenieria.jpg'); background-size: cover; background-position: center; position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;}
.highlight-item .slider {width: 100%;}
.highlight-item::after {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; opacity: 0.65; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 1;}
.highlight-item .slider {position: relative; z-index: 2;}
.highlight-item .highlight-desc {text-align: center; padding: 0 30px;}
.highlight-item .pasos-solucion {display: inline-block; text-align: left;}


/* subtitulo subrayado y pasos al mismo tamano que el subtitulo */
.highlight-item .content-description h2 {text-decoration: underline; text-underline-offset: 8px;}
.highlight-item .pasos-solucion li {font-size: 24px; padding-left: 36px; margin-bottom: 16px;}

@media (max-width: 991px) {
  .highlight-item .pasos-solucion li {font-size: 18px; padding-left: 30px;}
}


/* --- Formulario "Compartinos tu idea" ------------------------------------ */
.form-idea label {display: block; margin: 22px 0 6px; font-weight: 600; color: #181818;}
.form-idea input[type=text], .form-idea input[type=tel], .form-idea input[type=email], .form-idea textarea {width: 100%; padding: 12px 14px; border: 1px solid #ccc; border-radius: 0; font-size: 16px; background: #fff;}
.form-idea input:focus, .form-idea textarea:focus {outline: none; border-color: #D9531E;}
.form-idea input[type=file] {display: block; margin-top: 4px; font-size: 15px;}
.form-idea button.readmore-btn {margin-top: 35px; border: none; cursor: pointer;}


/* titulos de las tarjetas de las tres lineas, centrados bajo la imagen */
.products-section .item-title-container {text-align: center;}
.products-section .service-v2-border {margin-left: auto; margin-right: auto;}


/* boton "Compartinos tu idea": naranja y un punto mas de letra */
.highlight-item .readmore-btn {background: #D9531E; border-color: #D9531E; font-size: 21px;}
.highlight-item a.readmore-btn:hover, .highlight-item a.readmore-btn:focus {background: #fff; border-color: #D9531E; color: #C04512 !important;}


/* icono de WhatsApp del header, mas grande */
.social-header li a {font-size: 32px;}


/* --- Menu desplegable de productos (categoria > subcategoria > producto) --- */
.acordeon-cat {border: 1px solid #ddd; border-bottom: none; background: #fff;}
.acordeon-cat:last-of-type {border-bottom: 1px solid #ddd; margin-bottom: 40px;}
.acordeon-cat summary {cursor: pointer; padding: 16px 20px; font-size: 19px; font-weight: 600; font-family: 'Oswald', sans-serif; list-style: none; position: relative;}
.acordeon-cat summary::-webkit-details-marker {display: none;}
.acordeon-cat summary::after {content: '+'; position: absolute; right: 20px; color: #D9531E; font-size: 22px; line-height: 1;}
.acordeon-cat[open] summary::after {content: '\2212';}
.acordeon-cat[open] summary {border-bottom: 1px solid #eee;}
.acordeon-cuerpo {padding: 6px 20px 14px;}
.acordeon-sub {margin: 12px 0 2px; font-weight: 700; color: #C04512; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;}
.acordeon-lista {list-style: none; margin: 0; padding: 0;}
.acordeon-lista li {border-bottom: 1px solid #f2f2f2;}
.acordeon-lista li:last-child {border-bottom: none;}
.acordeon-lista a {display: block; padding: 9px 2px; color: #181818; font-size: 16px;}
.acordeon-lista a:hover {color: #D9531E; text-decoration: none;}

/* --- Nuestros productos: tarjetas por categoría --------------------------
   Una grilla de tarjetas, una por categoría: nombre, subcategorías, la foto
   de un producto real (o el cartel de pendiente) y "Ver productos", que
   despliega las fichas ahí mismo. El despliegue lo anima el script que viene
   con la sección (generar.py): altura con ease-out fuerte, cierre más rápido
   que la apertura, y el + rota a ×. */
.cat-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.cat-tarjeta {
  background: #fff;
  border: 1px solid #ddd;
  align-self: start;
  transition: border-color 150ms ease;
}
.cat-tarjeta summary {
  list-style: none;
  cursor: pointer;
  display: block;
  position: relative;
  padding: 22px 18px 18px;
  text-align: center;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cat-tarjeta summary:active {transform: scale(0.98);}
.cat-tarjeta summary::-webkit-details-marker {display: none;}
.cat-mas::after {
  content: '+';
  position: absolute;
  top: 12px;
  right: 16px;
  color: #D9531E;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cat-tarjeta.abierta .cat-mas::after {transform: rotate(45deg);}
.cat-tarjeta summary h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  margin: 0 0 6px;
  color: #181818;
}
.cat-detalle {font-size: 13px; color: #777; margin: 0 0 14px; min-height: 20px;}
.cat-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-bottom: 16px;
}
.cat-foto img {max-height: 150px; max-width: 100%; width: auto;}
.cat-foto .sin-foto {height: 150px; width: 100%;}
.cat-ver {display: inline-block; color: #D9531E; font-weight: 700; font-size: 14px;}
.cat-ver::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .cat-tarjeta:hover {border-color: #D9531E;}
  .cat-tarjeta summary:hover .cat-ver::after {transform: translateX(4px);}
}
.cat-cuerpo {
  border-top: 1px solid #eee;
  padding: 4px 18px 14px;
  text-align: left;
  overflow: hidden;
}
.cat-cuerpo .acordeon-sub {margin: 12px 0 2px;}
@media (prefers-reduced-motion: reduce) {
  .cat-tarjeta, .cat-tarjeta summary, .cat-mas::after, .cat-ver::after {transition: none;}
}


/* --- Marcas de agua sin encimarse: quedan arriba y el titulo va debajo. ---
   Tamano en vw para que escale solo en cualquier pantalla, y el padding de
   la seccion reserva el alto de la marca + un respiro. */
.bg-text::before {font-size: 9vw; top: 30px; line-height: 1;}
.mission-section::before {top: 30px;}
.products-section::before {top: 30px;}
.mission-section.bg-text {padding-top: calc(45px + 9.5vw);}
.products-section.bg-text {padding-top: calc(45px + 9.5vw);}
@media (max-width: 767px) {
  .bg-text::before {font-size: 13vw;}
  .mission-section.bg-text {padding-top: calc(45px + 14vw);}
  .products-section.bg-text {padding-top: calc(45px + 14vw);}
}


/* --- "Lo que hacemos": divisiones con tarjetas e iconos ------------------- */
.servicios-division {display: inline-block; font-size: 26px; margin: 30px 0 20px; padding-bottom: 8px; border-bottom: 2px solid #D9531E;}
.servicio-tarjeta {border: 1px solid #ddd; background: #fff; text-align: center; padding: 28px 22px; height: 100%; min-height: 170px; display: flex; flex-direction: column; justify-content: center; transition: border-color 0.2s, box-shadow 0.2s;}
.servicio-tarjeta:hover {border-color: #D9531E; box-shadow: 0 6px 18px rgba(0,0,0,0.06);}
.servicio-tarjeta .icono-servicio {display: inline-block; margin-bottom: 12px;}
.servicio-tarjeta h3 {font-size: 18px; margin: 0 0 8px;}
.servicio-tarjeta p {margin: 0; font-size: 15px;}
/* todas las tarjetas de una fila miden lo mismo */
.servicios-grupo {display: flex; flex-wrap: wrap; justify-content: center;}
.servicios-grupo > div {float: none; margin-bottom: 26px; display: flex;}
.servicios-grupo > .col-md-12 {display: block;}
.servicio-tarjeta {width: 100%;}


/* tarjetas de categoria como ENLACE a su subpagina */
a.cat-tarjeta.cat-enlace {display: block; position: relative; padding: 22px 18px 18px; text-align: center; text-decoration: none; color: inherit;}
a.cat-tarjeta.cat-enlace h2 {font-family: 'Oswald', sans-serif; font-size: 20px; margin: 0 0 6px; color: #181818;}
@media (hover: hover) and (pointer: fine) {
  a.cat-tarjeta.cat-enlace:hover .cat-ver::after {transform: translateX(4px);}
}


/* --- Hero CLARO (foto de producto sobre fondo liso): texto izquierda -------
   en oscuro, imagen derecha entera. El velo oscuro no aplica aca. */
.pagehding-sec.hero-claro::after {content: none;}
.pagehding-sec.hero-claro .container {width: 100%;}
.hero-claro-fila {display: flex; align-items: center; gap: 30px;}
.hero-claro-texto {flex: 0 0 38%; max-width: 38%; text-align: left;}
.hero-claro-texto h1 {color: #111827; font-size: 52px; text-transform: uppercase; margin: 0 0 18px; font-family: 'Oswald', sans-serif;}
.hero-claro-texto .bajada {color: #374151; font-size: 19px; line-height: 1.6; margin: 0; text-align: left;}
.hero-claro-imagen {flex: 1; min-width: 0;}
.hero-claro-imagen img {width: 100%; height: calc(100svh - 200px); max-height: 680px; object-fit: contain; display: block;}
@media (max-width: 767px) {
  .pagehding-sec.hero-claro {height: auto; min-height: 0; padding-bottom: 30px;}
  .hero-claro-fila {flex-direction: column-reverse; gap: 10px;}
  .hero-claro-texto {flex: none; max-width: 100%;}
  .hero-claro-texto h1 {font-size: 34px;}
  .hero-claro-texto .bajada {font-size: 16px;}
  .hero-claro-imagen {width: 100%;}
  .hero-claro-imagen img {height: 58vw; max-height: none;}
}
