:root {
  /* Exact Wix Color Palette Match */
  --header-gradient: linear-gradient(90deg, #fbb03b 0%, #ed1c24 100%);
  --text-dark: #4A4A4A;
  /* Common Wix dark text color */
  --text-light: #7A7A7A;
  --bg-color: #FFFFFF;
  --footer-bg: #61615E;
  /* Beige footer top */
  --footer-bg-bottom: #F4F3EF;
  /* Lighter beige bottom */

  --font-main: 'Montserrat', sans-serif;
  --font-content: 'Open Sans', Arial, sans-serif;

  --header-height: 90px;
}

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

body {
  font-family: var(--font-content);
  color: var(--text-dark);
  /* background-color: var(--bg-color); */
  line-height: 1.5;
  overflow-x: hidden;
  background-color: #fff;
}

p {
  font-size: 18px;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--text-dark);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  /* max-width: 100%; */
  display: block;
}

/* Base Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.mt-2 {
  margin-top: 20px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mt-4 {
  margin-top: 40px;
}

/* Global Header - Fixed positioned orange gradient */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--header-gradient);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li a {
  color: white;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
}

.nav-links li a:hover,
.nav-links li.active a {
  border-bottom: 1px solid white;
}

.header-logo img {
  height: 50px;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
}

div.main-content {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 300px);
}

/* Global Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: #fff;
  font-family: var(--font-content);
  margin-top: 60px;
}

.footer-top {
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
  /* Add invert filter if the original requires dark logo on light background */
  /* filter: brightness(0); */
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 350px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons img {
  width: 30px;
  height: 30px;
  filter: grayscale(1) opacity(0.7);
  transition: all 0.3s;
}

.social-icons a:hover img {
  filter: none;
}

.footer-nav h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-nav ul {
  list-style: none;
  color: #fff;
}

.footer-nav ul li {
  margin-bottom: 10px;
  color: #fff;
}

.footer-nav ul li a {
  font-size: 14px;
  color: #fff;
}

.footer-nav ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  background-color: var(--footer-bg-bottom);
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Home Page specific styles */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.image-collage-left {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
}

.image-collage-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-content-right {
  padding: 40px;
}

.text-content-right h1 {
  font-size: 48px;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.text-content-right p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 600px;
}

/* Home Section Buttons */
.btn-orange {
  display: inline-block;
  background: linear-gradient(90deg, #fbb03b 0%, #ed1c24 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-family: var(--font-main);
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(237, 28, 36, 0.3);
  margin: auto;
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(237, 28, 36, 0.4);
}

/* Modern Page Header Banners */
.page-header-banner {
  background: #F4F3EF;
  padding: 20px 40px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header-banner h1.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.page-header-banner .badge {
  display: inline-block;
  padding: 6px 15px;
  background: rgba(237, 28, 36, 0.1);
  color: #ed1c24;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-header-banner .underline {
  width: 60px;
  height: 4px;
  background: var(--header-gradient);
  margin: 0 auto;
  border-radius: 2px;
}

/* Responsive Grid Utilities (Added for Wix Section Replicas) */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 30px;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 900px) {

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

  .nav-links {
    display: none;
    /* Mobile menu active */
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    color: var(--text-dark);
    font-size: 16px;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 40px 20px !important;
    gap: 30px !important;
  }

  .social-icons {
    justify-content: center;
  }

  #newsletter-form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  #newsletter-form-wrapper input {
    min-width: 0 !important;
    padding: 12px 15px !important;
    font-size: 13px !important;
  }

  #newsletter-form-wrapper button {
    padding: 12px 20px !important;
    font-size: 13px !important;
  }

  /* Contact form section responsive */
  .footer-contact-section {
    padding: 40px 15px !important;
  }

  .footer-contact-section .container.grid-2 {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 0 !important;
  }

  .footer-contact-section h4 {
    font-size: 18px !important;
  }

  .footer-contact-section h2 {
    font-size: 26px !important;
  }

  .footer-contact-section form {
    gap: 15px !important;
  }

  .footer-contact-section input,
  .footer-contact-section textarea {
    padding: 12px !important;
    font-size: 14px !important;
  }

  .body-contact-section {
    padding: 40px 15px !important;
  }

  .body-contact-section .container.grid-2 {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .body-contact-section h4 {
    font-size: 22px !important;
  }

  .body-contact-section h2 {
    font-size: 26px !important;
  }
}

/* Mobile specific overrides */
@media (max-width: 600px) {

  /* Collapse grids fully */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .image-collage-left {
    grid-template-columns: 1fr;
  }

  /* Prevent horizontal scroll from massive titles */
  .text-content-right h1 {
    font-size: 32px !important;
  }

  h1 {
    font-size: 30px !important;
  }

  h2 {
    font-size: 28x !important;
  }

  .container {
    padding: 0 15px;
    /* overflow-x: hidden; */
  }

  body {
    overflow-x: hidden;
  }

  /* Make sure images do not break layout */
  img {
    max-width: 100%;
    height: auto;
  }
}


.cuadrogrisca {
  background: #EAEAEA;
  border-radius: 20px;
  padding: 80px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.soluciones-hero-sec {
  background-color: #E2E2E2;
  max-width: 100%;
  padding: 60px 0 0 0;
  overflow: visible;
}

.soluciones-hero-txt {
  flex: 1.5;
  padding: 0 0 80px 0;
  min-width: 320px;
}

.soluciones-hero-img-wrap {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 10;
}

.soluciones-hero-img {
  margin: 30px auto -160px auto;
  display: block;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
  border-radius: 20px;
  max-width: 700px;
}

@media (max-width: 900px) {
  .soluciones-hero-sec {
    padding: 40px 0 0 0 !important;
    margin-top: 30px !important;
  }

  .soluciones-hero-txt {
    padding: 0 20px 20px 20px !important;
    min-width: 100% !important;
    text-align: center;
  }

  .soluciones-hero-img {
    margin: 20px auto -40px auto !important;
    max-width: 90% !important;
  }
}

@media (max-width: 1440px) {
  .soluciones-hero-img {
    margin: 20px auto -40px auto !important;
    max-width: 560px !important;
  }
}

@media (max-width: 1024px) {
  .soluciones-hero-img {
    margin: 20px auto -40px auto !important;
    max-width: 100% !important;
  }
}

/* Nosotros page responsive */
@media (max-width: 768px) {

  /* Stats grid: 2 columns on tablet */
  .grid-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
  }

  .grid-4 h2 {
    font-size: 42px !important;
  }

  .grid-4 span {
    font-size: 42px !important;
  }
}

@media (max-width: 600px) {

  /* Stats grid: single column on mobile */
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Testimonials Responsive */
.testimonials-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 80px;
}

.testimonials-cards-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.testimonial-card-3-wrapper {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.testimonials-right-col {
  padding: 40px 0 0 20px;
}

@media (max-width: 1024px) {
  .testimonials-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .testimonials-right-col {
    padding: 20px 0 0 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .testimonials-cards-subgrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonials-left-col h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 600px) {
  .cuadrogrisclientes {
    padding: 40px 20px !important;
  }

  .testimonials-right-col h2 {
    font-size: 24px !important;
  }
}


.textplataformas {
  font-size: 14px;
  color: #7A7A7A;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: justify;
}

.h3textplataformas {
  color: #666;
  line-height: 1.4;
  margin-bottom: 15px;
  flex-grow: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.btn-orange-plataformas {
  background: linear-gradient(90deg, #fbb03b 0%, #ed1c24 100%);
  color: #FFF;
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  align-self: center;
  transition: transform 0.2s;
}

.btn-orange-plataformas:hover {
  transform: scale(1.05);
}

.cuadrogrisnosotros {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #F2F2F2;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cuadrogrisclientes {
  background: #F2F2F2;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  margin-bottom: 80px;
  text-align: left;
}