@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #f8fafc;         /* Crisp, clean slate-light background */
  --bg-card: #ffffff;         /* Pure white cards */
  --bg-card-hover: #ffffff;   /* Pure white cards on hover */
  --border-color: #e2e8f0;    /* Clean, professional light gray borders */
  --border-hover: #2563eb;    /* Royal Blue hover border */
  
  --primary: #0f172a;         /* High-contrast Slate-Black for headings */
  --secondary: #1e3a8a;       /* Trustworthy Deep Executive Navy */
  --accent: #2563eb;          /* Active Royal Blue */
  --success: #059669;         /* Success Emerald Green */
  
  --text-main: #1e293b;       /* Highly readable primary slate body */
  --text-muted: #475569;      /* Secondary dark gray body */
  --text-dark: #94a3b8;       /* Muted placeholder gray */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar - Light Theme */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Elegant Light SaaS Dot Grid Background */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 36px 36px;
  z-index: -2;
  opacity: 0.25;
  pointer-events: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Navigation - Modern Corporate Light Menu */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  transition: var(--transition-normal);
}

nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav .logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

nav .logo .logo-icon {
  width: 28px;
  height: 28px;
  transition: transform var(--transition-fast);
}

nav .logo:hover .logo-icon {
  transform: scale(1.1) rotate(4deg);
}

nav .logo .logo-text {
  font-family: var(--font-heading);
  letter-spacing: -0.7px;
  font-size: 1.45rem;
}

nav .logo .logo-bold {
  font-weight: 800;
  color: var(--primary);
}

nav .logo .logo-accent {
  font-weight: 800;
  color: var(--accent);
}

nav .logo .logo-subtext {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-left: 0.15rem;
}

nav .nav-links {
  display: flex;
  gap: 2.2rem;
}

nav .nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
  padding: 0.5rem 0;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--accent);
}

/* Hero Section - Executive Trustworthy Light Split Layout */
header {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 6rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #eff6ff 0%, transparent 45%);
}

header .hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  z-index: 10;
}

@media (min-width: 992px) {
  header .hero-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

header .hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

header .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

header h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.8rem;
  letter-spacing: -1.2px;
}

header h1 span.highlight-text {
  color: var(--secondary);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

header p.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

header .cta-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Beautiful Corporate Carousel Styles */
.hero-carousel {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.carousel-track-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  flex-direction: column;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 100%);
  color: #ffffff;
  padding: 2.5rem 1.5rem 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-indicators .indicator.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Professional Light Theme Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--secondary);
  color: #ffffff;
  border: 1px solid var(--secondary);
  box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.1), 0 2px 4px -2px rgba(30, 58, 138, 0.1);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.15), 0 4px 6px -4px rgba(37, 99, 235, 0.15);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-dark);
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
}

/* Adjustments for smaller viewports */
@media (max-width: 991px) {
  header {
    text-align: center;
  }
  header .hero-layout {
    text-align: center;
    gap: 3.5rem;
  }
  header .hero-text {
    align-items: center;
  }
  header .cta-buttons {
    justify-content: center;
  }
  .carousel-track-container {
    height: 300px;
  }
}

/* Classic Corporate Sections */
section {
  padding: 8rem 0;
  position: relative;
  background-color: #ffffff;
}

section:nth-of-type(even) {
  background-color: var(--bg-dark);
}

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

.section-header .section-tag {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
  display: block;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Sobre Nosotros - Classic Split Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.4px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.bullet-item {
  display: flex;
  gap: 0.85rem;
}

.bullet-item .icon {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.bullet-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.bullet-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.about-visual {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.about-visual .stat-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  min-width: 100px;
}

.stat-label h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.stat-label p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Classic Professional Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3.2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #eff6ff;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-list li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
}

/* Classic Cases / Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-content {
  padding: 2.5rem;
}

.project-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Why Choose Us (Replacing Founder) Split Grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.why-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.why-visual .badge-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #eff6ff;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 1.5rem auto;
}

.why-visual h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.why-visual p.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.why-visual .standards-block {
  text-align: left;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.why-visual .standard-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.why-visual .standard-item svg {
  color: var(--success);
}

.why-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.4px;
}

.why-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.why-info .competencies-box {
  margin-top: 2rem;
}

.why-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Contact Section & Clean Professional Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.contact-method:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.contact-method .icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.contact-method h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-method p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Classic Form - Light Premium */
.classic-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-hover);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.success-message {
  display: none;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 1rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

/* Footer Style */
footer {
  background-color: var(--primary);
  border-top: 1px solid #1e293b;
  padding: 3rem 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

footer .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

footer .logo .logo-text {
  font-family: var(--font-heading);
  letter-spacing: -0.7px;
  font-size: 1.45rem;
}

footer .logo .logo-bold {
  font-weight: 800;
  color: #ffffff;
}

footer .logo .logo-accent {
  font-weight: 800;
  color: #60a5fa; /* Active sky blue accent on dark background */
}

footer .logo .logo-subtext {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.95rem;
  margin-left: 0.15rem;
}

footer .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  footer .footer-container {
    flex-direction: row;
  }
}

footer .footer-links {
  display: flex;
  gap: 1.8rem;
}

footer .footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-fast);
}

footer .footer-links a:hover {
  color: #ffffff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Utilities */
@media (max-width: 991px) {
  header h1 {
    font-size: 2.8rem;
  }
  header {
    padding-top: 110px;
    min-height: auto;
    padding-bottom: 5rem;
  }
  section {
    padding: 5rem 0;
  }
}

@media (max-width: 575px) {
  header h1 {
    font-size: 2rem;
  }
  .btn {
    width: 100%;
  }
  .classic-form {
    padding: 1.5rem;
  }
  .about-bullets {
    grid-template-columns: 1fr;
  }
}
