/* ============================================
   CASA DEL RELOJ — Estilos principales
   styles.css
   ============================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0f0e0c;   /* fondo base casi negro cálido     */
  --surface:    #181612;   /* tarjetas y secciones alternas    */
  --border:     #2c2820;   /* bordes sutiles                   */
  --muted:      #4a4540;   /* elementos apagados               */
  --mid:        #857d74;   /* texto secundario                 */
  --body:       #c4bdb4;   /* texto de cuerpo                  */
  --heading:    #ece6dc;    /* títulos                          */
  --accent:     #c9a96e;   /* dorado cálido                    */
  --accent-dim: #7a6440;   /* dorado apagado para detalles     */
  --green-wa:   #25d366;   /* WhatsApp  */
  --blur: #d8d7d73b;
                        
  --transition: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
}

.bg-fixed {
  position: fixed;
  inset: 0;           /* top:0, left:0, right:0, bottom:0 */
  z-index: -1;
  background-image: url('opcion1.png');
  background-position: center top;
  }

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }


/* ============================================
   TIPOGRAFÍA UTILITARIA
   ============================================ */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.12;
  color: var(--heading);
}

.rule {
  width: 36px; height: 1px;
  background: var(--accent);
  margin: 1.4rem 0;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ============================================
   NAVEGACIÓN
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  height: 68px;
  background:var(--heading);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.4); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover        { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 24px;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  background: var(--muted);
  border-radius: 1px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}


/* ============================================
   HERO
   ============================================ */
#inicio {
  min-height: 100vh;
  padding-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 4vw 8vw 7vw;
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent-dim);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 1.8rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--heading);
  max-width: 380px;
  margin-bottom: 2.8rem;
}

.hero-actions { display: flex; align-items: center; gap: 1.4rem; }

.btn-fill {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 30px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  transition: all var(--transition);
  border-radius: 1px;
}
.btn-fill:hover { background: var(--heading); }

.btn-line {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.btn-line svg { transition: transform var(--transition); }
.btn-line:hover            { color: var(--heading); }
.btn-line:hover svg        { transform: translateX(5px); }

/* Panel derecho del hero */
.hero-right {
  background: var(--blur);
  position: relative;
  overflow: hidden;
  display: flex;
  width: 450px;
  height: 60% ;
  margin: auto;   /* separación del borde */
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

/* Textura de puntos como fondo decorativo */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--muted) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.18;
}


.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hero-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.hero-badge-label {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
  margin-top: 3px;
  line-height: 1.3;
}


/* ============================================
   SECCIÓN SOBRE NOSOTROS
   ============================================ */
#nosotros {
  background: var(--surface);
  padding: 9rem 7vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
}

/* ilustración tienda */
.about-frame {
  position: relative;
}
.about-frame-inner {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-frame-inner svg { width: 100%; height: 100%; }

/* acento decorativo detrás */
.about-frame::after {
  content: '';
  position: absolute;
  bottom: -1.2rem; right: -1.2rem;
  width: 55%; height: 55%;
  border: 1px solid var(--accent-dim);
  z-index: -1;
}

.about-content .title { 
  font-size: clamp(2rem, 3.5vw, 3.2rem); 
  margin-bottom: 0.4rem; 
}

.about-content p {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* tarjetas de valores */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}
.value-card {
  padding: .85rem 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.value-card:hover { border-color: var(--accent-dim); }

.value-icon { font-size: 1.2rem; margin-bottom: 0.6rem; }
.value-name {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.value-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }


/* ============================================
   SECCIÓN CATÁLOGO
   ============================================ */
#catalogo {
  padding: 9rem 7vw;
  background: var(--bg);
}

.catalog-top {
  display: flex;
  align-items: flex-start;        
  justify-content: flex-start;
  flex-direction: column;  
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.catalog-top .title { font-size: clamp(1.8rem, 3vw, 3rem);}

/* Filtros centrados, estilo tab */
.filters {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}
.filter-btn {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 22px;
  background: transparent;
  color: var(--mid);
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.filter-btn:last-child { border-right: none; }
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Grid de productos — 3 col con gap visual */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.product-card {
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}
.product-card.hidden { display: none; }
.product-card:hover  { transform: translateY(-5px); z-index: 2; }

.product-thumb {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.product-thumb svg {
  width: 60%;
  transition: transform 0.55s ease;
}
.product-card:hover .product-thumb svg { transform: scale(1.08) rotate(2deg); }

.product-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0) 60%, rgba(201,169,110,0.07) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-shine { opacity: 1; }

.product-info { padding: 1.2rem 1.4rem 1.6rem; }

.product-cat {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 0.35rem;
}
.product-desc { font-size: 0.78rem; color: var(--mid); line-height: 1.55; }


/* ============================================
   SECCIÓN CONTACTO
   ============================================ */
#contacto {
  background: var(--surface);
  padding: 9rem 7vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: start;
}

.contact-info .title { font-size: clamp(1.8rem, 3vw, 3rem); }

.contact-intro {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 380px;
}

.contact-list { display: flex; flex-direction: column; gap: 1.4rem; }

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon-box {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.95rem;
}
.contact-lbl {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.contact-val { font-size: 0.88rem; color: var(--mid); line-height: 1.5; }

/* Mapa de contacto */
.contact-map {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

/* Dirección con link */
.contact-address-link {
  color: var(--mid);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.5;
}
.contact-address-link:hover { color: #5b9bd5; text-decoration: underline; }

/* Teléfono link */
.contact-phone-link {
  color: var(--mid);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-phone-link:hover { color: var(--accent); }

/* WhatsApp link */
.contact-wa-link {
  color: var(--mid);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-wa-link:hover { color: var(--green-wa); }

/* Formulario (kept for reference) */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-lbl {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

.form-input,
.form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 11px 14px;
  color: var(--heading);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
  border-radius: 1px;
}
.form-input:focus,
.form-textarea:focus         { border-color: var(--accent-dim); }
.form-input::placeholder,
.form-textarea::placeholder  { color: var(--muted); }

.form-submit {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: background var(--transition);
  margin-top: 0.4rem;
  border-radius: 1px;
}
.form-submit:hover { background: var(--heading); }


/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #080706;
  padding: 2.5rem 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--heading);
}
.footer-logo span { color: var(--accent); }

.footer-links { display: flex; gap: 1.8rem; }
.footer-links a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}


/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-wa);
  color: #fff;
  padding: 12px 20px 12px 14px;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(37,211,102,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  animation: waFloat 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.45);
}
.wa-float svg { flex-shrink: 0; }

@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
/* pausa la animación al hover para no interferir */
.wa-float:hover { animation: none; }


/* ============================================
   ANIMACIONES GLOBALES
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-up   { animation: fadeUp 0.9s ease both; }
.anim-in   { animation: fadeIn 1.1s ease both 0.25s; }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px){

  #inicio             { grid-template-columns: 1fr; }
  .hero-right         { display: none; }
  #nosotros           { grid-template-columns: 1fr; }
  .about-frame        { display: none; }
  #contacto           { grid-template-columns: 1fr; }
  .product-grid       { grid-template-columns: repeat(2, 1fr); }
  .nav-links          { display: none; }
  .catalog-top        { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  #nosotros, #catalogo, #contacto { padding: 6rem 5vw; }
  .product-grid   { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr; }
  .contact-map    { height: 300px; }
  .wa-float span  { display: none; }
  .wa-float       { padding: 14px; border-radius: 50%; }
  .bg-fixed{
    background-image: url('opcion1_movil.png');
    background-size: 130vw auto;
    background-position: center top;
  }
}


/* ============================================
   GRID DE SERVICIOS
   ============================================ */
#catalogo .catalog-top {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 0.4rem;
}

/* Grid: 3 arriba, 2 abajo centrados */
.services-grid {
  display: grid;
   grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: transparent;
  
}

/* Las últimas 2 tarjetas se centran en su fila */
.services-grid .service-card:nth-child(1) { grid-column: 1 / 3; }
.services-grid .service-card:nth-child(2) { grid-column: 3 / 5; }
.services-grid .service-card:nth-child(3) { grid-column: 5 / 7; }

/* Fila de abajo — 2 tarjetas centradas */
.services-grid .service-card:nth-child(4) { grid-column: 2 / 4; }
.services-grid .service-card:nth-child(5) { grid-column: 4 / 6; }

.service-card {
  min-height: 320px;
  background: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--border);
  margin: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  z-index: 2;
}

.service-card--catalog {
  border-color: var(--accent-dim);
  background: var(--border);
}
.service-card--catalog:hover {
  background: rgba(201,169,110,0.1);
  border-color: var(--accent);
}

.service-card-content {
  padding: 2rem 1.8rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card-top {
  flex: 1;
}

.service-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1rem;
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.service-short {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--transition);
}
.service-card:hover .service-cta { gap: 10px; }


/* ============================================
   SUBPÁGINAS (servicio y catálogo)
   ============================================ */
.hidden { display: none !important; }

.subpage {
  min-height: 100vh;
  padding-top: 68px;
  background: #f5f0e8;
}

.subpage-hero {
  background: var(--surface);
  padding: 4rem 7vw 3.5rem;
  border-bottom: 1px solid var(--border);
}

.subpage-hero .tag          { color: #8a6f3e; }
.subpage-hero .subpage-title { 
  color: var(--heading); 
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: 'Playfair Display', serif;
}
.subpage-hero .subpage-desc  { 
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.85;
  max-width: 560px; }
.subpage-hero .rule          { background: #c9a96e; }

.subpage-hero .back-btn {
  color: #5a524a;
  border: 1px solid var(--border);
  color: var(--mid);
  background: transparent;
}
.subpage-hero .back-btn:hover {
 color: var(--heading); border-color: var(--accent-dim);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
  margin-bottom: 2rem;
}
.back-btn:hover { color: var(--heading); border-color: var(--accent-dim); }

.subpage-body {
  padding: 4rem 7vw;
  background: #f5f0e8;
}

.detail-card {
  background: #ffffff;
  border: 1px solid #e0d8cc;
}
.detail-card:hover { background: #fdf9f3; }

.detail-icon { color: #c9a96e; }
.detail-name { color: #1e1c1a; }
.detail-desc { color: #5a524a; }

/* Botón volver al fondo de subpágina de servicio */
.subpage-back-footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0d8cc;
}

.back-btn-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  color: #c9a96e;
  background: #ffffff;
  border: 1px solid #c9a96e;
  padding: 13px 36px;
  cursor: pointer;
  transition: all var(--transition);
}
.back-btn-bottom:hover {
  background: #1e1c1a;
  border-color: #1e1c1a;
  color: #ffffff;
}

/* Grid detalle de servicio */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.detail-card {
  background: var(--surface);
  padding: 2rem;
  transition: background var(--transition);
}
.detail-card:hover { background: var(--bg); }

.detail-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.detail-name {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heading);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.detail-desc { font-size: 0.82rem; color: var(--mid); line-height: 1.6; }


/* ============================================
   CATÁLOGO — SUB-NAVS
   ============================================ */
.cat-subnav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 7vw;
  background: var(--surface);
  overflow-x: auto;
}

.cat-tab {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  background: transparent;
  color: var(--mid);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-tab:hover   { color: var(--heading); }
.cat-tab.active  { color: var(--accent); border-bottom-color: var(--accent); }

.cat-subnav-secondary {
  display: flex;
  gap: 0;
  padding: 0 7vw;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.cat-subtab {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  background: transparent;
  color: var(--heading);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-subtab:hover  { color: var(--mid); }
.cat-subtab.active { color: var(--accent); border-bottom-color: var(--accent); }

.cat-label-wrap {
  margin-bottom: 2rem;
}
.cat-current-label {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Grid del catálogo */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.cat-card {
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--transition);
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-3px); z-index: 2; }

.cat-card-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card-placeholder {
  opacity: 0.5;
}

.cat-card-info { padding: 1rem 1.2rem 1.4rem; }

.cat-card-cat {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.cat-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.25rem;
}
.cat-card-desc { font-size: 0.75rem; color: var(--mid); line-height: 1.5; }


/* ============================================
   RESPONSIVE NUEVO
   ============================================ */
@media (max-width: 960px) {
  .services-grid        { grid-template-columns: repeat(2, 1fr); }
  /* en tablet las últimas 2 tarjetas fluyen normal */
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) { grid-column: auto; }
  .service-detail-grid  { grid-template-columns: repeat(2, 1fr); }
  .cat-grid             { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid        { grid-template-columns: 1fr; }
  .services-grid .service-card:nth-child(n) { grid-column: auto; }
  .service-detail-grid  { grid-template-columns: 1fr; }
  .cat-grid             { grid-template-columns:  1fr; }
  .subpage-body         { padding: 3rem 5vw; }
  .subpage-hero         { padding: 3rem 5vw 2.5rem; }
  .cat-subnav, .cat-subnav-secondary { padding: 0 5vw; }
}