/* Base styles */
:root {
  --primary: #0069ff;
  --secondary: #4a5568;
  --accent: #4dc247;
  --text: #1a202c;
  --background: #ffffff;
  --heading-font: ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --body-font: ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #718096;
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--background);
  padding-top: 6rem;
}

/* Header and Navigation */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

@media (min-width: 768px) {
  nav.hidden.md\:flex {
    display: flex !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  nav.hidden.md\:flex a {
    margin-left: 2rem;
  }
}

@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 999;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-menu.is-active {
    transform: translateX(0);
  }
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background: #0052cc;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.p-1 { padding: 1rem; }

/* Existing styles */
body {
  font-family: var(--body-font);
  color: var(--text-dark);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5em;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-medium);
}

.text-xl {
  font-size: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .nav-container {
    flex-direction: row;
  }
  
  .nav-menu {
    display: flex !important;
    position: static;
    transform: none;
    background: none;
    padding: 0;
    height: auto;
    width: auto;
  }

  .nav-toggle {
    display: none;
  }
  
  /* Make sure mobile menu button is hidden on desktop */
  .md\:hidden {
    display: none !important;
  }

  /* Desktop Navigation Styles */
  nav.hidden.md\:flex {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static;
    transform: none;
    background: none;
    padding: 0;
    height: auto;
    width: auto;
    margin-left: auto; /* Align to the right */
  }

  /* Ensure navigation links display properly */
  nav.md\:flex {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Style desktop navigation links */
  .md\:flex a, 
  nav.hidden.md\:flex a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--text-medium);
  }

  .md\:flex a:hover,
  nav.hidden.md\:flex a:hover {
    color: var(--primary);
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .section-description {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
}

.mapouter {
  position: relative;
  text-align: right;
  width: 100%;
  height: 278px;
  margin-top: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gmap_canvas {
  overflow: hidden;
  background: none !important;
  width: 100%;
  height: 278px;
  border-radius: 1rem;
}

.gmap_iframe {
  height: 278px !important;
  border-radius: 1rem;
  width: 100%;
}

.logoMarqueeSection {
  padding: 3rem 0;
  background-color: #f9fafb;
  border-radius: 12px;
  margin: 2rem 0;
  overflow: hidden;
  position: relative;
}

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

.logoMarqueeSection h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-medium);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.marquee-container {
  overflow: hidden;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px 0;
  width: 100%;
  position: relative;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
}

.marquee {
  display: flex;
  will-change: transform;
  user-select: none;
  gap: 2rem;
  transition: transform 0.1s linear;
}

.marquee.dragging {
  cursor: grabbing;
  transition: none;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  min-height: 80px;
  margin: 0 30px;
  pointer-events: none;
}

.logo-item img {
  max-width: 150px;
  max-height: 60px;
  min-height: 30px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Remove hover effects */
.logo-item:hover {
  transform: none;
}

.logo-item:hover img {
  transform: none;
}

@media (max-width: 768px) {
  .logo-item {
    height: 60px;
    margin: 0 20px;
  }

  .logo-item img {
    max-width: 100px;
    max-height: 40px;
  }
}

.logo-grid {
  display: none;
}

.marquee-reverse {
  display: none;
}

.logo-marquee {
  display: none;
}

.marquee-wrapper {
  display: none;
}

.marquee-track {
  display: none;
}

.marquee-item {
  display: none;
}

.wave {
  fill: #0069ff !important;
  animation: wave 1.2s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

#wave1 {
  fill: #0069ff !important;
  animation-duration: 1.2s;
}

#wave2 {
  fill: #0050c0 !important;
  animation-duration: 2s;
  animation-direction: reverse;
  opacity: 0.6;
}

#wave3 {
  fill: #003d99 !important;
  animation-duration: 3s;
  opacity: 0.3;
}

@keyframes wave {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-35%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.wave-svg {
  fill: #0069ff !important;
}

.wave-svg-light {
  fill: #ffffff !important;
}

.bg-gradient-wave {
  background-color: #0069ff !important;
  position: relative;
  z-index: 20;
  color: #fff !important;
  padding: 3rem 0 8rem;
  overflow: hidden;
}

section#sucursales {
  background-color: #0069ff !important;
  color: #fff !important;
  padding-bottom: 4rem;
}

.wave-section-gradient {
  background-color: #0069ff !important;
  padding: 0;
  height: 150px;
  overflow: hidden;
  margin-bottom: -3rem;
}

.sucursales-section {
  background-color: #0069ff !important;
  color: #fff !important;
}

.sucursales-title {
  font-size: 2.25rem;
  font-weight: 900;
  text-align: center;
  color: #fff !important;
  margin-bottom: 1.5rem;
  position: relative;
  width: 100%;
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 50 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  padding-top: 3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sucursales-title::after {
  display: none;
}

.sucursales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.sucursales-mobile {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: grid !important;
  }

  .sucursales-title {
    font-size: 2.75rem;
    font-weight: 900;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    line-height: 1.05;
    letter-spacing: -0.02em;
    padding-top: 4rem;
  }
}

@media (max-width: 767px) {
  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }

  .sucursales-mobile {
    padding: 0.5rem 0 2rem;
  }

  .sucursal-card.mb-6 {
    margin-bottom: 1.5rem;
  }
}

.sucursal-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  border: 1px solid #f0f0f0;
}

.sucursal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.sucursal-card h3 {
  color: #0069ff;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-family: var(--heading-font);
}

.sucursal-card .info-section {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sucursal-card .info-section i {
  color: #0069ff;
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
}

.sucursal-card .info-content {
  flex: 1;
}

.sucursal-card .info-content .title {
  color: #666;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--heading-font);
}

.sucursal-card .info-content p {
  color: #333;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--body-font);
}

.sucursal-card .info-content a {
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.5;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: all 0.2s ease;
  display: inline-block;
  font-family: var(--body-font);
}

.sucursal-card .info-content a p {
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 500;
  font-size: 1rem;
}

.sucursal-card .info-content a:hover p {
  color: #0069ff;
}

.sucursal-card .mapouter {
  margin-top: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 200px;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.sucursal-card .mapouter:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 105, 255, 0.2);
}

.sucursal-card .mapouter a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.sucursal-card .mapouter iframe {
  width: 100%;
  height: 100%;
  border: 0;
  transition: all 0.3s ease;
}

.sucursal-card .mapouter:hover img {
  transform: scale(1.05);
}

.sucursal-card .mapouter:hover iframe {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .sucursal-card .mapouter {
    height: 250px;
  }

  .gmap_canvas, .gmap_iframe {
    height: 250px !important;
  }
  
  .sucursal-card .mapouter iframe {
    height: 250px !important;
  }
}

.hero-section {
  position: relative;
  z-index: 20;
  margin-top: -2rem;
  padding: 2rem 0;
  width: 100%;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: scaleX(-1);
  object-fit: cover;
  display: block;
}

.bg-gradient-to-b {
  background-image: none;
  background-color: var(--primary);
}

section, #obras, #distributor {
  padding: 3rem 0;
}

#contactanos {
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 20;
}

#contactanos .section-title {
  margin-bottom: 0.75rem;
}

#contactanos .section-description {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  #contactanos {
    padding: 1.5rem 0 3rem;
  }
}

#obras {
  position: relative;
  z-index: 30;
}

#obras .bg-blue-600 {
  background-color: var(--primary);
}

#obras .text-blue-600 {
  color: var(--primary);
}

#obras p.text-base {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #0050c0;
  letter-spacing: 0.05em;
}

#obras h2 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #0a0f1c;
  letter-spacing: -0.01em;
  text-transform: none;
  text-align: left;
}

#obras .feature-icon {
  transition: all 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

#obras .flex:hover .feature-icon {
  transform: scale(1.05);
}

#obras h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

#obras .feature-card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: relative;
  z-index: 20;
}

#obras .feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
}

#obras .feature-card:hover {
  background-color: rgba(0, 105, 255, 0.05);
}

#obras a.bg-wave-600 {
  position: relative;
  z-index: 40;
  margin-bottom: 1.5rem;
  width: auto;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 500;
}

#obras a.bg-wave-600:hover {
  background-color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .feature-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }

  .feature-text {
    font-size: 1.1rem;
  }
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #0050c0;
  margin-bottom: 0.75rem;
  height: 20px;
  line-height: 1.1;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  color: var(--text-dark);
  background: linear-gradient(to right, var(--primary), #4a86e8, #6c5ce7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.35px;
  }

  .hero-title {
    font-size: 3.25rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .hero-description {
    font-size: 1.25rem;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
    font-weight: 900;
    text-align: left;
    line-height: 1.05;
  }

  .hero-description {
    font-size: 1.375rem;
    text-align: left;
  }
}

.obras-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  #obras .flex {
    flex-direction: column;
  }

  .obras-image {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  #obras h2 {
    text-align: left;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  #obras .feature-card {
    margin-bottom: 1.5rem;
  }
}

.whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  text-decoration: none;
}

.whatsapp div {
  float: right;
  height: 3.125rem;
  width: 3.125rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  text-align: center;
  justify-content: center;
  line-height: 3.125rem;
  color: white;
  background-color: #4dc247;
}

.nav-toggle {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Ensure background in the obras section has sufficient contrast */
.bg-gray-100 {
  background-color: #e5e7eb; /* Slightly darker to improve contrast */
}

/* New class for obras section with better contrast */
.bg-obras {
  background-color: #f0f2f5; /* Higher contrast background */
}

#distributor .section-title {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

#contactanos .section-title {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Ensure hidden elements are properly hidden */
.hidden {
  display: none !important;
}

/* Ensure fixed header */
header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* Ensure body has proper padding for fixed header */
body {
  padding-top: 6rem;
} 