/* =================================================
   Wuitoonchi Tecnology — Remake
   Paleta original respetada:
   - Rojo primario: #d9232d
   - Rojo hover: #e24d55 / #e1444d
   - Azul pizarra (oscuro): #556270
   - Texto: #444444 | Gris mediano: #6b7b8d
   - Fondos claros: #f8f9fa, #f8f8f8
   Fuentes: Open Sans (cuerpo), Raleway (títulos),
            Poppins (navegación)
   ================================================= */

/* ---------- Variables ---------- */
:root {
  --color-primary: #d9232d;
  --color-primary-hover: #e24d55;
  --color-primary-dark: #df3740;
  --color-slate: #556270;
  --color-slate-2: #606f7e;
  --color-text: #444444;
  --color-muted: #6b7b8d;
  --color-soft: #8795a4;
  --color-light: #f8f9fa;
  --color-lighter: #f8f8f8;
  --color-white: #ffffff;
  --font-body: "Open Sans", sans-serif;
  --font-heading: "Raleway", sans-serif;
  --font-nav: "Poppins", sans-serif;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-slate);
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.d-flex {
  display: flex;
  align-items: center;
}

.text-center {
  text-align: center;
}

/* ---------- Header ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  background: var(--color-white);
  transition: all 0.5s ease;
  padding: 20px 0;
}

#header.header-scrolled {
  box-shadow: var(--shadow);
  padding: 12px 0;
}

#header .container {
  justify-content: space-between;
}

#header .logo {
  display: inline-flex;
  line-height: 1;
}

#header .logo img {
  max-height: 44px;
  width: auto;
}

/* ---------- Navegación ---------- */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar ul li {
  position: relative;
}

.navbar a {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-slate-2);
  padding: 8px 0;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: var(--color-primary);
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  color: var(--color-slate);
  line-height: 0;
}

/* ---------- Hero / Carrusel ---------- */
#hero {
  width: 100%;
  height: 92vh;
  overflow: hidden;
  position: relative;
}

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

.carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

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

.carousel-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  padding-top: 80px;
}

.carousel-container h2 {
  font-size: 52px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 22px;
}

.carousel-container .accent {
  color: var(--color-primary);
}

.carousel-container p {
  font-family: var(--font-heading);
  font-size: 17px;
  color: #fff;
  font-weight: 400;
  max-width: 720px;
  margin-bottom: 30px;
}

.btn-get-started {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  border: 2px solid var(--color-primary);
  color: var(--color-white);
  background: var(--color-primary);
  transition: all 0.35s ease;
}

.btn-get-started:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* Animaciones del carrusel */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-item.active .animate-down {
  animation: fadeInDown 1s both;
}

.carousel-item.active .animate-up:nth-child(2) {
  animation: fadeInUp 1s 0.2s both;
}

.carousel-item.active .animate-up:last-child {
  animation: fadeInUp 1s 0.4s both;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  margin: 0;
  padding: 0;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-indicators li.active {
  background: var(--color-primary);
}

/* Controles */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  z-index: 5;
  transition: background 0.3s ease;
}

.carousel-control:hover {
  background: var(--color-primary);
  color: #fff;
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* ---------- Secciones generales ---------- */
section {
  padding: 70px 0;
}

.services,
.partners,
.about {
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  margin-bottom: 12px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
}

.section-title p {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}

.section-title.light h2 {
  color: var(--color-white);
}

.section-title.light p {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- About ---------- */
.about {
  background: var(--color-white);
  padding: 80px 0;
}

.about .content .col-lg-6 h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about .content .col-lg-6 h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-slate-2);
  margin-bottom: 24px;
}

.about .about-img {
  height: 250px;
  object-fit: contain;
}

.about-lead {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 18px;
}

.feature-list {
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ebebeb;
  font-size: 15px;
  color: var(--color-slate-2);
  font-weight: 500;
}

.feature-list .check-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  margin-top: 2px;
}

/* ---------- Services ---------- */
.services {
  background: var(--color-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.icon-box {
  background: var(--color-white);
  padding: 34px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.icon-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(217, 35, 45, 0.14);
}

.icon-box .icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  margin-bottom: 20px;
  transition: all 0.35s ease;
}

.icon-box .icon svg {
  width: 30px;
  height: 30px;
}

.icon-box:hover .icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.icon-box h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-slate);
}

.icon-box h4 a {
  color: inherit;
}

.icon-box p {
  font-size: 14.5px;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- Partners ---------- */
.partners {
  background: var(--color-white);
}

.partners-title h3 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 12px;
}

.partners-title h3::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(60%);
  opacity: 0.65;
  transition: all 0.4s ease;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

.partner-logo img {
  max-height: 64px;
  max-width: 100%;
}

.partner-logo img.rounded {
  border-radius: 50%;
}

/* ---------- Join Team ---------- */
.jointeam {
  background: var(--color-slate);
  padding: 80px 0;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.join-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 38px 30px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease;
}

.join-card:hover {
  transform: translateY(-6px);
}

.join-card .join-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(217, 35, 45, 0.1);
  color: var(--color-primary);
}

.join-card .join-icon svg {
  width: 34px;
  height: 34px;
}

.join-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-slate);
}

.join-card p {
  font-size: 15px;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- Footer ---------- */
#footer {
  background: var(--color-slate-2);
  padding: 40px 0 30px;
}

#footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  max-height: 40px;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-white);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 500;
  color: #c9cfd6;
}

.footer-links a:hover {
  color: var(--color-white);
}

#footer .footer-bottom {
  padding-top: 24px;
  text-align: center;
}

#footer .footer-bottom p {
  font-size: 14px;
  color: #c9cfd6;
  margin: 0;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.back-to-top:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Grid auxiliar (about) ---------- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row > [class*="col-"] {
  padding: 0 15px;
}

.col-lg-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    gap: 0;
    background: var(--color-slate);
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.18);
    z-index: 999;
  }

  .navbar ul.show {
    right: 0;
  }

  .navbar ul li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar ul li a {
    color: var(--color-white);
    display: block;
  }

  .navbar a.active,
  .navbar a:hover {
    color: var(--color-primary-hover);
  }

  .navbar a::after {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
    z-index: 1000;
  }

  .carousel-container h2 {
    font-size: 36px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .join-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  #header {
    padding: 14px 0;
  }

  .carousel-container h2 {
    font-size: 28px;
  }

  .carousel-container p {
    font-size: 15px;
  }

  .services-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h2 {
    font-size: 26px;
  }

  .about .content .col-lg-6 h2 {
    font-size: 26px;
  }

  .footer-links {
    gap: 14px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
  }
}