/*
Theme Name: COPELEC Theme
Theme URI: https://copelec.com.pe
Author: COPELEC SAC
Author URI: https://copelec.com.pe
Description: Tema personalizado para COPELEC SAC - Instalaciones Eléctricas y Soluciones Electromecánicas
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: copelec
*/

/* ============================================
   CSS Variables — Estilo Industrial Moderno
   Inspirado en Volnort.com
   ============================================ */
:root {
  --primary: #1E2A5E;
  --primary-light: #2C3E7A;
  --primary-dark: #141D45;
  --primary-accent: #3B82F6;
  --dark: #1E2A5E;
  --dark-deep: #0F1630;
  --secondary: #1A1A2E;
  --accent: #3B82F6;
  --text: #2D3748;
  --text-muted: #5A6577;
  --bg: #FFFFFF;
  --bg-alt: #F0F4F8;
  --bg-light: #F7F9FC;
  --border: #D1D9E6;
  --success: #10B981;
  --gold: #D4A843;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(30,42,94,0.08);
  --shadow-lg: 0 8px 25px rgba(30,42,94,0.12);
  --shadow-xl: 0 15px 35px rgba(30,42,94,0.15);
  --transition: all 0.3s ease;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

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

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

/* Prevent inline SVGs from going full-width */
svg {
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}

ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 5rem 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* SVG inside buttons — fixed size */
.btn svg,
.btn-accent svg,
.btn-primary svg,
.btn-secondary svg,
.btn-outline svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,42,94,0.35);
}

.btn-secondary {
  background: var(--dark);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--primary-accent);
  color: #fff;
}
.btn-accent:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: #C49A38;
  transform: translateY(-2px);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ============================================
   Header — Colapsable estilo Volnort
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.5s ease;
}

.header-top {
  background: var(--dark);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  transition: all 0.5s ease;
}

.site-header.scrolled .header-top {
  padding: 0.3rem 0;
  font-size: 0.75rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: rgba(255,255,255,0.8);
}
.header-top a:hover {
  color: var(--primary);
}

.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-top-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-top-item svg {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.7;
}

/* Nav bar — Blanco con logo azul */
.header-nav-bar {
  background: #fff;
  border-bottom: none;
  transition: all 0.5s ease;
  box-shadow: none;
}

.header-nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.site-logo img {
  height: 50px;
  width: auto;
  transition: all 0.5s ease;
}

.site-header.scrolled .site-logo img {
  height: 40px;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}

.site-logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  padding: 1rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
  transition: color 0.3s ease, background 0.3s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--primary-accent);
  background: var(--bg-alt);
}

.header-cta {
  padding: 0.5rem 0;
}

.header-cta .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
}

.header-cta .btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30,42,94,0.3);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

@media (max-width: 991px) {
  .header-top { display: none; }
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 100;
  }

  .main-nav.active { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff !important;
    background: transparent !important;
  }

  .main-nav a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--primary-accent) !important;
  }

  .main-nav a::after {
    display: none;
  }

  .header-cta { display: none; }
}

/* ============================================
   Hero — Con imagen de fondo y overlay
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,42,94,0.95) 0%, rgba(15,22,48,0.85) 100%);
  z-index: 1;
}

/* Decorative grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-accent);
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--primary-accent);
  position: relative;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hero { min-height: 70vh; padding: 6rem 0 4rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-accent);
  margin-bottom: 0.75rem;
  padding: 0.35rem 1rem;
  background: rgba(59,130,246,0.08);
  border-radius: 50px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* ============================================
   Services Grid — Con borde inferior naranja
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-bottom: 4px solid var(--primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  border-bottom-color: var(--primary-accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card .btn {
  margin-top: 1.5rem;
  padding: 0.5rem 0;
  background: none;
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.service-card .btn:hover {
  color: var(--primary-dark);
  transform: none;
  box-shadow: none;
}

@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================
   About / Why Us
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease-in-out;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-lg);
}

.about-badge .number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-content h2 { margin-bottom: 1.25rem; }

.about-content > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(30,42,94,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.about-feature h4 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.about-feature p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-features { grid-template-columns: 1fr; }
}

/* ============================================
   Clients
   ============================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.client-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  min-height: 100px;
}

.client-logo:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.client-logo img {
  max-height: 50px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.client-logo-img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 0.6rem;
  display: block;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.client-logo:hover img,
.client-logo:hover .client-logo-img {
  filter: grayscale(0%);
  opacity: 1;
}

.client-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .client-logo { padding: 1.25rem 0.75rem; }
}
@media (max-width: 480px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Proyectos / Portfolio
   ============================================ */
.proyecto-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.proyecto-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.proyecto-card .card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.proyecto-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.proyecto-card:hover .card-img img {
  transform: scale(1.15);
}

.proyecto-card .card-body {
  padding: 1.5rem;
}

.proyecto-card .card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proyecto-card h3 {
  font-size: 1.1rem;
  margin: 0.4rem 0 0.5rem;
}

.proyecto-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   CTA Section — Parallax oscuro
   ============================================ */
.cta-section {
  background: var(--primary);
  color: #fff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  z-index: 1;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-content { max-width: 600px; }

.cta-content h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cta-section .container { flex-direction: column; text-align: center; }
  .cta-buttons { justify-content: center; }
}

/* ============================================
   Contact Form
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,42,94,0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--primary);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card .icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info-card a {
  color: var(--text-muted);
}

.contact-info-card a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================
   Footer — Oscuro estilo Volnort
   ============================================ */
.site-footer {
  background: var(--dark-deep);
  color: #fff;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-accent);
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item p,
.footer-contact-item a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Page Hero (Internal pages)
   ============================================ */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 8rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,42,94,0.95), rgba(15,22,48,0.92));
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: rgba(255,255,255,0.5);
}

.breadcrumbs a:hover { color: var(--primary); }

.breadcrumbs .sep {
  margin: 0 0.5rem;
  color: rgba(255,255,255,0.3);
}

.breadcrumbs .current {
  color: var(--primary-accent);
}

/* ============================================
   Mission / Vision
   ============================================ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.mv-card h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mv-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .mv-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Values Grid
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--primary);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-card .value-icon {
  width: 56px;
  height: 56px;
  background: rgba(30,42,94,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.value-card .value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.value-card h4 {
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Product Catalog — Sin precios, solo consultar
   ============================================ */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card .card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.product-card .card-img img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

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

.product-card .card-body {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.product-card .card-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0.3rem 0 0.75rem;
}

.product-card .btn-consultar {
  display: block;
  text-align: center;
  padding: 0.6rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
}

.product-card .btn-consultar:hover {
  background: var(--primary-dark);
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

/* Scrolled header — subtle shadow only when scrolled */
.site-header.scrolled .header-nav-bar {
  box-shadow: 0 4px 20px rgba(30,42,94,0.08);
}

.site-header.scrolled .header-top {
  margin-top: -50px;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* ============================================
   Scroll Animations — Enhanced
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animations */
.service-card,
.client-logo,
.value-card,
.mv-card,
.about-feature,
.contact-info-card,
.product-card,
.proyecto-highlight {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card.animate-in,
.client-logo.animate-in,
.value-card.animate-in,
.mv-card.animate-in,
.about-feature.animate-in,
.contact-info-card.animate-in,
.product-card.animate-in,
.proyecto-highlight.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero — no parallax for clean feel */

/* Text glow — disabled for cleaner look */

/* Header — always visible, no hide on scroll */

/* WhatsApp — subtle pulse only */
.wa-pulse {
  animation: waPulse 1s ease;
}

@keyframes waPulse {
  0% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 15px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.12); }
  100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4), 0 0 0 24px rgba(37,211,102,0); }
}

/* ============================================
   Button spinner
   ============================================ */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Message slide in
   ============================================ */
.msg-animate {
  animation: slideInMsg 0.4s ease;
}

@keyframes slideInMsg {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero stats — static */

/* Service icon — subtle hover */
.service-card:hover .service-icon {
  box-shadow: 0 4px 12px rgba(30,42,94,0.15);
}

/* CTA section — clean, no moving gradient */

/* About badge — static, no bounce */

/* ============================================
   Nav link underline animation
   ============================================ */
.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  width: 100%;
  left: 0;
}

/* ============================================
   Page hero entrance
   ============================================ */
.page-hero h1,
.page-hero p,
.page-hero .breadcrumbs {
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero .breadcrumbs { animation-delay: 0.1s; }
.page-hero h1 { animation-delay: 0.25s; }
.page-hero p { animation-delay: 0.4s; }

.hero-content > * {
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.35s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.65s; }
.hero-content > *:nth-child(5) { animation-delay: 0.8s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   WordPress-specific
   ============================================ */
.wp-block-image img {
  border-radius: var(--radius);
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ============================================
   Servicios Alternating Sections
   ============================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.service-detail-img:hover img {
  transform: scale(1.05);
}

.service-detail-content .service-list {
  margin-top: 1.5rem;
}

.service-detail-content .service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.service-detail-content .service-list li svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--primary);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail.reverse { direction: ltr; }
}

/* ============================================
   Client Initials Circle
   ============================================ */
.client-initial {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: var(--transition);
}

.client-logo:hover .client-initial {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* ============================================
   Proyecto Highlight Cards
   ============================================ */
.proyecto-highlight {
  border-bottom: 4px solid var(--primary);
  position: relative;
}

.proyecto-highlight:hover {
  border-bottom-color: var(--primary-accent);
}

/* ============================================
   Service card link color fix
   ============================================ */
.service-card .btn {
  color: var(--primary-accent);
}
.service-card .btn:hover {
  color: var(--primary);
}

/* ============================================
   Producto Individual — Estilo Promart/Maestro
   ============================================ */

.prod-breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  margin-top: 110px;
}

.prod-breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prod-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.prod-breadcrumb a:hover { color: var(--primary); }
.prod-breadcrumb .current {
  color: var(--primary);
  font-weight: 500;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-section {
  padding: 2rem 0 3rem;
  background: #fff;
}

.prod-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 960px) {
  .prod-main { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Gallery */
.prod-gallery-col { position: relative; }

.prod-gallery-sticky {
  position: sticky;
  top: 120px;
}

.prod-img-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.prod-img-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 1.5rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.prod-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  z-index: 2;
}
.prod-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.prod-prev { left: 0.75rem; }
.prod-next { right: 0.75rem; }

.prod-zoom-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
}
.prod-zoom-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.prod-zoom-btn svg { width: 16px; height: 16px; display: block; }

.prod-counter {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.prod-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.prod-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }
.prod-thumb.active, .prod-thumb:hover { border-color: var(--primary-accent); }

.prod-img-placeholder {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
}
.prod-img-placeholder svg {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px;
  max-height: 72px;
  opacity: 0.12;
  flex-shrink: 0;
}

/* Info Panel */
.prod-info-col { padding-top: 0.25rem; }

.prod-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.prod-cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-accent);
  background: rgba(59,130,246,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.prod-cat-tag:hover { background: rgba(59,130,246,0.15); }

.prod-sku {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.prod-title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  color: var(--secondary);
  margin-bottom: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prod-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.prod-brand-label { color: var(--text-muted); }
.prod-brand-name { font-weight: 700; color: var(--primary); }
.prod-brand-sep { color: var(--border); }

.prod-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

.prod-excerpt { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.prod-excerpt p { margin: 0; }

/* Variaciones */
.prod-vars-block { margin-bottom: 1rem; }
.prod-vars-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.prod-vars-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.prod-var-chip {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-body);
}
.prod-var-chip span { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.prod-var-chip.active, .prod-var-chip:hover { border-color: var(--primary-accent); background: rgba(59,130,246,0.06); color: var(--primary); }
.prod-var-chip.active { font-weight: 600; }

/* Badges */
.prod-badges { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.prod-badge { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); }
.prod-badge svg { width: 15px; height: 15px; color: var(--primary-accent); flex-shrink: 0; }

/* PDF Download Button */
.prod-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #dc2626;
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
  margin-bottom: 1rem;
}
.prod-pdf-btn:hover { background: #b91c1c; color: #fff; }
.prod-pdf-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.ficha-pdf-download {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.ficha-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dc2626;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.ficha-pdf-btn:hover { background: #b91c1c; color: #fff; }
.ficha-pdf-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* CTA */
.prod-cta-block { display: flex; flex-direction: column; gap: 0.75rem; }
.prod-cta-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.btn-cta-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-cta-main svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-cta-main:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,42,94,0.25);
  color: #fff;
}

.btn-cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease;
  text-align: center;
  text-decoration: none;
}
.btn-cta-wa svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-cta-wa:hover { background: #1da851; color: #fff; transform: translateY(-2px); }

/* Collapsible form */
.prod-form-wrap { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1); }
.prod-form-wrap.open { max-height: 900px; }
.prod-form-inner { padding-top: 1.25rem; }
.prod-form-inner h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--primary); }
.prod-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Tabs Section */
.prod-tabs-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 0 0 3.5rem;
}

.prod-tabs-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  background: #fff;
  position: sticky;
  top: 110px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.prod-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prod-tab-btn:hover { color: var(--primary); }
.prod-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary-accent); }

.prod-tab-panels { padding: 2.5rem 0; }
.prod-tab-panel { display: none; }
.prod-tab-panel.active { display: block; }

.prod-desc-content {
  max-width: 800px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.ficha-tecnica-wrap, .vars-table-wrap { max-width: 760px; }

.ficha-tecnica-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ficha-tecnica-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.ficha-tecnica-table tbody tr:nth-child(even) { background: rgba(30,42,94,0.025); }
.ficha-tecnica-table tbody tr { border-bottom: 1px solid var(--border); }
.ficha-tecnica-table tbody tr:last-child { border-bottom: none; }
.ficha-key { padding: 0.7rem 1.25rem; font-weight: 600; color: var(--secondary); width: 40%; background: #fff; font-size: 0.875rem; }
.ficha-val { padding: 0.7rem 1.25rem; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  .prod-form-row { grid-template-columns: 1fr; }
  .prod-tabs-bar { overflow-x: auto; }
}

/* ============================================
   Catálogo — Sidebar Layout
   ============================================ */
.catalog-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 70vh;
  background: #f4f6f9;
  border-top: 1px solid var(--border);
}

.catalog-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 1.75rem 0;
}

.sidebar-inner {
  position: sticky;
  top: 120px;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  font-size: 0.865rem;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.sidebar-cat-item:hover { background: var(--bg-alt); color: var(--primary); }
.sidebar-cat-item.active { background: rgba(59,130,246,0.08); color: var(--primary); font-weight: 600; }

.cat-name { flex: 1; }

.cat-count {
  font-size: 0.7rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}
.sidebar-cat-item.active .cat-count { background: var(--primary-accent); color: #fff; }

.sidebar-cta-block {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.sidebar-cta-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.sidebar-cta-icon svg { width: 22px; height: 22px; color: #fff; }
.sidebar-cta-block p { font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-bottom: 0.875rem; line-height: 1.4; }

/* Main */
.catalog-main { padding: 1.75rem 1.75rem 3rem; min-width: 0; }

.catalog-toolbar {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.catalog-heading { font-size: 1.2rem; font-weight: 700; color: var(--secondary); }

.catalog-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Card — estilo limpio profesional */
.catalog-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8ecf0;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.catalog-card:hover { box-shadow: 0 8px 24px rgba(30,42,94,0.1); transform: translateY(-3px); }

.catalog-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f8f9fc;
  border-bottom: 1px solid #eef1f5;
  padding: 0.75rem;
}
.catalog-card-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.4s ease; }
.catalog-card:hover .catalog-card-img img { transform: scale(1.05); }

.catalog-card-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-card-noimg svg {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px;
  max-height: 48px;
  color: var(--text-muted);
  opacity: 0.12;
  flex-shrink: 0;
}

.catalog-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,42,94,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.catalog-card-overlay span {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.catalog-card:hover .catalog-card-overlay { opacity: 1; }

.catalog-card-body {
  padding: 0.75rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
  text-align: center;
}

.catalog-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.catalog-card-cat:hover { color: var(--primary); }

.catalog-card-title { font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: var(--secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-card-title a { color: inherit; transition: color 0.2s; }
.catalog-card-title a:hover { color: var(--primary); }

.catalog-card-meta { display: flex; align-items: center; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.meta-brand { font-size: 0.68rem; font-weight: 700; color: var(--primary); background: rgba(30,42,94,0.06); padding: 0.12rem 0.45rem; border-radius: 3px; }
.meta-sku { font-size: 0.66rem; color: var(--text-muted); }

.catalog-card-excerpt { font-size: 0.7rem; color: var(--text-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 0.15rem; }

.catalog-card-actions { display: flex; gap: 0.35rem; margin-top: auto; padding-top: 0.5rem; align-items: center; }

.catalog-btn-detail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}
.catalog-btn-detail svg { width: 12px; height: 12px; flex-shrink: 0; }
.catalog-btn-detail:hover { background: var(--primary-dark); color: #fff; }

.catalog-btn-wa {
  width: 32px;
  height: 32px;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.catalog-btn-wa svg { width: 16px; height: 16px; }
.catalog-btn-wa:hover { background: #1da851; }

/* Pagination */
.catalog-pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.catalog-pagination ul { display: flex; gap: 0.3rem; list-style: none; padding: 0; flex-wrap: wrap; }
.catalog-pagination ul li a,
.catalog-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  transition: all 0.2s ease;
}
.catalog-pagination ul li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.catalog-pagination ul li .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Empty */
.catalog-empty { text-align: center; padding: 4rem 0; display: flex; flex-direction: column; align-items: center; }
.catalog-empty svg { width: 60px; height: 60px; opacity: 0.1; margin-bottom: 1rem; }
.catalog-empty h3 { font-size: 1.15rem; color: var(--secondary); margin-bottom: 0.5rem; }
.catalog-empty p { color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1280px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .catalog-wrap { grid-template-columns: 1fr; }
  .catalog-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 0; }
  .sidebar-inner { position: static; flex-direction: row; flex-wrap: wrap; padding: 0 1rem; }
  .sidebar-cat-list { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
  .sidebar-cat-item { padding: 0.3rem 0.7rem; border: 1px solid var(--border); border-radius: 50px; font-size: 0.8rem; }
  .sidebar-cta-block { display: none; }
  .catalog-main { padding: 1.25rem 1rem; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ── Related Products Section ──────────────────────────── */
.prod-related-section {
  background: #f4f6f9;
  padding: 3rem 0 3.5rem;
}
.prod-related-header {
  margin-bottom: 1.75rem;
}
.prod-related-header h2 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-top: 0.35rem;
}
.prod-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) {
  .prod-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .prod-related-grid { grid-template-columns: 1fr; }
}
