/* Clean & Vibrant Light Theme based on CONIC Logo */
:root {
  /* Logo Colors */
  --c-blue: #234997;
  --c-magenta: #e4007c;
  --c-orange: #f39200;
  --c-purple: #7e3f98;
  --c-green: #a1cc3a;
  --c-lightblue: #26a9e1;
  --c-dark-magenta: #dc0073;
  --whatsapp: #25D366;

  /* Theme Colors */
  --bg-main: #fcfcfc;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-hover: rgba(255, 255, 255, 1);
  --border-glass: rgba(0, 0, 0, 0.05);
  --border-glass-hover: rgba(0, 0, 0, 0.1);
  --shadow-light: 0 10px 30px rgba(35, 73, 151, 0.08); /* Blue tinted shadow */
  --shadow-hover: 0 20px 40px rgba(228, 0, 124, 0.12); /* Magenta tinted shadow */

  --text-main: #111827; /* Dark grayish blue */
  --text-muted: #4b5563;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Other Tokens */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Geometric Shapes (Inspired by the logo) */
.bg-shape {
  position: absolute;
  z-index: -2;
  filter: blur(80px); /* Soften the edges to make them act as glowing orbs */
  opacity: 0.15;
  animation: float 20s ease-in-out infinite alternate;
}

.shape-1 {
  width: 600px; height: 600px;
  background: var(--c-blue);
  border-radius: 50%;
  top: -100px; left: -200px;
}
.shape-2 {
  width: 500px; height: 500px;
  background: var(--c-magenta);
  border-radius: 50%;
  bottom: 10%; right: -150px;
  animation-delay: -5s;
}
.shape-3 {
  width: 400px; height: 400px;
  background: var(--c-orange);
  border-radius: 50%;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  animation-delay: -10s;
}

.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.gradient-text {
  /* Using Blue and Magenta for high impact headings */
  background: linear-gradient(135deg, var(--c-blue), var(--c-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.orange-text {
  color: var(--c-orange);
}

/* Specific Logo Styling if text-based */
.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-conic {
  display: flex;
  letter-spacing: 2px;
}
.logo-c1 { color: var(--c-blue); }
.logo-o { color: var(--c-orange); }
.logo-n { color: var(--c-purple); }
.logo-i { color: var(--c-lightblue); }
.logo-c2 { color: var(--c-magenta); }

.logo-tagline {
  font-size: 0.75rem;
  color: #7a5e4b; /* Brownish tone from the original 'Unidad Profesional...' */
  font-style: italic;
  font-weight: 600;
  margin-top: 4px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

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

.section-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--c-magenta);
  color: white;
  box-shadow: 0 8px 20px rgba(228, 0, 124, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(228, 0, 124, 0.4);
  background: #f1198b; /* Lighter magenta */
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-glass-hover);
  box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(35, 73, 151, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass-hover);
}

.btn-outline:hover {
  background: var(--c-blue);
  color: white;
  border-color: var(--c-blue);
}

.w-100 { width: 100%; }
.mt-4 { margin-top: 1.5rem; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

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

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(35, 73, 151, 0.05); /* Light blue bg */
  border: 1px solid rgba(35, 73, 151, 0.2);
  color: var(--c-blue);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Visuals (Light Glass Panels) */
.hero-visual {
  position: relative;
  height: 550px;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-light);
}

.main-panel {
  width: 100%;
  height: 450px;
  position: absolute;
  top: 50px;
  left: 0;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dots {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dots span:nth-child(1) { background: var(--c-magenta); }
.dots span:nth-child(2) { background: var(--c-orange); }
.dots span:nth-child(3) { background: var(--c-green); }

.panel-title {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.panel-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass-hover);
  margin-bottom: 20px;
  gap: 12px;
}

.bar {
  flex: 1;
  background: #f1f5f9;
  border-radius: 6px 6px 0 0;
  transition: height 1s ease-out;
}

.bar.primary {
  background: linear-gradient(to top, var(--c-magenta), var(--c-orange));
  box-shadow: 0 -5px 20px rgba(228, 0, 124, 0.2);
}

.bar.secondary {
  background: var(--c-blue);
}

.stats-row {
  display: flex;
  justify-content: space-around;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.float-panel {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  animation: float 6s ease-in-out infinite;
  background: white;
  border: 1px solid var(--border-glass-hover);
}

.float-1 {
  top: 5%; right: -30px;
  animation-delay: 1s;
}

.float-2 {
  bottom: 0px; left: -30px;
  animation-delay: 2s;
}

.icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(35, 73, 151, 0.1);
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-box.whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp);
}

.fw-bold { font-weight: 700; font-size: 1rem; color: var(--text-main); }
.text-sm { font-size: 0.85rem; color: var(--text-muted); }

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

.service-card {
  background: white;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

/* Give cards distinct hover borders based on brand colors */
.service-card:nth-child(4n+1):hover { border-color: var(--c-blue); box-shadow: 0 15px 35px rgba(35,73,151,0.1); }
.service-card:nth-child(4n+2):hover { border-color: var(--c-magenta); box-shadow: 0 15px 35px rgba(228,0,124,0.1); }
.service-card:nth-child(4n+3):hover { border-color: var(--c-orange); box-shadow: 0 15px 35px rgba(243,146,0,0.1); }
.service-card:nth-child(4n+4):hover { border-color: var(--c-green); box-shadow: 0 15px 35px rgba(161,204,58,0.1); }

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

/* Assign colors to icons based on the pattern */
.service-card:nth-child(4n+1) .service-icon { color: var(--c-blue); }
.service-card:nth-child(4n+2) .service-icon { color: var(--c-magenta); }
.service-card:nth-child(4n+3) .service-icon { color: var(--c-orange); }
.service-card:nth-child(4n+4) .service-icon { color: var(--c-green); }

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

.service-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Marquee Banner */
.marquee-wrapper {
  background: var(--c-blue);
  padding: 1px 0;
  overflow: hidden;
  margin: 6rem 0;
}

.marquee {
  background: var(--c-blue);
  color: white;
  padding: 2rem 0;
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  animation: marquee 25s linear infinite;
  text-transform: uppercase;
}

.marquee .dot {
  color: var(--c-orange);
}

/* Contact Section */
.contact {
  background-color: #f8fafc; /* Very subtle blue-gray to separate from above */
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-details {
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.contact-item .icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-glass-hover);
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--c-magenta);
}

.contact-item h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--text-muted);
}

.contact-form-wrapper {
  background: white;
}

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

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

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select {
  padding: 1.2rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--c-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(35, 73, 151, 0.1);
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: #111827; /* Dark footer for contrast */
  color: white;
  padding: 5rem 0 0;
}

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

/* Adjust footer logo to have white text instead of dark */
.footer .logo-conic { color: white; }
.footer .logo-c1, .footer .logo-o, .footer .logo-n, .footer .logo-i, .footer .logo-c2 {
  color: white;
}
.footer .logo-tagline { color: #aaaaaa; }

.footer-brand p {
  color: #9ca3af;
  margin-top: 1.5rem;
  max-width: 400px;
  font-size: 1rem;
}

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

.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

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

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icon {
  width: 45px; height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--c-purple);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
  color: #6b7280;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--whatsapp);
  color: white;
  width: 65px; height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 3rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
