/* ========================================== */
/* QUANTUX SALUD - MAIN STYLESHEET */
/* ========================================== */

/* ========================================== */
/* RESET & BASE STYLES */
/* ========================================== */

:root {
  /* Variables de color */
  --p-0: hsla(240, 50%, 98%, 1);
  --p-100: hsla(226, 55%, 94%, 1);
  --p-200-40:hsla(228, 56%, 89%, 0.4) ;
  --p-200-80: hsla(228, 56%, 89%, 0.8);
  --p-200: hsla(228, 56%, 89%, 1);
  --p-300: hsla(228, 52%, 80%, 1);
  --p-400: hsla(225, 46%, 70%, 1);
  --p-500: hsla(223, 31%, 49%, 1);
  --p-600: hsla(222, 36%, 38%, 1);
  --p-700-main: hsla(211, 100%, 18%, 1);
  --p-800: hsla(221, 100%, 14%, 1);
  --p-900: hsla(240, 100%, 10%, 1);

  --s-0: hsla(180, 20%, 99%, 1);
  --s-100: hsla(160, 60%, 99%, 1);
  --s-200-40: hsla(166, 57%, 90%, 0.4);
  --s-200-80: hsla(166, 57%, 90%, 0.8);
  --s-200: hsla(166, 57%, 90%, 1);
  --s-300: hsla(160, 55%, 81%, 1);
  --s-400-main: hsla(168, 96%, 46%, 1);
  --s-500: hsla(168, 96%, 40%, 1);
  --s-600: hsla(168, 95%, 34%, 1);
  --s-700: hsla(169, 96%, 28%, 1);
  --s-800: hsla(168, 98%, 16%, 1);
  --s-900: hsla(168, 100%, 4%, 1);

  --alt-background: hsla(240, 11%, 97%, 1);
  --ultra-light: hsla(240, 7%, 99%, 1);
  
  /* Variables tipográficas */ 
--font-family-display: "Red Hat Display", sans-serif;
--font-family-base: "Red Hat Text", sans-serif;

/* Variables de tamaños */
--font-size-xsm: 0.813rem; /* 13 px */
--font-size-sm: 0.938rem; /* 15px */
--font-size-md: 1.063rem; /* 17px */
--font-size-lg: 1.313rem; /* 20px */
--font-size-xl: 1.563rem; /* 25px */
--font-size-h2: 3rem; /* 48px */
--font-size-numbers: 4rem; /* 64px */
--font-size-h1: 4.563rem; /* 73px */

/* Variables line heights */ 
--line-height-text: 1.6em; 

/* Variables de pesos */ 
--font-weight-light: 300;
--font-weight-regular: 400; 
--font-weight-medium: 500;
--font-weight-semibold: 600; 
--font-weight-bold: 700;

/* Variables de ancho de columnas */
--info-width: 38%;
--content-width: 72%;

/* Variables de espacio de caracteres */
--char-space: 0.047rem;
}

/* ========================================== */
/* FONTS */
/* ========================================== */
@font-face {
  font-family: 'Red Hat Text';
  src: url('assets/fonts/RedHatText-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Red Hat Text';
  src: url('assets/fonts/RedHatText-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ========================================== */
/* BASE STYLES */
/* ========================================== */

/* === HEADINGS === */
h1 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-light);
  line-height: normal;
  letter-spacing: var(--char-space);
  color: var(--p-0);
}

h2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  line-height: normal;
  letter-spacing: var(--char-space);
  color: var(--p-600);
  text-align: center;
}

h3 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

/* === TEXT === */
.displaytext p {
  font-family: 'Red Hat Text', sans-serif;
  line-height: normal;
}

p {
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-text);
  letter-spacing: var(--char-space);
}

a {
  font-family: var(--font-family-base);
  font-size: var(--font-size-md);
  letter-spacing: var(--char-space);
  font-weight: var(--font-weight-regular);
  line-height: normal;
  text-decoration: none;
  color: var(--s-100);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  padding-bottom: 0.5rem;
}

button {
  font-size: 1.125rem;
  letter-spacing: normal;
  font-weight: 400;
  line-height: 1.2;
}

* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0; 
}

body { 
  font-family: var(--font-family-base);
  width: 100%; 
  overflow-x: hidden; 
}

/* ========================================== */
/* HEADER STYLES */
/* ========================================== */
header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1.5rem 4rem 1rem 4rem; 
  position: sticky; 
  top: 0; 
  background: var(--s-100); 
  box-shadow: 0 0 7px 2px rgba(0,0,50,0.1); 
  z-index: 100; 
  width: 100vw; 
}

.header-content { 
  max-width: 100%; 
  margin: 0 auto; 
  padding: 0rem 0rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  width: 100%; 
}

.logo img { 
  height: 32px; 
}

nav ul { 
  display: flex; 
  list-style: none; 
  gap: 2rem; 
}

nav a { 
  text-decoration: none; 
  color: var(--p-700-main); 
  font-weight: 600; 
  font-size: 1rem; 
}

/* ========================================== */
/* HERO SECTION STYLES */
/* ========================================== */
.hero { 
  height: 90vh; 
  position: relative; 
  overflow: hidden; 
  width: 100vw; 
  margin: 0; 
  padding: 0; 
}

.carousel { 
  position: relative; 
  height: 100%; 
  width: 100%; 
}

.carousel-inner { 
  height: 100%; 
  width: 100%; 
}

.carousel-item { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  opacity: 0; 
  transition: opacity 1s ease-in-out; 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
}

.carousel-item.active { 
  opacity: 1; 
}

.carousel-item::after { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,45,94,0.5); 
}

.carousel-item.video-item::after {
  display: none;
}

.carousel-item.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.carousel-caption { 
  position: absolute; 
  bottom: 10%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  padding: 1.5rem; 
  border-radius: 12px; 
  width: 880px; 
  height: 200px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 2; 
  text-align: center; 
  text-wrap: balance;
}

.carousel-caption h2 { 
  color: var(--p-100);
  margin: 0; 
  line-height: 1.2; 
  font-weight: 400; 
}

.carousel-caption p { 
  color: var(--p-100); 
  font-size: 1.1rem; 
}

.carousel-dots { 
  position: absolute; 
  bottom: 2rem; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  gap: 1rem; 
  z-index: 3; 
}

.dot { 
  width: 8px; 
  height: 8px; 
  border-radius: 30%; 
  background: var(--p-200-80); 
  cursor: pointer; 
  transition: background-color 0.3s ease; 
}

.dot.active { 
  background: var(--p-100); 
}

.hero-content { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  color: var(--p-100); 
  text-align: center; 
  max-width: 600px; 
  padding: 0 1rem; 
  z-index: 2; 
  width: 90%; 
}

.hero-content h1 { 
  font-size: 3rem; 
  margin-bottom: 1rem; 
}

.hero-content p { 
  font-size: 1.2rem; 
  margin-bottom: 1.5rem; 
}

/* ========================================== */
/* BUTTON STYLES */
/* ========================================== */
.btn-primary { 
  background: var(--s-400-main); 
  color: var(--p-700-main); 
  padding: 0.75rem 1.5rem; 
  border: none; 
  border-radius: 12px; 
  font-size: var(--font-size-md);
  cursor: pointer; 
  text-decoration: none; 
  font-weight: var(--font-weight-semibold); 
  letter-spacing: var(--char-space);
}

.btn-primary:hover { 
  background: var(--s-300);
  color: var(--p-600);
  font-weight: var(--font-weight-bold);
}

.btn-primary:active {
  background: var(--p-700-main);
  color: var(--s-400-main);
  font-weight: var(--font-weight-semibold);
}


/* ========================================== */
/* ABOUT SECTION STYLES */
/* ========================================== */
#section-about { 
  padding: 5rem 5rem 7rem 5rem;
  width: 100vw; 
  margin: 0; 
}

.content { 
  padding: 0;
  width: var(--content-width);
  margin: 0 auto;
}

.title {
  text-align: center; 
  margin-bottom: 1.5rem; 
  font-family: var(--font-family-base); 
}

.description { 
  font-size: var(--font-size-md);
  text-align: left;
  width: 100%;
  flex: 1;
  box-sizing: border-box;
}

.orden-elementos {
  display: flex;
  width: var(--content-width);
  flex-direction: column;
  list-style-type: none;
  margin: 0 auto;
}


/* Text styles */

#section-about p { 
  width: 100%; 
  margin: 0 0 0 0; 
  text-align: center; 
  color: var(--p-900);
  margin-bottom: 1rem;
}

#section-about p:last-of-type {
  margin-bottom: 3.5rem;
}

#section-about p .darker {
  font-size: var(--font-size-md);
  font-weight: 600;
}

/* Statistics Counter */

.highlight-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 0 auto;
  justify-content: center;
  width: var(--content-width);
}

.counter-box {
  text-align: center;
  width: 100%;
  color: var(--s-500);
}

.counter-number { 
  font-size: var(--font-size-numbers); 
  font-weight: var(--font-weight-regular);
}

.counter-number::before { 
  content: '+'; 
}

.counter-text {
  font-size: var(--font-size-md); 
  font-weight: var(--font-weight-medium);
  color: var(--p-900);
}

/* ========================================== */
/* PLATFORMS/SERVICES SECTION STYLES */
/* ========================================== */

#section-platform { 
  padding: 5rem 5rem 7rem 5rem;
  width: 100vw; 
  margin: 0; 
  background-color: var(--alt-background);
}

/* Text styles */

#section-platform p { 
  width: 100%; 
  margin: 0 0 0 0; 
  text-align: center; 
  color: var(--p-900);
  margin-bottom: 1rem;
}

#section-platform p:last-of-type {
  margin-bottom: 3.5rem;
}

#section-platform p .darker {
  font-size: var(--font-size-md);
  font-weight: 600;
}

.card { 
  background: var(--alt-background); 
  border-radius: 0.75rem;
  box-shadow: 0 0 28px 0 rgba(0, 0, 50, 0.08);; 
  padding: 1.5rem; 
  text-align: left;
  min-width: 0;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 50, 0.12);
}

.card img { 
  width: 5.3125rem;
  height: 5.3125rem;
  margin-bottom: 1rem;
}

.card h3 { 
  margin-bottom: 1rem;
  color: var(--p-700-main); 
  line-height: var(--line-height-text);
  letter-spacing: var(--char-space); 
}

.card p { 
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--char-space);
  line-height: var(--line-height-text);
  color: var(--p-900);
  text-align: left !important;
  margin-bottom: 0 !important;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 1.5rem;
  width: var(--content-width);
  margin: 0 auto;
}

/* Responsive behavior for grid layout */
@media (min-width: 768px) and (max-width: 1199px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
  }
}

@media (max-width: 767px) {
  .card-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(9, auto);
  }
}


#Plataformas { 
  background-color: #E6E6EF; 
  padding-bottom: 3rem; 
}

/* ========================================== */
/* CLIENTS SECTION STYLES */
/* ========================================== */

#clients { 
  padding: 5rem 5rem 7rem 5rem;
  width: 100vw; 
  margin: 0 auto;
  width: var(--content-width);
}


#clients .content { 
  width: var(--content-width);
  margin: 0 auto;
}

.clients-container {
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.clients-track { 
  display: flex; 
  animation: scroll 25.5s linear infinite;
  width: max-content;
}

.clients-track:hover { 
  animation-play-state: paused; 
}

.client-logo { 
  flex: 0 0 200px; 
  height: 85px; 
  margin: 0 1rem; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 10px;
  border-radius: 4px;
}

.client-logo img { 
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain;
  display: block;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 13)); }
}


/* ========================================== */
/* CONTACT SECTION STYLES */
/* ========================================== */

#contact-section { 
  padding: 5rem 5rem 7rem 5rem;
  width: 100vw; 
  margin: 0 auto;
  background-color: var(--alt-background);
}

.contact-location-container { 
  display: flex; 
  gap: 3rem; 
  align-items: flex-end;  
  margin: 0 auto;
  width: var(--content-width);
}

.contact-form { 
  flex: 0.85;
  width: 100%;
}

.location-info { 
  flex: 1; 
  display: flex; 
  flex-direction: column;
  padding-top: 0.25rem; 
  width: 100%;
}

.location-address { 
  font-size: var(--font-size-md); 
  color: var(--p-700-main); 
}

.location-company { 
  color: var(--p-700-main); 
} 

.location-map { 
  width: 100%; 
  height: 250px; 
  margin-top: 0.25rem; 
  border: 1px solid var(--p-200); 
  border-radius: 12px; 
}

#contact-section form { 
  width: 100%; 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem; 
}

#contact-section input, #contact-section textarea { 
  padding: 0.75rem; 
  border: 1px solid var(--p-200); 
  border-radius: 12px; 
  width: 100%; 
  background-color: var(--ultra-light);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-md);
  letter-spacing: var(--char-space);
  color: var(--p-800);
}


/* ========================================== */
/* FOOTER STYLES */
/* ========================================== */

footer { 
  background: var(--p-700-main);
  width: 100vw; 
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 3rem 3rem 5rem 3rem;
}

.footer-content { 
  width: 100%; 
  margin: 0; 
  padding: 0 2rem; 
}

/* --- Fila Principal (Logo, Links, Social, Botón Arriba) --- */
.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 3rem; /* Espacio entre columnas */
}

.footer-column {
  flex-grow: 0;
}

.left-columns {
  width: 30%;
}

.brand-logo {
  height: 3rem;
}

.footer-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  color: var(--s-100);
  letter-spacing: var(--char-space);
  padding-bottom: 1rem;
}


.links-column a:hover {
  text-decoration: underline;
}

/* Columna Social */

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.rrss {
  height: 1.75rem;
}

.social-icons a {
  text-decoration: none;
}

.social-icons a:hover {
  opacity: 0.8;
}

/* Columna "Volver Arriba" */
.top-link-column {
  display: flex;
  justify-content: flex-end; /* Alinea el botón a la derecha de su columna */
  min-width: auto;
  width: 100%;
}

.back-to-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 5.3125rem;
  height: 5.3125rem;
  border: 2px solid var(--s-0);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s, color 0.3s;
}

.back-to-top:hover {
  background-color: var(--p-700-main);
  border-color: var(--s-400-main);
}

.arrow-icon {
  height: 2.6rem;
  width: 2.6rem;
}

.arrow-icon:hover {
  fill: var(--s-400-main);
}

/* --- Fila Inferior (Copyright) --- */
.footer-bottom {
  padding-top: 4rem;
  text-align: right; /* Alinea el copyright a la derecha */
}

.copyright {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-xsm);
  font-weight: var(--font-weight-regular);
  color: var(--s-100);
}

/* The end :) */