/* ============================================================
   La Granja Al Revés — CSS Global
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --green:        #00a63e;
  --green-dark:   #007a2e;
  --green-light:  #dcfce7;
  --footer-bg:    #101828;
  --gray-900:     #0a0a0a;
  --gray-700:     #364153;
  --gray-500:     #4a5565;
  --gray-400:     #717182;
  --gray-300:     #6a7282;
  --gray-200:     #99a1af;
  --gray-100:     #f4f5f6;
  --gray-50:      #f9fafb;
  --white:        #ffffff;
  --border:       rgba(0,0,0,0.1);
  --shadow-card:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius-card:  14px;
  --radius-btn:   8px;
  --max-w:        1152px;
  --nav-h:        64px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.37px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 20px;
  color: var(--gray-500);
  letter-spacing: -0.45px;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  z-index: 1000;
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.45px;
}
.navbar-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.navbar-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-900);
  letter-spacing: -0.31px;
  transition: color .2s;
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--green);
  font-weight: 600;
}
.btn-admin {
  border: 1px solid var(--green) !important;
  border-radius: var(--radius-btn) !important;
  padding: 6px 16px !important;
  color: var(--green) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all .2s;
}
.btn-admin:hover {
  background: var(--green) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  color: var(--gray-900);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-50);
}
.mobile-menu a.active { color: var(--green); font-weight: 600; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  transition: background .2s, transform .15s;
  letter-spacing: -0.15px;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  transition: all .2s;
  letter-spacing: -0.15px;
}
.btn-outline-white:hover { background: var(--white); color: var(--green); }

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eceef2;
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  transition: all .2s;
  letter-spacing: -0.15px;
}
.btn-light:hover { background: #d1d5db; }

/* ── Service Card ──────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card__img {
  position: relative;
  height: 192px;
  overflow: hidden;
  background: var(--gray-50);
}
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__img .fav-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  color: var(--gray-400);
  font-size: 16px;
  transition: all .2s;
  cursor: pointer;
}
.service-card__img .fav-btn:hover { color: #ef4444; transform: scale(1.1); }
.service-card__img .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6;
  color: var(--gray-300);
  font-size: 40px;
}
.service-card__header {
  padding: 16px 24px 0;
}
.service-card__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.31px;
}
.service-card__meta {
  display: flex;
  gap: 16px;
  align-items: center;
}
.service-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--gray-400);
  letter-spacing: -0.15px;
}
.service-card__meta svg { flex-shrink: 0; }
.service-card__body {
  padding: 12px 24px 0;
  flex: 1;
}
.service-card__desc {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.5;
  letter-spacing: -0.31px;
}
.service-card__price {
  padding: 8px 24px 0;
}
.service-card__price .price-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
}
.service-card__price .price-unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-300);
  letter-spacing: -0.31px;
}
.service-card__footer {
  padding: 12px 24px 16px;
}
.service-card__footer .btn-primary {
  width: 100%;
  padding: 9px;
  font-size: 14px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: var(--gray-200);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px 60px;
  padding-bottom: 40px;
}
.footer-brand h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.45px;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-200);
}
.footer-contact h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.45px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-200);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.footer-social h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.45px;
}
.footer-social-links {
  display: flex;
  gap: 12px;
}
.footer-social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-200);
  font-size: 16px;
  transition: all .2s;
}
.footer-social-links a:hover { background: var(--green); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: var(--gray-200);
}

/* ── Page offset (for fixed nav) ───────────────────────────── */
.page-content { padding-top: var(--nav-h); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section-header h2 { font-size: 28px; }
  .section-header p  { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .section-header h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}



/* Alineación para Laptop */
@media (min-width: 769px) {
  .navbar-links {
    margin-left: auto; /* Empuja los enlaces hacia la derecha */
    margin-right: 40px; /* Espacio entre los enlaces y el carrito */
  }
}

/* Contenedor de acciones (Carrito + Hamburguesa) */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px; /* Espacio entre el carrito y la hamburguesa en móvil */
}

/* Estilo para que el botón del carrito no tenga bordes feos */
.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--gray-900);
  transition: color 0.2s;
}

.cart-btn:hover {
  color: var(--green);
}

/* Posición del número (badge) sobre el icono */
#cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
}