/* ============================================
   MAC ABOGADOS HOME — ENHANCED STYLES
   Coolors Palette: 1f2421-216869-49a078-9cc5a1-dce1de
   ============================================ */

/* ===== PALETA COOLORS ===== */
:root {
  --color-bg: #faf8f4;
  --color-surface: #dce1de;
  --color-border: #9cc5a1;
  --color-text: #1f2421;
  --color-text-muted: #216869;
  --color-accent: #49a078;
  --color-accent-hover: #9cc5a1;
  --color-primary: #1f2421;
  --color-white: #ffffff;
  --color-whatsapp: #49a078;
  --color-whatsapp-dark: #216869;
}

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

.hm-hero {
  padding: var(--space-section-mobile) 0;
  text-align: center;
  background: var(--color-bg, #faf8f4);
  position: relative;
  overflow: hidden;
}

.hm-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(73, 160, 120, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hm-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(56, 163, 165, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hm-hero {
    padding: var(--space-section) 0;
  }
}

.hm-hero .container {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

/* Enhanced eyebrow with gradient pill */
.hm-hero .dv-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  background: var(--color-accent, #49a078);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 2px 8px rgba(73, 160, 120, 0.2);
}

.hm-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--color-text, #1f2421);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hm-hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(17px, 2.5vw, 20px);
  line-height: 1.65;
  color: var(--color-text, #1f2421);
  margin: 0 0 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}

.hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* ============================================
   ENHANCED SERVICES SECTION
   ============================================ */

.hm-services-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.hm-services-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  color: var(--color-text, #1f2421);
  font-weight: 700;
}

.hm-services-header p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-muted, #216869);
  margin: 0;
  line-height: 1.6;
}

.hm-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .hm-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hm-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Enhanced service cards with hover effects */
.hm-service-card {
  background: var(--color-bg, #faf8f4);
  border: 1px solid var(--color-border, #9cc5a1);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 1px 3px oklch(0.22 0.02 55 / 0.04);
}

.hm-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px oklch(0.22 0.02 55 / 0.1);
  border-color: var(--color-accent, #49a078);
}

.hm-service-featured {
  border-color: var(--color-accent, #49a078);
  border-width: 2px;
  background: var(--color-surface, #dce1de);
}

/* Enhanced badge with gradient */
.hm-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--color-accent, #49a078);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(73, 160, 120, 0.25);
}

.hm-service-icon {
  color: var(--color-accent, #49a078);
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-service-card:hover .hm-service-icon {
  transform: scale(1.1);
}

.hm-service-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--color-text, #1f2421);
}

.hm-service-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text, #1f2421);
  margin: 0 0 20px;
  flex-grow: 1;
}

.hm-service-link {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-accent, #49a078);
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #9cc5a1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hm-service-link-whatsapp {
  color: var(--color-whatsapp-dark);
}

.hm-service-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.hm-service-link:hover {
  color: var(--color-primary, #1f2421);
}

.hm-service-link:hover::after {
  transform: translateX(4px);
}

/* ============================================
   ENHANCED TRUST BAR
   ============================================ */

.hm-trust-bar {
  background: var(--color-bg, #faf8f4);
  padding: 56px 0;
  border-top: 1px solid var(--color-border, #9cc5a1);
  border-bottom: 1px solid var(--color-border, #9cc5a1);
}

.hm-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .hm-trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Enhanced trust items with icons and hover */
.hm-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px oklch(0.22 0.02 55 / 0.05);
  border: 1px solid var(--color-border, #9cc5a1);
  transition: all 0.3s ease;
}

.hm-trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px oklch(0.22 0.02 55 / 0.08);
}

.hm-trust-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent, #49a078);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hm-trust-icon svg {
  color: white;
  width: 24px;
  height: 24px;
}

.hm-trust-num {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--color-text, #1f2421);
  line-height: 1.2;
}

.hm-trust-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted, #216869);
  margin-top: 6px;
  line-height: 1.4;
}

/* ============================================
   ENHANCED CTA BUTTONS
   ============================================ */

/* WhatsApp button with gradient and shadow */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-whatsapp, #49a078);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 14px oklch(0.58 0.14 40 / 0.25);
  min-height: 48px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px oklch(0.58 0.14 40 / 0.35);
}

.btn-whatsapp-large {
  padding: 18px 36px;
  font-size: 18px;
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
}

/* Enhanced outline button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-text, #1f2421);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  border: 2px solid var(--color-border, #9cc5a1);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 48px;
}

.btn-outline:hover {
  border-color: var(--color-accent, #49a078);
  color: var(--color-accent, #49a078);
  background: oklch(0.58 0.14 40 / 0.05);
}

.btn-outline.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-bg, #faf8f4);
  text-decoration: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

/* CTA actions */
.hm-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
/* ============================================
   ENHANCED FOOTER
   ============================================ */

.hm-footer {
  background: var(--color-text, #1f2421);
  color: var(--color-bg, #faf8f4);
  padding: 48px 0 24px;
  text-align: center;
}

.hm-footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.hm-footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hm-footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hm-footer-logo span {
  color: var(--color-bg, #faf8f4);
  font-size: 14px;
  opacity: 0.8;
}

.hm-footer-tagline {
  font-size: 16px;
  opacity: 0.7;
  margin: 0 0 24px;
  font-style: italic;
}

.hm-footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.hm-footer-contact a {
  color: var(--color-bg, #faf8f4);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.hm-footer-contact a:hover {
  opacity: 1;
}

.hm-footer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent, #49a078), transparent);
  margin: 0 auto 24px;
  border: none;
}

.hm-footer-legal {
  font-size: 13px;
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .hm-hero-actions {
    flex-direction: column;
  }
  
  .hm-hero-actions .btn-whatsapp,
  .hm-hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .hm-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 8px;
  }
  
  .hm-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .hm-trust-item {
    padding: 20px 16px;
  }
  
  .hm-trust-num {
    font-size: 22px;
  }
  
  .dv-cta-header h2 {
    font-size: 26px;
  }
  
  .hm-cta-actions {
    flex-direction: column;
  }
  
  .hm-cta-actions .btn-whatsapp,
  .hm-cta-actions .btn-outline-light {
    width: 100%;
    justify-content: center;
  }
}