* { 
	margin:0;
	padding: 0;
}

@font-face {
    font-family: 'montserratblack';
    src: url('../fonts/montserrat-black-webfont.woff2') format('woff2'),
         url('../fonts/montserrat-black-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'montserratbold';
    src: url('../fonts/montserrat-bold-webfont.woff2') format('woff2'),
         url('../fonts/montserrat-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'montserratlight';
    src: url('../fonts/montserrat-light-webfont.woff2') format('woff2'),
         url('../fonts/montserrat-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'stopregular';
    src: url('../fonts/stop-webfont.woff2') format('woff2'),
         url('../fonts/stop-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

body {
	font-family: "montserratbold", Helvetica, Verdana;  
	font-size: 2em; /*Equivalencias 1em <-> 16px <-> 12pt <-> 100% */
	padding-top: 0px;
}

header {
	background:#000;
	color: #fff;
	margin: 0em auto;
	max-width: 100%;
	min-height: 64px;
	padding: 0em;
	text-align: center;
}

footer {
	background:#000;
	max-width: 100%;	
	min-height: 200px;
	padding: 2em;
	padding-top: 1em;
	text-align: center; 
}
hr {
	background-color: #78787f;
	height: 10px;
	padding: 0em;
	width: 100%;
	
}
section#contenedor { /*CAJA PRINCIPAL*/
	background:#000;
	margin: 0em auto;
	max-width: 100%; 
	padding: 0em;
	text-align: center;
}

section#mision{
	background: #ffffff;
	min-height: 200px;
	padding-top: 1em;
	width: 100%;
}

section#productos{

	background: #ffffff url("../images/paisaje2.jpg"); 
	background-attachment: fixed; 
  	background-position:center, center; /*centra la imagen como fondo;porcentuales (%), fijas(px) o predeterminadas (center, left,right)*/
	background-repeat: no-repeat;
  	background-size: auto;
	color: #fff;
	padding: 2em;
	padding-top: 60px;
	width: 100%;
	
}

section#qsomos{
	font-size: 1em;
	background: #e5e9ec;
	margin: 0em auto;
	min-height: 300px;
}

section#calidad{
	font-size: 1em;
	background: #e5e9ec;
	margin: 0em auto;
	min-height: 300px;
}

article#misionTexto,
article#visionTexto,
article#valoresTexto {
	/*background: #1e6381;
	border-radius: 0.5em; */
	color: #656666;
	display: inline-block;
	font-family: "montserratlight", Helvetica, Verdana; 
	font-size:  calc(0.6em + 0.6vw);
	min-width: 25em;	
	padding: 1em;	
	text-align: justify;
	vertical-align: top;
	width: 25%;

}

article#qsomosTexto,article#qsomosFoto,article#calidadTexto,article#calidadFoto, 
article#nproductosTexto,  article#nproductosFoto {
	color: #656666;
	display: inline-block;
	font-family: "montserratlight", Helvetica, Verdana; 
	font-size:  calc(0.6em + 0.6vw);
	margin: 0.5em auto;
	padding: 1em;
	text-align: justify;
	vertical-align: top;
	width: 45%;
}

article#videosContenido{
	color: #000000;
	padding: 1px;
	margin: 1em;
	/*
	display: inline-flex;
		margin: 1em;
		
	max-width: 40%;
	height: auto;
	
	padding: 1px;
width: 45%;

	margin: auto;



	margin-right: 10px;
	margin: 0.5em auto;
	

	/*
	font-family: "montserratlight", Helvetica, Verdana; 
	font-size:  calc(0.6em + 0.6vw);
	margin: 0.5em auto;
	padding: 1em;
	text-align: justify;
	vertical-align: top;
	width: 45%;*/
}

section#maps, section#ubicacion, section#contacto {
	/*background: #1e6381;
	border-radius: 0.5em;*/
	color: #78787f;
	display: inline-block;
	font-family: "montserratlight", Helvetica, Verdana;	
	font-size:  calc(0.5em + 0.5vw);
	max-width: 33%;
	min-width: 25em;
	text-align: justify;
	padding: 1em;	
 	float:none;
	vertical-align: top;
}

article#qsomosFoto,article#nproductosFoto,article#calidadFoto {
	margin: 1em 0.5em;
	min-width: 25em;
	width: 30%;	
}

section#nproductos {
	background: #ffffff;
	min-height: 300px;
}

section#carrusel {
	background: #000000;
	min-height: 15em; /*200px*/
	padding: 2em;
	padding-top: 1em;
	padding-bottom: 0em; 	
	text-align: center;
	max-width: 200em;
}

section#pensamiento{
	background: #000000 url("../images/paisaje2.jpg");
	background-attachment: fixed; 
	min-height: 375px;
  	background-position:center, center; /*centra la imagen como fondo;porcentuales (%), fijas(px) o predeterminadas (center, left,right)*/
	background-repeat: no-repeat;
  	background-size: auto;
}

article#pensamientoTexto {
	color:#fffffa; /*#fffffa*/
	font-size:  calc(1.5em + 1.5vw);
	padding: 0em;
	padding-top: 3em;
	text-align: center;
}

section#maps {
	text-align: center;
}

#marca {
	font-family: "stopregular", Helvetica, Verdana;
}
#menu {
	box-shadow:0px 4px 3px rgba(0,0,0,.5);
	position:fixed;
	top:0;
	width:100%;
	z-index:1000;
}
.titulo1 {
	color: #000;
	font-family: "montserratlight", Helvetica, Verdana;
	font-size:  calc(1em + 1vw);
	font-weight: bold;
}
.titulo2 {
	color: #fffffa;
	font-family: "montserratlight", Helvetica, Verdana;
	font-size:  calc(1em + 1vw);
	font-weight: bold;
}
.titulo3 {
	color: #ffffff;
	font-family: "montserratlight", Helvetica, Verdana;
	font-size:  calc(0.6em + 0.6vw);
	font-weight: bold;
}
.mail{
	color: #0b948c;
	font-weight: bold;
}
.copyright {
	color: #ffffff;
	font-size:  0.7em;
	text-align: center;
}
.bg {
  /* The image used */
  background-image: url("../images/bgimage.jpg");

  /* Full height */
  height: 100%;
  width: 100%;
 
  /* Center and scale the image nicely */
  /*background-position: center;*/
  background-position:center, center; /*centra la imagen como fondo;porcentuales (%), fijas(px) o predeterminadas (center, left,right)*/
  background-attachment: fixed; /*establece la imagen de fondo como fija=fixed, scroll=desplaza con el contenido*/
  background-repeat: no-repeat;
  background-size: auto; /*cover,300px 100px;,auto, contain */
  max-width:1280px;
  min-width:900px;
  max-height:1024px;
  min-height:600px;
}

.bg0 {
  /* The image used */
  background-image: url("../images/paisaje2.jpg");

  /* Full height */
  height: 100%;
  width: 100%;
 
  /* Center and scale the image nicely */
  /*background-position: center;*/
  background-position:center, center; /*centra la imagen como fondo;porcentuales (%), fijas(px) o predeterminadas (center, left,right)*/
  background-attachment: fixed; /*establece la imagen de fondo como fija=fixed, scroll=desplaza con el contenido*/
  background-repeat: no-repeat;
  background-size: auto; /*cover,300px 100px;,auto, contain */
  max-width:1280px;
  min-width:900px;
  max-height:1024px;
  min-height:600px;
}

.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  padding-top: 60px;
  /*margin: auto; */
  margin: 0.5em auto;
}

.form-signin .checkbox {
  font-weight: 400;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.catItem {
	display: inline-block;
	vertical-align: top;
	margin: 0 -3px 30px 3%;
	width: 15%; /*width: 22.75%; */
	position: relative;
	cursor: pointer;
	border: 1px solid #ddd;	
}

.cattitle {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(1,1,1,.1); /*background-color: rgba(34,34,34,.7);*/
	text-align: center;
	z-index: 2;
}

.catItem:hover .cattitle {
	background-color: rgba(34,34,34,.4);
}

.catItem .cattitle p {
	position: absolute;
	top: 20%;
	left: 5%;
	right: 5%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	z-index: 3;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.5rem;
	text-transform: uppercase;
	color: #00f;
}

.catItem.min .cattitle p {
	left: 2%;
	right: 2%;
	font-size: .9rem;
}

.catItem .itemPic {
	position: relative;
	width: 100%;
	padding-bottom: 100%;
	overflow: hidden;
	z-index: 1;
}

.catItem .itemPic img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	z-index: 1;
}
/* BANNER DE ENTRADA*/
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;/*flex;*/
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: #ffffff !important; /* white; */
  padding: 30px;
  border-radius: 10px;
  width: 50%;
  max-width: 50%; /*ANCHO DEL MODAL*/
  text-align: center;
  position: center;
  animation: scaleIn 0.3s ease-in-out;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: #555;
  cursor: pointer;
}

.modal-button {
  /*display: inline-block; /*inline; inline-block; block; padding; */
  /*margin-top: 20px; */
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 15px;
  white-space: nowrap; /* evita que se corte el texto */
  background: #2f5496;/*#25D366;*/ 
  color: white;
  /*
  border-radius: 20px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s;*/
}

.modal-logos {
  display: flex;
  justify-content: center;
  align-items: center; /*flex-start; center;*/
  gap: 40px; /* espacio entre logos */
  /*margin-top: 20px;*/
  flex-wrap: wrap; /* por si en móvil no entran, que bajen */
}

.logo-bloque {
  text-align: center;
  display:flex;
  flex-direction: column;
  align-items: center;
}

.modal-logo {
  max-height: 80%;
  max-width: 80%;
  /*width: auto;*/
  margin-bottom: 10px;
  /*display: inline; /*block;*/
  /*margin: auto 0 0 0; */
}

.logo-izquierda .modal-logo {
  max-height: 140px; /* más alto */
  max-width: 240px;
}

.logo-derecha {
  max-height: 140px; /* más alto */
  max-width: 240px;
  gap: 45px;
}

.modal-button:hover {
  background: #2f5496; /*#606060;  #1ebe5d;*/
  color: gray;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* espacio entre logo y botón */
  margin-top: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =========================================================
   Ajustes de estabilidad y diseño responsivo - 2026-09
   ========================================================= */
html { scroll-behavior: smooth; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
body { width: 100%; max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
#modal-presupuesto { display: none !important; }
.mapa-iframe { display: block; width: 100%; max-width: 400px; border: 0; margin: 0 auto; }
#menu { left: 0; right: 0; }
#menu .navbar-brand img { width: auto; max-height: 50px; }
article, section, footer, .navbar, .navbar-nav, .mail { overflow-wrap: anywhere; word-break: normal; }
.catItem { margin: 0 1.5% 30px; width: 21%; }

@media (max-width: 991.98px) {
    body { font-size: 1.25rem; }
    article#misionTexto, article#visionTexto, article#valoresTexto,
    article#qsomosTexto, article#qsomosFoto, article#calidadTexto,
    article#calidadFoto, article#nproductosTexto, article#nproductosFoto {
        display: block; width: min(92%, 760px); min-width: 0;
        margin: 0 auto; padding: 1rem; font-size: 1rem;
    }
    article#qsomosFoto, article#calidadFoto, article#nproductosFoto { width: min(92%, 680px); }
    section#maps, section#ubicacion, section#contacto {
        display: block; width: min(94%, 760px); max-width: none; min-width: 0;
        margin: 0 auto; padding: 1rem; font-size: 1rem; text-align: center;
    }
    section#productos, section#pensamiento {
        background-attachment: scroll; background-size: cover;
        padding-left: 1rem; padding-right: 1rem;
    }
    section#carrusel { min-height: 0; padding: 1rem .5rem 0; }
    article#pensamientoTexto { font-size: clamp(1.5rem, 5vw, 2.6rem); padding: 2.5rem 1rem 1.5rem; }
    .titulo1, .titulo2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
    .titulo3 { font-size: clamp(1rem, 3vw, 1.4rem); }
    .catItem { width: 30%; margin: 0 1.5% 24px; }
    footer { padding: 1.25rem 1rem; }
}

@media (max-width: 767.98px) {
    body { font-size: 1rem; padding-top: 0; }
    header { min-height: 58px; }
    #menu { padding: .35rem .75rem; }
    #menu .navbar-brand { margin-right: .5rem; }
    #menu .navbar-brand img { max-height: 44px; max-width: 132px; }
    #menu .navbar-collapse {
        margin: .35rem -.75rem -.35rem; padding: .5rem .9rem .8rem;
        background: #212529; text-align: left;
        max-height: calc(100vh - 60px); overflow-y: auto;
    }
    #menu .nav-link { padding: .55rem .25rem; font-size: 1rem; }
    #layerslider_1, .ls-wp-container, .ls-container { max-width: 100vw !important; overflow: hidden !important; }
    section#mision, section#qsomos, section#calidad, section#nproductos { min-height: 0; }
    article#qsomosTexto, article#calidadTexto, article#nproductosTexto,
    article#misionTexto, article#visionTexto, article#valoresTexto {
        width: 100%; padding: 1rem 1.15rem; text-align: left; line-height: 1.55;
    }
    article#qsomosFoto, article#calidadFoto, article#nproductosFoto { width: 100%; padding: .5rem 1rem 1.25rem; }
    article#videosContenido { margin: .5rem 0; width: 100%; overflow: hidden; }
    section#pensamiento { min-height: 240px; }
    article#pensamientoTexto { padding-top: 4.5rem; }
    .copyright { font-size: .8rem; }
    .catItem { width: 46%; margin: 0 2% 18px; }
    .catItem .cattitle p, .catItem.min .cattitle p { font-size: .75rem; line-height: 1rem; }
    .bg, .bg0 {
        min-width: 0; min-height: 100vh; max-width: none; width: 100%;
        background-size: cover; background-attachment: scroll;
    }
    .form-signin { width: min(92%, 360px); padding: 90px 12px 20px; }
}

@media (max-width: 479.98px) {
    .catItem { width: 96%; margin: 0 2% 16px; }
    section#productos { padding-top: 2rem; }
    .slick-slide { padding: 0 .25rem; }
}


/* Hero LayerSlider: correccion especifica para telefono */
@media (max-width: 767.98px) {
    header > #layerslider_1,
    #layerslider_1.ls-wp-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 52vw !important;
        min-height: 190px !important;
        max-height: 260px !important;
        margin: 0 !important;
        overflow: hidden !important;
        background: #000 !important;
    }

    #layerslider_1 .ls-inner,
    #layerslider_1 .ls-layers,
    #layerslider_1 .ls-slide {
        width: 100% !important;
        height: 100% !important;
        max-height: 260px !important;
        overflow: hidden !important;
    }

    /* La foto llena el carrusel sin deformarse ni quedar gigante */
    #layerslider_1 .ls-bg {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* En celular se ocultan los textos animados del hero: en 390px se pisan. */
    #layerslider_1 .ls-l:not(img) {
        display: none !important;
    }

    /* Logo superpuesto, mas chico y dentro del cuadro */
    #layerslider_1 img.ls-l:not(.ls-bg) {
        width: 42% !important;
        max-width: 180px !important;
    }

    #layerslider_1 .ls-bottom-nav-wrapper,
    #layerslider_1 .ls-nav-start,
    #layerslider_1 .ls-nav-stop {
        transform: scale(.8);
        transform-origin: center bottom;
    }
}

@media (max-width: 420px) {
    header > #layerslider_1,
    #layerslider_1.ls-wp-container {
        height: 55vw !important;
        min-height: 185px !important;
        max-height: 225px !important;
    }
    #layerslider_1 .ls-inner,
    #layerslider_1 .ls-layers,
    #layerslider_1 .ls-slide {
        max-height: 225px !important;
    }
}
