/* ==============================================
   CUSTOM FONTS IMPORT
   ============================================== */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");

/* Futura ND y Futura BdCn BT se pueden importar desde Adobe Fonts o usar alternativas */
/* Para este ejemplo usaremos fuentes similares disponibles */

@font-face {
  font-family: "Futura ND Medium";
  src: url(../assets/fonts/Futura-Medium.otf);
}

@font-face {
  font-family: "futura-bold";
  src: url(../assets/fonts/Futura-Bold.otf);
}

/* ==============================================
   ROOT VARIABLES
   ============================================== */
:root {
  --primary-color: #e42f2c;
  --secondary-color: #2c3e5f;
  --dark-blue: #1a1f3a;
  --light-gray: #e7e5e5;
  --white: #ffffff;
  --text-color: #333333;
  --color-black: #000000;

  --font-menu: "Futura ND Medium", sans-serif; /* Futura ND alternative */
  --font-title: "futura-bold", sans-serif; /* Futura BdCn BT alternative */
  --font-content: "Futura ND Medium", sans-serif;
}

/* ==============================================
   GENERAL STYLES
   ============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-content);
  color: var(--text-color);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ==============================================
   HEADER SECTION
   ============================================== */
#header {
  position: absolute;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  padding-top: 63px;
  padding-bottom: 20px;
}

.navbar-brand .logo {
  height: 79px;
  width: auto;
}

.navbar-nav {
  align-items: center;
}

.navbar-dark {
  --bs-navbar-color: #fff;
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
  --bs-navbar-disabled-color: rgba(255, 255, 255, 0.6);
}

.nav-link {
  font-family: var(--font-menu);
  font-weight: 500;
  /* color: var(--white) !important; */
  margin: 0 1rem;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: all 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-link.text-dark {
  color: #000 !important;
}

.navbar .nav-link.text-dark:hover {
  color: #333;
}

/* Contenedor dropdown */
.dropdown-menu {
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  background-color: #242e5d;
  /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); */
}

/* Ítems del dropdown */
.dropdown-item {
  font-family: var(--font-menu);
  font-size: 14px;
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  /* transition: background-color 0.3s ease, color 0.3s ease;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out; */
}

.dropdown-text {
  position: relative;
  display: inline-block;
}

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

.dropdown-item:hover .dropdown-text::after {
  width: 100%;
}

/* End red line shared styles */

/* Hover dropdown */
.dropdown-item:hover,
.dropdown-item:focus {
  /* background-color: var(--secondary-color); */
  /* color: var(--primary-color); */
  background-color: #242e5d !important;
  color: var(--white);
}

/* Divider opcional */
.dropdown-divider {
  border-color: var(--light-gray);
}

.dropdown-toggle::after {
  border-top-color: var(--secondary-color);
  margin-left: 6px;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
  border-top-color: var(--primary-color);
}

/* Link base */
.atipop-link {
  font-family: var(--font-menu);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Resaltado POP */
.pop-badge {
  background-color: var(--primary-color);
  color: var(--white);
  font-family: var(--font-menu);
  padding: 4px 6px;
  border-radius: 10px;
  line-height: 1;
  letter-spacing: 0.5px;
}

/* Hover elegante */
.atipop-link:hover .pop-badge {
  background-color: #242e5d;
}

.language-switcher {
  border: 1px solid var(--white);
  padding: 0.3rem 1rem !important;
  border-radius: 20px;
  margin-left: 1rem;
}

.language-switcher:hover {
  background: var(--white);
  color: var(--secondary-color) !important;
}

.language-switcher::after,
.language-switcher:hover::after {
  background-color: transparent !important;
  width: 0 !important;
  content: none;
}
.dropdown-toggle::after {
  border-top: none;
}

.text-dark {
  color: #333;
}

.border-dark {
  border-color: #333 !important;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-section .carousel-inner,
.hero-section .carousel-item {
  height: 100vh;
}

.hero-section .carousel-item img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.7);
}

/* Zoom Animation */
@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.carousel-item.active .zoom-animation {
  animation: zoomIn 8s ease-out forwards;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: left;
}

.hero-content {
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 720;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==================================================
   CONTENEDORES GENERALES
================================================== */

.what-we-do,
.success-cases,
.sustainability-section {
  max-width: 1200px;
  margin: 80px auto;
  /* padding: 25px 20px; */
}

.content-wrapper {
  max-width: 1400px;
  margin: 40px auto;
  background: white;
  border-radius: 12px;
  /* padding: 60px; */
  /* box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06); */
}

/* ==================================================
   BREADCRUMB GENERAL
================================================== */
/* Breadcrumb siempre debajo del hero */
.breadcrumb-section {
  padding: 15px 0;
  background: #fff;
  /* border-bottom: 1px solid #e0e0e0; */

  margin-top: 0 !important;
  position: relative;
  z-index: 5;
}

.breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  margin-left: 20px;
}

.breadcrumb-item a {
  color: #1b2245;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-item a:hover {
  color: #2c3e5f;
}

.breadcrumb-item.active {
  color: #555;
  font-weight: 500;
}

/* 
.hero-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #c92825;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(228, 47, 44, 0.4);
}
*/
/* link minimalista con flecha a la derecha */
.arrow-link {
  color: #fff; /* color blanco */
  text-decoration: none; /* quita subrayado */
  font-size: 1.15rem; /* ajusta tamaño si quieres */
  font-weight: 600; /* un poco más fuerte */
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* espacio entre texto y flecha */
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform, opacity;
  text-transform: none;
}

/* flecha como pseudo-elemento (más limpio que añadir símbolo en HTML) */
.arrow-link::after {
  content: "→"; /* flecha; puedes cambiar por "➜" o usar SVG */
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.25s ease;
  font-weight: 600;
  font-size: 1rem;
}

.arrow-link:hover {
  opacity: 0.95;
  transform: translateX(2px);
}

.arrow-link:hover::after {
  transform: translateX(6px);
}

/* focus visible (accesibilidad): muestra outline cuando el usuario usa teclado */
.arrow-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.12);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ==============================================
   SERVICIOS SECTION
   ============================================== */
.servicios-section {
  background: var(--white);
  padding: 5rem 0;
  min-height: 600px;
}

.servicios-section .container {
  margin-top: 6rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-black);
  border: 0cm;
}

.service-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.service-description {
  font-family: var(--font-content);
  font-size: 0.8rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* ==============================================
   METRICAS SECTION
   ============================================== */
.metricas-section {
  background: #1b2245;
  color: var(--white);
  padding: 2rem 0;
  min-height: 800px;
}
.metricas-section .container {
  margin-top: 180px;
}

.metric-item {
  position: relative;
}

.metric,
.metric-number {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-block;
  margin: 0;
}
.metric,
.metric-plus,
.metric-percent {
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: 700;
}

.metric-label {
  font-family: var(--font-content);
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.hero-img-down {
  object-position: center 2% !important;
}


/* ==============================================
   PROYECTOS SECTION
   ============================================== */
.proyectos-section {
  background: var(--light-gray);
  padding: 5rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.section-subtitle {
  font-family: var(--font-content);
  font-size: 1.1rem;
  color: var(--text-color);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 300px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.project-card:hover .project-overlay {
  background: rgba(228, 47, 44, 0.9);
}

.project-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 1rem;
  margin: 0;
}

.project-subtitle {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 14px;
  margin: 5px 0 0 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

/* ==============================================
   INFRAESTRUCTURA SECTION
   ============================================== */
.infraestructura-section {
  background-image: url("../images/infraestructura.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 0;
  position: relative;
  min-height: 600px;
}

.infraestructura-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.infraestructura-section .container {
  position: relative;
  z-index: 1;
}

.infra-content {
  max-width: 600px;
}

.section-title-white {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.infra-text {
  font-family: var(--font-content);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.8;
}

/*
.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
}
/
/* ==============================================
   CLIENTES SECTION
   ============================================== */
.clientes-section {
  background: var(--white);
  padding: 3rem 0;
  overflow: hidden;
}

.clients-carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.clients-carousel {
  display: flex;
  animation: scroll 30s linear infinite;
}

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

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  flex: 0 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 150px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==============================================
   ATIPOP SECTION
   ============================================== */
.atipop-section {
  background: var(--light-gray);
  padding: 5rem 0;
}
.section-title {
  text-align: right;
}

.atipop-image img {
  max-width: 100px;
  width: 50%;
}

.atipop-description {
  font-family: var(--font-content);
  font-size: 1rem;
  line-height: 1.8;
  text-align: right;
  color: var(--text-color);
}

.app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.app-store-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-container {
  text-align: right;
}

.app-store-link i {
  font-size: 1.5rem;
}

.btn-outline-primary {
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  justify-content: flex-end;
  text-decoration: none;
}

.btn-nopadright {
  padding-right: 0rem;
}

/* ==============================================
   FOOTER SECTION
   ============================================== */
.footer-section {
  background: #242e5d;
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-logo img {
  max-width: 50px;
}

.footer-description {
  font-family: var(--font-content);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.footer-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: var(--font-content);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.certifications {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cert-logo {
  width: 110px;
  height: 100px;
  object-fit: contain;
  margin-top: -45px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.responsive-show {
  display: none;
}

.responsive-hide {
  display: block;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .navbar-brand .logo {
    height: 60px !important;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .metric-number {
    font-size: 3rem;
  }

  .navbar-collapse {
    background-color: #242e5d;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }

  .nav-link {
    margin: 0.5rem 0 !important;
    color: white !important;
  }

  .dropdown-menu {
    box-shadow: none;
    background-color: var(--white);
    background-color: #242e5d;
  }

  .language-switcher {
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }

  .responsive-col {
    gap: 2rem;
  }

  .responsive-text-direction {
    text-align: start;
  }

  .navbar-collapse {
    padding: 2.5rem;
  }

  .navbar-nav {
    align-items: flex-start !important;
  }

  .dropdown-menu {
    display: block;
    color: white;
    padding-left: 0rem !important;
    background-color: #242e5d;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: start;
  }

  .metric-number {
    font-size: 2.5rem;
  }

  .service-icon {
    font-size: 3rem;
  }

  .project-card {
    height: 250px;
  }

  .app-stores {
    flex-direction: column;
  }

  .app-store-link {
    justify-content: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }

  .metricas-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .responsive-width {
    width: 50%;
  }

  .responsive-show {
    display: block !important;
  }

  .responsive-hide {
    display: none !important;
  }

  .responsive-width-full {
    width: 100%;
  }

  .responsive-btn-height {
    min-height: 46px;
  }

  .container {
    --bs-gutter-x: 5.5rem;
  }

  .responsive-margin-top {
    margin-top: 0px !important;
  }

  .servicios-section .container {
    margin-top: 0px !important;
  }
}
@media (max-width: 558px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: start;
  }

  .responsive-col {
    flex-direction: column !important;
  }

  .section-title {
    position: relative !important;
  }
}

h2.fw-bold.text-uppercase {
  font-size: 3rem;
  font-weight: 800;
  animation: fadeInUp 0.8s ease-out forwards;
}
