@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
:root{
    --fondo_index: #ffffff;
    --color_texto_index: #ffff;
    --color_texto_slider: #ffffff;
    --hover_texto: #c79415;
    --hover_claro: #f0c14b;
    --header-text-color: #fff;
    --color_texto: #333;
    --fondo_oscuro: #000000;
    --fuente_principal: 'Montserrat', sans-serif;
    --form-yellow: #FFD600;
  }


/* Reset */
  * {
    margin: 0; padding: 0; box-sizing: border-box;
  }
  body {
    font-family: var(--fuente_principal);
    background: var(--fondo_index);
    color:var(--color_texto);
    width: 100%;
  }
body {
    overflow-x: hidden;
}
  main {
    margin-top: 90px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
section{
    padding: 0 ;
}
.hero {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.hero-image-bg img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center; /* <-- Centra la imagen en todos los tamaños */
    filter: brightness(0.5);
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    color:var(--color_texto_index);
    text-align: center;
    width: 100%;
}
.hero-content h1 {
    background: #ffffff00;                
    color: #ffffff;                 
    border: #fffdfd solid 4px;
    padding: 0.6em 2em;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    font-size: 4rem;
    margin-bottom: 1rem;
    border-radius: 10px;            
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.05em;
}


@media (max-width: 600px) {
    .hero,
    .hero-image-bg,
    .hero-image-bg img {
        height: 60vh;
        min-height: 320px;
        max-height: 100vh;
    }
    .hero-content {
        padding: 2rem 1rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
        margin: 2rem 0;
    }
}



/* Botón flotante de WhatsApp */
/* Agrega esto en tu CSS global o header.css */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover {
  background-color: #20ba5a;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 600px) {
  .whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    bottom: 15px;
    right: 15px;
  }
}
*SLIDER INSPECCION EXTERNA*/
.insp_externo{
    background:var(--fondo_oscuro);
}
.insp_externo-titulo {
    font-family:var(--fuente_principal);
    padding-top: 2rem;
    font-size: 2rem;
    color: var(--color_texto_index);
    margin-bottom: 1.8rem;
    text-align: center;
    display: block;
    justify-content: center;
}
.insp_externo-titulo::after {
    content: "";
    display: block;
    margin: 0.5rem auto 0 auto;
    height: 3px;
    width: 40%;
    background: linear-gradient(90deg, var(--hover_texto), var(--hover_claro));
    border-radius: 4px;
}

.scroll-container {
	padding: 2rem 0rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.scroll-container .infinite-scroll-wrapper {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.infinite-scroll-wrapper .infinite-scroll-content {
	display: flex;
	flex-direction: row;
	white-space: nowrap;
	animation: scroll 100s linear infinite;
	width: 100%;
	gap: 16px;
}

.infinite-scroll-wrapper .infinite-scroll-items {
	display: flex;
	flex-direction: row;
	flex-shrink: 0;
	gap: 16px;
}

.infinite-scroll-items .item-wrap {
	position: relative;
	min-width: 238px;
	height: 400px;
	flex-shrink: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
}

.item-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
    object-position: center;
	transition: transform 0.3s ease;
}

.item-wrap .text {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 10;
	color:var(--color_texto_index);
	font-weight: 500;
    background-color: var(--hover_texto);
    padding: 0.5rem;
}

.item-wrap:hover img {
	transform: scale(1.05);
}

.mov-izquierda {
    animation: scroll-left 90s linear infinite;
}

.mov-derecha {
    animation: scroll-right 100s linear infinite;
}
@media (min-width: 1024px) {
	.infinite-scroll-wrapper:hover .infinite-scroll-content {
		animation-play-state: paused;
	}
}

@media (max-width: 600px) {
    .scroll-container {
        padding-top: 2rem;
    }
    .infinite-scroll-wrapper .infinite-scroll-content {
        animation: scroll 50s linear infinite;
    }
    .item-wrap {
        min-width: 200px;
        height: 300px;
    }
    .item-wrap .text {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
    .insp_externo-titulo{
        padding-top: 2rem;
        margin-bottom: 0;
    }
    .insp_externo-titulo::after{
        width: 80%;
    }
}

@keyframes scroll-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@keyframes scroll-right {
	0% {
		transform: translateX(-50%);
	}
	100% {
		transform: translateX(0%);
	}
}

/* Puedes poner esto en tu archivo de estilos */
.btn-mas-info {
  display: inline-block;
  margin-top: 0.7em;
  padding: 0.5em 1.2em;
  background: #f0c14b;
  color: #181818;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-mas-info:hover {
  background: #cfa14a;
  color: #fff;
}
.img-hover-box {
  position: relative;
  display: block;
  width: 100%;
  height: 100%; /* <-- Asegura que ocupe todo el alto del item */
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
}

.img-hover-box img {
  display: block;
  width: 100%;
  height: 100%;           /* Ocupa todo el alto del contenedor */
  object-fit: cover;      /* Recorta y centra la imagen */
  transition: filter 0.3s;
}

.img-hover-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 8px;
  z-index: 1;
}

.btn-mas-info-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f0c14b;
  color: #181818;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.7em 2em;
  text-decoration: none;
  font-size: 1.1em;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  pointer-events: none;
}

.img-hover-box:hover img {
  filter: brightness(0.5);
}

.img-hover-box:hover::after {
  opacity: 1;
}

.img-hover-box:hover .btn-mas-info-overlay {
  opacity: 1;
  pointer-events: auto;
}

.item-wrap {
  position: relative;
  min-width: 238px;
  height: 400px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}
