﻿/* ============================================
   GIIG — Grupo Ibérico Izquierdo García
   Tema Corporativo Blanco · v2.0
   ============================================ */

:root {
  --rojo:       #E8000D;
  --rojo-dark:  #C0000B;
  --rojo-50:    #FEF2F2;
  --rojo-100:   #FEE2E2;
  --negro:      #111111;
  --gris-700:   #374151;
  --gris-500:   #6B7280;
  --gris-300:   #D1D5DB;
  --gris-100:   #F3F4F6;
  --gris-50:    #F9FAFB;
  --blanco:     #FFFFFF;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--blanco); color: var(--negro); font-family: 'Montserrat', system-ui, sans-serif; }
img { display: block; max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gris-50); }
::-webkit-scrollbar-thumb { background: var(--rojo); border-radius: 4px; }
::selection { background: var(--rojo); color: var(--blanco); }

/* ---- NAVBAR ---- */
#navbar {
  transition: box-shadow 0.35s ease, background 0.35s ease;
  background: var(--blanco);
}
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-link {
  position: relative;
  color: var(--gris-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--rojo);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--rojo); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--rojo); }
.nav-link.active::after { width: 100%; }

/* ---- DROPDOWN ---- */
.dropdown { position: relative; }

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-700);
  padding: 4px 0;
  transition: color 0.25s;
  font-family: inherit;
}
.dropdown-btn:hover { color: var(--rojo); }
.dropdown-btn svg { transition: transform 0.3s ease; }
.dropdown.open .dropdown-btn svg { transform: rotate(180deg); }
.dropdown-btn:hover svg { color: var(--rojo); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  background: var(--blanco);
  border: 1px solid var(--gris-300);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-700);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: var(--rojo-50);
  color: var(--rojo);
}
.dropdown-menu a svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--negro); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { max-height: 520px; }

/* ---- HERO ---- */
.hero-line-red {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--rojo);
  margin: 16px 0;
}

/* ---- IG CARD (white variant) ---- */
.ig-card {
  background: var(--blanco);
  border: 1px solid var(--gris-300);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(232,0,13,0.04);
  max-width: 360px;
  width: 100%;
  overflow: hidden;
}
.ig-card-header {
  background: var(--rojo);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-ring-outer {
  width: 80px; height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 0deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #833ab4, #fd1d1d, #fcb045, #f09433
  );
  animation: igRingRotate 5s linear infinite;
  flex-shrink: 0;
}
@keyframes igRingRotate { to { transform: rotate(360deg); } }

.ig-ring-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 3px solid white;
  overflow: hidden;
}
.ig-ring-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  background: #1877f2;
  border-radius: 50%;
  margin-left: 4px;
  flex-shrink: 0;
}

.ig-mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.ig-mini-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; transition: filter 0.3s; }
.ig-mini-grid img:hover { filter: brightness(1.07); }

/* ---- SECTION DIVIDER ---- */
.red-line {
  display: block; width: 48px; height: 3px;
  background: var(--rojo); margin: 14px 0;
}
.red-line-center {
  display: block; width: 48px; height: 3px;
  background: var(--rojo); margin: 14px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border: 1px solid rgba(232,0,13,0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rojo);
  background: var(--rojo-50);
}

/* ---- SCROLL REVEAL ---- */
.reveal        { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left   { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right  { opacity: 0; transform: translateX(28px);  transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ---- SERVICES ACCORDION ---- */
.svc-block {
  border-top: 1px solid var(--gris-300);
  transition: background 0.3s;
}
.svc-block:last-child { border-bottom: 1px solid var(--gris-300); }

.svc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: opacity 0.2s;
  font-family: inherit;
}
.svc-trigger:hover { opacity: 0.85; }

.svc-num {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--rojo-100);
  line-height: 1;
  min-width: 72px;
  flex-shrink: 0;
  transition: color 0.3s;
}
.svc-block.open .svc-num { color: var(--rojo); }

.svc-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--negro);
  line-height: 1.1;
}
.svc-sub {
  font-size: 14px;
  color: var(--gris-500);
  margin-top: 4px;
}

.svc-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1.5px solid var(--gris-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-500);
  transition: transform 0.4s ease, border-color 0.3s, color 0.3s;
}
.svc-block.open .svc-chevron {
  transform: rotate(180deg);
  border-color: var(--rojo);
  color: var(--rojo);
}

.svc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4,0,0.2,1);
}
/* La altura abierta ya no es un valor fijo: main.js la calcula con
   scrollHeight y la mantiene sincronizada con un ResizeObserver, así
   el contenido nunca se corta en móvil por muy largo que sea. */

.svc-inner {
  padding-bottom: 36px;
  border-top: 1px solid var(--gris-100);
  padding-top: 28px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.product-card {
  background: var(--gris-50);
  border: 1px solid var(--gris-100);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  border-color: rgba(232,0,13,0.25);
  box-shadow: 0 2px 12px rgba(232,0,13,0.06);
}
.product-card.featured {
  background: var(--rojo-50);
  border-color: rgba(232,0,13,0.2);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--rojo-100);
  color: var(--rojo-dark);
  border: 1px solid rgba(232,0,13,0.2);
}

/* ---- GALLERY ---- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background: var(--gris-100);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(232,0,13,0.6), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---- FORM ---- */
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-500);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--blanco);
  border: 1.5px solid var(--gris-300);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--negro);
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(232,0,13,0.08);
}
.form-input::placeholder { color: var(--gris-300); }
.form-input option { color: var(--negro); }

/* ---- BUTTONS ---- */
.btn-rojo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--rojo);
  color: var(--blanco);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  font-family: inherit;
}
.btn-rojo:hover {
  background: var(--rojo-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,0,13,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1.5px solid var(--rojo);
  color: var(--rojo);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  font-family: inherit;
}
.btn-outline:hover {
  background: var(--rojo);
  color: var(--blanco);
  transform: translateY(-2px);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #25D366;
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}
.btn-wa:hover { background: #20b858; transform: translateY(-2px); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--gris-300);
  color: var(--gris-700);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  background: var(--blanco);
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-download:hover {
  border-color: var(--rojo);
  color: var(--rojo);
  transform: translateY(-2px);
}

/* ---- WhatsApp FAB ---- */
.fab-wa {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 50;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fabPulse 2.5s ease-in-out infinite;
}
.fab-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,0.65);
  animation: none;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.7); }
}

/* ---- VALUE CARDS ---- */
.value-card {
  background: var(--blanco);
  border: 1px solid var(--gris-100);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.value-card:hover {
  border-color: rgba(232,0,13,0.2);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  transform: translateY(-4px);
}
.value-icon {
  width: 44px; height: 44px;
  background: var(--rojo-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---- FOUNDER CARDS ---- */
.founder-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--gris-100);
  border-radius: 12px;
  background: var(--blanco);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.founder-card:hover {
  border-color: rgba(232,0,13,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.founder-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ---- MAP ---- */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gris-300);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* ---- FOOTER LINKS ---- */
.footer-link {
  color: var(--gris-500);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s;
  display: block;
}
.footer-link:hover { color: var(--rojo); }

/* ---- BLOG ARTICLES ---- */
.article-card {
  background: var(--blanco);
  border: 1px solid var(--gris-100);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.article-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: rgba(232,0,13,0.15);
}

.article-header {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-dark));
  padding: 32px 28px 24px;
  position: relative;
  overflow: hidden;
}
.article-header::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.article-header-alt {
  background: linear-gradient(135deg, var(--negro), #333);
}

.article-body { padding: 28px; }
.article-body h3 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 12px;
  line-height: 1.3;
}
.article-body h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--negro);
  margin: 20px 0 8px;
}
.article-body p { font-size: 14px; color: var(--gris-700); line-height: 1.75; margin-bottom: 12px; }
.article-body ul { margin: 8px 0 12px 0; padding: 0; list-style: none; }
.article-body ul li {
  font-size: 14px;
  color: var(--gris-700);
  line-height: 1.6;
  padding: 4px 0 4px 20px;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  background: var(--rojo);
  border-radius: 50%;
}
.article-tip {
  background: var(--rojo-50);
  border-left: 3px solid var(--rojo);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--gris-700);
  line-height: 1.6;
}
.article-tip strong { color: var(--rojo); }

/* ---- STAT COUNTER ---- */
.stat-counter { font-variant-numeric: tabular-nums; }

/* ---- RS BADGE ---- */
.rs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gris-50);
  border: 1px solid var(--gris-300);
  border-radius: 8px;
  font-size: 12px;
  color: var(--gris-700);
  font-weight: 500;
}

/* ---- GUARANTEE LIST ---- */
.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gris-700);
  border-bottom: 1px solid var(--gris-100);
}
.guarantee-item:last-child { border-bottom: none; }
.guarantee-check {
  width: 18px; height: 18px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- UNIFORM CARDS ---- */
.uniform-opt {
  padding: 14px 18px;
  background: var(--gris-50);
  border: 1px solid var(--gris-100);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gris-700);
  text-align: center;
  transition: border-color 0.3s, color 0.3s;
}
.uniform-opt:hover { border-color: var(--rojo); color: var(--rojo); }

/* ============================================
   CATALOG PRODUCT CARDS — Nike / Apple style
   ============================================ */
.catalog-section-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.catalog-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gris-200);
}

/* ============================================
   SECCIÓN EQUIPO
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: var(--blanco);
  border: 1px solid var(--gris-100);
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  border-color: rgba(232,0,13,0.18);
}
.team-photo-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gris-200);
  background: var(--gris-50);
  margin-bottom: 16px;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s;
}
.team-card:hover .team-photo-wrap { border-color: var(--rojo); }
.team-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.team-initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--rojo); color: white;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 28px; font-weight: 700;
}
.team-name {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--negro); line-height: 1.3; margin-bottom: 5px;
}
.team-role { font-size: 12px; color: var(--gris-500); line-height: 1.5; max-width: 180px; }
.team-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.team-badge-founder { background: var(--rojo-50); color: var(--rojo); border: 1px solid rgba(232,0,13,0.2); }
.team-badge-team    { background: var(--gris-50);  color: var(--gris-500); border: 1px solid var(--gris-200); }

/* ============================================
   CATÁLOGO PRODUCT CARDS
   ============================================ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
@media (min-width: 640px)  { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .catalog-grid-5 { grid-template-columns: repeat(5, 1fr); } }

.catalog-card {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: rgba(232,0,13,0.18);
}
.catalog-card.premium {
  border-color: rgba(232,0,13,0.22);
  box-shadow: 0 4px 20px rgba(232,0,13,0.08);
}
.catalog-card.premium:hover {
  box-shadow: 0 20px 60px rgba(232,0,13,0.15);
}

.catalog-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gris-100);
  position: relative;
  flex-shrink: 0;
}
.catalog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.catalog-card:hover .catalog-img-wrap img { transform: scale(1.07); }

.premium-crown {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--rojo);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.catalog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.catalog-badge {
  display: inline-flex;
  width: fit-content;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rojo);
  background: var(--rojo-50);
  border: 1px solid rgba(232,0,13,0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.catalog-badge.gold {
  color: #92600A;
  background: #FEF9EC;
  border-color: rgba(201,169,110,0.3);
}
.catalog-name {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.25;
  margin-bottom: 6px;
}
.catalog-desc {
  font-size: 12px;
  color: var(--gris-500);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.catalog-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--negro);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  margin-top: auto;
}
.catalog-cta:hover {
  background: var(--rojo);
  transform: translateY(-2px);
}
.catalog-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================
   FLOATING BUTTON GROUP (WA + Email)
   ============================================ */
.float-group {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.float-btn:hover { transform: scale(1.12) translateY(-2px); }

.float-btn-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--negro);
  color: white;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.float-btn-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--negro);
}
.float-btn:hover .float-btn-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.float-btn-wa {
  background: #25D366;
  animation: fabPulse 2.5s ease-in-out infinite;
}
.float-btn-wa:hover {
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  animation: none;
}

.float-btn-email {
  background: var(--rojo);
}
.float-btn-email:hover {
  background: var(--rojo-dark);
  box-shadow: 0 6px 28px rgba(232,0,13,0.4);
}

/* ============================================
   SERVICE SECTION IMAGE GALLERIES
   ============================================ */
.svc-image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 600px) { .svc-image-gallery { grid-template-columns: repeat(2, 1fr); } }

.svc-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gris-100);
}
.svc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.svc-gallery-item:hover img { transform: scale(1.06); }
.svc-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(232,0,13,0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-gallery-item:hover .svc-gallery-overlay { opacity: 1; }

/* Featured gallery item (spans 2 cols or rows) */
.svc-gallery-item.featured { grid-row: span 2; aspect-ratio: unset; }
@media (max-width: 600px) { .svc-gallery-item.featured { grid-row: span 1; } }

/* Gallery item as anchor */
a.svc-gallery-item { display: block; text-decoration: none; }
a.svc-gallery-item:hover .svc-gallery-overlay { opacity: 1; }
a.svc-gallery-item:hover img { transform: scale(1.06); }

/* ============================================
   CATÁLOGO LONCHEADOS — Cabecera visual 2 imágenes
   ============================================ */
.catalog-cabecera {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 540px) { .catalog-cabecera { grid-template-columns: 1fr; } }

.catalog-cab-link {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gris-100);
}
.catalog-cab-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.catalog-cab-link:hover img { transform: scale(1.05); }
.catalog-cab-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 14px;
}
.catalog-cab-link:hover .catalog-cab-overlay { opacity: 1; }
.catalog-cab-ig {
  display: inline-flex; align-items: center; gap: 5px;
  color: white; font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Embutidos — imagen featured única */
.embutido-featured-link {
  display: block;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: 14px;
  margin: 8px 0 28px;
  position: relative;
  background: var(--gris-100);
}
@media (max-width: 640px) { .embutido-featured-link { aspect-ratio: 16/9; } }
.embutido-featured-link img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.embutido-featured-link:hover img { transform: scale(1.03); }
.embutido-featured-label {
  position: absolute; bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  color: white; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(232,0,13,0.85);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Text-only product cards (embutidos sin imagen individual) */
.catalog-card.text-card { flex-direction: column; }
.catalog-card.text-card .catalog-body { padding: 20px; flex: 1; }

/* Gallery IG caption badge */
.gallery-ig-badge {
  display: inline-flex; align-items: center; gap: 5px;
  color: white; font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
}
.svc-gallery-overlay { display: flex; align-items: flex-end; padding: 12px; }
