/* CM Ingeniería · hoja de estilos compartida de páginas de servicio (v1 · oct-2026)
   Extraída de las reglas que usa calidad-energia-colombia.html + componentes nuevos
   (formulario de cotización, pasos, enlaces relacionados). */
@font-face { font-family: "Century Gothic"; src: local("Century Gothic"), local("CenturyGothic"); font-weight: 400; font-style: normal; }
@font-face { font-family: "Century Gothic"; src: local("Century Gothic Bold"), local("CenturyGothic-Bold"); font-weight: 700; font-style: normal; }
:root { --navy: #2F4F4F; --navy-light: #3A5C5C; --blue-deep: #365858; --blue-corp: #2F4F4F; --blue-accent: #4A7070; --gold: #EB6C21; --gold-light: #F0833F; --gold-contrast: #B0511A; --gold-contrast-hover: #B85A1E; --gold-pale: #FADCC8; --white: #FFFFFF; --gray-50: #F2F2F1; --gray-100: #E8E8E6; --gray-200: #D4D4D2; --gray-400: #7A7A78; --gray-500: #5A5A58; --text-primary: #2F4F4F; --text-secondary: #4A6363; --shadow-sm: 0 1px 3px rgba(47,79,79,0.08); --shadow-xl: 0 24px 60px rgba(47,79,79,0.18); --radius-sm: 4px; --radius-md: 8px; --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
*, ::before, ::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
[id] { scroll-margin-top: 110px; }
body { font-family: "Century Gothic", Futura, "Trebuchet MS", sans-serif; color: var(--text-primary); background: var(--white); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.section-label::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 760px; line-height: 1.8; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(47,79,79,0.97); backdrop-filter: blur(8px); box-shadow: rgba(238,242,241,0.08) 0 1px 0; transition: 0.4s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: 1200px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; z-index: 1001; }
.cm-hlogo { display: block; width: 54px; height: auto; }
.cm-hlogo .o, .cm-flogo .o { fill: #EB6C21; }
.cm-hlogo .g, .cm-flogo .g { fill: #EEF2F1; }
.cm-flogo { display: block; width: 84px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.75); padding: 8px 16px; border-radius: var(--radius-sm); letter-spacing: 0.3px; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta { margin-left: 10px; background: var(--gold-contrast) !important; color: var(--white) !important; font-weight: 600 !important; padding: 10px 24px !important; border-radius: 0 !important; }
.nav-cta:hover { background: var(--gold-contrast-hover) !important; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; background: none; border: none; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.menu-toggle.active span { background: var(--navy); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Botones */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 18px 42px; background: var(--gold-contrast); color: var(--white); font-weight: 700; font-size: 1rem; border-radius: 0; border: none; cursor: pointer; transition: var(--transition); letter-spacing: 0.5px; font-family: inherit; }
.btn-primary:hover { background: var(--gold-contrast-hover); transform: translateY(-2px); box-shadow: rgba(235,108,33,0.3) 0 8px 30px; }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; padding: 18px 42px; background: transparent; color: var(--navy); font-weight: 600; font-size: 1rem; border: 1px solid rgba(47,79,79,0.35); cursor: pointer; transition: var(--transition); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-contrast); }
.service-lead .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.35); }
.service-lead .btn-secondary:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,0.06); }

/* Página de servicio */
.service-page { padding-top: 150px; }
main.service-page .container > a.crumb { position: relative; z-index: 1; color: rgba(238,242,241,0.72); font-size: 0.9rem; }
main.service-page .container > a.crumb:hover { color: #fff; }
main.service-page .service-lead { position: relative; background: #2F4F4F; box-shadow: #2F4F4F 0 0 0 100vmax; clip-path: inset(-400px -100vmax -72px); }
.service-lead h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.1; margin: 20px 0; color: #fff; }
.service-lead p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 28px; color: rgba(238,242,241,0.8); max-width: 760px; }
.service-actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0; }
main.service-page .service-photo { position: relative; z-index: 1; width: 100%; max-height: 400px; object-fit: cover; margin: 36px 0; box-shadow: rgba(31,54,52,0.45) 0 30px 60px -30px; }
main.service-page .lead-spacer { height: 84px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; margin-top: 28px; }
.service-card { position: relative; display: flex; flex-direction: column; border-top: 1px solid rgba(47,79,79,0.2); padding: 30px 0 0; }
.service-card::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border-radius: 3px; background: #EB6C21; }
.service-card h2, .service-card h3 { font-size: 1.25rem; margin-bottom: 16px; color: var(--navy); line-height: 1.35; }
.service-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 10px; }
.service-card ul { list-style: disc; padding-left: 1.1em; }
.service-card li { margin-bottom: 8px; line-height: 1.6; font-size: 0.95rem; color: var(--text-secondary); }
.service-card strong { color: #2F4F4F; }
.block { margin-top: 64px; }
.block > p { color: var(--text-secondary); max-width: 860px; margin-bottom: 14px; }
.block a.inline, .service-card a.inline { color: var(--gold-contrast); text-decoration: underline; }
.callout { margin-top: 28px; padding: 22px 26px; background: var(--gray-50); border-left: 4px solid var(--gold); color: var(--text-secondary); max-width: 860px; }
.callout strong { color: var(--navy); }
.steps { counter-reset: paso; }
.steps .service-card h3::before { counter-increment: paso; content: counter(paso) ". "; color: var(--gold-contrast); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.related a { display: block; padding: 18px 20px; border: 1px solid var(--gray-200); color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.related a span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.related a:hover { border-color: var(--gold); color: var(--gold-contrast); }

/* Formulario de cotización */
.quote { margin-top: 72px; background: #2F4F4F; color: #EEF2F1; padding: 48px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.quote h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 16px; }
.quote p { color: rgba(238,242,241,0.8); margin-bottom: 14px; }
.quote a { color: #F0833F; }
.quote ul { list-style: disc; padding-left: 1.1em; color: rgba(238,242,241,0.8); }
.quote li { margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.75); margin-bottom: 6px; letter-spacing: 0.4px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-family: inherit; font-size: 0.92rem; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); background: rgba(255,255,255,0.09); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select option { background: #2F4F4F; color: #fff; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; color: rgba(238,242,241,0.75); margin: 6px 0 18px; }
.form-consent input { margin-top: 4px; accent-color: #EB6C21; }
.form-note { font-size: 0.8rem; color: rgba(238,242,241,0.6); margin-top: 12px; }
.btn-submit { width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; }

/* Pie */
.footer { background: #243B3B; padding: 60px 0 30px; margin-top: 0; color: rgba(238,242,241,0.72); }
.footer p, .footer li, .footer span { color: rgba(238,242,241,0.72); margin-top: 10px; }
.footer a { color: rgba(238,242,241,0.82); }
.footer a:hover { color: #EB6C21; }

@media (max-width: 900px) {
  .quote { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px; height: 100vh; background: var(--white); flex-direction: column; align-items: stretch; padding: 100px 32px 32px; box-shadow: var(--shadow-xl); transition: right 0.4s; gap: 0; }
  .nav.open { right: 0; }
  .nav a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--gray-100); color: var(--text-primary) !important; }
  .nav-cta { text-align: center; margin: 16px 0 0 !important; }
  .nav a.nav-cta { color: var(--white) !important; border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-padding { padding: 70px 0; }
  .service-page { padding-top: 120px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .btn-primary, .btn-secondary { padding: 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}