/* Custom Properties & Tokens */
:root {
  /* Colors */
  --bg-dark: #0f172a; /* Slate 900 */
  --bg-surface: #1e293b; /* Slate 800 */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  
  --primary: #278f8c; /* Teal from new logo */
  --primary-hover: #1d6d6a; 
  --primary-glow: rgba(39, 143, 140, 0.4);
  
  --whatsapp: #10b981; /* Emerald 500 */
  --whatsapp-hover: #059669; /* Emerald 600 */
  --whatsapp-glow: rgba(16, 185, 129, 0.4);

  --accent: #f59e0b; /* Amber 500 - for highlights if needed */
  
  /* Glassmorphism */
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(248, 250, 252, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Utilities */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 12px;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

/* Background Blobs */
.bg-blob {
  position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.3;
  animation: float 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}
.blob-primary {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.blob-accent {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--whatsapp) 0%, transparent 70%);
  bottom: -100px; right: -100px; animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }

.text-gradient {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem auto; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Utilities */
.badge {
  display: inline-block; padding: 0.4rem 1rem;
  background: rgba(14, 165, 233, 0.15); border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 50px; color: var(--primary); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}

.glass-card {
  background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: var(--transition); box-shadow: var(--glass-shadow);
}
.glass-card:hover {
  transform: translateY(-5px); border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 600; cursor: pointer;
  border: none; font-family: var(--font-body); transition: var(--transition);
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }

.btn-whatsapp { background: var(--whatsapp); color: white; box-shadow: 0 4px 15px var(--whatsapp-glow); }
.btn-whatsapp:hover { background: var(--whatsapp-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--whatsapp-glow); }

.btn-whatsapp-outline {
  background: transparent; color: var(--whatsapp); border: 1px solid var(--whatsapp);
}
.btn-whatsapp-outline:hover { background: rgba(16, 185, 129, 0.1); }

.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.9rem; width: 100%; border-radius: var(--radius-md); }

/* Buttons inside cards */
.btn-whatsapp-action { background: rgba(16, 185, 129, 0.1); color: var(--text-main); border: 1px solid rgba(16, 185, 129, 0.3); }
.btn-whatsapp-action:hover { background: var(--whatsapp); color: white; border-color: var(--whatsapp); }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: var(--transition); padding: 1.2rem 0;
}
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border); padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: white; }
.logo img { height: 45px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: var(--text-muted); font-weight: 500; font-size: 1rem; }
.nav-links a:not(.btn):hover { color: var(--text-main); }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: 5rem;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 1) 32%, rgba(15, 23, 42, 0.4) 100%), url('../assets/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero-text p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 1rem; }
.hero-image { position: relative; display: flex; justify-content: center; }

.glass-mockup {
  background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 3rem 2rem; width: 100%; max-width: 350px;
  backdrop-filter: blur(10px); box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  position: relative;
}
.hero-icon-large { font-size: 5rem; color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.mockup-line { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.w-75 { width: 75%; } .w-50 { width: 50%; }
.mockup-status {
  position: absolute; bottom: -20px; right: -20px; background: var(--whatsapp);
  color: white; padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5); font-size: 0.9rem;
}

/* Services */
.category-block { margin-bottom: 4rem; }
.category-title {
  display: flex; align-items: center; gap: 0.8rem; font-size: 1.3rem;
  color: var(--text-main); border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.8rem; margin-bottom: 2rem;
}
.category-title i { color: var(--primary); }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem;
}

.service-card { display: flex; flex-direction: column; align-items: flex-start; }
.card-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 1rem; }
.service-card h4 { font-size: 1.1rem; flex-grow: 1; margin-bottom: 1.5rem; color: var(--text-main); }


/* Light Background Modifiers */
.bg-white {
  background-color: #ffffff;
  color: #334155; /* Slate 700 */
}
.bg-white .section-header p,
.bg-white .step-card p,
.bg-white .trust-card p {
  color: #64748b; /* Slate 500 */
}
.bg-white h2, .bg-white h3, .bg-white h4 {
  color: #0f172a;
}
.bg-white .text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-white .glass-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.bg-white .glass-card:hover {
  border-color: rgba(39, 143, 140, 0.4);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Side-by-Side Image Layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.section-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}
.section-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 550px;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Process Section Features */
.process-list { display: flex; flex-direction: column; gap: 2rem; }
.process-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.process-icon {
  width: 50px; height: 50px; min-width: 50px;
  background: rgba(39, 143, 140, 0.1); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.process-text h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* Trust Section */
.secondary-bg { position: relative; background: rgba(15, 23, 42, 0.4); border-top: 1px solid var(--glass-border); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.trust-card { text-align: center; }
.trust-icon {
  width: 70px; height: 70px; margin: 0 auto 1.5rem auto;
  background: rgba(39, 143, 140, 0.1); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.trust-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Testimonials / Success Stories */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.testimonial-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; position: relative; }
.testimonial-quote { font-size: 1.05rem; font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.testimonial-quote::before {
  content: '"'; font-size: 4rem; position: absolute; top: -10px; left: 10px;
  color: rgba(39, 143, 140, 0.15); font-family: var(--font-heading); line-height: 1; z-index: -1;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--glass-border); padding-top: 1rem; }
.author-avatar {
  width: 50px; height: 50px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: white;
  font-size: 1.2rem; font-weight: bold; flex-shrink: 0;
}
.author-info h4 { margin-bottom: 0.2rem; font-size: 1rem; color: var(--text-main); }
.author-info p { margin: 0; font-size: 0.85rem; color: var(--primary); }
.star-rating { color: #fbbf24; font-size: 0.9rem; margin-bottom: 1rem; display: flex; gap: 0.2rem; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 4rem 0 2rem; background: rgba(7, 11, 20, 0.8); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo img { height: 60px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); margin-top: 0.5rem; max-width: 300px; }
.footer-contact h4 { color: white; margin-bottom: 1rem; }
.footer-contact p { color: var(--text-muted); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-contact i { color: var(--primary); width: 20px; text-align: center; }
.footer-contact .fa-whatsapp { color: var(--whatsapp); }

.footer-legal h4 { color: white; margin-bottom: 1rem; }
.footer-legal ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-legal a { color: var(--text-muted); font-size: 0.95rem; }
.footer-legal a:hover { color: var(--primary); text-decoration: underline; }

.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }

/* Modal Styles */
.modal {
  display: none; position: fixed; z-index: 2000; left: 0; top: 0;
  width: 100%; height: 100%; overflow: auto;
  background-color: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px);
  padding-top: 50px; opacity: 0; transition: opacity 0.3s ease;
}
.modal.show { display: block; opacity: 1; }

.modal-content {
  margin: auto; width: 90%; max-width: 650px; max-height: 80vh;
  overflow-y: auto; position: relative;
  transform: translateY(-30px); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.show .modal-content { transform: translateY(0); }

.close-modal {
  position: absolute; top: 1.5rem; right: 2rem; color: var(--text-muted);
  font-size: 2.5rem; font-weight: 300; cursor: pointer; transition: var(--transition);
}
.close-modal:hover { color: var(--text-main); transform: rotate(90deg); }

.modal-body { margin-top: 2rem; text-align: left; }
.modal-body h4 { margin: 1.5rem 0 0.5rem; color: var(--primary); font-size: 1.1rem; }
.modal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.modal-body li { margin-bottom: 0.5rem; color: var(--text-muted); }

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  width: 90%; max-width: 800px; z-index: 1500; display: flex; flex-direction: column;
  gap: 1.5rem; opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.cookie-content { display: flex; align-items: flex-start; gap: 1.5rem; }
.cookie-content i { font-size: 2rem; color: var(--accent); margin-top: 0.2rem; }
.cookie-content h4 { margin-bottom: 0.5rem; color: white; }
.cookie-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

.cookie-actions { display: flex; gap: 1rem; justify-content: flex-end; }

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
  background: var(--whatsapp); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 4px 15px var(--whatsapp-glow); z-index: 1000;
  transition: var(--transition);
}
.fab-whatsapp:hover { transform: scale(1.1); background: var(--whatsapp-hover); box-shadow: 0 8px 25px var(--whatsapp-glow); }

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-left { opacity: 0; transform: translateX(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.visible { opacity: 1; transform: translate(0); }

/* Responsive */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 1.5rem auto; }
  .hero-actions { justify-content: center; }
  .mockup-status { right: 50%; transform: translateX(50%); bottom: -20px; }
  .cookie-banner { flex-direction: column; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { width: 100%; }
  
  .split-layout { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .process-item { text-align: left; }
  .order-md-2 { order: 2; }
  .order-md-1 { order: 1; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; padding: 2rem; transition: var(--transition);
  }
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .services-grid { grid-template-columns: 1fr; }
}
