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

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

:root {
  /* Modern Color Palette */
  --primary: #0a1628;
  --secondary: #1e3a5f;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --dark: #020817;
  --gray: #334155;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-gray: #64748b;
  --border: #e2e8f0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-soft: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);

  /* Shadows - Multi-layer for depth */
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-heavy: 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);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    padding: 1rem 2%;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all var(--transition-base);
    max-width: 100vw;
    box-sizing: border-box;
}

nav.scrolled {
    padding: 0.7rem 2%;
    background: rgba(10, 22, 40, 0.95);
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.logo:hover {
    transform: translateY(-1px);
}

.chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-heavy);
  z-index: 998;
  transition: all var(--transition-base);
  color: white;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all var(--transition-base);
}

.logo:hover .logo-icon {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    transform: rotate(-5deg);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--white);
}

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

.cta-button {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.chatbot-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.chatbot-toggle i {
  color: white;
  font-size: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.cta-button::after {
    content: '';
    display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(5, 10, 48, 0.4);
  z-index: 1001;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-links {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-links a {
  padding: 1rem;
  color: #cae8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 159, 216, 0.2);
  transition: all 0.3s;
}

.mobile-nav-links a:hover {
  color: var(--accent);
  background: rgba(74, 159, 216, 0.1);
}

.mobile-nav-links .cta-button {
  text-align: center;
  margin-top: 1rem;
  border: none;
}

/* Sections */
section {
  padding: 5rem 2rem;
}

.light-section {
  background: var(--light-bg);
}

.white-section {
  background: var(--white);
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
   background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    padding: 1rem 2rem;
    border: 2px solid var(--accent);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-base);
    border: 1px solid var(--glass-border);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
  color: var(--text-gray);
  margin-top: 0.5rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Services Carousel */
.services-carousel-wrapper {
    position: relative;
}

.services-carousel-container {
    overflow: visible;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-base);
}

.carousel-nav:hover {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-heavy);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
    left: -24px;
}

.carousel-nav-next {
    right: -24px;
}

/* Carousel Dots */
.carousel-dots {
    display: none;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: var(--accent-light);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--accent);
    width: 32px;
    border-radius: 5px;
    border-color: var(--accent);
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-description {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  color: var(--text-gray);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ROI Calculator */
.calculator-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
}

.roi-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.roi-input-group {
  display: flex;
  flex-direction: column;
}

.roi-input-group label {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.roi-input-group input {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.roi-input-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.roi-calculate-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.roi-calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.roi-calculate-btn:hover::before {
    left: 100%;
}

.roi-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.roi-results {
  display: none;
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(74, 159, 216, 0.08),
    rgba(5, 10, 48, 0.05)
  );
  border-radius: 12px;
  border: 1px solid var(--accent);
}

.roi-results.active {
  display: block;
}

.roi-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.roi-metric:last-child {
  border-bottom: none;
}

.roi-metric .value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
}

/* FAQ Section */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-right: 1rem;
}

.faq-toggle {
  color: var(--accent);
  font-size: 1.5rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-gray);
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-light);
}

.value-item strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.about-visual {
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team-member {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-light);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), #6bb8e6);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Case Studies - Uniform Heights with Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.case-study-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border);
    transition: all var(--transition-base);
    display: grid;
    grid-template-rows: 100px auto 1fr;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.case-study-header {
    background: var(--primary);
    padding: 2rem;
    color: white;
    border-bottom: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.case-study-header h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
    min-height: 3.2rem;
    display: flex;
    align-items: center;
}

.case-study-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.85rem;
}

.case-study-content {
    padding: 2rem;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
}

.case-study-section {
    display: flex;
    flex-direction: column;
}

.case-study-section h4 {
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.case-study-section p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Section specific min-heights for alignment */
.case-study-section.challenge {
    min-height: 140px;
}

.case-study-section.solution {
    min-height: 140px;
}

.case-study-results {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.case-study-results h4 {
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
}

.case-study-metric {
    text-align: center;
    padding: 0.5rem;
}

.case-study-metric-value {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    display: block;
}

.case-study-metric-label {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.2;
    display: block;
}

/* Garantias Grid */
.garantias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.garantia-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.garantia-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

/* Proceso de Trabajo Grid */
.proceso-trabajo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.proceso-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--glass-border);
    position: relative;
    transition: all var(--transition-base);
}

.proceso-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.proceso-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-submit {
  background: linear-gradient(135deg, var(--accent), #6bb8e6);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 159, 216, 0.4);
}

/* Footer */
footer {
  background: var(--primary);
  color: #cae8ff;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cae8ff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Chatbot */
.chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), #6bb8e6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(74, 159, 216, 0.4);
  font-size: 1.5rem;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: fixed;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 550px;
  background: white;
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(5, 10, 48, 0.2);
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--light-bg);
}

.chat-message {
  margin-bottom: 1rem;
}

.chat-bubble {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  max-width: 85%;
  box-shadow: var(--shadow-light);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  text-align: left;
}

.chat-bubble strong {
  font-weight: 600;
  color: inherit;
}

.chat-bubble a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.3s;
}

.chat-bubble a:hover {
  color: var(--secondary);
}

.user .chat-bubble a {
  color: white;
  text-decoration: underline;
}

.user .chat-bubble a:hover {
  opacity: 0.9;
}

.bot .chat-bubble {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.user {
  text-align: right;
}

.user .chat-bubble {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 159, 216, 0.3);
}

/* Typing indicator animation */
.typing-indicator .dots {
  display: inline-block;
}

.typing-indicator .dot {
  opacity: 0;
  animation: typingDot 1.4s infinite;
}

.typing-indicator .dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.chatbot-input {
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  background: white;
  border-top: 1px solid var(--border);
}

.chatbot-input input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.chatbot-input button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .garantias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .proceso-trabajo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet - testimonios con 2 elementos */
@media (max-width: 1024px) and (min-width: 769px) {
    .testimonial-card {
        min-width: calc(50% - 0.5rem) !important;
    }
    
    .garantias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 4vw;
  }

  nav.scrolled {
    padding: 0.7rem 4vw;
  }

  section {
    padding: 3rem 4vw;
  }

  .section-container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }
  
  .hero::before,
  .hero::after {
      width: 300px;
      height: 300px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
    display: block;
  }

  .section-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Services Carousel on Mobile */
  .services-carousel-container {
      overflow: hidden;
      padding: 0 3rem;
  }

  .services-grid {
      display: flex;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      gap: 1rem;
  }

  .service-card {
      min-width: 100%;
      flex-shrink: 0;
  }

  .carousel-nav {
      display: flex;
  }

  .carousel-nav-prev {
      left: 0;
  }

  .carousel-nav-next {
      right: 0;
  }

  .carousel-dots {
      display: flex;
  }

  .roi-inputs {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

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

  .calculator-container {
    padding: 2rem 1rem;
    margin: 0 1rem;
  }

  .chatbot-window {
    width: 85vw;
    height: 65vh;
    right: 7.5vw;
    left: 7.5vw;
    margin: 0 auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* Testimonios mobile - mostrar 1 elemento */
  .testimonial-card {
    min-width: 100% !important;
  }

  /* Garantías - responsive */
  .garantias-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }

  /* Proceso de trabajo - responsive */
  .proceso-trabajo-grid {
      grid-template-columns: 1fr !important;
      gap: 2.5rem !important;
  }
}

@media (max-width: 414px) {
  nav {
    padding: 0.8rem 3vw;
  }

  nav.scrolled {
    padding: 0.6rem 3vw;
  }

  .hero h1 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .roi-metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .chatbot-container {
    bottom: 15px;
    right: 15px;
  }

  .chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .roi-metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .chatbot-container {
    bottom: 20px;
    right: 20px;
  }
}
