/* ==========================================
   SIONFICH - Custom Styles
   Paleta: Warm neutral con steel blue primary
   Fuente: DM Sans
   ========================================== */

:root {
  --bg: #faf7f5;
  --fg: #2d2a26;
  --card: #ffffff;
  --card-fg: #2d2a26;
  --primary: #7c9eb2;
  --primary-dark: #6b8da1;
  --primary-fg: #ffffff;
  --secondary: #f0e6de;
  --secondary-fg: #2d2a26;
  --muted: #f5f0ec;
  --muted-fg: #6b6560;
  --accent: #d4b9a7;
  --accent-fg: #2d2a26;
  --destructive: #e07a6a;
  --border: #e8e0d8;
  --radius: 0.75rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==================== HEADER ==================== */
#mainHeader { z-index: 1000; }

.header-inner {
  background: rgba(250, 247, 245, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header-inner.scrolled {
  background: rgba(250, 247, 245, 0.95);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.logo-img { height: 48px; width: 48px; object-fit: contain; }

.nav-link-custom {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}
.nav-link-custom:hover { color: var(--primary); }

.cart-btn {
  background: none;
  border: none;
  color: var(--fg);
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cart-btn:hover { background: var(--muted); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.7rem;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-custom {
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: var(--primary-fg); transform: translateY(-1px); }

.btn-outline-custom {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-custom:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted-fg);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-ghost:hover { background: var(--muted); }

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--fg);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ==================== HERO ==================== */
.hero-section { overflow: hidden; }
.py-hero { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 992px) { .py-hero { padding-top: 7rem; padding-bottom: 7rem; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--secondary);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.hero-badge-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary-fg);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 992px) { .hero-title { font-size: 3.5rem; } }

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-fg);
  max-width: 520px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1.5rem;
}
@media (min-width: 576px) { .hero-highlights { flex-direction: row; gap: 24px; } }
.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.highlight-icon { color: var(--primary); flex-shrink: 0; }

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-image-overlay { position: absolute; inset: 0; background: rgba(124, 158, 178, 0.1); }

.hero-float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.hero-float-left { bottom: -16px; left: -12px; }
.hero-float-right { top: -12px; right: -12px; }
@media (min-width: 768px) { .hero-float-left { left: -28px; } .hero-float-right { right: -28px; } }
.hero-float-value { font-size: 1.5rem; font-weight: 700; color: var(--fg); margin: 0; }
.hero-float-label { font-size: 0.7rem; color: var(--muted-fg); margin: 0; }

/* ==================== STATS ==================== */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(124, 158, 178, 0.05);
  padding: 4rem 0;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 158, 178, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--fg); margin: 0; }
@media (min-width: 992px) { .stat-value { font-size: 2.5rem; } }
.stat-label { font-size: 0.875rem; color: var(--muted-fg); margin: 0; }

/* ==================== SECTIONS COMMON ==================== */
.section-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--secondary-fg);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 50px;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-fg);
  max-width: 640px;
  margin-top: 1rem;
}

/* ==================== SERVICES ==================== */
.services-section {
  background: rgba(240, 230, 222, 0.5);
  padding: 5rem 0;
}
@media (min-width: 992px) { .services-section { padding: 7rem 0; } }

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.service-popular-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}
.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(124, 158, 178, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-title { font-size: 1.125rem; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.service-desc { font-size: 0.875rem; line-height: 1.6; color: var(--muted-fg); margin-bottom: 16px; }
.service-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.service-features li svg { color: var(--primary); flex-shrink: 0; }
.service-price-area { margin-top: auto; padding-top: 1.5rem; }
.service-price { font-size: 1.75rem; font-weight: 700; color: var(--fg); }
.service-price-period { font-size: 0.875rem; color: var(--muted-fg); }
.service-add-btn {
  width: 100%;
  margin-top: 1rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: var(--radius);
  padding: 10px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.service-add-btn:hover { background: var(--primary-dark); }
.service-add-btn.added {
  background: var(--secondary);
  color: var(--secondary-fg);
  cursor: default;
}

/* ==================== MISSION / VISION ==================== */
.about-section { padding: 5rem 0; }
@media (min-width: 992px) { .about-section { padding: 7rem 0; } }

.mv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mv-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(124, 158, 178, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.mv-title { font-size: 1.5rem; font-weight: 700; color: var(--fg); margin: 0; }
.mv-text { font-size: 1rem; line-height: 1.7; color: var(--muted-fg); }

.mv-stat-box {
  background: var(--secondary);
  border-radius: 10px;
  padding: 1rem;
}
.mv-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--fg); margin: 0; }
.mv-stat-label { font-size: 0.75rem; color: var(--muted-fg); margin: 0; }

.mv-value-box {
  background: var(--secondary);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mv-value-icon { color: var(--primary); }
.mv-value-title { font-size: 0.875rem; font-weight: 600; color: var(--fg); margin: 0; }
.mv-value-desc { font-size: 0.75rem; color: var(--muted-fg); margin: 0; }

.team-banner {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 21/9;
}
.team-banner-img { width: 100%; height: 100%; object-fit: cover; }
.team-banner-overlay { position: absolute; inset: 0; background: rgba(45, 42, 38, 0.4); }
.team-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.team-banner-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .team-banner-title { font-size: 2.25rem; } }
.team-banner-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-section {
  background: rgba(240, 230, 222, 0.5);
  padding: 5rem 0;
}
@media (min-width: 992px) { .testimonials-section { padding: 7rem 0; } }

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.testimonial-stars { display: flex; gap: 4px; color: var(--primary); }
.testimonial-quote {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-fg);
  font-style: normal;
  margin: 0;
  border: none;
  padding: 0;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.875rem; font-weight: 600; color: var(--fg); margin: 0; }
.testimonial-role { font-size: 0.75rem; color: var(--muted-fg); margin: 0; }

/* ==================== CONTACT ==================== */
.contact-section { padding: 5rem 0; }
@media (min-width: 992px) { .contact-section { padding: 7rem 0; } }

.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124, 158, 178, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-title { font-size: 0.875rem; font-weight: 600; color: var(--fg); margin: 0; }
.contact-info-detail { font-size: 0.875rem; color: var(--muted-fg); margin: 0; }

.consult-box {
  background: rgba(124, 158, 178, 0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 0.5rem;
}
.consult-box-title { font-size: 1rem; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.consult-box-text { font-size: 0.875rem; line-height: 1.6; color: var(--muted-fg); margin: 0; }

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-label-custom {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
  display: block;
}
.form-control-custom {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-control-custom:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 158, 178, 0.15); }
.form-control-custom::placeholder { color: var(--muted-fg); opacity: 0.6; }

select.form-control-custom { appearance: auto; cursor: pointer; }
textarea.form-control-custom { resize: vertical; min-height: 100px; }

.contact-success { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 3rem 1rem; text-align: center; }
.contact-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(124, 158, 178, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-success-title { font-size: 1.25rem; font-weight: 600; color: var(--fg); }
.contact-success-text { font-size: 0.875rem; color: var(--muted-fg); }

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}
.footer-logo { height: 48px; width: 48px; object-fit: contain; }
.footer-desc { font-size: 0.875rem; line-height: 1.6; color: var(--muted-fg); }
.footer-heading { font-size: 0.875rem; font-weight: 600; color: var(--fg); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--muted-fg); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-copyright { font-size: 0.75rem; color: var(--muted-fg); margin: 0; }
.footer-tagline { font-size: 0.75rem; color: var(--muted-fg); margin: 0; }

/* ==================== CART SIDEBAR ==================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1050;
  transition: opacity 0.3s;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--card);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-title { font-size: 1rem; font-weight: 600; color: var(--fg); margin: 0; display: flex; align-items: center; }
.cart-close-btn {
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.cart-close-btn:hover { background: var(--muted); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 2rem;
}
.cart-empty-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
}
.cart-empty-text { font-size: 0.875rem; color: var(--muted-fg); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.cart-item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.cart-item-name { font-size: 0.875rem; font-weight: 600; color: var(--fg); margin: 0; }
.cart-item-desc { font-size: 0.75rem; color: var(--muted-fg); margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.cart-item-remove:hover { background: rgba(224, 122, 106, 0.1); color: var(--destructive); }
.cart-item-footer { display: flex; align-items: center; justify-content: space-between; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--muted-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--muted); }
.qty-value { width: 32px; text-align: center; font-size: 0.875rem; font-weight: 500; color: var(--fg); }
.cart-item-price { font-size: 0.875rem; font-weight: 600; color: var(--fg); }

.cart-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.cart-summary-label { font-size: 0.875rem; color: var(--muted-fg); }
.cart-summary-value { font-size: 0.875rem; color: var(--fg); }
.cart-divider { border-color: var(--border); margin: 8px 0; }
.cart-total-label { font-weight: 600; color: var(--fg); }
.cart-total-value { font-size: 1.125rem; font-weight: 700; color: var(--fg); }

.cart-order-placed {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 2rem;
  text-align: center;
}
.cart-success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(124, 158, 178, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.cart-success-title { font-size: 1.25rem; font-weight: 600; color: var(--fg); }
.cart-success-text { font-size: 0.875rem; color: var(--muted-fg); max-width: 280px; }

/* ==================== ANIMATIONS ==================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
