:root {
  --blue: #11bdff;
  --purple: #630f93;
  --purple2: #704ada;
  --dark: #0f0f12;
  --light: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background: #f6f7fb;
  color: #111;
  overflow-x: hidden;
}

/* NAVBAR (TOP) */

.navbar {
  width: 100%;
  background: #360851;
  color: white;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  margin-right: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo img {
  height: 40px;
}

.navbar a {
  display: inline-block;
  padding: 10px 15px;
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.logo-link {
  padding: 0px 15px !important;
}

.navbar a:hover {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.navbar a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

/* CONTENT */

.content {
  padding: 30px 60px;
  margin: 0 auto;
  gap: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.content-v2 {
  padding: 60px;
  padding-top: 30px;
}

.overview-content {
  margin: 0px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
  }
}

/* HEADINGS */

h1 {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--purple);
}

h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--purple);
}

h3 {
  color: var(--purple);
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
  line-height: 1.6;
}

ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.cards-solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.card-team {
  align-items: center;
}

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

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* HERO */

.hero {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #630f93, #704ada, #11bdff);
  color: white;
  padding: 20px 60px;
  border-radius: 20px;
}

.hero-overview {
  border-radius: 0px;
  gap: 10px;
}

.hero h2 {
  margin: 0px;
}

.hero h1 {
  color: white;
}

.hero p {
  color: white;
}

/* Section images */
.section-img {
  width: 50%;
  object-fit: cover;
  border-radius: 12px;
}

/* Team photo */
.card-photo {
  height: 160px;
  width: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* Project cards */
.project-card {
  border-left: 4px solid var(--purple);
  padding-left: 20px;
  margin-bottom: 25px;
}

/* About Inmedia */

.about-inmedia-image {
  display: flex;
  justify-content: center;
}

.about-inmedia-image img {
  max-height: 15vh;
  width: auto;
}

.form-container {
  width: 100%;
}

/* Contact Form */
.contact-form {
  width: 100%;
  text-align: left;
  margin: 30px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--purple);
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border 0.3s;
}

.form-input:focus {
  border-color: var(--purple);
}

textarea.form-input {
  resize: vertical;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  width: 100%;
}

.content-submit {
  display: flex;
  justify-items: center;
  justify-content: center;
}

.form-submit {
  background: var(--purple);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
}

.form-submit:hover {
  background: var(--purple2);
}

/* Project Images and Lightbox */
.project-images {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.project-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Client Cards */
.client-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: 0.3s;
}

.client-card:hover {
  transform: translateY(-4px);
}

.client-logo {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.client-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--purple);
  text-align: center;
}

/* Two-column layout for Overview */
.overview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.overview-text {
  font-size: 15px;
  line-height: 1.7;
}

.overview-image {
  position: relative;
  display: flex;
  overflow: hidden;
  justify-content: center;
}

.overview-image img {
  width: 70%;
  border-radius: 18px;
  height: auto;
  object-fit: cover;
  display: block;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

/* VIDEO */

.video-container {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  max-width: 50vw;
  height: auto;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, .15);

}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OVERLAY GRADIENT */

.video-overlay {

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.0),
      rgba(0, 0, 0, 0.35));

  pointer-events: none;

}




/* Video Modal - Shared styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 2000;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#videoFullscreen,
#videoFullscreen-ai {
  width: 85%;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6);
}

/* BOTON CERRAR */

.close-video {

  position: absolute;
  top: 30px;
  right: 40px;

  font-size: 28px;
  color: white;
  cursor: pointer;

}

/* Two-column layout for Solutions */
.solutions-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 30px;
}

.solutions-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  position: sticky;
  top: 80px;
}

/*Layout for Solutions */
.ai-agents-layout {
  display: flex;
  gap: 30px;
  align-items: stretch;
  flex-wrap: wrap-reverse;
}

.agents-layout-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ai-agents-text {
  max-width: 65%;
}

.ai-agents-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 30%;
  height: 100%;
}

.ai-agents-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/*Layout for Training Service */

.training-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
  margin-top: 30px;
}

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

.dropdown-trigger {
  display: inline-block;
  padding: 10px 15px;
  color: #ddd;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.dropdown-trigger:hover,
.dropdown-trigger.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #0f0f12;
  min-width: 160px;
  border-radius: 0 0 8px 8px;
  flex-direction: column;
  z-index: 200;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  border-bottom: none;
}

/* Clients Footer Ribbon */
.contact-footer {
  background: linear-gradient(to right, var(--blue), var(--purple) 52%);
  padding: 10px 0 0;
  overflow: hidden;
}

.clients-ribbon {
  background: linear-gradient(to right, var(--blue), var(--purple) 52%);
  padding: 10px 0 20px;
  overflow: hidden;
  max-width: 100%;
}

.clients-ribbon-title {
  text-align: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.marquee-container {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  animation: marquee-scroll 16s linear infinite;
  will-change: transform;
}

.logos-row {
  display: flex;
  flex-shrink: 0;
  margin-right: 8px;
}

.logo-slot {
  width: 250px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-slot img {
  width: auto;
  height: 80px;
  max-height: 80px;
  max-width: 100%;
  object-fit: fill;
}

section {
  scroll-margin-top: 80px;
}

.content>section {
  width: 100%;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-1750px);
  }
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* RESPONSIVE */

@media(max-width:900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .ai-agents-layout {
    flex-wrap: wrap-reverse;
  }

  .ai-agents-text {
    min-width: 100%;
  }

  .ai-agents-image {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .image-agent {
    width: 50%;
  }

  .training-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 0px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 20px;
  }

  section {
    scroll-margin-top: 80px;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    flex-wrap: nowrap;
    padding: 15px;
    gap: 0;
    flex-direction: row;
    align-items: center;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  .navbar>a:not(.logo),
  .navbar>.dropdown {
    display: none;
  }

  .navbar.open>a:not(.logo),
  .navbar.open>.dropdown {
    display: block;
    width: 100%;
  }

  .navbar.open {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar.open>.logo {
    align-self: flex-start;
  }

  .navbar.open .hamburger {
    position: absolute;
    top: 17px;
    right: 15px;
  }

  .navbar.open .dropdown-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding-left: 16px;
  }

  .navbar.open .dropdown-trigger {
    width: 100%;
    padding: 8px 15px;
  }

  .content {
    padding: 25px;
    padding-top: 80px;
  }

  .content-v2 {
    padding: 25px;
    padding-top: 30px;
  }

  .overview-content {
    padding-top: 50px;
  }

  .content .training-layout {
    padding: 15px;
  }

  h1 {
    font-size: 28px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cards-solutions {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }

  .solutions-layout {
    grid-template-columns: 1fr;
  }

  .solutions-image img {
    position: static;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .overview-image img {
    width: 100%;
  }

  .video-container {
    max-width: 100%;
  }
}

/* Data Contact Footer */
.data-contact {
  padding: 30px 50px 30px 50px;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section {
  color: white;
}

.contact-section h3 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .data-contact {
    padding: 30px 20px;
  }
}