/* styles.css */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Consistent Design System */
:root {
  /* Professional Color Palette */
  --primary-color: #ee509b;      /* Blue - Primary accent */
  --primary-hover: #ee509b;      /* Darker blue for hover */
  --secondary-color: #10b981;    /* Green - Secondary accent */
  --dark-color: #1f2937;         /* Dark gray - Text */
  --light-bg: #ffffff;           /* White background */
  --light-gray-bg: #f9fafb;      /* Light gray background */
  --medium-gray: #6b7280;        /* Medium gray - Secondary text */
  --light-gray: #e5e7eb;         /* Light gray - Borders */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Consistent Spacing System (multiples of 8px/0.5rem) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  
  /* Consistent Border Radius */
  --rounded: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-full: 9999px;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography - Clear Visual Hierarchy */
h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-color);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark-color);
}

p {
  color: var(--medium-gray);
  line-height: 1.6;
}

/* Modern Card Design - Flat with Subtle Shadows */
.modern-card {
  background: var(--light-bg);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  margin: var(--space-2) 0;
  transition: all 0.2s ease;
  border: 1px solid var(--light-gray);
}

.modern-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Professional Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--rounded-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--rounded-full);
  font-weight: 600;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* Form Styles with Clear Definition */
.form-input {
  width: 100%;
  padding: var(--space-2);
  border: 2px solid var(--light-gray);
  border-radius: var(--rounded-lg);
  font-size: var(--text-base);
  transition: all 0.2s ease;
  background-color: var(--light-bg);
  color: var(--dark-color);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: var(--medium-gray);
}

/* Remove Neumorphic Styles - Override Existing */
.neumorphic-card {
  background: var(--light-bg);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  margin: var(--space-2) 0;
  transition: all 0.2s ease;
  border: 1px solid var(--light-gray);
}

.neumorphic-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.neumorphic-button {
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--rounded-lg);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.neumorphic-button:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.neumorphic-button:active {
  transform: scale(0.98);
}

/* Glass Morphism - Simplified */
.glass-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--light-gray);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
}

/* Header & Navigation */
header {
  background: var(--light-bg);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--light-gray);
}

/* Hero Section - Clean Modern Design */
#inicio {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  animation: fadeIn 1s ease-in-out;
}

#inicio .bg-white\/40 {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

/* Remove Floating Decorative Elements */
.floating-animation,
.decorative-element {
  display: none !important;
}

/* Clean Animations - Subtle and Purposeful */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

/* Remove Gradient Text Animation */
.text-gradient-animation {
  background: none;
  color: var(--primary-color);
  font-weight: 700;
}

/* Scroll Indicator - Simplified */
.scroll-indicator {
  background: var(--light-bg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

/* Service Cards - Consistent Design */
#servicios {
  background-color: var(--light-gray-bg);
  padding: var(--space-8) 0;
}

#servicios .neumorphic-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

#servicios .neumorphic-card:hover {
  transform: scale(1.05);
}

#servicios .neumorphic-card h3 {
  color: var(--dark-color);
  margin-bottom: var(--space-2);
}

#servicios .neumorphic-card p {
  flex-grow: 1;
  color: var(--medium-gray);
}

/* Team Section - Professional Look */
#equipo {
  background-color: var(--light-bg);
  padding: var(--space-8) 0;
}

#equipo .team-member {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease-out;
}

#equipo .team-member.active {
  opacity: 1;
  transform: translateY(0);
}

#equipo img {
  border: 3px solid var(--light-gray);
  box-shadow: var(--shadow-md);
}

/* Remove Pulse Animation */
.pulse-animation {
  animation: none;
}

/* Brand Marquee - Single Instance, Cleaner */
.marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-name {
  display: inline-block;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--dark-color);
  padding: 0 var(--space-4);
  transition: transform 0.2s ease;
}

.brand-name:hover {
  transform: scale(1.05);
}

/* Contact Section - High Contrast */
#contacto {
  background-color: var(--dark-color);
  color: white;
  padding: var(--space-8) 0;
}

#contacto h2,
#contacto h3 {
  color: white;
}

#contacto p {
  color: #d1d5db;
}

#contacto .neumorphic-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

#contacto .neumorphic-button:hover {
  background-color: var(--primary-hover);
}

#contacto input,
#contacto textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: var(--space-2);
  border-radius: var(--rounded-lg);
  transition: all 0.2s ease;
}

#contacto input::placeholder,
#contacto textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#contacto input:focus,
#contacto textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Footer - Clean Design */
footer {
  background-color: var(--light-gray-bg);
  color: var(--dark-color);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--light-gray);
}

footer a {
  color: var(--medium-gray);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-color);
}

/* Instagram Section */
#instagram {
  background-color: var(--light-bg);
  padding: var(--space-8) 0;
}

/* Max Width Container */
.container {
  max-width: 72rem; /* max-w-6xl equivalent */
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Remove texture background */
.bg-texture {
  background-image: none !important;
}

/* Map Container */
.map-container {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

.mt-4 {
  margin-top: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-2);
}

.mb-8 {
  margin-bottom: var(--space-4);
}

/* Mobile Menu Improvements */
#mobile-menu {
  background-color: var(--light-bg);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--light-gray);
}

#mobile-menu a {
  color: var(--dark-color);
}

#mobile-menu a:hover {
  background-color: var(--light-gray-bg);
  color: var(--primary-color);
}

/* Case Study Cards */
#casos-de-exito {
  background-color: var(--light-gray-bg);
  padding: var(--space-8) 0;
}

#casos-de-exito .neumorphic-card {
  overflow: hidden;
  padding: 0;
}

#casos-de-exito .neumorphic-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: 0;
}

#casos-de-exito .neumorphic-card .p-4 {
  padding: var(--space-4);
}

/* Remove all decorative floating elements */
.absolute.w-32.h-32,
.absolute.w-40.h-40,
.absolute.w-24.h-24,
.absolute.w-20.h-20,
.absolute.w-36.h-36,
.absolute.w-48.h-48,
.absolute.w-44.h-44 {
  display: none !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
}