@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Outfit:wght@400;500;700;800;900&display=swap');

:root {
  /* Paleta "Warm Industrial" inspirada en distri.png */
  --primary: #E85D26;
  --primary-dark: #C44A1C;
  --primary-light: #FF895C;
  --dark: #1A1A1A;
  --text: #4A4A4A;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --accent-light: #FFF0EB;
  --border: #E8E4DF;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 25px 35px -5px rgba(232, 93, 38, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.04);
  
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(232, 93, 38, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 38, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

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

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, var(--accent-light) 0%, transparent 70%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  color: var(--primary);
  display: block;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition);
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Systems Grid */
.systems-section {
  padding: 80px 0 120px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.system-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.system-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.system-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.system-card:hover::after {
  transform: scaleX(1);
}

.system-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition);
}

.system-card:hover .system-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.system-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.system-card p {
  color: var(--text);
  margin-bottom: 32px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.card-link svg {
  transition: var(--transition);
}

.system-card:hover .card-link svg {
  transform: translateX(4px);
}

/* Detail Pages */
.detail-hero {
  padding: 160px 0 80px;
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.detail-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 24px;
}

.detail-hero p {
  color: #A0A0A0;
  font-size: 1.25rem;
  max-width: 700px;
}

.detail-hero .system-icon {
  background: rgba(232, 93, 38, 0.1);
  margin-bottom: 32px;
}

/* Benefits Section */
.benefits-section {
  padding: 100px 0;
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.benefit-row:nth-child(even) {
  direction: rtl;
}

.benefit-row:nth-child(even) > * {
  direction: ltr;
}

.benefit-content h3 {
  font-size: 2rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.benefit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.benefit-content ul {
  list-style: none;
  margin-top: 24px;
}

.benefit-content li {
  margin-bottom: 16px;
  padding-left: 32px;
  position: relative;
}

.benefit-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Call to Action */
.cta-section {
  padding: 100px 0;
  background: var(--accent-light);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-content p {
  margin-bottom: 40px;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer .logo {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #A0A0A0;
  font-size: 0.875rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .benefit-row {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .benefit-row:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 40px;
  }
  
  .systems-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none; /* simple mobile nav for now */
  }
}

/* WhatsApp Bubble */
.whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-bubble svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}
