* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía base responsiva: clamp para ajustar entre móvil y desktop */
:root{
  /* Tamaño base responsive: min 15px, ideal relativo al viewport, max 18px */
  font-size: clamp(15px, 1.1vw + 0.5rem, 18px);
  --body-line-height: 1.6;
}

/* Altura del navbar fijo: ajustar si tu header cambia de tamaño */
:root{ --nav-h: 84px; }

/* Evita que un header fijo tape el contenido al navegar a un ancla.
   Aplica una separación visual cuando se navega por fragmentos (#id).
   --nav-h se puede ajustar si tu navbar tiene otra altura. */
/* Regla global para navegadores modernos */
[id] { scroll-margin-top: var(--nav-h); }

/* Regla específica (si querés forzar sólo para las secciones relevantes) */
#revestimiento-wpc, #revestimiento-poliuretano, #contacto, #QuienesSomos {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* Fallback adicional: para algunos navegadores móviles se puede usar scroll-padding-top en el contenedor root */
html { scroll-padding-top: var(--nav-h); }/*  */

html, body {
  font-family: "Montserrat", "Mukta", "Work Sans", Arial, sans-serif;
  font-size: 1rem;             /* 1rem = tamaño calculado por :root */
  line-height: var(--body-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tamaños recomendados (usar rem para consistencia) */
p, .lead, .texto-principal {
  font-size: 1rem;            /* ~16-18px según viewport */
  line-height: 1.6;
}

h1 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem);   line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.15rem; line-height: 1.3; }
h5 { font-size: 1rem;   line-height: 1.3;  }
h6 { font-size: 0.95rem; line-height: 1.3; }

.btn, .btn-lg { font-size: 1rem; }

small, .small, .meta { font-size: 0.9rem; }

.card .card-title { font-size: 1.15rem; }
.card p, .card .card-text { font-size: 0.95rem; }


.revestimientos p { font-size: 1.05rem; }


body {
  font-family: "Montserrat", "Mukta", "Work Sans", Arial, sans-serif;
  background-color: #000000;
  padding-top: 80px;
  overflow-x: hidden;
}
h1 {
  color: white;
  font-weight: bold;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  color: #ffffff;
  margin: 0;
 /*  text-shadow: 1px 1px 8px #f5f5f5e9; 
  transition: color 0.3s; */
}
h2 {
  color: #ffffff;
  font-weight: bold;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  color: #ffffff;
  margin: 0;
  text-shadow: 1px 1px 8px #000000; /* Sombra */
  transition: color 0.3s;
}
h1, h2, h3, h4, h5, h6, .speach {
  text-shadow: 1px 2px 12px rgba(0,0,0,0.35);
}
.bloque-destacado {
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.fade-in {
  animation: fadeIn 1.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
.btn-light:hover {
  background: #222;
  color: #fff;
  border-color: #fff;
}

.logo {
  width: 100%;
  height: 100%;
}
footer {
  background-color: #000; /* Fondo negro */
  color: #fff;            /* Texto blanco */
  padding: 25px 0;        /* Espaciado arriba y abajo */
  text-align: center;     /* Centra el texto */
  font-size: 1rem;        /* Tamaño de fuente */
  border-top: 1px solid #fff;
  /*  border-top: 1px solid rgba(255,255,255,0.2); */ 
}

.navbar {
  background-color: rgb(0, 0, 0) !important;
  padding-top: 16px;
  padding-bottom: 16px;
}

.navbar-nav .nav-link.active {
  font-family: "Montserrat", "Mukta", "Work Sans", Arial, sans-serif;
  border-radius: 16px; /* Más redondeado */
  border: 3px solid transparent; /* Borde más grueso */
  color: rgb(255, 255, 255);
  margin-left: 10px;
  margin-right: 10px;
  padding: 3px 12px; /* Menos padding para que el borde quede más cerca del texto */
  background: linear-gradient(#000000, #000000) padding-box,
    /* Fondo interior */ linear-gradient(90deg, #a7a7a7, #ffffff) border-box; /* Degradado del borde */
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.navbar-nav .nav-link:hover {
  color: #ffffff; /* Cambia este color por el que prefieras */
  font-weight: bold;
  background: linear-gradient(#000000, #000000) padding-box,
    /* Fondo interior Linear-gradient para hacer degradados padding-box se aplica solo en el area de relleno, interior y borderbox solo el degradado en el borde*/
      linear-gradient(90deg, #ffffff, #ffffff) border-box; /* Degradado del borde */
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border-color: #ffffff; /* cambia el color del borde */
  transition: all 0.2s;
}

.dropdown-menu .dropdown-item {
  font-weight: bold;
}
.dropdown-menu .dropdown-item:hover {
  color: #ffffff;
  font-weight: bold;
  background: linear-gradient(#000000, #000000) padding-box,
    /* Fondo interior opcional */ linear-gradient(90deg, #ffffff, #ffffff)
      border-box; /* Degradado del borde opcional */
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border-color: #000000; /*cambia el color del borde */
  transition: all 0.2s;
}

/* CARDS */

.card {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  border-radius: 16px;
  border: none;
}
.card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.card-img-top {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border: 2px solid #fff;
}
.container-card{ 
  background-color: white;
}
.card{
  max-width: 100%; /* Permitir que la tarjeta ocupe el ancho de la columna */
  margin: 0 auto;
}
/* Imágenes de las cards: más altura vertical y enfoque hacia la parte superior */
.card-img-top {
  height: 380px;              /* altura visible en desktop */
  object-fit: cover;          /* rellena y recorta sin deformar */
  object-position: 50% 18%;   /* muestra más la parte superior de la imagen */
  width: 100%;
  display: block;
  transition: transform 0.45s ease, filter 0.35s ease;
}

/* Efecto sutil al pasar el ratón: la imagen hace un pequeño zoom */
/* zoom on image removed per user request */

/* Utilidades para controlar la posición vertical visible de la imagen */
.img-top-center { object-position: center top; }
.img-top-focus-top { object-position: center 10%; }    /* muestra más la parte superior */
.img-top-focus-bottom { object-position: center 90%; } /* muestra más la parte inferior */
.card-title {
  font-family: 'Montserrat', 'Mukta', 'Work Sans', Arial, sans-serif;        /* Negrita */
  color: #222;              /* Color oscuro para contraste */
  letter-spacing: 0.05em;   /* Espaciado entre letras */
  margin-bottom: 4px;       /* Espacio entre h5 y h6 */
  text-shadow: 0 1px 4px rgba(0,0,0,0.08); /* Sombra sutil */
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-title + .card-title {
  font-size: 1.1rem;          /* h6 más pequeño */
  font-weight: bold; 
  color: #000000;           /* Color de acento */
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* CARDS */

@media (max-width: 991.98px) {
  .card-img-top {
    height: 260px;    /* Pantallas medianas */
    object-position: 50% 20%;
  }
}

@media (max-width: 576px) {
  .card-img-top {
    height: 220px;    /* Celulares: aumentar altura para mostrar más imagen */
    object-position: 50% 40%; /* centrar un poco más verticalmente */
  }

  /* Móviles muy pequeños: mantener altura moderada para no romper el layout */
  @media (max-width: 360px) {
    .card-img-top { height: 160px; object-position: 50% 45%; }
  }
}

@media (max-width: 1200px) {
  .navbar-nav .nav-link {
    display: inline-block;
    width: auto;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .navbar-nav {
    width: 100%;
    justify-content: center !important;
    text-align: center;
  }
  .navbar-brand {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
  }
}

@media (max-width: 991.98px) {
  /* xl breakpoint de Bootstrap */
  .navbar-nav {
    width: 100%;
    justify-content: center !important;
    text-align: center;
  }
  .navbar-nav .nav-link {
    display: inline-block;
    width: auto;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .navbar-brand {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
  }
  .carousel-caption h2 {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }
  .carousel-caption p.speach {
    font-size: 1rem;
  }
}

/* Opcional: solo para móviles, no para iPad */
@media (max-width: 767.98px) {
  .navbar-nav .nav-link {
    display: inline-block;
    width: auto;
  }
}
@media (min-width: 320px) and (max-width: 350px) {
  /* celulares pequeños */
  h1 {
    font-size: 2rem;
    letter-spacing: 0.1rem;
  }
}
@media (min-width: 1920px) and (max-width: 1920px) {
  h1 {
    font-size: 2.5rem; /* Aumenta el tamaño del texto */
    letter-spacing: 0.3rem; /* Aumenta el espaciado entre letras */
  }
}

.btn-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: #25d366;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, color 0.3s;
  gap: 8px;
}
.btn-whatsapp:hover {
  background-color: #128c7e;
  color: #fff;
}
.btn-whatsapp i {
  font-size: 24px;
  margin-right: 8px;
  color: #00ff5e; /* Color oficial de WhatsApp */
}
@media (max-width: 576px) {
  .btn-whatsapp {
    padding: 8px 14px;
    font-size: 0.6rem;
    bottom: 16px;
    right: 16px;
  }
  .btn-whatsapp img {
    width: 20px;
    height: 20px;
  }
  .carousel-caption h2 {
    font-size: 1.2rem;
    letter-spacing: 0.06em;
  }
  .carousel-caption p.speach {
    font-size: 1.1rem;
  }
}
/* Mobile padding for .revestimientos to match index spacing */
@media (max-width: 576px) {
  .revestimientos {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .revestimientos h3 {
    padding: 18px 0 12px 0; /* reduce large padding on mobile */
  }
  .revestimientos p, .revestimientos ul, .revestimientos .list-group-item {
    padding-inline: 8px;
    text-align: left;
  }
  .revestimientos ul { padding-left: 18px; }
}

.carousel-img {
  width: 100%;
  height: 100vh;         /* Puedes ajustar este valor según tu diseño 650px antes*/
  object-fit: cover;     /* Hace que todas las imágenes llenen el espacio y se recorten si es necesario */
  background: #000;      /* Fondo negro para los bordes si la imagen no cubre todo */
}

@media (max-width: 991.98px) { /* Tablets */
  .carousel-img {
    height: 60vh;
  }
}

@media (max-width: 576px) { /* Móviles */
  .carousel-img {
    height: 40vh;
  }
}

.carousel-caption {
  top: -15%;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000000; /* Asegúrate de que el texto sea visible */
}

/* Seccion HOME - Quienes somos */
.empresa {
  background-color: #000; /* Fondo negro */
  color: #fff; /* Texto blanco */
  padding: 40px 20px; /* Espaciado interno */
  border-radius: 8px; /* Bordes redondeados */
  margin-top: 20px; /* Separación superior */
}

.empresa h3 {
  font-size: 1.8rem; /* Tamaño del título */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px; /* Espaciado inferior */
  /* text-transform: uppercase; */
    letter-spacing: 0.1rem; /* Espaciado entre letras */
}

.empresa p {
  font-size: 1rem; /* Tamaño del texto */
  line-height: 1.6; /* Altura de línea para mejor legibilidad */
  margin-bottom: 20px; /* Espaciado entre párrafos */
  text-align: center;
}

.speach{
     padding-top: 10px;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 1px 1px 8px #000000; /* Sombra */
  transition: color 0.3s;
}
@media (min-width: 1200px) {
  h2 {
    font-size: 1.5rem;
  }
  .speach {
    font-size: 1.1rem;
  }
}
/* @media (max-width: 576px) {
  .carousel-img {
    height: 300px;
  }
}
 */
/* revestimientos */
.revestimientos{
  background-color: #000 !important;
  color: #fff !important;
  padding: 40px 0;
}

.revestimientos h3,
.revestimientos h4 {
  color: #fff !important;
}

/* Reglas responsive para la imagen en la sección .empresa */
.empresa img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover; /* recorta manteniendo aspecto */
}

/* Desktop: limitar altura y ancho máximo */
@media (min-width: 992px) {
  .empresa img {
    max-width: 420px; /* ancho máximo en desktop */
    max-height: 360px; /* altura máxima en desktop */
  }
}

/* Móvil: limitar altura para no consumir mucho espacio */
@media (max-width: 576px) {
  .empresa img {
    max-width: 320px; /* ancho máximo en móvil */
    max-height: 220px; /* altura máxima en móvil */
  }
}


.revestimientos {
  background-color: transparent;
}

.revestimientos h3 {
  font-size: 1.8rem; /* Tamaño del título */
  text-align: center;
  padding: 40px;
  /* text-transform: uppercase; */
    letter-spacing: 0.1rem; /* Espaciado entre letras */
}

.revestimientos p {
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0px; /* Menos espacio entre párrafos */
  text-align: center;

}


.tienda-bg {
  background-color: #000;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* .tienda-bg h3 {

} */

.card {
  background-color: #fff;
  color: #000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border-radius: 16px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.card-title, .card-body, .list-group-item {
  color: #000 !important;
}

.list-group-item {
  color: #000 !important;
  background-color: #fff;
  border: none;
}

.btn-outline-dark {
  border-radius: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.btn-outline-dark:hover {
  background-color: #000;
  color: #fff;
}

.btn-success, .btn-primary {
  color: #fff;
}

.texto-blanco,
.texto-blanco h3,
.texto-blanco h4,
.texto-blanco p {
  color: #fff;
}
.revestimientos ul {
  list-style-type: none;
  padding-left: 0;
}

.revestimientos ul li {
  text-align: center;
  color: #fff;
}

.email-box {
  background: rgba(255,255,255,0.04); /* recuadro muy sutil sobre fondo oscuro */
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.email-box .email-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 6px;
}

.email-box .email-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Footer: chips y mejor experiencia en móvil */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.12);
  background: transparent;
}

.footer-links li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  transition: background 0.18s ease, transform 0.12s ease;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-links li a i { font-size: 1.05rem; }

/* hover / focus */
.footer-links li a:hover,
.footer-links li a:focus {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  text-decoration: none;
  outline: none;
}

/* Movil: apilar y agrandar hit area */
@media (max-width: 576px) {
  .footer-links {
    flex-direction: column;
  }
  .footer-links li a {
    width: 92%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.95rem;
    margin: 0 auto;
  }
  .site-footer p.small { font-size: 0.85rem; }
}

/* ajustar espacio entre líneas en desktop */
@media (min-width: 577px) {
  .footer-links { gap: 1rem; }
}
/* Fix para laptops tipo 1280x768 / 1366x768 */
@media (max-width: 1366px) and (max-height: 800px) {
  header .navbar h1 {
    font-size: 0.9rem;       /* prueba 0.9rem, bajar a 0.85 si hace falta */
    letter-spacing: 0.02rem; /* reduce el espaciado entre letras */
    white-space: nowrap;     /* evita que rompa en espacios entre letras */
    line-height: 1;
    display: inline-block;
    margin: 0;
    vertical-align: middle;
  }
  header .navbar img {
    width: 30px;             /* achica un poco el logo para ganar ancho */
    height: auto;
  }
  .navbar { padding-top: 6px; padding-bottom: 6px; } /* opcional */
}
/* En móvil: ocultar texto de WhatsApp y Email, mostrar solo íconos */
@media (max-width: 576px) {
  /* Ocultar el texto dentro de los botones de WhatsApp y Email */
  .card .btn-success.btn-sm span,
  .card .btn-danger.btn-sm span {
    display: none !important;
  }
  
  /* Reducir padding de esos botones para que queden más compactos */
  .card .btn-success.btn-sm,
  .card .btn-danger.btn-sm {
    padding: 0.35rem 0.5rem;
  }
  
  /* Quitar margen del ícono cuando no hay texto */
  .card .btn-success.btn-sm i,
  .card .btn-danger.btn-sm i {
    margin: 0 !important;
  }
}