/* ============================================================
   GAUTAMAZAR SRL — Sistema de Diseño Principal
   ============================================================ */

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

/* ============================================================
   1. VARIABLES CSS
   ============================================================ */
:root {
  --g-primary:      #0D2137;
  --g-primary-md:   #163352;
  --g-accent:       #23B87A;
  --g-accent-dark:  #1a9060;
  --g-accent-light: #e8f8f1;
  --g-text:         #2E3440;
  --g-text-muted:   #6C7888;
  --g-bg-light:     #F5F7FA;
  --g-bg-white:     #FFFFFF;
  --g-border:       #E2E8F0;
  --g-shadow:       0 4px 20px rgba(13,33,55,0.10);
  --g-shadow-lg:    0 8px 40px rgba(13,33,55,0.16);
  --font-heading:   'Raleway', sans-serif;
  --font-body:      'Poppins', sans-serif;
  --radius:         8px;
  --radius-lg:      16px;
  --transition:     all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   2. RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--g-text);
  background: var(--g-bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--g-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--g-accent-dark); text-decoration: none; }

ul { list-style: none; padding: 0; margin: 0; }

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

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-accent);
  margin-bottom: 0.75rem;
}
.section-label::before { content: '— '; }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--g-primary);
  margin-bottom: 1rem;
}
.section-title span { color: var(--g-accent); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--g-text-muted);
  max-width: 580px;
  line-height: 1.8;
}

/* ============================================================
   4. HEADER / NAVEGACIÓN
   ============================================================ */
#gm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 0;
}

#gm-header.scrolled {
  background: var(--g-primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.gm-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  transition: padding 0.35s ease;
}

#gm-header.scrolled .gm-navbar { padding: 0.65rem 0; }

.gm-navbar .gm-logo img {
  height: 52px;
  width: auto;
  transition: height 0.35s ease, filter 0.35s ease;
  filter: brightness(0) invert(1);
}
#gm-header.scrolled .gm-navbar .gm-logo img { height: 42px; filter: brightness(0) invert(1); }

/* Nav links */
.gm-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.gm-nav > li { position: relative; }

.gm-nav > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}
.gm-nav > li > a:hover,
.gm-nav > li.active > a {
  color: var(--g-accent);
  background: rgba(35,184,122,0.1);
}

/* CTA button in nav */
.gm-nav .nav-cta > a {
  background: var(--g-accent);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.84rem;
}
.gm-nav .nav-cta > a:hover {
  background: var(--g-accent-dark);
  color: #fff !important;
}

/* Dropdown */
.gm-nav li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.7;
}

.gm-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--g-shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  border-top: 3px solid var(--g-accent);
  z-index: 100;
}

.gm-nav li.has-dropdown:hover .gm-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gm-dropdown a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--g-text);
  transition: var(--transition);
}
.gm-dropdown a:hover {
  background: var(--g-accent-light);
  color: var(--g-accent-dark);
  padding-left: 1.4rem;
}

/* Hamburger */
.gm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  outline: none;
}
.gm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.gm-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gm-hamburger.open span:nth-child(2) { opacity: 0; }
.gm-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.gm-mobile-nav {
  display: none;
  background: var(--g-primary);
  padding: 0.5rem 0 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}
.gm-mobile-nav.open { display: block; }
.gm-mobile-nav a {
  display: block;
  padding: 0.75rem 1.2rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gm-mobile-nav a:hover { color: var(--g-accent); }
.gm-mobile-nav .mobile-dropdown {
  padding-left: 0.8rem;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  margin: 0.25rem 1rem 0.5rem;
  display: none;
  overflow: hidden;
}
.gm-mobile-nav .mobile-dropdown.open { display: block; }
.gm-mobile-nav .mobile-dropdown a { padding: 0.65rem 1rem; font-size: 0.9rem; }
.gm-mobile-nav .mobile-section-title {
  padding: 0.85rem 1.2rem 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g-accent);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gm-mobile-nav .mobile-section-title::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  transition: transform 0.25s ease;
}
.gm-mobile-nav .mobile-section-title.open::after {
  content: '−';
}
.gm-mobile-cta {
  margin: 1.2rem 1.2rem 0;
  display: block;
  text-align: center;
  background: var(--g-accent);
  color: #fff !important;
  padding: 0.85rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ============================================================
   5. HERO (INICIO)
   ============================================================ */
.gm-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(13,33,55,0.88) 0%, rgba(13,33,55,0.70) 100%),
              url('../images/banner1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.gm-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--g-bg-white), transparent);
  pointer-events: none;
}

.gm-hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
}

.gm-hero .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(35,184,122,0.18);
  border: 1px solid rgba(35,184,122,0.4);
  color: var(--g-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.gm-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.4rem;
}
.gm-hero h1 span { color: var(--g-accent); }

.gm-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin-bottom: 2.2rem;
  line-height: 1.8;
}

.gm-hero-btns { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.gm-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat .stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--g-accent);
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* ============================================================
   6. PAGE BANNER (páginas internas)
   ============================================================ */
.gm-page-banner {
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-primary-md) 100%);
  padding: 7rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.gm-page-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(35,184,122,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.gm-page-banner .banner-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-accent);
  margin-bottom: 0.5rem;
}
.gm-page-banner h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.gm-page-banner .breadcrumb-nav {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.gm-page-banner .breadcrumb-nav a { color: rgba(255,255,255,0.7); }
.gm-page-banner .breadcrumb-nav a:hover { color: var(--g-accent); }
.gm-page-banner .breadcrumb-nav span { color: var(--g-accent); }

/* ============================================================
   7. BOTONES
   ============================================================ */
.btn-gm-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--g-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.7rem;
  border-radius: 30px;
  border: 2px solid var(--g-accent);
  transition: var(--transition);
  text-transform: uppercase;
  cursor: pointer;
}
.btn-gm-primary:hover {
  background: var(--g-accent-dark);
  border-color: var(--g-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(35,184,122,0.4);
}

.btn-gm-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.7rem;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.55);
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-gm-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-gm-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--g-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.7rem;
  border-radius: 30px;
  border: 2px solid var(--g-primary);
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-gm-dark:hover {
  background: var(--g-primary-md);
  color: #fff;
  transform: translateY(-2px);
}

.btn-gm-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--g-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  border: 2px solid var(--g-border);
  transition: var(--transition);
}
.btn-gm-download:hover {
  border-color: var(--g-accent);
  color: var(--g-accent-dark);
  box-shadow: 0 4px 16px rgba(35,184,122,0.15);
}

.btn-gm-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.7rem;
  border-radius: 30px;
  border: 2px solid #25D366;
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-gm-whatsapp:hover {
  background: #1EB859;
  border-color: #1EB859;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* ============================================================
   8. SECCIONES – ESPACIADO Y FONDOS
   ============================================================ */
.gm-section { padding: 5rem 0; }
.gm-section-sm { padding: 3.5rem 0; }
.gm-section-lg { padding: 7rem 0; }

.bg-dark-primary { background: var(--g-primary); }
.bg-dark-primary .section-title,
.bg-dark-primary h2,
.bg-dark-primary h3 { color: #fff; }
.bg-dark-primary .section-subtitle,
.bg-dark-primary p { color: rgba(255,255,255,0.75); }
.bg-dark-primary .section-label { color: var(--g-accent); }

.bg-light-gray { background: var(--g-bg-light); }
.bg-accent-gradient {
  background: linear-gradient(135deg, var(--g-accent) 0%, #1a9060 100%);
}
.bg-accent-gradient .section-title,
.bg-accent-gradient h2,
.bg-accent-gradient h3,
.bg-accent-gradient p { color: #fff; }
.bg-accent-gradient .section-label { color: rgba(255,255,255,0.75); }

/* ============================================================
   9. TARJETAS DE PRODUCTO
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--g-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--g-border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--g-shadow-lg);
  border-color: var(--g-accent);
}

.product-card-img {
  height: 220px;
  background: var(--g-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}
.product-card-img img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  margin: 0 auto;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--g-primary);
}
.product-card-body p {
  font-size: 0.875rem;
  color: var(--g-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.1rem;
}
.product-card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g-accent);
  margin-top: auto;
}
.product-card-body .card-link:hover { color: var(--g-accent-dark); }
.product-card-body .card-link::after { content: ' →'; }

/* ============================================================
   10. TARJETAS DE SERVICIO
   ============================================================ */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--g-shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--g-accent);
  box-shadow: var(--g-shadow-lg);
}
.service-card .service-icon {
  width: 60px;
  height: 60px;
  background: var(--g-accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--g-accent);
  margin-bottom: 1.2rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--g-accent);
  color: #fff;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--g-primary);
}
.service-card p {
  font-size: 0.875rem;
  color: var(--g-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.service-card .card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--g-accent);
}
.service-card .card-link:hover { color: var(--g-accent-dark); }

/* ============================================================
   11. BENEFICIOS / FEATURES
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.benefit-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--g-shadow);
  height: 100%;
}
.benefit-item .benefit-icon {
  font-size: 2rem;
  color: var(--g-accent);
  margin-bottom: 0.75rem;
}
.benefit-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--g-primary);
  margin-bottom: 0.4rem;
}
.benefit-item p {
  font-size: 0.83rem;
  color: var(--g-text-muted);
  line-height: 1.6;
}

/* ============================================================
   12. SECCIÓN SOBRE NOSOTROS
   ============================================================ */
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 450px;
  object-fit: cover;
}
.about-img-wrap .about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--g-accent);
  color: #fff;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--g-shadow-lg);
  text-align: center;
}
.about-badge .badge-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.about-badge .badge-text {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.mv-box {
  background: var(--g-bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--g-accent);
}
.mv-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--g-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mv-box p {
  font-size: 0.875rem;
  color: var(--g-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   13. SECCIÓN CLIENTES
   ============================================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  align-items: center;
}
.client-logo-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--g-border);
  transition: var(--transition);
  min-height: 90px;
}
.client-logo-box:hover {
  border-color: var(--g-accent);
  box-shadow: var(--g-shadow);
  transform: translateY(-3px);
}
.client-logo-box img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter 0.3s;
  margin: 0 auto;
}
.client-logo-box:hover img { filter: grayscale(0%); }

/* ============================================================
   14. FORMULARIO DE CONTACTO
   ============================================================ */
.gm-form .form-group { margin-bottom: 1.1rem; }

.gm-form input,
.gm-form textarea,
.gm-form select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--g-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--g-text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.gm-form input:focus,
.gm-form textarea:focus {
  border-color: var(--g-accent);
  box-shadow: 0 0 0 3px rgba(35,184,122,0.12);
}
.gm-form textarea { min-height: 130px; resize: vertical; }
.gm-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--g-text);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--g-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g-text-muted);
  margin-bottom: 0.2rem;
}
.contact-info-item p, .contact-info-item a {
  font-size: 0.92rem;
  color: var(--g-text);
  margin: 0;
}
.contact-info-item a:hover { color: var(--g-accent); }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--g-border);
  height: 300px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   15. FOOTER
   ============================================================ */
.gm-footer {
  background: var(--g-primary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.gm-footer .footer-brand img { height: 48px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.gm-footer .footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.5rem;
}
.gm-footer .social-links { display: flex; gap: 0.6rem; }
.gm-footer .social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  transition: var(--transition);
}
.gm-footer .social-link:hover {
  background: var(--g-accent);
  border-color: var(--g-accent);
  color: #fff;
}
.gm-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}
.gm-footer ul li { margin-bottom: 0.5rem; }
.gm-footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.gm-footer ul li a::before { content: '›'; color: var(--g-accent); }
.gm-footer ul li a:hover { color: var(--g-accent); padding-left: 4px; }
.gm-footer .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.gm-footer .footer-contact li i { color: var(--g-accent); margin-top: 3px; flex-shrink: 0; }
.gm-footer .footer-contact li a { color: rgba(255,255,255,0.65); }
.gm-footer .footer-contact li a:hover { color: var(--g-accent); }
.gm-footer-bottom {
  margin-top: 3rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gm-footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 0; }

/* ============================================================
   16. WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: waPulse 2.5s infinite;
}
.wa-float:hover {
  background: #1EB859;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
  animation: none;
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   17. PÁGINA DE PRODUCTO (DETAIL)
   ============================================================ */
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--g-bg-light);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.product-detail-img img {
  max-height: 340px;
  object-fit: contain;
  margin: 0 auto;
}

.product-specs {
  background: var(--g-bg-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}
.product-specs h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--g-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g-accent);
}
.product-specs ul li {
  display: block;
  position: relative;
  padding: 0.45rem 0 0.45rem 1.8rem;
  font-size: 0.89rem;
  color: var(--g-text);
  border-bottom: 1px solid var(--g-border);
  line-height: 1.6;
}
.product-specs ul li:last-child { border-bottom: none; }
.product-specs ul li i {
  position: absolute;
  left: 0;
  top: 0.70rem;
  color: var(--g-accent);
}

.product-gallery .gallery-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
}
.product-gallery .gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-gallery .gallery-img:hover img { transform: scale(1.05); }

.product-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ============================================================
   18. SECCIÓN CTA FINAL
   ============================================================ */
.gm-cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-primary-md) 60%);
  position: relative;
  overflow: hidden;
}
.gm-cta-section::before {
  content: '';
  position: absolute;
  top: -30%; left: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(35,184,122,0.14) 0%, transparent 70%);
}
.gm-cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(35,184,122,0.10) 0%, transparent 70%);
}
.gm-cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.gm-cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  position: relative; z-index: 1;
}
.gm-cta-section .cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative; z-index: 1;
}

/* ============================================================
   19. ANIMACIONES DE ENTRADA
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   20. SEPARADORES Y UTILIDADES
   ============================================================ */
.gm-divider {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--g-accent);
  border-radius: 2px;
  margin: 0.75rem 0 1.4rem;
}
.gm-divider.centered { margin: 0.75rem auto 1.4rem; }

.text-accent { color: var(--g-accent) !important; }
.text-primary-dark { color: var(--g-primary) !important; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 0.91rem;
  color: var(--g-text);
}
.checklist li i { color: var(--g-accent); margin-top: 3px; flex-shrink: 0; }

/* ============================================================
   21. SERVICE DETAIL PAGE
   ============================================================ */
.service-detail-icon {
  width: 80px;
  height: 80px;
  background: var(--g-accent-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--g-accent);
  margin-bottom: 1.5rem;
}
.service-includes {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--g-shadow);
}
.service-includes h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--g-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   22. PRELOADER
   ============================================================ */
.gm-preloader {
  position: fixed;
  inset: 0;
  background: var(--g-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.gm-preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gm-preloader .loader-ring {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--g-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   23. RESPONSIVE
   ============================================================ */

/* ---------- Tablet (≤991px) ---------- */
@media (max-width: 991px) {
  .gm-nav { display: none; }
  .gm-hamburger { display: flex; }

  .container { padding-left: 20px; padding-right: 20px; }

  .gm-section { padding: 3.5rem 0; }
  .gm-section-sm { padding: 2.8rem 0; }
  .gm-section-lg { padding: 5rem 0; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
  .about-img-wrap .about-badge { right: 0; bottom: -15px; }
  .mission-vision { grid-template-columns: 1fr; }

  .product-detail-img { padding: 1.5rem; }
  .product-specs { padding: 1.5rem; }

  .service-card { padding: 1.5rem 1.25rem; }
}

/* ---------- Mobile (≤767px) ---------- */
@media (max-width: 767px) {
  html { font-size: 15px; }
  .container { padding-left: 24px; padding-right: 24px; }

  /* -- Hero -- */
  .gm-hero { min-height: auto; }
  .gm-hero-content { padding: 7rem 0 3.5rem; text-align: center; }
  .gm-hero h1 { font-size: 2rem; margin-bottom: 1rem; line-height: 1.15; }
  .gm-hero p { font-size: 0.93rem; line-height: 1.75; margin-bottom: 1.8rem; max-width: 100%; margin-left: auto; margin-right: auto; }
  .gm-hero .hero-label { font-size: 0.7rem; margin-bottom: 1rem; }
  .gm-hero-btns { flex-direction: column; gap: 0.65rem; align-items: center; }
  .gm-hero-btns a { text-align: center; justify-content: center; padding: 0.8rem 2rem; font-size: 0.87rem; width: auto; min-width: 240px; max-width: 300px; }
  .gm-hero-stats { gap: 0; justify-content: space-around; margin-top: 2rem; padding-top: 1.5rem; }
  .hero-stat { text-align: center; flex: 1; }
  .hero-stat .stat-num { font-size: 1.6rem; }
  .hero-stat .stat-label { font-size: 0.68rem; }

  /* -- Sections spacing -- */
  .gm-section { padding: 3rem 0; }
  .gm-section-sm { padding: 2.5rem 0; }

  /* -- Typography -- */
  .section-title { font-size: 1.55rem; margin-bottom: 0.75rem; }
  .section-subtitle { font-size: 0.95rem; line-height: 1.7; }
  .section-label { font-size: 0.68rem; margin-bottom: 0.6rem; }
  .gm-divider { margin: 0.6rem 0 1.2rem; }
  .gm-divider.centered { margin: 0.6rem auto 1.2rem; }

  /* -- Page banner (inner pages) -- */
  .gm-page-banner { padding: 6rem 0 2.5rem; }
  .gm-page-banner h1 { font-size: 1.6rem; line-height: 1.2; }
  .gm-page-banner .banner-label { font-size: 0.65rem; margin-bottom: 0.4rem; }
  .gm-page-banner .breadcrumb-nav { font-size: 0.78rem; }

  /* -- About section -- */
  .about-img-wrap img { height: 260px; border-radius: 12px; }
  .about-img-wrap .about-badge { display: none; }
  .about-img-wrap { margin-bottom: 0.5rem; }

  /* -- Mission/Vision boxes -- */
  .mission-vision { gap: 1rem; }
  .mv-box { padding: 1.2rem; }
  .mv-box h4 { font-size: 0.88rem; }
  .mv-box p { font-size: 0.82rem; }

  /* -- Product grid (home) -- */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .product-card-img { height: 170px; padding: 1rem; }
  .product-card-body { padding: 1.1rem; }
  .product-card-body h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
  .product-card-body p { font-size: 0.8rem; line-height: 1.55; margin-bottom: 0.8rem; }
  .product-card-body .card-link { font-size: 0.8rem; }

  /* -- Product detail pages -- */
  .product-detail-img { min-height: 220px; padding: 1.5rem; border-radius: 12px; }
  .product-detail-img img { max-height: 200px; }
  .product-gallery .gallery-img { height: 140px; border-radius: 8px; }
  .product-specs { padding: 1.3rem; border-radius: 12px; margin-bottom: 1.2rem; }
  .product-specs h4 { font-size: 0.92rem; margin-bottom: 0.8rem; }
  .product-specs ul li { font-size: 0.84rem; padding: 0.5rem 0 0.5rem 1.6rem; }
  .product-action-btns { flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }
  .product-action-btns a { text-align: center; justify-content: center; padding: 0.8rem 1.2rem; font-size: 0.85rem; width: 100%; }

  /* -- Service cards -- */
  .service-card { padding: 1.5rem 1.25rem; border-radius: 12px; }
  .service-card .service-icon { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 12px; margin-bottom: 1rem; }
  .service-card h3 { font-size: 1rem; }
  .service-card p { font-size: 0.83rem; line-height: 1.6; }

  /* -- Service detail -- */
  .service-detail-icon { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 16px; margin-bottom: 1.2rem; }
  .service-includes { padding: 1.5rem; border-radius: 12px; }

  /* -- Benefit items -- */
  .benefit-item { padding: 1.25rem 1rem; }
  .benefit-item .benefit-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
  .benefit-item h4 { font-size: 0.88rem; margin-bottom: 0.35rem; }
  .benefit-item p { font-size: 0.8rem; line-height: 1.55; }

  /* -- Bootstrap row gaps on mobile -- */
  .row.g-4 { --bs-gutter-y: 2.25rem; }
  .row.g-3 { --bs-gutter-y: 1.25rem; --bs-gutter-x: 0.9rem; }

  /* -- Benefit boxes: grid con gap uniforme en mobile -- */
  .row.g-3:has(.benefit-box) {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin: 0 !important;
  }
  .row.g-3:has(.benefit-box) > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* -- Benefit boxes on mobile -- */
  .benefit-box {
    padding: 1.2rem 0.9rem;
    border-radius: 14px;
    font-size: 0.9rem;
  }
  .benefit-box .benefit-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .benefit-box h4 { font-size: 0.85rem; margin-bottom: 0.3rem; }
  .benefit-box p { font-size: 0.78rem; line-height: 1.5; }

  /* -- Service cards: cuadradas con gap uniforme en mobile -- */
  .row.g-3:has(.service-card) {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin: 0 !important;
  }
  .row.g-3:has(.service-card) > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .service-card {
    padding: 1.3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
  }
  /* Ocultar párrafo solo en filas compactas de "Otros servicios" (row g-3) */
  .row.g-3 .service-card p { display: none; }
  .service-card .service-icon { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 0.75rem; border-radius: 10px; }
  .service-card h3 { font-size: 0.88rem; margin-bottom: 0.6rem; line-height: 1.3; }
  .service-card .card-link { font-size: 0.8rem; margin-top: auto; }

  /* -- Clients grid -- */
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .client-logo-box { padding: 1.2rem 1rem; min-height: 80px; border-radius: 10px; }
  .client-logo-box img { max-height: 48px; }

  /* -- CTA section -- */
  .gm-cta-section { padding: 3.5rem 0; }
  .gm-cta-section h2 { font-size: 1.5rem; line-height: 1.2; }
  .gm-cta-section p { font-size: 0.92rem; margin-bottom: 1.5rem; }
  .gm-cta-section .cta-btns { flex-direction: column; align-items: center; gap: 0.6rem; }
  .gm-cta-section .cta-btns a { width: 100%; max-width: 320px; text-align: center; justify-content: center; }

  /* -- Buttons general mobile -- */
  .btn-gm-primary,
  .btn-gm-outline,
  .btn-gm-dark,
  .btn-gm-whatsapp,
  .btn-gm-download { font-size: 0.85rem; padding: 0.72rem 1.4rem; }

  /* -- Contact form -- */
  .gm-form input,
  .gm-form textarea,
  .gm-form select { padding: 0.8rem 1rem; font-size: 0.88rem; }
  .gm-form label { font-size: 0.78rem; }
  .contact-info-item { gap: 0.8rem; margin-bottom: 1.2rem; }
  .map-container { height: 240px; border-radius: 12px; }

  /* -- Footer -- */
  .gm-footer { padding: 3rem 0 0; }
  .gm-footer .row > div { margin-bottom: 2rem; }
  .gm-footer h4 { font-size: 0.78rem; margin-bottom: 1rem; }
  .gm-footer ul li a { font-size: 0.84rem; }
  .gm-footer .footer-tagline { font-size: 0.84rem; }
  .gm-footer .footer-brand img { height: 42px; }
  .gm-footer .footer-contact li { font-size: 0.84rem; }
  .gm-footer-bottom { flex-direction: column; text-align: center; margin-top: 2rem; padding: 1rem 0; }
  .gm-footer-bottom p { font-size: 0.78rem; }

  /* -- WhatsApp float -- */
  .wa-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 20px; right: 20px; }

  /* -- Related products in detail pages -- */
  .gm-section-sm .product-card-img { height: 140px !important; }
  .gm-section-sm .product-card-body h3 { font-size: 0.9rem; }

  /* -- Row g-5 spacing fix on mobile -- */
  .row.g-5 { --bs-gutter-y: 2.5rem; --bs-gutter-x: 0; }

  /* -- Ajustar margin-bottom en secciones para mobile -- */
  .gm-section .mb-5,
  .gm-section-sm .mb-5,
  .gm-section-lg .mb-5 { margin-bottom: 1.75rem !important; }
  .gm-section .mb-4,
  .gm-section-sm .mb-4,
  .gm-section-lg .mb-4 { margin-bottom: 1.75rem !important; }

}

/* ---------- Small Mobile (≤480px) ---------- */
@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .gm-hero-content { padding: 6.5rem 0 3.5rem; }
  .gm-hero h1 { font-size: 1.75rem; }
  .gm-hero p { font-size: 0.9rem; }

  .product-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .product-card-img { height: 200px; padding: 1.5rem; }
  .product-card-body { padding: 1.2rem; }
  .product-card-body h3 { font-size: 1rem; }
  .product-card-body p { font-size: 0.85rem; line-height: 1.6; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .benefits-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 1.4rem; }
  .gm-page-banner h1 { font-size: 1.4rem; }

  .product-gallery .gallery-img { height: 110px; }

  .gm-cta-section h2 { font-size: 1.35rem; }
  .gm-cta-section .cta-btns a { max-width: 100%; }

  .gm-footer .row { gap: 0; }
}

/* ============================================================
   24. FIX: ESPACIADO VERTICAL (GALERÍAS Y MOBILE)
   ============================================================ */

/* Permitir que las clases g-* actúen como row-gap globalmente para evitar 
   que galerías multilínea se toquen verticalmente en Desktop y Mobile */
.row.g-1 { row-gap: 0.5rem; }
.row.g-2 { row-gap: 1rem; }
.row.g-3 { row-gap: 1.5rem; }
.row.g-4 { row-gap: 2rem; }
.row.g-5 { row-gap: 3rem; }

/* Margen inferior para imágenes de galería como resguardo si no se usa gap en la fila */
.product-gallery .gallery-img {
  margin-bottom: 1.5rem;
}
.row > [class*="col-"] > .product-gallery > .gallery-img {
  margin-bottom: 0; /* Si está dentro de la columna, el row-gap de la fila se encarga */
}

@media (max-width: 768px) {
  /* Añade espaciado vertical (gap) general a los contenedores que se apilan (Flex/Bootstrap Rows) */
  .row {
    row-gap: 1.5rem;
  }

  /* Garantizar separación de las tarjetas de Fortalezas, Misión/Visión/Valores, etc. */
  .service-card, 
  .mv-box, 
  .benefit-box {
    margin-bottom: 1.5rem;
  }

  /* Remover doble margen si ya se aplica row-gap */
  .row > [class*="col-"] > .service-card,
  .row > [class*="col-"] > .mv-box,
  .row > [class*="col-"] > .benefit-box {
    margin-bottom: 0;
  }
}

/* ============================================================
   25. ESTILO CUSTOM PARA CARRUSEL DE PRODUCTO
   ============================================================ */
.custom-carousel-btn {
  width: 48px !important;
  height: 48px !important;
  background: #fff !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%);
  opacity: 0.9 !important;
  border: 1px solid var(--g-border) !important;
  box-shadow: var(--g-shadow) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  color: var(--g-primary) !important;
}
.custom-carousel-btn.carousel-control-prev { left: 1rem !important; }
.custom-carousel-btn.carousel-control-next { right: 1rem !important; }
.custom-carousel-btn:hover { 
  background: var(--g-accent) !important; 
  color: #fff !important; 
  border-color: var(--g-accent) !important; 
  opacity: 1 !important; 
}
.custom-carousel-btn i { font-size: 1.2rem; margin-top: 2px; }

.custom-thumbnail {
  cursor: pointer; 
  height: 85px; 
  border: 2px solid transparent; 
  border-radius: var(--radius); 
  transition: var(--transition); 
  background: #fff; 
  padding: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  width: 100%;
}
.custom-thumbnail:hover, .custom-thumbnail.active-thumb {
  border-color: var(--g-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35,184,122,0.15);
}
.custom-thumbnail img { max-height: 100%; max-width: 100%; object-fit: contain; }

@media (max-width: 768px) {
  .custom-carousel-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .custom-carousel-btn i {
    font-size: 1rem;
  }
  .custom-thumbnail {
    height: 65px;
    padding: 4px;
  }
  .product-gallery-box {
    height: 280px !important;
    padding: 1.5rem !important;
  }
}
