/* General */
html {
  scroll-behavior: auto !important;
}


body {
  font-family: "Ubuntu Regular", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.custom-container {
  max-width: 77vw;
  margin: 0 auto;
  padding: 1rem;
  padding-top: 0;
}

.section {
  width: 78vw;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  

}

@media (max-width: 768px) {
  .section {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: auto;
  }
}

/* ================================
 Fuentes Personalizadas
================================== */

/* Fuente: Ubuntu-Bold */
@font-face {
  font-family: "Ubuntu Bold";
  src: url("../fonts/Ubuntu-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "ITCAvantGardePro-Bold";
  src: url("../fonts/ITCAvantGardePro-Bold.otf") format("truetype");
  font-weight: bold;
  font-style: normal;
}


/* Fuente: Ubuntu-BoldItalic */
@font-face {
  font-family: "Ubuntu Bold Italic";
  src: url("../fonts/Ubuntu-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}

/* Fuente: Ubuntu-Italic */
@font-face {
  font-family: "Ubuntu Italic";
  src: url("../fonts/Ubuntu-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

/* Fuente: Ubuntu-Light */
@font-face {
  font-family: "Ubuntu Light";
  src: url("../fonts/Ubuntu-Light.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Fuente: Ubuntu-LightItalic */
@font-face {
  font-family: "Ubuntu Light Italic";
  src: url("../fonts/Ubuntu-LightItalic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

/* Fuente: Ubuntu-Medium */
@font-face {
  font-family: "Ubuntu Medium";
  src: url("../fonts/Ubuntu-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

/* Fuente: Ubuntu-MediumItalic */
@font-face {
  font-family: "Ubuntu Medium Italic";
  src: url("../fonts/Ubuntu-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}

/* Fuente: Ubuntu-Regular */
@font-face {
  font-family: "Ubuntu Regular";
  src: url("../fonts/Ubuntu-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.ubuntu-condensed-regular {
  font-family: "Ubuntu Condensed", sans-serif;
  font-weight: 400;
  font-style: normal;
}



/* ================================
 Navbar
================================== */

/* Estilo del navbar */
.navbar {
  background-color: white !important;
  position: fixed;
  /* Fijo en la parte superior */
  width: 100%;
  z-index: 1000;
  top: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease-in-out;
  /* Transición suave */
}

/* Estilo para el navbar cuando se vuelve sticky */
.navbar-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Estilo para el botón de menú hamburguesa (sandwich) */
.navbar-toggler {
  margin-right: 5px;
  /* Añadir margen derecho de 5px */
}

/* Estilo del logo */
.navbar .navbar-brand img {
  max-height: 50px;

  width: auto;

  margin-left: 13vw;
}

/* Estilo de los enlaces dentro del navbar */
.navbar .nav-link {
  font-family: "Ubuntu Bold" !important;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  color: #000;
}

/* Navbar centrado y con espaciado */
.navbar .navbar-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}



.social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;

}

.navbar .d-flex {
  gap: 8px;
  margin-right: 15vw;
}


/* NAVBAR mobile */
@media (max-width: 768px) {
  .navbar .navbar-brand img {
    margin-left: 1rem;
    max-height: 40px;
    /* Opcional: reducí un poco el logo en mobile */
  }

  .navbar .navbar-brand img {

    margin-left: 1rem;

  }
}


/* ======================
   Footer
====================== */
footer {
  background-color: #3c3c3b; /* o tu color preferido */
  color: #fff;
  padding: 1.5rem 0;
  padding-top: 3rem;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

footer .social-icon img {
  transition: transform 0.2s ease;
}

footer .social-icon img:hover {
  transform: scale(1.1);
}


/* ================================
 INICIO
================================== */
/* Por defecto: mostramos escritorio, ocultamos mobile */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Carrusel */
#inicio .carousel {
  max-height: 68vh;
  overflow: hidden;
}

#inicio .carousel img {
  object-fit: cover;
  width: 100%;
  height: 68vh;
}

#inicio h1 {
  font-family: "Ubuntu Bold", sans-serif;
  font-weight: bold;
  font-size: clamp(25px, 2.8vw, 80px);
  margin-top: 1rem;
  text-align: center;
}

#inicio p {
  font-family: "Ubuntu Bold";
  font-weight: bold;
  font-size: clamp(15px, 1.5vw, 50px);
  margin-top: 0.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

/*=====================
 Solo mobile: ocultamos escritorio, mostramos mobile
 ========================== */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* Carrusel mobile */
  #inicio-mobile {
    padding-top: var(--navbar-height, 0px);
    /* Dinámico, por si cambia el tamaño del navbar */
  }


  #inicio-mobile img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  #inicio-mobile h1 {
    font-family: "Ubuntu Bold", sans-serif;
    font-weight: bold;
    font-size: clamp(15px, 6vw, 30px);
  }

  #inicio-mobile p {
    font-family: "Ubuntu Bold";
    font-weight: bold;
    font-size: clamp(10px, 3vw, 20px);
  }
}





/*================================
Sección PRODUCTOS
==================================*/

.productos-bg {
  background-color: #f5f5f5;
  padding-top: 5px;
  padding-bottom: 60px;
  margin-bottom: 0;

}

/* Títulos y subtítulos */
#productos h2,
.custom-title-prod {
  font-family: "Ubuntu Bold", sans-serif;
  font-weight: bold;
  font-size: clamp(25px, 2.5vw, 50px);
  margin-top: clamp(20px, 1.5vh, 50px);
  text-align: center;
  overflow-wrap: break-word;
}

#productos p,
.custom-subtitle-prod {
  font-family: "Ubuntu Bold";
  font-weight: bold;
  font-size: clamp(15px, 1.4vw, 25px);
  margin-top: clamp(10px, 1.2vw, 50px);
  margin-bottom: 1rem;
  text-align: center;
}

/* Contenedor de tarjetas */
.product-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1.5rem;
}

.product-card-link {
  display: flex;
  flex: 1 1 calc(20% - 10px);
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.product-card {
  width: 100%;
  max-width: 281px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  box-shadow: none;
}

.card-img-top {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-width: 281px;
  max-height: 378px;
}


/* Cuerpo */
.card-body {
  text-align: center;
  padding: 0px;

}

.card-title-prod {
  font-family: "Ubuntu Bold" !important;
  font-weight: bold;
  font-size: clamp(13px, 1.2vw, 20px) !important;
  overflow-wrap: break-word;
  margin-top: 1rem;
  margin-bottom: 0px;
}

.card-text {
  font-family: "Ubuntu Light" !important;
  font-size: clamp(5px, 0.7vw, 15px) !important;
  color: #555;
  overflow-wrap: break-word;
  max-width: 265px;
  line-height: 1.1;
  margin-bottom: 5px !important;
  text-align: center !important;
  margin-top: 0.3rem !important;
  letter-spacing: 0.07em !important;
}


.card-text-pvc {
  font-family: "Ubuntu Light" !important;
  font-size: clamp(5px, 0.7vw, 15px) !important;
  color: #555;
  overflow-wrap: break-word;
  max-width: 265px;
  line-height: 1.3;
  margin-bottom: 5px !important;
  text-align: center !important;
  margin-top: 0.3rem !important;
  letter-spacing: 0.06em !important;
}

.card-text-al {
  font-family: "Ubuntu Light" !important;
  font-size: clamp(5px, 0.7vw, 15px) !important;
  color: #555;
  overflow-wrap: break-word;
  max-width: 265px;
  line-height: 1.3;
  margin-bottom: 5px !important;
  text-align: center !important;
  margin-top: 0.3rem !important;
  letter-spacing: 0.06em !important;
}


/* Párrafos finales */
.product-info {
  margin-top: 0.7rem;
  text-align: center;
}

.info-text {
  font-family: "Ubuntu Light", sans-serif;
  font-weight: normal;
  font-size: clamp(14px, 1.8vw, 50px);
  color: #333;

  margin-bottom: 15px;
  line-height: 0.4;
  overflow-wrap: break-word;
}

/* Mejora visual en pantallas de alta resolución */
@media (min-resolution: 144dpi) {
  .card-img-top {
    aspect-ratio: auto;
    height: auto;
  }

  .product-card {
    min-width: 240px;
  }


  .product-info {
    margin-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .info-text {
    font-size: 15px;
    /* Tamaño legible */
    line-height: 1.4;
    /* Buena separación entre líneas */
    margin-bottom: 1.2rem;
    /* Aire entre párrafos */
  }

  .card-text {
    font-family: "Ubuntu Light" !important;
    font-size: clamp(10px, 0.7vw, 15px) !important;
    color: #555;
    overflow-wrap: break-word;
    max-width: 265px;
    line-height: 1.1;
    margin-bottom: 5px !important;
    text-align: center !important;
    margin-top: 0.3rem !important;
    letter-spacing: 0.07em !important;
  }


  .card-text-pvc {
    font-family: "Ubuntu Light" !important;
    font-size: clamp(10px, 0.9vw, 15px) !important;
    color: #555;
    overflow-wrap: break-word;
    max-width: 265px;
    line-height: 1.3;
    margin-bottom: 5px !important;
    text-align: center !important;
    margin-top: 0.3rem !important;
    letter-spacing: 0.06em !important;
  }

  .card-text-al {
    font-family: "Ubuntu Light" !important;
    font-size: clamp(10px, 0.7vw, 15px) !important;
    color: #555;
    overflow-wrap: break-word;
    max-width: 265px;
    line-height: 1.3;
    margin-bottom: 5px !important;
    text-align: center !important;
    margin-top: 0.3rem !important;
    letter-spacing: 0.06em !important;
  }




}


@media (max-width: 1200px) {
  .product-card-link {
    flex: 1 1 calc(33.333% - 10px);
    /* 3 por fila */
  }
}

@media (max-width: 768px) {
  .product-card-link {
    flex: 1 1 calc(50% - 10px);
    /* 2 por fila */
  }
}

@media (max-width: 576px) {
  .product-card-link {
    flex: 1 1 100%;
    /* 1 por fila */
  }
}

/*================================
Sección EMPRESA
==================================*/
#empresa {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  height: auto;
}

.custom-title {
  font-family: "Ubuntu Bold", sans-serif;
  font-weight: bold;
  font-size: clamp(25px, 2.6vw, 50px);
  margin-bottom: clamp(20px, 2vh, 40px);
  text-align: center;
  overflow-wrap: break-word;
}

.custom-subtitle {
  font-family: "Ubuntu Bold";
  font-size: clamp(15px, 1.4vw, 25px);
  color: #0c0c0c;
  margin-bottom: clamp(20px, 2vh, 50px);
  overflow-wrap: break-word;
  max-width: 900px;
  margin-top: clamp(10px, 6vh, 50px);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

/* Contenedor de imágenes */
.empresa-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 2rem;
  align-items: center;
}

.empresa-left {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empresa-middle {
  flex: 1 1 38%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empresa-right {
  flex: 1 1 22%;
  display: flex;
  justify-content: center;
  align-items: center;
}




/* Imagen individual */
.empresa-img img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: cover;

}

/* Imagen izquierda más grande */
.empresa-left .empresa-img img {
  max-width: 380px;
  /* antes estaba en 280px aprox */
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* Imagen izquierda más grande */
.empresa-middle .empresa-img img {
  max-width: 20vw;
  /* antes estaba en 280px aprox */
  width: 100%;
  height: auto;
  object-fit: cover;
}


.empresa-right .empresa-img img {
  max-height: 70vh;
  height: auto;
  object-fit: contain;
}


/* ================================
   Responsive
================================ */
@media (max-width: 992px) {

  #empresa {
    padding-top: 1.5rem;
  }

  .empresa-left,
  .empresa-middle,
  .empresa-right {
    flex: 1 1 100%;
  }

  .empresa-img img {
    max-width: 90%;
    height: auto;
  }

  /* Corregimos solo la imagen del medio */
  .empresa-middle .empresa-img img {
    max-width: 90vw;
    object-fit: contain;
  }
}



/* ================================
 Sección CONTACTO (Diseño general)
================================ */
#contacto {
  background-color: #f5f5f5;
  padding-top: 10px;
  padding-bottom: 30px;
  min-height: 100vh;
}

#contacto .custom-title {
  font-family: "Ubuntu Bold", sans-serif;
  font-size: clamp(25px, 2.5vw, 50px);
  text-align: center;
  margin-bottom: clamp(10px, 2vh, 50px);
  color: #000;
  /* o el color que quieras usar */
}



.contacto-bg {
  background-color: #f5f5f5;
}

/* Contenedor flexible general */
.contact-flex-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ================================
   Redes Sociales (Columna izquierda)
================================ */
.contact-left-container {
  flex: 1 1 20%;
  min-width: 12vw;
  padding: 20px;
  margin-top: 6vh;
}

.social-title-line1 {
  font-family: "Ubuntu Bold", sans-serif;
  font-size: clamp(10px, 1.9vw, 50px);
  text-align: center;
  margin: 0;

  Line-height: 1.3;
}

.social-title-line2 {
  font-family: "Ubuntu Light";
  font-size: clamp(16px, 1.5vw, 50px);
  text-align: center;
  margin: 0;
  Line-height: 0.5;
}

.social-title-line3 {
  font-family: "Ubuntu Bold", sans-serif;
  font-size: clamp(14px, 1.4vw, 22px);
  text-align: center;
  margin: 0 0 20px 0;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.social-icon-contact img {
  width: clamp(30px, 10vw, 90px);
  height: clamp(30px, 10vh, 90px);
  object-fit: contain;
}

.social-icon-contac:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

.website-text {
  font-family: "Ubuntu Regular", sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  color: #000;
  text-align: center;
  margin-top: 20px;
}

/* ================================
 Formulario de Contacto
================================ */
.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 45%;
  min-width: 15vw;

}

.contact-form-container {
  width: 100%;
  padding: 20px;
  padding-top: 1rem;
  background-color: #fff;
  box-sizing: border-box;
  height: 88vh;
}

.contact-form-container h3,
label,
.contact-option {
  font-family: "Ubuntu Regular", sans-serif;
}

.contact-form-container h3 {
  font-family: "Ubuntu Bold", sans-serif;
  font-size: clamp(10px, 1vw, 20px);
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

.form-group {
  margin-bottom: 1vh;
}

label {
  font-size: clamp(10px, 0.9vw, 16px);
  margin-bottom: 5px;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.9vh;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: clamp(10px, 0.9vw, 14px);
}


.contact-methods {
  display: flex;
  gap: 15px;
  margin-top: 1vh;
}

.contact-option input {
  margin-right: 6px;
}

.contact-option {
  font-size: clamp(10px, 0.9vw, 15px);
}

.contact-form-container .btn {
  width: 100%;
  padding: 5px;
  background-color: #3eb2ae;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: clamp(10px, 0.9vw, 16px);
  cursor: pointer;
  margin-top: 4px !important;
}

.contact-form-container .btn:hover {
  background-color: #3eb2ae;
}

.privacy-wrapper {
  width: 100%;
  padding-top: 10px;
}

.privacy-text {
  font-size: clamp(10px, 1vw, 12px);
  color: #777;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
}

/* ================================
 Mapa
================================ */

.additional-container {
  flex: 1 1 30%;
  min-width: 15vw;
  width: 100%;
  position: relative;
  height: 88vh;
  box-sizing: border-box;
}

.additional-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.829);
  padding: 15px;
  text-align: center;
  box-sizing: border-box;


}

.overlay-text h3 {
  font-size: clamp(10px, 1vw, 20px);
  font-family: "Ubuntu Bold", sans-serif;
  color: #000;

}

/* ================================
 Media Query (Mobile < 768px)
================================ */
@media (max-width: 768px) {
  #contacto {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .contact-flex-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .contact-left-container,
  .form-wrapper,
  .additional-container {
    width: 100%;
    margin-bottom: 20px;
  }

  .social-title-line1,
  .social-title-line2,
  .social-title-line3 {
    font-size: 16px;
    line-height: 1.2;
  }

  .social-icon-contact img {
    width: 60px;
    height: 60px;
  }

  .contact-form-container {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
    height: auto;
    /* Corrige error anterior */
  }

  .contact-form-container h3 {
    font-size: 16px;
    margin-bottom: 20px;
  }

  label {
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    font-size: 14px;
    padding: 10px;
  }

  .contact-methods {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }

  .privacy-wrapper {
    padding-top: 20px;
  }

  .privacy-text {
    font-size: 12px;
    text-align: center;
  }

  .additional-container {
    height: auto;
  }

  .additional-container iframe {
    min-height: 300px;
  }

  .overlay-text h3 {
    font-size: 16px;
    padding: 10px;
  }
}

/* ================================
 Media Query (> 1360px)
================================ */

@media (min-width: 1361px) {

  #contacto .custom-title {
    font-family: "Ubuntu Bold", sans-serif;
    font-size: clamp(25px, 2.5vw, 50px);
    text-align: center;
    margin-bottom: clamp(15px, 3vh, 50px);
    margin-top: clamp(15px, 2.5vh, 50px);
    color: #000;
    /* o el color que quieras usar */
  }


  .form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 45%;
    min-width: 15vw;

  }

  .contact-form-container h3 {
    font-family: "Ubuntu Bold", sans-serif;
    font-size: clamp(15px, 2vw, 20px);
    text-align: center;
    margin-bottom: 20px;
  }

  .overlay-text h3 {
    font-size: clamp(15px, 2vw, 20px);
    font-family: "Ubuntu Bold", sans-serif;
    color: #000;

  }

  .contact-form-container {
    width: 100%;
    padding: 20px;
    padding-top: 1rem;
    background-color: #fff;
    box-sizing: border-box;
    height: 75vh;
  }


  .additional-container {
    flex: 1 1 30%;
    min-width: 15vw;
    width: 100%;
    position: relative;
    height: 75vh;
    box-sizing: border-box;
    padding-top: 1re;
  }

  .contact-form-container .btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 5px;
    background-color: #3eb2ae;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: clamp(10px, 1vw, 16px);
    cursor: pointer;
  }

  .form-group {
    margin-bottom: 1vh;
  }

  label {
    font-size: clamp(10px, 0.9vw, 16px);
    margin-bottom: 5px;
    display: block;
  }
}






/* ======================
PRODUCTOS - Desktop
======================== */



#inicio-productos .img-inicio-productos {
  width: 100%;
  max-width: 77vw;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

#inicio-productos.section {
  min-height: 30vh;
  padding-bottom: 1rem;
}


#fichas-tecnicas {
  padding-top: 2rem;
}


.hero-text {
  font-family: "Ubuntu Medium";
  font-size: clamp(12px, 1.3vw, 50px) !important;
  margin: 30px 0;
  color: #333;
  text-align: center;
  padding: 0 15px;
  line-height: 1.5;
}


/* Icono lupa */
.icon-lupa {
  position: absolute;
  top: 10px;
  right: 10px;
  color: black;
  padding: 10px;
  font-size: 20px;
  display: none;
  z-index: 10;
}

/* Card */
.card-tech {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 15px;
  margin: 0 auto;
}

.card-image {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
  background-color: #ededed;
  border-radius: 10%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10%;
  border: #c4c2c2 solid 1px;
}

.card-image:hover .icon-lupa {
  display: block;
}

.card-content {
  flex: 1;
  max-width: 200px;
}



.card-subtitle {

  font-size: clamp(10px, 1vw, 12px) !important;
  margin: 5px 0;
}

.card-icon {
  font-size: 0.9rem;
  color: #555;
}



.icon-ficha-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.icon-ficha-link:hover {
  text-decoration: underline;
}

.icon-ficha {
  width: 20px;
  height: 20px;
}

.text-ficha {
  font-size: 0.95rem;
  line-height: 1;
}


@media (max-width: 1919px) {

  .card-image {
    position: relative;
    width: 120px;
    height: 120px;
    overflow: hidden;
    background-color: #ededed;
    border-radius: 10%;
  }



}




/* ======= Modal Ficha Técnica Lightbox (CORREGIDO) ======= */

/* Backdrop más oscuro y difuminado */
.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

/* Contenedor del modal sin bordes, centrado y sin márgenes negros */
.modal-ficha .modal-dialog {
  max-width: 90vw;
  margin: 0 auto;
  pointer-events: none;
}

.modal-ficha .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: auto;
  
}

/* Cuerpo sin padding extra */
.modal-ficha .modal-body {
  padding: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Figura para semántica y centrado de la imagen */
.ficha-figure {
  margin: 0;
  position: relative;
  background: transparent;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* La imagen dentro del lightbox */
.ficha-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  /* eliminamos cualquier sombra negra extra */
  box-shadow: none;
}

/* Caption que contiene el botón de descarga */
.ficha-caption {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

/* Botón de descarga redondo */
.ficha-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  color: #065959;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.ficha-download:hover {
  transform: scale(1.1);
}

/* Botón de cerrar, siempre sobre la imagen */
.ficha-figure .modal-close-btn-ficha {
  position: absolute;
  top: 0.5rem;           
  right: 0.5rem;        
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  z-index: 10;           /* sobre la imagen */
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-ficha .modal-close-btn-ficha:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Ajustes para móvil */
@media (max-width: 576px) {
  .ficha-figure {
    padding: 0.5rem;
  }
  .ficha-download {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  .ficha-figure .modal-close-btn {
    top: 0.3rem;
    right: 0.3rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.4rem;
  }
}


/* ======================
Grid de cards
======================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  width: 100%;
}



.card-title {
  font-size: clamp(16px, 1.5vw, 20px) !important;
  margin-top: 0.6rem;
  font-family: 'Ubuntu Bold';
  font-weight: bold;
}

.card-subtitle {
  font-size: 1vw;
  margin: 5px 0;
}

.card-icon {
  font-size: 0.9rem;
  color: #555;
}

.card-description{

  font-size: clamp(10px, 1.2vw, 15px) !important;
  margin-bottom: 0.3rem;

}

/* Responsivo tablet */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsivo móvil */
@media (max-width: 768px) {

  .img-inicio-productos {
    width: 100%;
    height: auto;
    max-width: 100vw;
  }

  #inicio-productos {
    min-height: auto;
    padding-bottom: 1rem;

  }

  #inicio-productos.section {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .card-tech {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-content {
    max-width: 60%;
  }

  .card-image {
    width: 60%;
    height: auto;
    aspect-ratio: 1/1;
  }


}






/* ======================
       Pisos
======================== */

html.pisos-page {
  scroll-behavior: smooth !important;
}


.section-pisos {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.seccion-espaciada {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ======================
   Espaciado secciones - Página pisos
======================== */

.section-marcas-pisos {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  height: auto;
}

#inicio-pisos .img-inicio-pisos {
  width: 100%;
  max-width: 1320px;
  height: 260px;
  object-fit: cover;
}

.hero-text-pisos {
  margin-bottom: 30px;
  margin-top: 30px;
  font-size: 1rem;
  color: #333;
  text-align: center;
  padding: 0 15px;
}

.titulo-comercializados {
  font-family: "Ubuntu Bold", sans-serif;
  font-size: clamp(20px, 2vw, 40px);
  margin-top: 30px;
  margin-bottom: 2.5rem;
  text-align: left;
  margin-left: 1.5rem;
}

/* ======================
   Sección Marcas - Pisos
======================== */
/* Hover Marcas: escalado del enlace completo */
.marcas-grid a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.marcas-grid a:hover {
  transform: scale(1.05);
}

/* Brillo extra solo en la imagen */
.marcas-grid a:hover .marca-img {
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}


.marcas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.marca-img {
  min-width: 30px;
  min-height: 300px;
  width: 350px;
  height: 350px;
  object-fit: contain;
  border: none;
}

.marcas-text {
  font-family: "Ubuntu Bold";
  font-size: clamp(12px, 1.2vw, 50px) !important;
  margin: 30px 0;
  color: #333;
  text-align: center;
  padding: 0 15px;
  line-height: 1.3;
}

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

  .marca-img {
    width: 100%;
    height: auto;
    max-width: 280px;
    aspect-ratio: 1/1;
  }
}

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

/* ======================
   Contenedor pisos /piscinas etc
======================== */
#contenedor-pisos {
  padding: 40px 0;
}

.contenedor-pisos {
  width: 100%;
  max-width: 90%;
  min-height: 780px;
  border: 1px solid grey;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 768px) {
  .contenedor-pisos {
    min-height: auto;
    padding: 10px;
  }
}

/* ======================
   Elementos de la Sección Pisos
======================== */
.elementos-pisos {
  text-align: left;
}

.titulo-piscinas {
  margin-left: 0.5rem;
  margin-top: 3rem;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: 'ITCAvantGardePro-Bold';
  color: #333;
  text-align: left;
}

.linea-titulo {
  margin-left: 0.5rem;
  width: 100%;
  max-width: 790px;
  height: 2pt;
  background-color: grey;
  margin-bottom: 20px;
}

.descripcion-piscinas {
  margin-left: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: #333;
  font-family: 'Ubuntu Condensed';
  text-align: left;
}

/* ======================
       Card Pisos
======================== */
.card-pisos {
  width: 250px;
  text-align: center;
}

.card-pisos img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 0px;
}

.card-title-pisos {
  margin-top: 10px;
  margin-bottom: 0 !important;
  font-size: 1.35rem;
  color: #333;
  font-family: 'Ubuntu Bold';
  text-align: center;
}

.card-subtext-pisos {
  margin-top: 0 !important;
  margin-bottom: 0;
  font-size: 1rem;
  color: #333;
  font-family: 'Ubuntu Bold';
  text-align: center;
  line-height: 1;
}

.card-subtitle-pisos {
  margin-top: 0;
  font-size: 1rem;
  color: #333;
  font-family: 'Ubuntu Bold';
  text-align: center;
}

.card-text-pisos {
  margin-top: 10px;
  font-size: 0.7rem;
  color: #333;
  line-height: 1.2;
  text-align: justify;
  letter-spacing: 0.03em !important;
  width: 250px;
  margin-left: auto;
  margin-right: auto;
}

/* ======================
   Imagen al lado de la card
======================== */
.image-derecha {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 0px;
  display: block;

}

/* ======================
   Consulta Catálogo
======================== */
.consulta-section {
  margin-top: 40px;
  width: 100%;
}

.consulta-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;

  box-sizing: border-box;
  cursor: pointer;

}

.consulta-texto {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex-shrink: 0;

}

.consulta-el {
  font-family: "Ubuntu Bold";
  font-size: clamp(14px, 3vw, 50px);
  margin: 0;
  margin-left: 1rem;
  line-height: 1.1;
}

.catalogo-completo {
  font-family: "Ubuntu Bold";
  font-size: clamp(18px, 1.5vw, 50px);
  margin-left: 1rem;
  line-height: 1.1;
}

.imagen-consulta img {
  max-width: 45vw;
  width: auto;
  height: auto;
  display: block;
  margin-right: 1rem;
}

/* ======================
   Contenedor Card e Imagen
======================== */
.card-and-extra {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* ======================
   Agrupación de Grupos de Cards
======================== */
.card-groups {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.left-group,
.right-group {
  margin: 0 auto;

}

/* ======================
    RESPONSIVO
======================== */


@media (max-width: 768px) {
  .card-and-extra {
    flex-direction: column;
    align-items: center;
    margin: 0 10px 20px;
  }

  .card-pisos {
    width: 100%;
    text-align: center;
  }

  .card-pisos img {
    width: 100%;
    max-width: 240px;
    height: auto;
  }

  .card-title-pisos,
  .card-text-pisos {
    text-align: center;
  }

  .image-derecha {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .descripcion-piscinas {
    margin-left: 0 !important;
    margin-bottom: 10px;


  }

  .consulta-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
  }

  .consulta-texto {
    text-align: center;
    padding-left: 0;
  }

  .imagen-consulta img {
    width: 100%;
    max-width: 400px;
  }

  .consulta-el {
    font-family: "Ubuntu Bold";
    font-size: clamp(30px, 3vw, 50px);
    margin: 0;
    margin-left: auto;
    line-height: 1.1;
  }
  
  .catalogo-completo {
    font-family: "Ubuntu Bold";
    font-size: clamp(18px, 1.5vw, 50px);
    margin-left: auto;
    line-height: 1.1;
    margin-bottom: 0;
  }

}

@media (max-width: 1320px) {

  .titulo-piscinas,
  .titulo-comercializados {
    margin-left: 10px;
    font-size: clamp(10px, 2vw, 15px);
  }

  .linea-titulo {
    margin-left: 10px;
    max-width: 70%;
  }

  .descripcion-piscinas {
    margin-left: 10px;
    margin-bottom: 10px;
    padding: 10px;
    font-size: clamp(10px, 2vw, 15px);
  }

  .consulta-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
  }

  .consulta-texto {
    text-align: center;
    padding-left: 0;
  }

  .imagen-consulta img {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 1919px) and (min-width: 1321px) {

  /* CARD GENERAL */
  .card-pisos {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
    text-align: center;
  }

  .card-pisos img {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .card-text-pisos {
    width: 100%;
    max-width: 220px;
    font-size: 0.75rem;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
  }

  /* IMAGEN LATERAL */
  .image-derecha {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: cover;
    display: block;
  }

  /* CARD + IMAGEN */
  .card-and-extra {
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 500px;


  }


  /* CONTENEDOR GENERAL */
  .contenedor-pisos {
    padding: 20px 10px;
  }

  /* CONSULTA CATÁLOGO */
  .consulta-contenido {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1360px;
    padding: 0 20px;
  }

  .consulta-texto {
    text-align: left;
    margin: 0;
    width: 350px;
    flex-shrink: 0;
    margin-left: 7rem;
    margin-right: 0;
    
  }

  .imagen-consulta img {
    max-width: 600px;
    height: auto;
    display: block;
    margin-right: 12rem;
  }

  .consulta-el {
    font-family: "Ubuntu Bold";
    font-size: clamp(14px, 2.5vw, 50px);
    line-height: 1;
    margin-left: 5rem;
  }

  .catalogo-completo {
    font-family: "Ubuntu Bold";
    font-size: clamp(18px, 1.5vw, 50px);
    line-height: 1.5;
    margin-left: 5rem;
  }

  /* MARCAS */
  .marca-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
  }

  .marcas-grid {
    gap: 30px;
    justify-content: center;
  }


  .titulo-piscinas {
    margin-left: 2rem;

  }
  
  .linea-titulo {
    margin-left: 2rem;
;
  }
  
  .descripcion-piscinas {
    margin-left: 2rem;

  }

.titulo-comercializados{
  margin-left: 2rem;
}


}



/* ======================
   Flechas Carrusel oscuras - CARRUSEL PISOS
======================== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  /* flechas negras (esto sigue bien) */
  background-color: rgba(0, 0, 0, 0.5);
  /* fondo NEGRO translúcido */
  border-radius: 50%;
  /* forma redondeada */
  padding: 10px;
  /* espacio interno */
}

.carousel-img {
  border: 2px solid #565454;
  /* Borde gris oscuro sutil */
  border-radius: 0px;
  /* Opcional: bordes redondeados */
}



#carouselModal .modal-close-btn {
  background-image: none !important;
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#carouselModal .modal-close-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Elimina el footer */
#carouselModal .modal-footer {
  display: none !important;
}

/* Botón de descarga sobre la imagen */
#carouselModal .carousel-download {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  color: #065959 !important;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  z-index: 1050;
}

#carouselModal .carousel-download:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,1);
}

/* Asegura que la “X” permanezca encima */
#carouselModal .modal-close-btn {
  z-index: 1060;
}



/* ============================
   Estilos específicos para BACHAS
============================ */

/* Inicio Bachas */
.bachas-inicio {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.bachas-imagen-full img {
  width: 85vw;
  display: block;
}

/* Contenedor general de las secciones de bachas */
.bachas-contenedor {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 3rem;
  border: 1px solid grey;
}

/* Grid de cards */
.bachas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

/* Card individual */
.bachas-card {
  background-color: #fff;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bachas-card img {
  width: 90%;
  height: auto;
  display: block;
}

/* Contenido interno de la card */
.bachas-card-content {
  padding: 1rem;
  text-align: center;
}

.bachas-title {
  font-family: "Ubuntu Bold";
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.bachas-medida {
  font-family: "Ubuntu Regular";
  font-size: clamp(13px, 1vw, 16px);
  color: #333;
  font-weight: 500;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.bachas-codigo {
  font-family: "Ubuntu Regular";
  font-size: clamp(13px, 1vw, 16px);
  color: #333;
  margin-top: 0;
  line-height: 1.2;
}

.bachas-description {
  font-family: "Ubuntu Regular";
  font-size: clamp(13px, 1vw, 16px);
  color: #777;
  margin-bottom: 0;
}

/* Icono lupa */
.bachas-icon-lupa {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 0.6rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  z-index: 2;
}

/* Línea de categoría */
.linea-cat {
  margin: 0 auto;
  width: 100%;
  max-width: 95%;
  height: 2pt;
  background-color: grey;
  margin-bottom: 20px;
}

/* Responsive: Tablet */
@media (max-width: 1200px) {
  .bachas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .bachas-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bachas-title {
    font-size: 1rem;
  }

  .bachas-description {
    font-size: 0.9rem;
  }

  .bachas-card-content {
    padding: 0.8rem;
  }

  .bachas-icon-lupa {
    padding: 0.4rem;
    font-size: 16px;
  }
}

/* ============================
   Modal lupa exclusivo para BACHAS
============================ */
.modal-bachas-lupa .modal-dialog {
  width: auto;
  max-width: 95vw;
  max-height: 95vh;
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.modal-bachas-lupa .modal-content {
  width: auto;
  height: auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.modal-bachas-lupa .modal-body {
  padding: 0;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-bachas-lupa .modal-img-full {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Botón cerrar */
.modal-bachas-lupa .modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  padding: 6px;
  font-size: 18px;
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: background-color 0.3s ease;
}

.modal-bachas-lupa .modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

/* Fondo oscuro del modal */
.modal.fade.modal-bachas-lupa.show {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive para modal en mobile */
@media (max-width: 768px) {
  .modal-bachas-lupa .modal-img-full {
    max-width: 90vw;
    max-height: 85vh;
  }

  .modal-bachas-lupa .modal-close-btn {
    font-size: 16px;
    padding: 5px;
  }
}




/* ===============================
 INICIO GENERAL (ACERO, PVC, etc.)
================================== */

/* Escritorio */
.inicio-general .imagen-inicio-seccion img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.inicio-general .hero-text {
  font-family: "Ubuntu Medium";
  font-size: clamp(12px, 1.3vw, 50px);
  margin: 30px 0;
  color: #333;
  text-align: center;
  padding: 0 15px;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    margin-top: 4rem;
  }

  .inicio-general-mobile .imagen-inicio-seccion img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .inicio-general-mobile .hero-text {
    font-family: "Ubuntu Medium";
    font-size: clamp(12px, 4vw, 20px);
    margin: 20px 0;
    color: #333;
    text-align: center;
    padding: 0 15px;
    line-height: 1.4;
  }
}

#inicio {
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  padding-bottom: var(--navbar-offset, 70px);
  /* espacio compensatorio para evitar mostrar el título siguiente */
}

/* ======================
 Modal lupa - Imagen maximizada sin scroll interno
======================== */
.modal-imagen .modal-dialog {
  width: auto;
  max-width: 95vw;
  max-height: 95vh;
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.modal-imagen .modal-content {
  width: auto;
  height: auto;
  background-color: white;
 
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  padding: 0;
}

.modal-imagen .modal-body {
  padding: 0;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-imagen .modal-img-full {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Botón cerrar */
.modal-imagen .modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  padding: 6px;
  font-size: 18px;
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: background-color 0.3s ease;
}

.modal-imagen .modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

/* Fondo oscuro del modal */
.modal.fade.modal-imagen.show {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive para mobile */
@media (max-width: 768px) {
  .modal-imagen .modal-img-full {
    max-width: 90vw;
    max-height: 85vh;
  }

  .modal-imagen .modal-close-btn {
    font-size: 16px;
    padding: 5px;
  }
}




/* ==========================
   Grid exclusivo para ALUMINIO / ACERO / PVC
========================== */

.cards-grid-prod {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

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

@media (max-width: 768px) {
  .cards-grid-prod {
    grid-template-columns: 1fr;
  }
}

/* ============================
   ESTILOS EXCLUSIVOS DESCARGAS
============================ */

/* Mostrar solo en escritorio */
.desktop-only-descargas {
  display: block;
}

/* Ocultar por defecto en mobile */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  /* Oculta en mobile la versión de escritorio */
  .desktop-only-descargas {
    display: none !important;
  }

  /* Muestra solo en mobile */
  .mobile-only {
    display: block !important;
  }
}


body.pagina-descargas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.contenido-descargas {
  flex: 1;
}

#seccion-descargas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;

}

.desktop-only-descargas{
  margin-top: 6rem;

}

/* Título */
.descargas-h1-descargas {
  font-family: "Ubuntu Bold", sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #000;
}

/* Subtítulo */
.hero-text-descargas {
  font-size: clamp(1rem, 4.5vw, 1.6rem);
  font-family: "Ubuntu Medium", sans-serif;
  text-align: center;
  color: #000;
  line-height: 1.2;
}



/* Grid de descarga */
.marcas-grid-descargas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  
}

/* Card individual */
.marca-item-descargas {
  flex: 1 1 calc(25% - 2rem); /* 4 columnas con el gap incluido */
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.marca-titulo-descargas {
  font-family: "Ubuntu Bold", sans-serif;
  font-size: clamp(18px, 1.5vw, 23px);
  margin-bottom: 0.5rem;
  color: #000;
  min-height: 2.4rem;       
  line-height: 1.2rem;      
}

.marca-img-descargas {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 320 / 227;
  object-fit: contain;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}


.marca-img-descargas:hover {
  transform: scale(1.02);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .marca-item-descargas {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .descargas-h1-descargas {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    padding-top: 2rem;
  }
}




