html {
  color: #222;
  font-size: 1em;
  /* line-height: 1.4; */
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  overflow-x: hidden;
  scroll-padding: 5rem;
  scroll-behavior: smooth;
  transition: all 0.5s;
}

/* Avoid overflow on the x-axis */
#two {
  overflow-x: hidden;
  display: flow-root;
}

#two h2 {
  font-size: 3rem;
  padding: 0;
  margin: 0 auto;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

body {
  background: #f9f9f9;
  background-color: #151517;
  height: 100vh;
  overflow-x: hidden;
  scroll-snap-type: mandatory;
  overflow-y: scroll;
}

/* Header */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  padding: 0.3em 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.navigation {
  display: flex;
  font-size: 0.9em;
}

@media screen and (max-width: 480px) {
  .navigation {
    display: flex;
    flex-direction: column;
  }
}

.navigation a {
  text-decoration: none;
  color: #fff;
  padding: 0.3em 0.75em;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #e14c41;
}

.navigation ul {
  list-style: none;
  display: flex;
}

.navigation a:hover,
.navigation a.active {
  background: #e14c41;
  color: #fff;
  border-radius: 0.7rem;
  transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.3s;
}

.logo {
  width: 50%;
}

/* Logo smaller for bigger screen sizes */

@media (min-width: 768px) {
  .logo {
    width: 20%;
  }
}

.parallax {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  color: #fff;
  text-align: center;
}

.parallax span {
  font-size: 1.5em;
  font-family: "Open Sans", serif;
  font-weight: 700;
  padding: 0;
}	

.parallax img {
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  filter: brightness(1);
}

.back-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

@media (min-aspect-ratio: 16/9) {
  .back-video {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .back-video {
    width: auto;
    height: 100%;
  }
}

.curve {
  position: absolute;
  height: 225px;
  width: 100%;
  bottom: 0;
}

.curve::before {
  content: "";
  position: absolute;
  border-radius: 100% 50%;
  width: 75%;
  height: 100%;
  background-color: #151517;
  transform: translate(-80%, 90%);
}

.curve::after {
  content: "";
  position: absolute;
  border-radius: 100% 50%;
  width: 65%;
  height: 100%;
  background-color: #151517;
  transform: translate(10%, 80%);
  z-index: 1;
}

#text {
  position: absolute;
  font-size: 4em;

  font-weight: 700;
  padding: 0;
}

#text span {
  font-size: 0.3em;
  color: #fff;
    font-family: "Open Sans", serif !important;
  padding: 0;
}

#text em {
  font-size: 1.1em;
  color: #e14c41;
  font-style: normal;
}

/* Make the text em bigger for bigger screen sizes */

@media (min-width: 768px) {
  #text em {
    font-size: 1.5em;
  }
}

.sec {
  margin-top: 0em;
  display: grid;
  place-items: center;
  align-content: center;
  color: #fff;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

.sec p {
  padding: 1em;
  scroll-snap-align: start;
}

.about {
  padding: 0;
  height: 50vh;
}

#image-track {
  display: flex;
  gap: 4vmin;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(0%, -50%);
  user-select: none; /* -- Prevent image highlighting -- */
}

#image-track > .image {
  width: 40vmin;
  height: 56vmin;
  object-fit: cover;
  object-position: 100% center;
}

.services {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1em;
  z-index: 1;
}

.services h2 {
  font-size: 3em;
  color: #fff;
  font-weight: 700;
  margin: 2rem;
  padding: 0;
  text-align: center;
}

.services p {
  font-size: 1em;
  color: #fff;
  font-weight: 400;
  margin: 2rem;
  padding: 0;
  text-align: center;
}

.services ul {
  list-style: none;
  padding: 1em;
  margin: 1em;
  display: flex;
}

@media (max-width: 1020px) {
  .services ul {
    display: grid;
    gap: 1em;
  }
}

.services em {
  color: #e14c41;
}

.services ul img {
  width: 7em;
  height: 7em;
  border-radius: 10%;
}

/* images bigger for bigger screen sizes */

@media (min-width: 768px) {
  .services ul img {
    width: 12em;
    height: 12em;
  }
}

.services ul li {
  padding: 1em;
  margin: 0em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1em;
  background: #e14c41;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: all 1s;
}

.item:nth-child(1) {
  transition-delay: 200ms;
  background-color: rgba(210, 84, 75, 0.1);
}

.item:nth-child(2) {
  transition-delay: 400ms;
  background-color: rgba(210, 84, 75, 0.3);
}

.item:nth-child(3) {
  transition-delay: 600ms;
  background-color: rgba(210, 84, 75, 0.5);
}

.item:nth-child(4) {
  transition-delay: 700ms;
  background-color: rgba(210, 84, 75, 0.7);
}

.item:nth-child(5) {
  transition-delay: 800ms;
  background-color: rgba(210, 84, 75, 1);
}

.galeria {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background-color: #151517;
}


/*!! Transition for the services */
.hid {
  opacity: 0;
  filter: blur(10px);
  transform: translateX(-100%);
  transition: all 1s;
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

/*!! Portfolio */

/*!! Make each item occupy the full width and do not collide with others */

.card-item {
  margin: 0.2em;
}

/*!! Portfolio section */

#three {
  display: relative;
  font-size: 14px;
  color: #000;
  margin: 0;
  margin-bottom: 10em;
  padding: 0;
}

#three:hover {
  background-color: #151517;
}

#three img {
  cursor: pointer;
}

#three h2 {
  font-size: 2em;
  color: #fff;
  font-weight: 700;
  margin: 2rem;
  padding: 0;
  text-align: center;
}

.content-wrapper {
  margin: 0 auto;
  padding: 1em;
}

.grid-container {
  display: grid;
  grid-gap: 1em;
  grid-template-columns: repeat(2, 1fr);
}

.img-fluid {
  width: 100%;
  height: auto;
}

@media screen and (min-width: 500px) {

  .grid-container {
    grid-template-columns: repeat(3, 2fr);
  }

  .content-wrapper {
    max-width: 75vw;
  }
}

/* Grid changes again on larger screens */
@media screen and (min-width: 1000px) {

  .grid-container {
    /* Three equally sized colums, 1 fraction or "fr" each: */
    grid-template-columns: repeat(5, 1fr);
  }

  .content-wrapper {
    /* Again, just to wrap the content: */
    max-width: 50vw;
  }
}

footer .container {
	max-width: 1200px;
	padding: 0;
	box-sizing: border-box;
}
footer .row{
	display: flex;
	flex-wrap: wrap;
  justify-content: center;
}
footer ul{
	list-style: none;
}

footer p {
  color: #fff;
}

.footer{
	background-color: #24262b;
    padding: 70px 0;
}
.footer-col{
   width: 25%;
   padding: 0 15px;
}
.footer-col h4{
	font-size: 18px;
	color: #ffffff;
	text-transform: capitalize;
	margin-bottom: 35px;
	font-weight: 500;
	position: relative;
}
.footer-col h4::before{
	content: '';
	position: absolute;
	left:0;
	bottom: -10px;
	background-color: rgba(210, 84, 75, 1);
	height: 2px;
	box-sizing: border-box;
	width: 50px;
}
.footer-col ul li:not(:last-child){
	margin-bottom: 10px;
}
.footer-col ul li a{
	font-size: 16px;
	text-transform: capitalize;
	color: #ffffff;
	text-decoration: none;
	font-weight: 300;
	color: #bbbbbb;
	display: block;
	transition: all 0.3s ease;
}
.footer-col ul li a:hover{
	color: #ffffff;
	padding-left: 8px;
}
.footer-col .social-links a{
	display: inline-block;
	height: 40px;
	width: 40px;
	background-color: rgba(255,255,255,0.2);
	margin:0 10px 10px 0;
	text-align: center;
	line-height: 40px;
	border-radius: 50%;
	color: #ffffff;
	transition: all 0.5s ease;
}
.footer-col .social-links a:hover{
	color: #24262b;
	background-color: #ffffff;
}

/*responsive*/
@media(max-width: 767px){
  .footer-col{
    width: 50%;
    margin-bottom: 30px;
}
}
@media(max-width: 574px){
  .footer-col{
    width: 100%;
}
}


/*!!@Modal Box*/

/* Mantén las propiedades que necesites de antes y ajusta solo lo requerido */

.modal {
  display: none;
  position: fixed;
  z-index: 999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  /* Fondo negro y texto blanco */
  background-color: #000;
  color: #fff;

  /* Mantén el resto de estilos y ajusta tamaños */
  margin: 10% auto;
  padding: 20px;
  max-width: 600px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

  /* Texto más grande y fuente más llamativa */
  font-family: "Open Sans", serif;
  font-size: 1.2rem;
  line-height: 1.5;
  position: relative;
}

/* Imagen más pequeña */
.modal-img {
  max-width: 40%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto; /* Centrada con margen inferior */
  border-radius: 1em;
}

/* Botón de cierre (X) en blanco */
.close-btn {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

/* Hover del botón de cierre en color #e14c41 */
.close-btn:hover {
  color: #e14c41;
}


/* Testimonial Section */


/* -- SECCIÓN PRINCIPAL DEL SLIDER -- */
    section.testimonial-slider {
      width: 100%;
      max-width: 100vw;
      position: relative;
      overflow: hidden;
      border: 2px solid #e14c41; /* Borde color principal */
      border-radius: 8px;
      background-color: #1a1a1a; /* Negro claro para contraste */
      padding: 2em;
      text-align: center;
      /* Altura fija para evitar saltos al cambiar de testimonio */
      min-height: 350px;
      margin-bottom: 20em;
    }

    /* -- ESTILO DE CADA TESTIMONIO (SLIDE) -- */
    .testimonial-slide {
      /* Posicionamos en el mismo lugar para hacer un fade in/out superponiendo */
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;

      /* Empieza con opacidad 0 y sin interacción */
      opacity: 0;
      pointer-events: none;

      /* Transición suave de opacidad */
      transition: opacity 0.6s ease;
    }

    /* -- TESTIMONIO ACTIVO -- */
    .testimonial-slide.active {
      /* Opacidad completa y habilitamos la interacción del usuario */
      opacity: 1;
      pointer-events: auto;
      position: relative; /* para que el contenido aparezca en el flujo normal */
    }

    /* -- CONTENIDO DE CADA TESTIMONIO -- */
    .testimonial-image img {
      width: 90px;
      height: 90px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #e14c41;
      margin-bottom: 1em;
    }

    .testimonial-text {
      font-style: italic;
      margin: 2em;
      color: #ccc;
    }

    .person-name {
      font-weight: bold;
      font-size: 1.2em;
      color: #ffffff;
      margin-bottom: 0.3em;
    }

    .person-name::after {
      content: "";
      display: block;
      width: 40px;
      height: 2px;
      background-color: #e14c41;
      margin: 0.5em auto;
    }

    .person-role {
      font-size: 0.95em;
      color: #e14c41;
    }

    /* -- BOTONES DE NAVEGACIÓN -- */
    .slider-nav {
      position: absolute;
      top: 50%;
      width: 90%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
    }

    .slider-btn {
      background-color: transparent;
      border: 2px solid #e14c41;
      color: #e14c41;
      cursor: pointer;
      padding: 0.5em 1em;
      border-radius: 4px;
      font-size: 1em;
      transition: background-color 0.3s ease;
    }

    .slider-btn:hover {
      background-color: #e14c41;
      color: #fff;
    }

    /* -- RESPONSIVE -- */
    @media (max-width: 600px) {
      section.testimonial-slider {
        width: 90%;
      }
      .slider-btn {
        font-size: 0.9em;
      }
    }