:root {
  --horizontal-margin: 4rem;
  --horizontal-padding: 1rem;
  --vertical-padding: 1rem;
  --header-height: 5rem:;

  --default-color: black;
  --primary-color: #068ADE;
  --secondary-color: #EEBE00;
  --tertiary-color: #EF2240;

  --animation-time: 0.5s;

  --welcome-bg-color: black;
  --welcome-animation-time: 5s;
  --welcome-font-size: 3rem;

  --geomanist-font: 'Geomanist';
  --font-size: 16px;
  --boxes-side: 15rem;
  --step-size: 12rem;
  --big-breakpoint: 1000px;
  --text-color: black;

  --content-max-width: min( calc(95dvw - 20px), 1100px);
}

@font-face {
  font-family: 'Geomanist';
  src: url('/assets/fonts/Geomanist-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Geomanist';
  src: url('/assets/fonts/Geomanist-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Geomanist';
  src: url('/assets/fonts/Geomanist-Book.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Geomanist';
  src: url('/assets/fonts/Geomanist-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Geomanist';
  src: url('/assets/fonts/Geomanist-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal
}

@font-face {
  font-family: 'Geomanist';
  src: url('/assets/fonts/Geomanist-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Geomanist';
  src: url('/assets/fonts/Geomanist-Regular-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

/*
html,
body {
  min-height: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  min-width: 100%;
}
*/

html {
  margin: 0 !important;
  padding: 0 !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
}

body {
  /* margin: 0 var(--horizontal-margin) 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1; */
  font-family: var(--geomanist-font);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
}


main {
  margin: 0;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100vw;
  text-align: center;
}


*:hover,
*:hover *,
*:hover * * {
  transition: background-color var(--animation-time) ease, color var(--animation-time) ease, border-color var(--animation-time) ease, opacity var(--animation-time) ease, box-shadow var(--animation-time) ease, transform var(--animation-time) ease, aspect-ratio var(--animation-time) ease, width var(--animation-time) ease;
}


section.row {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

section.screen {
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  align-content: space-evenly;
  margin: 0;
  min-height: 100dvh;
  transition: min-height 0.5s ease;
}

section.screen.horizontal-screen{
  display: flex;
  flex-wrap: wrap;
}

section.screen.short-screen {
  min-height: 10vh;
}

.sub-screen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

section.quick-info {
  position: relative;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 20px;
  padding-bottom: 20px;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: calc(var(--font-size) * 2);
}

.quick-links h3 {
  margin: 0;
}

.quick-links a {
  text-decoration: none;
  font-weight: 500;
  color:var(--default-color);
}

.quick-links a span.i {
  width: 3rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  /* padding-right: 1rem; */
}

.quick-links a:hover span.i {
  transform: scale(1.2);
}


.quick-links a span.t {
  border-bottom: 5px solid transparent;
}

.quick-links a:hover span.t {
  border-bottom-color: var(--secondary-color);
}

.generic-section,
.services,
.simple-steps,
.youtube-videos-section,
.whychooseus,
.ourteam,
.testimonial,
.our-services-posters {
  flex-direction: column;
  justify-content: start;
  align-items: center;
  max-height: max-content;
  padding: 1rem;
  box-sizing: border-box;
}

.screen-title {
  font-size: 3rem;
  text-align: center;
  height: calc(2 * var(--header-height));
}

.screen-title.sub-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  max-width: var(--content-max-width);
}


.generic-container,
.boxes-container,
.steps-container,
.youtube-videos-container,
.advantages-container,
.poster-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--content-max-width);
}

.generic-list {
  text-align: left;
}

.generic-list.no-bullets ul {
  list-style: none
}

.column-container {
  flex-direction: column;
}

.boxes,
.steps,
.youtube-videos,
.advantages,
.poster-cards {
  /* width: 95dvw; */
  width: var(--content-max-width);
  display: flex;
  align-items: stretch;
  justify-content: center;
  /* column-gap: calc(var(--boxes-side) / 8); */
  column-gap: 20px;
  /* row-gap: calc(var(--boxes-side) / 6); */
  row-gap: 20px;
  flex-wrap: wrap;
}

.advantages {
  align-items: stretch;
}

.generic-body {
  max-width: 1000px;
  padding: 1rem;
  text-align: center;
  font-size: calc(1.5 * var(--font-size));
  word-break: normal;
  padding-bottom: 3rem;
}

.generic-body .cover-photo {
  display: inline-block;
  width: 100%;
  aspect-ratio: auto;
}

.box {
  display: flex;
  aspect-ratio: 2;
  height: var(--boxes-side);
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.box .cover {
  aspect-ratio: 1;
  height: var(--boxes-side);
  background-color: var(--secondary-color);
}

.box .extra {
  height: var(--boxes-side);
  width: 0;
  overflow: hidden;
}

.box:hover .extra {
  aspect-ratio: 1;
  width: var(--boxes-side);
}

.box-content {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  padding: 0.5rem;
  aspect-ratio: 1;
  height: 100%;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background-color: var(--primary-color);
  text-align: center;
}

.box .img {
  display: inline;
  width: 75%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
}

.step {
  display: flex;
  flex-direction: column;
  height: calc(1.5 * var(--step-size));
  width: var(--step-size);
  justify-content: start;
  align-items: center;
  text-align: center;
  font-weight: 500;
  background-color: black;
  color: whitesmoke;
  transition: transform 0.3s ease-in-out;
}

.step:hover {
  transform: scale(1.05);
}

.step:hover .picture .description.allow {
  visibility: visible;
  opacity: 100%;
}

.step .picture {
  display: inline-flex;
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;

  justify-content: center;
  align-items: center;
}

.step .picture .description {
  display: flex;
  box-sizing: border-box;
  padding: 1rem;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: black;
  color:whitesmoke;
  visibility: hidden;
  opacity: 0%;
}

.step .title {
  display: flex;
  font-size: 0.9rem;
  color: whitesmoke;
  width: 100%;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}

.info-card-container {
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 18%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.info-card-icon img {
  width: 60px;
  height: 60px;
}

.info-card-title {
  margin: 0;
  padding-top: 10px;
}

.info-card-description {
  display: inline-flex;
  flex-grow: 1;
  align-items: end;
  margin: 0;
  padding-top: 10px;
}

.main-title {
  width: var(--content-max-width);
  font-weight: 500;
  font-size: calc(2 * var(--font-size));
  border-bottom: 5px solid var(--primary-color);
  padding: 0.5rem;
  display: inline-flex;
  box-sizing: border-box;
}


.collage-container,
.testimonial-container {
  padding: 1rem;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}


.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
  width: 100%;
  max-width: var(--content-max-width);
}

.collage-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mantiene relación de aspecto, pero recorta */
  object-position: center;
  /* Centra el recorte */
  display: flex;
  justify-content: center;
  align-items: center;
}


.collage-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-item:nth-child(2) {
  grid-column: span 1;
  grid-row: span 1;
}

.collage-item:nth-child(3) {
  grid-column: span 2;
  grid-row: span 1;
}

.collage-item:nth-child(4) {
  grid-column: span 1;
  grid-row: span 2;
}

.collage-item:nth-child(5) {
  grid-column: span 2;
  grid-row: span 1;
}

.collage-item:nth-child(6) {
  grid-column: span 1;
  grid-row: span 1;
}

.collage-item:nth-child(7) {
  grid-column: span 2;
  grid-row: span 2;
}

.testimonials {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: auto;
}

.testimonial-card {
  text-align: center;
  min-width: 290px;
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  border-radius: 10px;
  background: var(--card-bg-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
}

.testimonial-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}

.testimonial-name {
  font-size: 1.2rem;
  font-weight: bold;
}

.testimonial-stars {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: gold;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-color);
  width: 75%;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
}

.star {
  color: lightslategray;
}

.active-star {
  color: gold;
}

.prev {
  left: 2rem;
}

.next {
  right: 2rem;
}

.poster-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 1rem;
  gap: 1rem;
  max-width: 280px;
  flex: 1 1 280px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.75rem;
  box-shadow: black 0 0 20px -10px;
}

.poster-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.poster-title {
  color: black;
  font-size: 1.5rem;
  font-weight: bold;
}

.poster-image-wrapper {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-image {
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.youtube-video-vertical {
  min-height: 100px;
  min-width: 300px;
  width: 30%;
}

.youtube-video-horizontal {
  min-height: 100px;
  min-width: 300px;
  width: 100%;
  max-width: var(--content-max-width);
  overflow: hidden;
}

.add-bottom-padding {
  padding-bottom: 1.5rem;
}

span.picture.steps-img-2 {
  background-position-x: 61%;
}

span.picture.steps-img-3 {
  background-position-x: 94%;
}

div.text {
  padding: 20px 80px;
  font-size: calc(var(--font-size) + 2px);
}

div.text.p-text-left p{
  text-align: left;
}

div.div-pictures {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: 1fr;
  justify-content: center;
  justify-items: center;
  gap: 20px;
  padding: 40px 0;
  max-width: var(--content-max-width);
  overflow-x: hidden;
}

div.div-pictures>img{
  max-height: 50dvh;
  width: auto;
}

div.div-pictures>img.xl{
  max-height: 70dvh;
  width: auto;
}
