:root {
  /*--color-principal: #005ce6;*/
  --color-principal: #185fe9;
  --color-navbar: #185fe9;
  --color-blanco: #e6f0ff;
  --color-negro: #262626;
  --color-background: #fafafa;
  --color-rojo: #cc3300;
  --color-verde: #009900;

  /* Para la marquesina de equipos y consumibles  */
  --marquee-width: 1600px;
  --marquee-height: 35vh;
  /* --marquee-elements: 12; */ /* defined with JavaScript */
  --marquee-elements-displayed: 6;
  --marquee-element-width: calc(var(--marquee-width) / var(--marquee-elements-displayed));
  --marquee-animation-duration: calc(var(--marquee-elements) * 1.5s);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  scroll-behavior: smooth;
}

/* Reseteos */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

a {
  text-decoration: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.2;
  font-family: 'Marcellus', serif;
  background-color: var(--color-background);
  overflow-x: hidden;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1,h2,h3,h4 {
    font-family: 'Syncopate', sans-serif;
}

h1 {
  font-size: 3em;
}

i {
  color: var(--color-background);
}

.container {
    max-width: 1600px;
    margin-left: 4rem; /* para dar espacio al sidebar */
    padding: 4rem 1rem;
}

.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-content-fill {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat( auto-fill, minmax(16rem, 1fr) );
}

.column-content-fit {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat( auto-fit, minmax(16rem, 1fr) );
}

.btn-azul {
  color: var(--color-blanco);
  background-color: transparent;
  border: 3px solid var(--color-blanco);
  border-radius: 3px;
  outline: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  cursor: pointer;
  box-shadow: rgb(0 0 0 / 25%) 0px 14px 28px, rgb(0 0 0 / 22%) 0px 10px 10px;
  padding: 0.8rem 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all .3s;
}
.btn-azul:hover {
  color: var(--color-negro);
  background: var(--color-blanco);
}
.btn-azul:hover i {
  color: var(--color-negro);
}

.btn-vermas {
  margin: 2rem 0;
  color: var(--color-negro);
  background-color: transparent;
  border: 3px solid var(--color-negro);
  border-radius: 3px;
  outline: 0;
  display: inline-block;
  cursor: pointer;
  box-shadow: rgb(0 0 0 / 25%) 0px 14px 28px, rgb(0 0 0 / 22%) 0px 10px 10px;
  padding: 0.8rem 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all .3s;
}
.btn-vermas:hover {
  color: var(--color-blanco);
  background: var(--color-negro);
}

footer {
  min-height: 10vh;
  width: 100%;
  background-color: var(--color-navbar);
  color: var(--color-blanco);
}

/*
  Barra de navegación lateral
*/
.sidebar {
  position: fixed;
  width: 4rem;
  min-height: 130vh;
  transition: width 0.3s;
  background-color: var(--color-navbar);
  z-index: 5;
}

.sidebar.open {
  width: 13rem;
}

.toggler {
  top: 1rem;
  right: -3rem;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  position: absolute;
  transition: all 0.3s;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-navbar);
  z-index: 5;
}

.toggler:hover {
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.toggler .line {
  width: 60%;
  height: 2px;
  position: absolute;
  transition: all 0.3s;
  background-color: var(--color-blanco);
}

.toggler .line:first-child {
  width: 40%;
  transform: translateX(-4px) translateY(-8px);
}

.toggler .line:last-child {
  width: 50%;
  margin-bottom: 0px;
  transform: translateX(-2px) translateY(8px);
}

.toggler.open .line:first-child {
  width: 60%;
  transform: translateX(0px) translateY(0px) rotate(45deg);
}

.toggler.open .line:last-child {
  width: 60%;
  transform: translateX(0px) translateY(0px) rotate(-45deg);
}

.toggler.open .line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.nav-header {
  display: flex;
  align-items: center;
  transition: all 0.3s;
  justify-content: center;
  color: rgba(255, 255, 255, 1);
}

.sidebar.open .nav-header {
  margin-left: 0.6rem;
  justify-content: flex-start;
}

.nav-header i {
  cursor: pointer;
  font-size: 1.5rem;
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  /* border-radius: 0.5rem; */
}

.nav-header i:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-header .brand {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-header .brand p {
  display: none;
  cursor: pointer;
  margin-top: 12px;
  font-weight: 600;
  font-size: 1.3rem;
  margin-left: -12px;
}

.sidebar.open .nav-header .brand p {
  display: block;
}

.sidebar.open .nav-header i:hover {
  background-color: transparent;
}

.nav-body ul {
  display: flex;
  margin-top: 1rem;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.nav-body ul a li {
  display: none;
}

.sidebar.open .nav-body ul a li {
  display: block;
  padding-left: 10px;
}

.nav-body ul a {
  width: 85%;
  display: flex;
  padding: 8px 0px;
  align-items: center;
  /* border-radius: 0.4rem; */
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.sidebar.open .nav-body ul a {
  padding-left: 10px;
  text-decoration: none;
  justify-content: flex-start !important;
}

.nav-body ul a:hover {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(255, 255, 255, 0.1);
}


/*
  Encabezado principal
*/
.hero-image {
  background-color: rgba(0, 0, 0, 1);
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/hero.jpg");
  height: 80vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: -1;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -15%);
  color: var(--color-blanco);
  z-index: 2;
}

.hero-text button {
  margin-top: 2rem;
}

.hero-text h2 {
  color: var(--color-blanco);
  font-family: tahoma;
  font-size: 3rem;
  font-weight: 100;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  /* width: 850px; */
  width: 100%;
}

.hero-text h2 span {
  font-size: 40px;
  margin-left: 40px;
}

.message {
  background-color: rgba(230, 240, 255, .2);
  border-radius: 5px;
  color: #fff;
  display: block;
  font-weight: 900;
  overflow: hidden;
  position: absolute;
  padding-left: 0.5rem;
  top: 0.2rem;
  left: 0px;
  min-width: 500px;
  animation: openclose 5s ease-in-out infinite;
}

@keyframes openclose {
  0% {
    top: 0.2rem;
    width: 0;
  }
  5% {
    width: 0;
  }
  15% {
    width: 230px;
  }
  30% {
    top: 0.2rem;
    width: 230px;
  }
  33% {
    top: 0.2rem;
    width: 0;
  }
  35% {
    top: 0.2rem;
    width: 0;
  }
  38% {
    top: -4.5rem;
    
  }
  48% {
    top: -4.5rem;
    width: 190px;
  }
  62% {
    top: -4.5rem;
    width: 190px;
  }
  66% {
    top: -4.5rem;
    width: 0;
    text-indent: 0;
  }
  71% {
    top: -9rem;
    width: 0;
    text-indent: 5px;
  }
  86% {
    top: -9rem;
    width: 285px;
  }
  95% {
    top: -9rem;
    width: 285px;
  }
  98% {
    top: -9rem;
    width: 0;
    text-indent: 5px;
  }
  100% {
    top: 0;
    width: 0;
    text-indent: 0;
  }
}

#servicios, #equipos {
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5)), url(../images/background.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#galeria {
  background: #8e9eab;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to top, #eef2f3, #8e9eab);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #eef2f3, #8e9eab); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
#galeria h2 {
  color: var(--color-blanco);
}

/* Carusel de Maquinarias y consumibles */
.marquee {
	width: var(--marquee-width);
	height: var(--marquee-height);
	overflow: hidden;
	position: relative;
}
.marquee:before, .marquee:after {
	position: absolute;
	top: 0;
	width: 10rem;
	height: 100%;
	content: "";
	z-index: 1;
}
/* .marquee:before {
	left: 0;
	background: linear-gradient(to right, rgba(54, 129, 133, 1) 0%, transparent 100%);
}
.marquee:after {
	right: 0;
	background: linear-gradient(to left, rgba(54, 129, 133, 1) 0%, transparent 100%);
} */
.marquee-content {
	list-style: none;
	height: 100%;
	display: flex;
	animation: scrolling var(--marquee-animation-duration) linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}
@keyframes scrolling {
	0% { transform: translateX(0); }
	100% { transform: translateX(calc(-1 * var(--marquee-element-width) * var(--marquee-elements))); }
}
.marquee-content li {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: var(--marquee-element-width);
	max-height: 100%;
	font-size: calc(var(--marquee-height)*3/4); /* 5rem; */
	white-space: nowrap;
}
.marquee-content li img {
	border-radius: 5px;
  padding-right: 2rem;
}
/* .marquee-content li p {
	font-size: 4.5rem;
	line-height: 1.1;
	color: var(--color-rojo);
	border-bottom: 2px solid var(--color-rojo);
	letter-spacing: -1px;
	padding: 0 2rem;
	margin: 0;
} */
@media (max-width: 600px) {
	:root {
	  --marquee-width: 100vw;
	  --marquee-height: 22vh;
	  --marquee-elements-displayed: 2;
	}
	.marquee:before, .marquee:after { width: 5rem; }
}


/*
    Animación corte laser
*/
.logo {
    display: block;
    font: 8em 'Syncopate';
    /* width: 960px; */
    width: 100%;
    /* height: 300px; */
    margin: 0 auto;
    text-shadow: 2px 2px 4px #000;
}

.text-copy {
    fill: none;
    stroke: white;
    /* stroke-dasharray: 6% 29%; */
    stroke-dasharray: 6% 29%;
    stroke-width: 3px;
    stroke-dashoffset: 25%;
    animation: stroke-offset 5.5s 25 linear;
    /*animation-iteration-count: 25;*/ /* número de veces que se repite la animación (infinite)*/
}

.text-copy:nth-child(1){
	stroke: var(--color-blanco);
	animation-delay: -2s;
}

.text-copy:nth-child(3){
	stroke: var(--color-blanco);
	animation-delay: -3s;
}

.text-copy:nth-child(4){
	stroke: var(--color-blanco);
	animation-delay: -4s;
}

.text-copy:nth-child(5){
	stroke: var(--color-blanco);
	animation-delay: -5s;
}

@keyframes stroke-offset{
	100% {stroke-dashoffset: -35%;}
}

.text-service, .img-service {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 4rem;
  overflow: hidden;
}
.img-service {
  position: relative;
  border: 1px solid #ccc;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.text-service h3 {
  padding-bottom: 1rem;
}
.text-service p {
  text-align: justify;
}
.service-area {
  margin-bottom: 8rem;
}

.section-title {
  position: relative;
  margin-bottom: 4rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 150px;
  height: 2px;
  background-color: var(--color-principal);
}
.section-title-footer {
  position: relative;
  margin-bottom: 4rem;
}
.section-title-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 150px;
  height: 2px;
  background-color: var(--color-blanco);
}

/*
  Corte cizalla
*/
.cizalla {
  text-align: center;
  font-size: 7vw;
  position: relative;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  color: transparent;
}
.cizalla:focus {
  outline: none;
}

.cizalla::before, .cizalla::after {
  content: attr(data-heading);
  position: absolute;
  top: 0;
  left: 0;
}

.cizalla::before {
  color: #ccc;
  -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 40%, 0 60%);
          clip-path: polygon(0% 100%, 100% 100%, 100% 40%, 0 60%);
}

.cizalla::after {
  color: var(--color-negro);
  -webkit-clip-path: polygon(0 0, 100% 0%, 100% 36%, 0 56%);
          clip-path: polygon(0 0, 100% 0%, 100% 36%, 0 56%);
  -webkit-animation: slide 5s infinite;
          animation: slide 5s infinite;
}

@-webkit-keyframes slide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translate(-20px, 2%);
  }
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translate(-20px, 2%);
  }
}


/*
  Efecto Doblez
*/
.doblez {
  position: relative;
  padding: 2rem 4rem;
  border: 1px solid #ccc;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  min-height: 452px;
}

.Wordz {
  /* margin: 0 auto; */
  /* padding: 80px 0; */
  margin: 0;
  padding: 1rem 0;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 3vw;
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  -webkit-font-kerning: normal;
  -webkit-text-size-adjust: 100%;
}

/*
** Apply common styles to each line of text
*/
.Words-line {
  height: 50px;
  overflow: hidden;
  position: relative;
}
.Words-line:nth-child(odd) {
  transform: skew(60deg, -30deg) scaleY(0.66667);
}
.Words-line:nth-child(even) {
  transform: skew(0deg, -30deg) scaleY(1.33333);
}
.Words-line:nth-child(1) {
  left: 29px;
}
.Words-line:nth-child(2) {
  left: 58px;
}
.Words-line:nth-child(3) {
  left: 87px;
}
.Words-line:nth-child(4) {
  left: 116px;
}
.Words-line:nth-child(5) {
  left: 145px;
}
.Words-line:nth-child(6) {
  left: 174px;
}
.Words-line:nth-child(7) {
  left: 203px;
}

.Wordz p {
  height: 50px;
  line-height: 45px;
  padding: 0 10px;
  transition: all 0.4s ease-in-out;
  transform: translate3d(0, 0, 0);
  vertical-align: top;
  white-space: nowrap;
}

.Wordz:hover p {
  transform: translate3d(0, -50px, 0);
}

#nosotros {
  padding: 2rem 4rem;
  background-image: 
    linear-gradient(to bottom, rgba(217, 217, 217, .1), rgba(0, 0, 0, 1)),
    url(../images/nosotros.webp);
  background-size: cover;
  background-attachment: fixed; 
  color: var(--color-blanco);
  min-height: 3vh;
}

#nosotros p {
  font-size: 1.2em;
  line-height: 1.5;
}

#nosotros p span {
  font-size: 1.3em;
  letter-spacing: 2px;
}

#nosotros button {
  margin: 4rem 0 2rem 0;
}

/*
  Galeria
*/
.image-gallery {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 20px;
}

.image-gallery .image-box {
  position: relative;
  background-color: var(--color-background);
  overflow: hidden;
}

.image-gallery .image-box:nth-child( 7n+1 ){
  grid-column: span 2;
  grid-row: span 2;
}

.image-gallery .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .5s ease;
}

.image-gallery .image-box img:hover {
  transform: scale(1.5);
}

.btn-play img:hover {
  transform: none;
}

.btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  cursor: pointer;
  object-fit: none;
}

@media( max-width:768px ){
  .image-gallery{
    grid-template-columns: repeat( auto-fit, minmax( 250px, 1fr ));
    grid-auto-rows: 250px;
  }

  .image-gallery .image-box:nth-child( 7n +1 ){
    grid-column: unset;
    grid-row: unset;
  }
}


/*

  Area de contacto

*/
.formulario-contacto {
  border-radius: 5px;
  background-color: var(--color-negro);
  padding: 4rem;
}

.mapa-contacto {
  padding: 4rem 0;  
}

#contacto form {
  margin: 2rem 0 4rem 0;
}

#contacto input, #contacto textarea {
  color: var(--color-blanco);
  display: inline-block;
  margin: 0 1rem 1rem 0;
  width: 100%;
  outline: none;
  border: none;
  border-bottom: 0.1rem solid var(--color-blanco);
  background-color: transparent;
  height: 2.2rem;
  padding: 0 .5rem;
}

#contacto input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--color-blanco);
  opacity: 1; /* Firefox */
}
#contacto input:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: var(--color-blanco);
}
#contacto input::-ms-input-placeholder { /* Microsoft Edge */
  color: var(--color-blanco);
}
#contacto textarea::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--color-blanco);
  opacity: 1; /* Firefox */
}
#contacto textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: var(--color-blanco);
}
#contacto textarea::-ms-input-placeholder { /* Microsoft Edge */
  color: var(--color-blanco);
}
#contacto textarea {
  width: 100%;
  resize: none;
  margin-top: 1rem;
}

/* Le quito el fondo amarillo cuando esta en foco el input */
#contacto input:-webkit-autofill,
#contacto input:-webkit-autofill:hover, 
#contacto input:-webkit-autofill:focus, 
#contacto input:-webkit-autofill:active  {
    box-shadow: 0 0 0 100px var(--color-negro) inset !important;
    -webkit-box-shadow: 0 0 0 100px var(--color-negro) inset !important;
    -webkit-text-fill-color: var(--color-blanco) !important;
}

#contacto a {
  display: inline-block;
}

#contacto a img {
  margin: 2rem 0 0 0;
  padding: 0;
  width: 60px;
}

.error {
  color: var(--color-rojo);
  display: none;
}

#form-success {
  display: none;
  padding: 2rem 0;
}


.wa-contact a {
  display: inline-block;
  color: var(--color-blanco);
  text-decoration: none;
  height: 28px;
}

.wa-contact {
  display: flex;
  justify-content: left;
  flex-direction: row;
  margin: 1rem 0;
}

.wa-contact img {
  display: inline-block;
  max-width: 28px;
  width: 28px;
  height: 28px;
  margin-right: 1rem;
}


/*
  Botón flotante de WhatsApp
*/
.div-whatsapp {
	position: fixed;
	bottom: 5rem;
	right: 2rem;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  z-index: 20;
}

.div-whatsapp p {
  color: var(--color-negro);
  padding: .8rem;
  font-size: 1em;
  letter-spacing: 1px;
}

.btn-whatsapp {
	background-color: #0df053;
	border-radius: 50px;
	box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
  transition: background-color .3s ease;
  z-index: 999;
}
.btn-whatsapp:hover {
	background-color: #0ac244;
}


.div-whatsapp::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #d9d9d9;
    border-radius: 6px;
    opacity: 0.7;
}
.div-whatsapp::before {
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}



/*

  ADAPATACION A DISPOSITIVOS MOVILES

*/
@media( max-width:768px ){
  .hero-text {
    left: .1rem;
    transform: translate(0px, -20%);
  }
  h1 {
    font-size: 1.7em;
  }
  h2 {
    font-size: 2em;
  }

  .hero-image {
    height: 60vh;
  }

  .hero-text {
    width: 100%;
    padding-left: 4rem;
  }

  .hero-text h2 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .message {
    font-weight: 100;
    left: -90px;
  }
  
  .btn-azul, .btn-vermas {
    border: 2px solid var(--color-blanco);
    padding: 0.5rem 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .8em;
  }
  
  .img-service, .text-service {
    padding: 1rem;
  }

  .service-area {
    margin-bottom: 2rem;
  }

  #nosotros {
    margin: 0rem;
    padding: 1rem;
  }

  .formulario-contacto {
    padding: 1rem;
  }

  .div-whatsapp {
    position: fixed;
    bottom: 4rem;
    right: 5.5rem;
  }

  .div-whatsapp p {
    padding: .6rem;
    font-size: .8em;
  }  
  
}