/* ========================================
   COMPONENTS
   Buttons, Cards, Metrics, Brand
   ======================================== */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 45%);
  transition: opacity var(--transition-base);
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-secondary));
  color: #0b0b0b;
  box-shadow: var(--shadow-soft-green);
}

.btn--ghost {
  border: 1px solid rgba(150, 175, 2, 0.45);
  color: var(--color-text);
  background: transparent;
}

/* ========================================
   BRAND
   ======================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__logo {
  width: 52px;
  filter: saturate(0.6) brightness(1.2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ========================================
   METRICS
   ======================================== */

.metric {
  padding: 12px 14px; /* Más compacto */
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(150, 175, 2, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition-long);
  text-align: center;
}

.metric:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(150, 175, 2, 0.5);
}

.metric__value {
  font-size: clamp(1.4rem, 2vw, 1.8rem); /* Responsive */
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.metric__label {
  font-size: clamp(0.7rem, 1vw, 0.8rem); /* Responsive */
  color: var(--color-muted);
  display: block;
  line-height: 1.3;
}

/* ========================================
   CARDS
   ======================================== */

.intro__card {
  padding: 24px 20px; /* Más compacto */
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(150, 175, 2, 0.18);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-long), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro__card:hover {
  transform: translateY(-6px);
  border-color: rgba(150, 175, 2, 0.5);
}

.intro__card h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.2rem); /* Reducido y responsive */
  margin-bottom: 0;
  line-height: 1.3;
  font-weight: 600;
}

.intro__card p {
  color: var(--color-muted);
  font-size: clamp(0.9rem, 1vw, 0.95rem); /* Reducido y responsive */
  line-height: 1.5;
  margin: 0;
}

.service-card {
  padding: 32px;
  border-radius: 26px;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(150, 175, 2, 0.18);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-long), border-color var(--transition-base);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40% 0;
  background: radial-gradient(circle, rgba(150, 175, 2, 0.28), transparent 55%);
  transform: translateY(60%);
  opacity: 0;
  transition: var(--transition-long);
}

.service-card:hover::before {
  transform: translateY(0);
  opacity: 0.9;
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.service-card li {
  font-size: 0.9rem;
  color: rgba(244, 244, 244, 0.8);
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-secondary));
  transform: translateY(-50%);
}

.testimonial-card {
  padding: 32px;
  border-radius: 26px;
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid rgba(150, 175, 2, 0.18);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 18px;
  left: 28px;
  font-size: 4rem;
  color: rgba(150, 175, 2, 0.1);
  line-height: 1;
}

.testimonial-card p {
  color: rgba(244, 244, 244, 0.88);
  font-size: 1rem;
  margin-bottom: 28px;
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ========================================
   BUTTON VARIANTS
   ======================================== */

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
  transform: translateY(-2px) scale(1.02);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ========================================
   COOKIE BANNER
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(11, 11, 11, 0.98);
  border-top: 2px solid var(--color-primary);
  backdrop-filter: blur(20px);
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner__text h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.cookie-banner__text p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }

  /* Adjust card sizes for mobile */
  .intro__card,
  .service-card,
  .testimonial-card {
    padding: 20px;
  }

  .service-card__icon {
    width: 48px;
    height: 48px;
  }

  /* Smaller buttons on mobile */
  .btn {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* Very compact cards */
  .intro__card,
  .service-card,
  .testimonial-card {
    padding: 16px;
  }

  .metric {
    padding: 12px;
  }

  .metric__value {
    font-size: 1.8rem;
  }

  .metric__label {
    font-size: 0.75rem;
  }

  /* Brand adjustments */
  .brand__logo {
    width: 40px;
  }

  .brand__name {
    font-size: 0.85rem;
  }

  .brand__tag {
    font-size: 0.65rem;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}
