/* ==========================================================================
   ALTIMEX - Tecnología en Inyección
   Premium Industrial Design System & Styling (Phase 6)
   ========================================================================== */

/* Google Fonts - Import Montserrat (Alternative to Gotham) & Inter */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Design Tokens & Variables */
:root {
  --font-heading: 'Montserrat', sans-serif; /* Gotham Alternative */
  --font-body: 'Inter', sans-serif;

  /* Theme Colors */
  --primary: #2D9395;          /* Teal */
  --primary-light: #5CC5C6;
  --primary-dark: #237678;
  --secondary: #90C743;        /* Lime Green */
  --secondary-dark: #7DB136;
  --secondary-light: #A7DE55;
  --dark-bg: #1A1D24;          /* Slate Dark */
  --dark-card: #252A34;
  --light-bg: #F5F7F8;
  --white: #FFFFFF;
  --text-main: #2E3132;
  --text-muted: #5A6065;
  --text-light: #A0AAB0;
  
  /* UI Constants */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 20px 40px rgba(45, 147, 149, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* Base Reset & Reset Defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 105px; /* Offset to prevent header overlap */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 147, 149, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(144, 199, 67, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Pill-Shaped Button Style (Mindful Packaging Style) */
.btn-pill {
  border-radius: 30px !important;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pill i {
  font-size: 0.8rem;
  transition: var(--transition);
}

.btn-pill:hover i {
  transform: translateX(4px);
}

/* Section Header Component */
.section-header {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.section-header .tag {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  position: relative;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Header & Navigation (Fixed Solid White to Prevent Overlap) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 75px; /* Enlarged Logo */
  width: auto;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

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

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Revolution Slider (Slimmer, Optimized Controls, Split Animations) */
.hero-slider-container {
  position: relative;
  height: 60vh; /* Slimmer Slider */
  min-height: 480px;
  max-height: 520px;
  width: 100%;
  overflow: hidden;
  background-color: #0c0d10;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transform: translateX(80px); /* Initial position for animation */
  opacity: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease;
}

.slide.active .slide-bg {
  transform: translateX(0);
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 5;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
  margin-left: 8%;
  opacity: 0;
  transform: translateX(-80px); /* Opposite animation direction */
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateX(0);
}

.slide-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.slide h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.slide-checklist {
  list-style: none;
  margin-bottom: 1.5rem;
}

.slide-checklist li {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slide-checklist li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
}

.slide p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Centered Navigation Controls */
.slider-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%); /* Centered horizontally */
  z-index: 10;
  display: flex;
  gap: 1.5rem;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  backdrop-filter: blur(5px);
}

.slider-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
}

/* Centered Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%); /* Centered horizontally */
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--secondary);
  width: 25px;
  border-radius: 5px;
}

/* Bajo Rotador Section */
.bajo-rotador {
  background-color: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 20;
  margin-top: -2.5rem;
  padding: 3rem 0;
}

.bajo-rotador-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.bajo-rotador-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% / 50% Distribution */
  gap: 3rem;
  align-items: center;
}

.bajo-rotador-info h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.3;
}

.bajo-rotador-info p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.bajo-rotador-info .actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Lineal Products Carousel */
.lineal-products-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding-left: 3rem;
}

.lineal-products-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.lineal-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.lineal-product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.lineal-product-item:hover {
  transform: translateY(-5px);
}

.lineal-product-item:hover img {
  transform: scale(1.1);
}

.lineal-product-img-wrapper {
  background-color: var(--light-bg);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 2px solid transparent;
  transition: var(--transition);
}

.lineal-product-item:hover .lineal-product-img-wrapper {
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.lineal-product-item img {
  height: 85px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.lineal-product-item span {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
}

/* Scroll Reveal Animation Utility Classes */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.revealed {
  opacity: 1;
  transform: translate(0) !important;
}

/* Staggered Delay Helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* 3D Overlapping Parallax Section Layout (Phase 6 - Text Stack & Diagonal Can Rotation) */
.parallax-section-wrapper {
  position: relative;
  width: 100%;
}

/* Top photographic banner */
.parallax-top-banner {
  position: relative;
  height: 220px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect in desktop */
  overflow: hidden;
}

.parallax-top-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26, 29, 36, 0.3) 0%, rgba(26, 29, 36, 0.65) 100%);
  z-index: 1;
}

/* Enable relative anchoring in section containers */
.services-section .container,
.apps-section .container {
  position: relative;
}

/* Left-align titles & limit width to 55% to prevent collision with overlapping product */
.content-left-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 55%;
}

.services-grid .content-left-stack,
.apps-grid .content-left-stack {
  max-width: 100%;
}

/* Compact, tight typography to match the screenshot */
.section-tag-small {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 0.75rem;
  color: var(--primary); /* Teal on light layout */
  display: inline-block;
}

.apps-section .section-tag-small {
  color: var(--secondary); /* Green on dark layout */
}

.section-title-compact {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15; /* Tight interline */
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.apps-section .section-title-compact {
  color: var(--white);
}

.section-desc-small {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.apps-section .section-desc-small {
  color: var(--text-light);
}

/* Product Image Alignment */
.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.product-image-clean {
  position: relative;
  max-height: 480px; /* Tall enough for elongated can */
  width: auto;
  object-fit: contain;
  /* Removed drop-shadow to eliminate the square box effect */
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* Products Section */
.products-section {
  background-color: var(--light-bg);
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.product-row-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.product-row-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.product-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.product-row-card:nth-child(even) .product-row-grid {
  direction: rtl;
}

.product-row-card:nth-child(even) .product-info-column {
  direction: ltr;
}

.product-info-column {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.product-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.product-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.product-image-column {
  background: radial-gradient(circle, #F8FAF9 0%, #E8ECEE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  min-height: 450px; /* Increased for larger images */
  overflow: hidden;
}

.product-image-column img {
  max-height: 380px; /* Considerably enlarged */
  width: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Elegant Hover Effect */
.product-image-column img:hover {
  transform: scale(1.12);
}

/* Image Gallery CSS */
.product-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  max-height: 380px;
  width: auto;
  object-fit: contain;
}

.gallery-img.active {
  opacity: 1;
  pointer-events: auto;
  position: relative; /* Takes layout space when active */
}

.gallery-img.active:hover {
  transform: scale(1.12); /* Subtle zoom */
}

.gallery-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  color: var(--primary);
  transform: scale(1.2);
}

.gallery-dots {
  display: flex;
  gap: 8px;
}

.g-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5d8;
  cursor: pointer;
  transition: var(--transition);
}

.g-dot.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

/* Parallax Separator */
.parallax-separator {
  position: relative;
  width: 100%;
  height: 450px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 4rem; /* Separates from products */
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 29, 36, 0.25); /* Subtle dark tint */
  z-index: 1;
}

/* Collaboration Model */
.collab-section {
  background-color: var(--white);
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.collab-card {
  background-color: var(--light-bg);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.collab-card:hover {
  background-color: var(--white);
  border-color: rgba(45, 147, 149, 0.2);
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.collab-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(45, 147, 149, 0.15);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.collab-card:hover .collab-num {
  color: var(--secondary);
  transform: scale(1.1);
  display: inline-block;
}

.collab-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 700;
}

.collab-list {
  list-style: none;
}

.collab-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.collab-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Services & Apps Sections (Solid Dark Backgrounds) */
.services-section {
  background-color: var(--primary); /* Cyan from Cotizar button */
  color: var(--white);
  padding: 6rem 0;
}

.apps-section {
  background-color: var(--dark-bg); /* Dark navy from Altimex logo */
  color: var(--white);
  padding: 6rem 0;
}

.services-grid, .apps-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.services-columns-side, .apps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* Reduced from 2rem */
  width: 100%;
}

/* Plain Text Items (Replacing Cards) */
.plain-text-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Separator line */
}

.plain-text-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.plain-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
}

.plain-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35; /* Reduced line height */
}

/* Override text colors for dark background */
.services-section .section-title-compact,
.apps-section .section-title-compact {
  color: var(--white);
}

.services-section .section-desc-small,
.apps-section .section-desc-small {
  color: rgba(255, 255, 255, 0.85);
}

/* Contact Section */
.contact-section {
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.logistics-zones {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.zone-group {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.zone-icon {
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}

.zone-details h5 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.zone-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form Styling */
.contact-form-container {
  background-color: var(--light-bg);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  transition: var(--transition);
  color: var(--text-main);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 147, 149, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Form success message */
.form-status {
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  display: none;
  font-size: 0.95rem;
}

.form-status.success {
  background-color: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
  display: block;
}

.form-status.error {
  background-color: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
  display: block;
}

/* Product Detail Page Styling */
.detail-header {
  background: radial-gradient(circle, #F8FAF9 0%, #E2E7EB 100%);
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-back-bar {
  margin-bottom: 2rem;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.detail-back-link:hover {
  color: var(--primary-dark);
  transform: translateX(-5px);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.detail-gallery {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.02);
}

.detail-gallery img {
  max-height: 400px;
  object-fit: contain;
}

.detail-info h1 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.detail-info .product-tag {
  background-color: rgba(45,147,149,0.1);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.detail-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
}

.detail-specs-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-specs-table th, .detail-specs-table td {
  padding: 1rem 0;
  text-align: left;
}

.detail-specs-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  width: 40%;
}

.detail-specs-table td {
  color: var(--text-main);
  font-weight: 600;
}

.detail-actions {
  display: flex;
  gap: 1.5rem;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.whatsapp-label {
  background-color: var(--white);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  pointer-events: auto;
  transition: var(--transition);
  opacity: 1;
  display: flex;
  align-items: center;
}

.whatsapp-bubble {
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition);
  font-size: 2rem;
  position: relative;
  flex-shrink: 0;
}

.whatsapp-bubble:hover {
  transform: scale(1.08) rotate(10deg);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-bubble::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #FF3B30;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse 2s infinite;
}

.whatsapp-widget:hover .whatsapp-label {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: var(--light-bg);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
  height: 55px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary); /* Changed to green for better visibility */
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

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

.footer-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--secondary);
  margin-top: 0.2rem;
}

.footer-contact-item span {
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bajo-rotador-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lineal-products-container {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 2rem;
  }
  .collab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid, .apps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .content-left-stack {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .section-title-compact {
    text-align: center;
  }
  .parallax-floating-bucket {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 3rem auto 0 auto !important;
  }
  .interactive-3d-card {
    max-width: 320px;
    height: 320px;
  }
  .card-img-floating {
    max-height: 250px;
  }
  .apps-mockup-side {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .parallax-top-banner {
    background-attachment: scroll; /* Disabled fixed attachment on mobile for performance */
    height: 150px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }
  .header {
    background-color: var(--white);
    padding: 0.75rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  }
  .logo-img {
    height: 60px;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition);
  }
  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .slide h1 {
    font-size: 2.25rem;
  }
  .product-row-grid {
    grid-template-columns: 1fr;
  }
  .product-row-card:nth-child(even) .product-row-grid {
    direction: ltr;
  }
  .product-info-column {
    padding: 2rem;
  }
  .product-image-column {
    order: -1;
    min-height: 250px;
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 580px) {
  .whatsapp-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .slide h1 {
    font-size: 1.75rem;
  }
  .slide p {
    font-size: 0.95rem;
  }
  .collab-grid {
    grid-template-columns: 1fr;
  }
  .lineal-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .bajo-rotador-card {
    padding: 1.5rem;
  }
  .contact-form-container {
    padding: 1.5rem;
  }
}
