/* ITBUY REFRESHED DESIGN SYSTEM - BASED ON SCREENSHOT */

:root {
  /* Colors from screenshot */
  --bg-out: #d9dbdd; /* The outer body background */
  --bg-in: #ffffff; /* The main floating canvas */
  --primary: #f5891d; /* That specific bright orange */
  --primary-hover: #e07712;
  --text-main: #1a1a1a;
  --text-muted: #5a5a5a;
  --border-light: #ececec;

  /* Typography */
  --font-main: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1400px;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-out);
  color: var(--text-main);
  padding: 2vw; /* Creates the framing effect */
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.site-wrapper {
  background-color: var(--bg-in);
  border-radius: var(--radius-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08); /* Soft drop shadow */
  position: relative;
}

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

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: 4rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { color: var(--text-muted); line-height: 1.6; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px; /* Pill shape */
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 137, 29, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--text-main);
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.logo-container {
  display: flex;
  align-items: center;
}
.logo-container img {
  height: 48px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
  transition: color 0.2s;
}

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

/* HERO SECTION */
.hero {
  display: flex;
  align-items: center;
  padding: 0rem 3rem 0rem 4rem;
  position: relative;
  overflow: hidden; /* Clips the illustration to the hero boundary */
}

.hero-content {
  flex: 1;
  max-width: 50%;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: -4rem; /* Cancel out padding for right bleed */
  z-index: 1;
}

.hero-image img {
  width: 140%;
  max-width: none;
  height: auto;
  max-height: 800px;
  object-fit: contain;
  object-position: right center;
}

/* FEATURE CARDS (The specific 3-card layout) */
.feature-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 4rem;
  margin-top: -6rem; /* Pull them up over the hero image */
  position: relative;
  z-index: 10;
  margin-bottom: 6rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  height: 180px; /* fixed height to match shape */
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.fc-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  width: 50%;
}

.fc-icon {
  width: 48px;
  height: 48px;
  background-color: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main); /* Icon in black, ring stays orange */
  font-size: 24px;
}

.fc-title {
  font-size: 1.25rem;
}

/* The right side angled image mask */
.fc-image-mask {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  /* Angled cut on the left side of the image */
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

.fc-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .fc-image-mask img {
  transform: scale(1.05);
}


/* STANDARD SECTIONS (Re-adapted old content) */
.section {
  padding: 6rem 4rem;
}

.section-bg-light {
  background-color: #fafbfc;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* LIST COMPONENT */
.icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon-list .list-bullet {
  color: var(--primary);
  font-weight: bold;
}

/* LOGO STRIP */
.partner-logo-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.6;
}

.partner-logo-strip img {
  height: 30px;
  filter: grayscale(100%);
  transition: all 0.3s;
}

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

/* CASOS DE EXITO CARDS */
.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.caso-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.caso-badge {
  display: inline-block;
  background: #fff3e6;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  width: max-content;
}

/* FOOTER */
.site-footer {
  background-color: #fafbfc;
  color: var(--text-muted);
  padding: 4rem 4rem 2rem 4rem;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--text-main);
  line-height: 1;
  padding: 0.25rem;
}

/* MOBILE MENU DRAWER */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 0.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 80px; /* approximate navbar height */
  z-index: 999;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}

.mobile-link:last-of-type {
  border-bottom: none;
}

.mobile-link:hover {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  body { padding: 0; }
  .site-wrapper { border-radius: 0; max-width: 100%; }

  /* Navbar */
  .navbar {
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-cta {
    display: none; /* replaced by hamburger menu's CTA */
  }

  /* Hero */
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 1.5rem 0 1.5rem;
    overflow: hidden;
  }
  .hero-content {
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 0;
  }
  .hero-image {
    width: calc(100% + 3rem);
    margin-right: -1.5rem;
    margin-left: -1.5rem;
    justify-content: center;
  }
  .hero-image img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    object-position: center top;
  }

  /* Feature cards */
  .feature-cards-container {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 1.5rem;
    gap: 1rem;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 3rem 1.5rem 2rem; }
}

@media (max-width: 640px) {
  .hero-content h1 { font-size: 2.2rem; }
}

