/* ============================================================
   SENERPOT — Servicios de Energía y Potencia S.A.S.
   Hoja de estilos compartida
   ============================================================ */

:root {
  --navy: #003d74;
  --navy-dark: #002a52;
  --teal: #027397;
  --green: #90c367;
  --green-light: #eafaf0;
  --ink: #1a2b3a;
  --text: #3a5568;
  --bg-soft: #f3f8fa;
  --border-soft: #d9ecf1;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 40, 80, 0.10);
  --shadow-lg: 0 20px 50px rgba(0, 40, 80, 0.16);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 34px; height: 3px; background: var(--green); display: inline-block; border-radius: 2px;
}

.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #cfe3ee; }
.section-navy h2, .section-navy h3 { color: #ffffff; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--navy-dark); box-shadow: 0 8px 20px rgba(144,195,103,.35); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(144,195,103,.45); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }

/* ---------------- HEADER / NAV ---------------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: var(--maxw); margin: 0 auto;
}
.nav .logo { display: flex; align-items: center; gap: 10px; }
.nav .logo img { height: 46px; }
.nav ul { list-style: none; display: flex; gap: 34px; align-items: center; }
.nav ul li a {
  font-weight: 600; font-size: 14.5px; color: var(--navy);
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s ease;
}
.nav ul li a:hover, .nav ul li a.active { border-color: var(--green); }
.nav .nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

@media (max-width: 880px) {
  .nav ul { position: fixed; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav ul.open { max-height: 400px; }
  .nav ul li { width: 100%; border-top: 1px solid var(--border-soft); }
  .nav ul li a { display: block; padding: 16px 28px; }
  .nav-toggle { display: block; }
  .nav .nav-cta .btn-outline-navy-text { display: none; }
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,42,82,.94) 0%, rgba(0,61,116,.86) 42%, rgba(2,115,151,.55) 78%, rgba(2,115,151,.30) 100%);
}
.hero .hero-content { position: relative; z-index: 2; max-width: 640px; padding: 100px 28px; }
.hero .eyebrow { color: var(--green); }
.hero h1 { color: #fff; font-size: 44px; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--green); }
.hero p.lead { font-size: 18px; color: #d8e8ef; margin-bottom: 34px; max-width: 540px; }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  position: relative; padding: 150px 0 70px 0; color: #fff; text-align: left; overflow:hidden;
}
.page-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,42,82,.95) 0%, rgba(2,115,151,.72) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: 38px; }
.page-hero p { color: #d8e8ef; font-size: 17px; margin-top: 14px; max-width: 600px; }

/* ---------------- TRUST STRIP ---------------- */
.trust-strip { background: var(--navy); padding: 30px 0; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.trust-item { display: flex; align-items: center; gap: 14px; color: #fff; flex: 1 1 220px; }
.trust-item .ic {
  width: 46px; height: 46px; min-width:46px; border-radius: 50%; background: rgba(144,195,103,.18);
  border: 2px solid var(--green); display: flex; align-items: center; justify-content: center;
}
.trust-item .tt { font-weight: 700; font-size: 15px; color: #fff; }
.trust-item .td { font-size: 13px; color: #b9d2e0; margin-top: 2px; }

/* ---------------- SERVICE CARDS (grid) ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card .thumb { height: 190px; overflow: hidden; position: relative; }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.svc-card:hover .thumb img { transform: scale(1.06); }
.svc-card .num {
  position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.svc-card .body { padding: 24px 24px 28px 24px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: 18px; margin-bottom: 10px; }
.svc-card p { font-size: 14.5px; color: var(--text); flex: 1; }
.svc-card .more { margin-top: 16px; font-weight: 700; font-size: 13.5px; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- SERVICE DETAIL (alternating rows) ---------------- */
.svc-detail { display: flex; align-items: center; gap: 60px; padding: 70px 0; border-bottom: 1px solid var(--border-soft); }
.svc-detail:last-child { border-bottom: none; }
.svc-detail.reverse { flex-direction: row-reverse; }
.svc-detail .media { flex: 1 1 46%; position: relative; }
.svc-detail .media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 380px; object-fit: cover; }
.svc-detail .media .badge-num {
  position: absolute; top: -18px; left: -18px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 22px; display: flex;
  align-items: center; justify-content: center; border: 4px solid #fff; box-shadow: var(--shadow);
}
.svc-detail .content { flex: 1 1 54%; }
.svc-detail h2 { font-size: 27px; margin-bottom: 16px; }
.svc-detail p.desc { font-size: 15.5px; margin-bottom: 20px; }
.svc-detail ul.incluye { list-style: none; }
.svc-detail ul.incluye li {
  position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14.5px; color: var(--ink);
}
.svc-detail ul.incluye li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--green);
}
@media (max-width: 820px) {
  .svc-detail, .svc-detail.reverse { flex-direction: column; gap: 30px; }
  .svc-detail .media img { height: 260px; }
}

/* ---------------- GALLERY ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; margin-top: 40px; }
.gallery-grid .g-item { border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.08); }
.gallery-grid .g-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid .g-big { grid-column: span 2; grid-row: span 1; } }

/* ---------------- MISION / VISION ---------------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.mv-card h3 { font-size: 22px; margin-bottom: 14px; }
.mv-card p { font-size: 15px; }

/* ---------------- VALUES ---------------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 46px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }
.value-item { text-align: left; }
.value-item .ic {
  width: 56px; height: 56px; border-radius: 16px; background: var(--green-light);
  border: 2px solid var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.value-item h4 { font-size: 16px; margin-bottom: 8px; }
.value-item p { font-size: 13.5px; }

/* ---------------- CTA BANNER ---------------- */
.cta-banner {
  background: linear-gradient(100deg, var(--navy) 0%, var(--teal) 60%, #5fa66a 100%);
  border-radius: 26px; padding: 56px 60px; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; color: #fff; flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.cta-banner p { color: #dcefe0; font-size: 15px; }
@media (max-width: 700px) { .cta-banner { padding: 40px 30px; text-align: center; justify-content: center; } }

/* ---------------- CONTACT ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 50px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--border-soft);
}
.contact-card .ic {
  width: 48px; height: 48px; min-width:48px; border-radius: 50%; background: var(--green-light);
  border: 2px solid var(--green); display: flex; align-items: center; justify-content: center;
}
.contact-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-card p { font-size: 14.5px; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
form.contact-form label { font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg-soft);
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form button { align-self: flex-start; border: none; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 30px; border: 0; width: 100%; height: 320px; }

/* ---------------- FOOTER ---------------- */
footer.site { background: var(--navy-dark); color: #b9d2e0; padding: 60px 0 24px 0; }
footer.site .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { footer.site .foot-grid { grid-template-columns: 1fr; } }
footer.site .logo img { height: 42px; margin-bottom: 16px; }
footer.site p { font-size: 13.5px; color: #9bbdd0; max-width: 320px; }
footer.site h5 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
footer.site ul { list-style: none; }
footer.site ul li { margin-bottom: 10px; font-size: 14px; }
footer.site ul li a:hover { color: var(--green); }
footer.site .foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #7fa2b8;
}
footer.site .socials { display: flex; gap: 10px; }
footer.site .socials a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
footer.site .socials a:hover { background: var(--green); }

/* ---------------- WHATSAPP FLOAT ---------------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* ---------------- MISC ---------------- */
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 10px auto; }
.section-head.left { margin: 0 0 10px 0; }
.section-head p.lead { font-size: 16px; }
