:root {
  --primary: #0a0a1a;
  --secondary: #fff;
  --accent: #6c00f0;
  --text: #333;
  --light-bg: #f9f9f9;
  --muted: #777;
}

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

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

.logo{
    width: 160px;
    height: 25px;
    padding-top: 0;
    margin-top: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--primary);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  position: relative;
  padding-top: 10px;
  display: flex;
  align-items: center;
}

.navbar ul {
  display: flex;
  gap: 18px;
  list-style: none;
  align-items: center;
  margin: 0;
}

.navbar li {
  display: inline-block;
}

.navbar a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.navbar a:hover {
  background: var(--accent);
  color: #fff;
}

.navbar a.active {
  background: var(--accent);
  color: #fff;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  z-index: 110;
}

.navbar-toggle .bar {
  width: 24px;
  height: 3px;
  background: var(--secondary);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 0;
  margin: 0;
  list-style: none;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  color: var(--text);
  padding: 10px 16px;
  display: block;
  border-radius: 0;
  background: none;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-menu li a:hover {
  background: var(--accent);
  color: #fff;
}

.navbar .dropdown-menu {
  display: none !important;
}

.navbar .dropdown:hover > .dropdown-menu {
  display: block !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .3s;
}
.btn--primary {
  background: var(--secondary);
  color: var(--primary);
}
.btn--primary:hover { background: #eee; }
.btn--dark {
  background: var(--accent);
  color: var(--secondary);
}
.btn--dark:hover { background: var(--accent); }

/* Sections */
.hero {
  background: var(--primary);
  color: var(--secondary);
  padding: 40px 0 100px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.hero-text p {
  margin-bottom: 30px;
  color: #ccc;
}
.hero-image img {
    flex: 1;
    position: relative;
    right: -120px;
    max-width: 140%;
    height: auto;
}

/* Intro text */
.intro, .lead {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Features */
.features {
    background-color: white;
    text-align: center;
    border-radius: 20px;
    margin: -150px auto 0;
    position: relative;
    z-index: 2;
    padding: 50px 0 50px 0;
}
.features h2 { margin-bottom: 20px; }

/* Partners */
.partners {
    background: var(--light-bg);
    text-align: center;
    padding: 50px 0;
}

.partners h3{
    font-weight: 500;
    padding-bottom: 40px;
}

.logo-slider {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
}

.partners .container {
  overflow: hidden;
  width: 100%;
}

/* Products */
.products { text-align: center; padding: 50px 0; }
.product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}
.product-info { flex: 1; padding: 0 20px; text-align: left; }
.product-media img { max-width: 100%; }

/* Consultancy */
.consultancy { background: #05000C; color: var(--secondary); text-align: center; padding: 50px 0; }
.tech-box { background: #525252; padding: 30px; border-radius: 10px; margin: 40px auto; }
.tech-box h3 {font-weight: 500; padding-bottom: 10px;}
.tech-box a, .tech-box a:link, .tech-box a:visited, .tech-box a:hover, .tech-box a:active {
  text-decoration: none !important;
  font-weight: bold !important;
  color: inherit !important;
}

/* Challenge */
.challenge-section {
    padding: 50px 0;
}
.challenge-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.challenge-text {
  text-align: left;
}
.challenge-text h2 { margin: 10px 0; }
.challenge-media img { max-width: 100%; }

.challenge-media,
.challenge-text {
  flex: 1;
}

@media (max-width: 768px) {

.challenge-text {
  text-align: center;
}
  .challenge-inner {
    flex-direction: column;
    gap: 20px; /* Adjust gap for vertical stacking */
  }

  .challenge-media {
    margin: 0px; /* Add space below image when stacked */
    max-width: 200px;
  }
}

/* Workflow Steps */

.workflow{
    background: #000;
    padding: 50px;
}

.workflow-intro {
    text-align: center;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 500;
}

.steps {
    padding: 0 40px 80px 40px; /* top right bottom left */
    display: flex;
    flex-direction: column;
    gap: 60px;
    background: linear-gradient(180deg, #000 13.94%, #5003AF 100%);
    align-items: center;
}
.step {
  max-width: 1000px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex: 1;
  text-align: left; /* Align text to the left */
  background-color: white; /* Add white background */
  padding: 20px; /* Add padding */
  border-radius: 10px; /* Add rounded corners */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add subtle shadow */
  width: 100%;
}
.step-number { color: var(--muted); margin-bottom: 10px; }

.step-content {
  flex: 1;
  padding-left: 20px; /* Add some space between image and text */
}
.step-media {
  flex: 0 0 auto; /* Prevent image from growing/shrinkin g */
  display: flex;
  justify-content: center;
  align-items: center; /* Vertically align image */
}
.step-media img {
    max-width: 100px; /* Adjust image size */
    height: auto;
    margin-top: 0; /* Remove top margin */
}
@media (max-width: 800px) {
  .step, .step:nth-child(even) {
    flex-direction: column !important;
    text-align: left;
  }
}

/* Real Cases */
.real-cases { background: #f4f4f4; text-align: center; padding: 50px 0; }
.main-case{
  background-color: white;
  margin-top: 20px;
  margin-bottom: 40px;
    border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.case-grid { margin-bottom: 40px; }

.main-case {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px; /* Add padding to the main case */
}

.case-info{
  text-align: left;
  padding-right: 20px; /* Adjust padding */
}

.case-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.case-media img{
  width: 100%; /* Make image responsive */
  height: auto;
  max-width: 620px; /* Keep max width */
}

.case-card {
  flex: 1;
  min-width: 23%;
  background: var(--secondary);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
}
.case-card img{
    width: 65px;
    height: 65px;
}
.case-card h4 { margin: 10px 0; }
.case-card .category { color: var(--muted); margin-bottom: 10px; margin-top: -10px; }

/* New Section */
.new-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 50px 0;
}

.new-section .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.new-section .step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex: 1;
  text-align: left;
  background-color: transparent; /* Remove background */
  padding: 0; /* Remove padding */
  box-shadow: none; /* Remove shadow */
  width: 100%;
}

.new-section .step-content {
  flex: 1;
  padding-left: 0; /* Remove padding */
}

.new-section .step-media {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.new-section .step-media img {
  max-width: 100%;
  height: auto;
}


/* CTA Section */
.cta-section { text-align: center; background: var(--light-bg); padding: 80px;}
.cta-section .subtitle { color: var(--muted); }

/* Transform */
.transform-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}
.transform {
  position: relative;
  background: #000 url('img/ai-world.avif') center/cover no-repeat;
  color: #fff;
  padding: 100px;
  overflow: hidden;
}
.transform::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* Ajusta la opacidad aquí */
  z-index: 1;
  pointer-events: none;
}
.transform .lead { color: #aaa; margin-bottom: 30px; }

/* Responsive styles for Transform section */
@media (max-width: 768px) {
  .transform {
    padding: 60px 20px; /* Adjust padding for mobile */
  }
  .transform-inner {
    text-align: center; /* Center align text for mobile */
  }
}

/* Footer */
.site-footer { background: var(--light-bg); padding: 40px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand .logo img { display: block; margin-bottom: 10px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; color: var(--text); }
.footer-nav a:hover { text-decoration: underline; }

/* Language Switcher */
#lang-switcher {
  position: static;
  display: flex;
  gap: 6px;
  margin-left: 18px;
}

#lang-switcher button {
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 18px;
  padding: 4px 16px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
}

#lang-switcher button:hover,
#lang-switcher button.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-header .header-inner {
  position: relative;
}

/* Responsive tweak for language switcher */
@media (max-width: 600px) {
  #lang-switcher {
    margin: 10px 0 0 0;
    width: 100%;
    justify-content: flex-start;
  }
  #lang-switcher button {
    padding: 3px 10px;
    font-size: 0.95em;
  }
}

/* Responsive Hero section for tablet */
@media (max-width: 900px) and (min-width: 601px) {
  .hero {
    padding: 80px 0 200px;
  }
  .hero-inner {
    gap: 28px;
  }
  .hero-text h1 {
    font-size: 1.7rem;
  }
  .hero-text p {
    font-size: 1.05em;
    margin-bottom: 24px;
  }
  .hero-image img {
    position: static;
    max-width: 110%;
    right: 0;
    margin: 0 auto;
    display: block;
  }
  .btn {
    font-size: 1em;
    padding: 13px;
  }
}

/* Responsive Hero section for mobile */
@media (max-width: 600px) {
  .hero {
    padding: 100px 0 32px;
  }
  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 1.3rem;
  }
  .hero-text p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .hero-image img {
    position: static;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  .btn {
    width: 100%;
    font-size: 1em;
    padding: 14px 0;
  }
}

/* Responsive styles for Products section */
@media (max-width: 768px) {
  .product {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .product:nth-child(even) {
    flex-direction: column-reverse; /* Ensure stacking for even products with reversed order */
  }

  .product-info {
    padding: 0;
    text-align: center;
    margin-bottom: 20px; /* Add space between info and media */
  }

  .product-media {
    width: 100%; /* Make media take full width */
  }

  .product-media img {
    width: 100%; /* Make image take full width of its container */
    height: auto;
  }

  .product-logo {
    margin-bottom: 10px; /* Add space below logo */
  }
}

/* Responsive styles for Real Cases section */
@media (max-width: 768px) {
  .main-case {
    flex-direction: column;
    padding: 20px;
  }

  .case-grid {
    flex-direction: column;
    gap: 20px; /* Adjust gap for vertical stacking */
  }

  .case-card {
    min-width: 100%; /* Make cards take full width */
  }

  .case-media img {
    width: 100%; /* Make image take full width of its container */
    height: auto;
  }
}

/* Responsive styles for New Section */
@media (max-width: 768px) {
  .new-section .container {
    flex-direction: column;
    gap: 20px;
  }

  .new-section .step {
    flex-direction: column;
    gap: 20px;
  }

  .new-section .step-content {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .navbar-toggle {
    display: flex;
  }
  .navbar ul {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: auto;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 200;
    padding: 40px 0 40px 0;
    display: none;
  }
  .navbar.open ul {
    display: flex;
  }
  .navbar li {
    width: 100%;
  }
  .navbar a {
    display: block;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-end;
    padding-top: 10px;
  }
  .navbar ul {
    flex-direction: column;
    align-items: center;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
    min-width: 0;
  }
  #lang-switcher {
    margin: 10px 0 0 0;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .navbar ul {
    width: 100vw;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: none;
    min-width: 0;
    top: 55px;
  }
}

/* Policy Page Styles */
.policy-container {
  background: #fffdfa;
  color: #333;
  max-width: 900px;
  margin: 60px auto 60px auto;
  padding: 40px 32px 40px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  font-size: 1.08rem;
}
.policy-container h1, .policy-container h2, .policy-container h3, .policy-container h4 {
  color: #222;
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-weight: 700;
}
.policy-container h1 { font-size: 2.1rem; margin-top: 0; }
.policy-container h2 { font-size: 1.5rem; }
.policy-container h3 { font-size: 1.15rem; }
.policy-container h4 { font-size: 1.05rem; }
.policy-container ul, .policy-container ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
.policy-container p, .policy-container li {
  color: #444;
  margin-bottom: 1em;
}
.policy-container strong { color: #222; }

@media (max-width: 600px) {
  .policy-container { padding: 18px 6vw; }
}

/* Hide desktop-only on mobile, show on desktop */
.desktop-only { display: none; }
/* Show mobile-only on mobile, hide on desktop */
.mobile-only { display: block; }

@media (min-width: 900px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}

@media (max-width: 900px) {
  .dropdown-menu li a {
    color: #fff !important;
    background: transparent;
  }
  .dropdown-menu {
    background: var(--primary) !important;
  }
}