/*
Theme Name: Mktwolf Theme
Theme URI: https://mktwolf.magnusgroup.mx
Description: Tema custom premium minimalista y responsivo para el demo de Mktwolf. Creado por Magnus Group.
Version: 1.0.0
Author: Magnus Group
Author URI: https://magnusgroup.mx
Text Domain: mktwolf
*/

/* -------------------------------------------------------------
 * 1. DESIGN TOKENS & RESET
 * ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --accent:      #E8601A;
  --accent-h:    #C64E12;
  --accent-soft: #FDF2EC;
  --black:       #0F1115;
  --dark-gray:   #1A1C22;
  --gray-light:  #F4F5F7;
  --gray-border: #E2E4E8;
  --gray-text:   #606470;
  --white:       #FFFFFF;
  
  /* Typography */
  --font-sans:   'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Layout & Shadows */
  --container:   1280px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 4px rgba(15, 17, 21, 0.04);
  --shadow-md:   0 8px 24px rgba(15, 17, 21, 0.06);
  --shadow-lg:   0 16px 40px rgba(15, 17, 21, 0.1);
  --transition:  all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background-color: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background-color: var(--accent-h);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--gray-border);
}
.btn--secondary:hover {
  background-color: var(--gray-light);
  border-color: var(--black);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------
 * 2. HEADER & NAVIGATION
 * ------------------------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo svg text {
  font-family: var(--font-sans);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-text);
}
.nav-menu a:hover, .nav-menu .current-menu-item a {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Live Search Bar */
.live-search-wrapper {
  position: relative;
  width: 280px;
}

.live-search-input {
  width: 100%;
  padding: 10px 16px;
  padding-right: 40px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.live-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 96, 26, 0.15);
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-light);
  gap: 12px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--gray-light);
}

.search-result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--gray-light);
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 12px;
  color: var(--gray-text);
  display: flex;
  justify-content: space-between;
}

/* -------------------------------------------------------------
 * 3. HERO & HOMEPAGE (BENTO GRID)
 * ------------------------------------------------------------- */
.hero {
  padding: 80px 0;
  background: radial-gradient(circle at 80% 20%, #FFF5EF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--gray-border);
  overflow: hidden;
}

.hero__wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero__h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--black);
}

.hero__h1 span {
  color: var(--accent);
}

.hero__lead {
  font-size: 18px;
  color: var(--gray-text);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero__visual {
  position: relative;
}

.hero__badge-container {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* Bento Grid */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--gray-text);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.bento-card--double {
  grid-column: span 2;
}

.bento-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-card__desc {
  color: var(--gray-text);
  font-size: 15px;
}

/* Product Cards styling & premium animations */
.product-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent) !important;
}

.product-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-card:hover img {
  transform: scale(1.04);
}

/* -------------------------------------------------------------
 * 4. SINGLE PRODUCT & HYBRID MODE
 * ------------------------------------------------------------- */
.product-hero-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.provider-sync-card {
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.provider-sync-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.provider-sync-row:last-child {
  border-bottom: none;
}

.provider-label {
  font-size: 13px;
  color: var(--gray-text);
  font-weight: 500;
}

.provider-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

/* Hybrid Selector CTA */
.hybrid-actions-container {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hybrid-selector-tabs {
  display: flex;
  background: var(--gray-light);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
}

.hybrid-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.hybrid-tab.active {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
}

.hybrid-panels {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.hybrid-panel {
  display: none;
}

.hybrid-panel.active {
  display: block;
}

.quote-form-group {
  margin-bottom: 16px;
}

.quote-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
}

.quote-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.quote-form-control:focus {
  border-color: var(--accent);
}

/* WhatsApp Float Button */
.wa-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
  z-index: 999;
  font-size: 28px;
  transition: var(--transition);
}

.wa-fab:hover {
  transform: scale(1.08) translateY(-2px);
  background-color: #20BA5A;
}

/* -------------------------------------------------------------
 * 5. FOOTER
 * ------------------------------------------------------------- */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: 80px;
  border-top: 4px solid var(--accent);
}

.site-footer__wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col__title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  position: relative;
}

.footer-col__title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
  margin-top: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #8C939F;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1E222A;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #606470;
}

/* Responsive */
@media (max-width: 968px) {
  .hero__wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--double {
    grid-column: span 1;
  }
  .site-footer__wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .site-footer__wrap {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
