/* ==========================================================================
   EACTION - HIGH-END LIGHT MODE DESIGN SYSTEM (V6)
   Primary Accent Button: Solid Azul Principal #00B4FF
   ========================================================================== */

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

:root {
  /* Official Brand Colors */
  --brand-blue: #00B4FF;       /* Azul Principal para botones y CTAs de alta gama */
  --brand-blue-hover: #009ce8; /* Hover azul nítido */
  --brand-green: #2DBB4E;      /* Verde Principal para acentos, métricas y badges */
  --brand-navy: #142A3B;       /* Azul Oscuro para títulos y textos de máximo contraste */
  --brand-light: #F4F7FB;      /* Gris Claro de fondo */

  /* Light Theme Color System */
  --bg-main: #F4F7FB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-color: rgba(20, 42, 59, 0.1);
  --border-hover: rgba(0, 180, 255, 0.35);

  --text-primary: #142A3B;     /* Azul Oscuro de marca */
  --text-secondary: #4A607A;   /* Tono medio */
  --text-muted: #788DA4;       /* Tono suave */

  --accent-blue: #00B4FF;
  --accent-blue-glow: rgba(0, 180, 255, 0.28);
  --accent-green: #2DBB4E;
  --accent-green-glow: rgba(45, 187, 78, 0.2);

  --gradient-primary: #00B4FF; /* Botones en Azul Principal puro */
  --gradient-text: linear-gradient(135deg, #142A3B 20%, #00B4FF 70%, #2DBB4E 100%);
  --gradient-accent: rgba(0, 180, 255, 0.08);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Spacing */
  --container-max: 1240px;
  --header-height: 90px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Shadows & Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 15px 35px -10px rgba(20, 42, 59, 0.08), 0 5px 15px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 25px 50px -12px rgba(0, 180, 255, 0.18);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Light Mesh Orbs */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.4;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.bg-orb-1 {
  top: -15%;
  left: 10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.2) 0%, transparent 70%);
}

.bg-orb-2 {
  bottom: 5%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(45, 187, 78, 0.18) 0%, transparent 70%);
  animation-delay: -11s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7.5rem 0;
  position: relative;
}

/* --- Buttons & CTAs (Solid Azul Principal #00B4FF) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 8px 22px -4px var(--accent-blue-glow);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(0, 180, 255, 0.4);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--brand-navy);
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(20, 42, 59, 0.05);
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 180, 255, 0.15);
}

.btn-sm {
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
}

/* Badge Tag */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid rgba(0, 180, 255, 0.25);
  color: var(--brand-navy);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 180, 255, 0.08);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-green);
  box-shadow: 0 0 10px var(--brand-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Light Card Panel */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

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

/* ==========================================================================
   HEADER / NAVBAR & LOGO
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-smooth);
  background: rgba(244, 247, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(20, 42, 59, 0.08);
  box-shadow: 0 10px 30px rgba(20, 42, 59, 0.06);
  height: 80px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition-fast);
}

.brand-logo-img-footer {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

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

.hero-content h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Hero Visual Widget */
.hero-visual {
  position: relative;
}

.hero-card {
  padding: 2.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(0, 180, 255, 0.2);
  box-shadow: 0 25px 60px -15px rgba(20, 42, 59, 0.12), 0 0 30px rgba(0, 180, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-blue);
}

.metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.metrics-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.metrics-badge {
  color: #15803D;
  background: rgba(45, 187, 78, 0.15);
  border: 1px solid rgba(45, 187, 78, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
}

.metric-big {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.metrics-graph-placeholder {
  height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.graph-bar {
  flex: 1;
  background: linear-gradient(180deg, #00B4FF 0%, rgba(0, 180, 255, 0.4) 100%);
  border-radius: 6px 6px 0 0;
  opacity: 0.65;
  transition: var(--transition-smooth);
}

.graph-bar:hover, .graph-bar.active {
  opacity: 1;
  background: linear-gradient(180deg, #2DBB4E 0%, #00B4FF 100%);
  box-shadow: 0 0 15px var(--accent-green-glow);
}

.hero-float-tag {
  position: absolute;
  bottom: -20px;
  left: -20px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #FFFFFF;
  border: 1px solid rgba(0, 180, 255, 0.25);
  box-shadow: 0 20px 40px rgba(20, 42, 59, 0.12);
  border-radius: var(--radius-md);
}

.float-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 180, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 1.25rem;
}

/* ==========================================================================
   2. SOBRE NOSOTROS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 1.5rem;
}

.about-manifesto {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.pillar-card {
  padding: 2.2rem 1.75rem;
  text-align: left;
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--brand-navy);
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   3. SERVICIOS
   ========================================================================== */
.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover::after {
  opacity: 1;
}

.service-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--brand-navy);
}

.service-card p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.98rem;
}

.service-link:hover {
  gap: 0.8rem;
  color: var(--brand-green);
}

/* ==========================================================================
   4. PRUEBA SOCIAL / PORTAFOLIO
   ========================================================================== */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.portfolio-filters {
  display: flex;
  gap: 0.75rem;
  background: #FFFFFF;
  padding: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(20, 42, 59, 0.04);
}

.filter-btn {
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--accent-blue-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.portfolio-img-box {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.08) 0%, rgba(45, 187, 78, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 255, 0.15);
}

.portfolio-highlight {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #FFFFFF;
  border: 1px solid var(--brand-green);
  color: #15803D;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(45, 187, 78, 0.15);
}

.portfolio-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
}

.portfolio-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Testimonios */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  padding: 2.75rem 2.5rem;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #FFF;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px var(--accent-blue-glow);
}

.author-info h4 {
  font-size: 1.05rem;
  color: var(--brand-navy);
}

.author-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. CONTACTO Y FOOTER
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(20, 42, 59, 0.05);
}

.contact-form-card {
  padding: 3rem;
  background: #FFFFFF;
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 1.05rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 0 15px var(--accent-blue-glow);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--brand-blue);
  width: 18px;
  height: 18px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.5rem 0;
  background: #FFFFFF;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pillars-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(20, 42, 59, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .services-grid, .pillars-grid, .portfolio-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.75rem;
  }

  .brand-logo-img {
    height: 52px;
  }
}
