/* ==================== ALQUIMIA DESIGN SYSTEM ==================== */
:root {
  --black: #050505;
  --black-secondary: #0a0a0a;
  --surface: #111111;
  --surface-light: #181818;
  --card-bg: #151515;
  --gold: #e9a416;
  --gold-light: #f5b62d;
  --white: #ffffff;
  --text-secondary: #c7c7c7;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(233, 164, 22, 0.4);
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== GLOBAL STYLES ==================== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 400;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.max-wrapper {
  max-width: 1440px;
  margin: 0 auto;
}

.text-gold {
  color: var(--gold) !important;
}

.section-padding {
  padding: 80px 0;
}

.border-top-divider {
  border-top: 1px solid var(--border);
}

/* ==================== BUTTONS ==================== */
.pill-btn {
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus,
.btn-outline-gold:active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(233, 164, 22, 0.25);
}

/* ==================== HEADER ==================== */
.site-header {
  background-color: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1050;
  transition: all 0.3s ease;
}

.header-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 760px;
  padding-top: 100px;
  background-color: var(--black);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--white);
}

.hero-description {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 780px;
  margin-left: 0;
  text-align: left;
}

.hero-btn {
  padding: 12px 28px;
  font-size: 13px;
}

@media (min-width: 992px) {
  .hero-text-col {
    padding-left: 0;
  }
}

.hero-artwork-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  transform: scale(1.03);
}

.hero-blend-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: linear-gradient(to right, var(--black) 0%, rgba(5, 5, 5, 0.85) 40%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ==================== BENEFICIAL BAR ==================== */
.benefits-bar {
  background-color: #0b0b0b;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefit-col {
  border-right: 1px solid var(--border);
}

.benefit-icon {
  flex-shrink: 0;
}

.benefit-text {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
}

/* ==================== SERVICIOS ==================== */
.section-badge {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  display: inline-block;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.section-subtitle {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.service-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==================== PROYECTOS ==================== */
.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: none;
  background-color: var(--black);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.14);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.95), transparent);
  pointer-events: none;
}

.project-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.project-card-category {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==================== RESULTADOS ==================== */
.metrics-grid {
  gap: 20px;
}

.metric-item {
  border-right: 1px solid var(--border);
  flex: 1 1 0px;
  min-width: 120px;
}

.metric-number {
  font-size: 58px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
  margin-top: 4px;
}

/* ==================== MARCAS / CLIENTES ==================== */
.client-logos-wrapper {
  padding: 20px 0;
}

.client-logos-img {
  max-height: 48px;
  width: auto;
  filter: brightness(0.95);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.client-logos-img:hover {
  opacity: 1;
}

/* ==================== CTA FINAL ==================== */
.cta-box {
  background-color: #171717;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.cta-img-container {
  height: 100%;
  min-height: 320px;
  width: 100%;
  position: relative;
}

.cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: var(--black);
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--gold);
  background-color: rgba(233, 164, 22, 0.1);
  transform: translateY(-2px);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 48px;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .navbar-toggler {
    position: relative;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(233, 164, 22, 0.35) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
  }

  .navbar-toggler:focus,
  .navbar-toggler:active {
    box-shadow: 0 0 15px rgba(233, 164, 22, 0.4);
    border-color: var(--gold) !important;
  }

  .header-logo {
    height: 44px;
  }

  .navbar-collapse {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    border-radius: 16px;
    margin-top: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
    font-size: 16px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hero-text-col {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left;
  }

  .hero-title {
    font-size: 34px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.15;
  }

  .hero-description {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  .hero-artwork-bg {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 32px);
    max-width: 520px;
    height: 330px;
    margin: 24px auto 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(233, 164, 22, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(233, 164, 22, 0.12);
  }

  .hero-artwork-img {
    border-radius: 24px;
  }

  .hero-blend-gradient {
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--black) 0%, transparent 100%);
    display: block;
  }

  .benefit-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }

  .benefit-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .metric-item {
    border-right: none;
    margin-bottom: 20px;
    width: 50%;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-img-container {
    height: 240px;
  }

  .cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-artwork-bg {
    height: 290px;
    border-radius: 20px;
    width: calc(100% - 24px);
  }

  .hero-artwork-img {
    border-radius: 20px;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 24px;
  }

  .metric-item {
    width: 100%;
  }

  .metric-number {
    font-size: 36px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-content {
    text-align: center;
  }

  .cta-content .btn {
    width: 100%;
  }

  .section-padding {
    padding: 50px 0;
  }
}

/* ==================== ANIMATIONS & MICRO-INTERACTIONS ==================== */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Grid Cascade */
.reveal-stagger .col {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-stagger.active .col:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.active .col:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.active .col:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.active .col:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.active .col:nth-child(5) { transition-delay: 0.45s; }

.reveal-stagger.active .col {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Subtle Floating Animation */
@keyframes floatArtwork {
  0% { transform: scale(1.03) translateY(0px); }
  50% { transform: scale(1.03) translateY(-6px); }
  100% { transform: scale(1.03) translateY(0px); }
}

.hero-artwork-img {
  animation: floatArtwork 7s ease-in-out infinite;
}

/* Card Hover Micro-Interactions */
.service-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(233, 164, 22, 0.4);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(233, 164, 22, 0.12);
  background-color: #1a1a1a;
}

.service-card .service-icon svg {
  transition: transform 0.4s ease, stroke 0.3s ease;
}

.service-card:hover .service-icon svg {
  transform: scale(1.12) rotate(4deg);
}

.project-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.project-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(233, 164, 22, 0.15);
}

.cta-box {
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.cta-box:hover {
  box-shadow: 0 12px 40px rgba(233, 164, 22, 0.18);
  border-color: rgba(233, 164, 22, 0.4);
}

/* ==================== FLOATING WHATSAPP BUTTON ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65), 0 0 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  animation: pulseWa 2.5s infinite;
}

/* ==================== CONTACT MODAL STYLES ==================== */
.modal-content.dark-modal {
  background-color: #121212;
  border: 1px solid rgba(233, 164, 22, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(233, 164, 22, 0.15);
  color: #ffffff;
}

.modal-header.dark-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 28px 16px;
}

.modal-body.dark-modal-body {
  padding: 24px 28px 32px;
}

.dark-input {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark-input:focus {
  background-color: #1e1e1e;
  border-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(233, 164, 22, 0.25);
  outline: none;
}

.dark-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}


