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

:root {
  --navy:   #0A1628;
  --steel:  #1E3A5F;
  --green:  #2ECC71;
  --white:  #FFFFFF;
  --light:  #F4F6F9;
  --gold:   #F7C948;
  --orange: #E67E22;
  --gray:   #6B7280;
  --border: #D1D5DB;
  --shadow: 0 4px 24px rgba(10,22,40,.15);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: #1F2937;
  background: var(--white);
  line-height: 1.6;
}

h1,h2,h3,h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: .5rem; }
.section-sub  { text-align: center; color: var(--gray); margin-bottom: 3rem; font-size: 1.05rem; }
.accent { color: var(--green); }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(46,204,113,.12);
  transition: background .3s;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  filter: drop-shadow(0 0 8px rgba(46,204,113,.25));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 3px;
}

.nav-brand-tag {
  font-size: .6rem;
  color: var(--green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  padding: .45rem .8rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.1); }

.nav-links a.petroleo-link {
  color: var(--gold);
  border: 1px solid rgba(247,201,72,.25);
}

.nav-links a.petroleo-link:hover { background: rgba(247,201,72,.12); color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

#lang-btn {
  background: rgba(46,204,113,.15);
  border: 1px solid rgba(46,204,113,.4);
  color: var(--green);
  padding: .35rem .8rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
}
#lang-btn:hover { background: rgba(46,204,113,.25); }

#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
#menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ===== HERO ===== */
#inicio {
  min-height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&h=900&fit=crop&q=80');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* dark gradient overlay */
#inicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(5,12,28,.92) 0%,
    rgba(10,22,50,.82) 50%,
    rgba(5,12,28,.88) 100%
  );
  z-index: 1;
}

/* subtle grid texture */
#inicio::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='none'/%3E%3Cpath d='M0 0h60M0 60h60M0 0v60M60 0v60' stroke='%232ECC71' stroke-width='.15' opacity='.08'/%3E%3C/svg%3E");
  z-index: 1;
}

#inicio > .container { position: relative; z-index: 2; }

/* ---- HERO BRAND (big logo + name) ---- */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid rgba(46,204,113,.35);
  box-shadow:
    0 0 0 6px rgba(46,204,113,.08),
    0 0 40px rgba(46,204,113,.25),
    0 8px 32px rgba(0,0,0,.5);
  flex-shrink: 0;
}

.hero-logo-text { display: flex; flex-direction: column; }

.hero-logo-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 6px;
  line-height: 1;
  text-shadow: 0 0 40px rgba(46,204,113,.35), 0 4px 20px rgba(0,0,0,.5);
}

.hero-logo-sub {
  font-size: .85rem;
  color: var(--green);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 6px;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

/* ---- REST OF HERO ---- */
.hero-content { max-width: 760px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(46,204,113,.12);
  border: 1px solid rgba(46,204,113,.35);
  color: var(--green);
  padding: .4rem 1.1rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title span { color: var(--green); }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: #27AE60; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

/* correo en hero */
.hero-email {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}
.hero-email-icon { font-size: 1rem; }
.hero-email-link {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.25);
  transition: color .2s, border-color .2s;
}
.hero-email-link:hover {
  color: var(--green);
  border-color: var(--green);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  text-shadow: 0 0 20px rgba(46,204,113,.4);
}
.hero-stat .lbl { font-size: .75rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.4);
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(46,204,113,.5), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== PRESENTACIÓN CORPORATIVA ===== */
#presentacion-corporativa {
  padding: 5rem 0;
  background-color: #0A1628;
  position: relative;
  overflow: hidden;
}
#presentacion-corporativa::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60M0 60h60M0 0v60M60 0v60' stroke='%232ECC71' stroke-width='.15' opacity='.07'/%3E%3C/svg%3E");
}
.corp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.corp-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(46,204,113,.12);
  border: 1px solid rgba(46,204,113,.35);
  color: var(--green);
  padding: .4rem 1.1rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.corp-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.corp-text h2 span { color: var(--green); }
.corp-text p {
  color: rgba(255,255,255,.7);
  font-size: .93rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.corp-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: 1.75rem;
}
.corp-hl {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .83rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
}
.corp-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-corp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-corp:hover { transform: translateY(-2px); }
.btn-corp-primary { background: var(--green); color: var(--navy); }
.btn-corp-primary:hover { background: #27AE60; box-shadow: 0 8px 24px rgba(46,204,113,.3); }
.btn-corp-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.3); }
.btn-corp-outline:hover { border-color: var(--white); }

/* preview card */
.corp-preview-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(46,204,113,.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform .4s;
}
.corp-preview-card:hover { transform: perspective(1000px) rotateY(0deg); }
.corp-preview-bar {
  background: #040C1E;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 2px solid var(--green);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #28CA41; }
.corp-preview-bar .doc-title { margin-left: .5rem; font-size: .7rem; color: rgba(255,255,255,.5); font-family:'Montserrat',sans-serif; }
.corp-preview-img { height: 270px; overflow: hidden; position: relative; }
.corp-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.corp-preview-img::after { content:''; position:absolute; inset:0; background: linear-gradient(to bottom, transparent 50%, rgba(4,12,30,.95) 100%); }
.corp-preview-foot {
  background: #040C1E;
  padding: .85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.corp-preview-pages { font-size: .7rem; color: rgba(255,255,255,.4); font-family:'Montserrat',sans-serif; }
.corp-open-btn {
  background: var(--green);
  color: var(--navy);
  padding: .4rem 1rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  transition: background .2s;
}
.corp-open-btn:hover { background: #27AE60; }
.corp-dots { display:flex; gap:.4rem; margin-top:.75rem; justify-content:center; }
.corp-dot { width:22px; height:4px; border-radius:2px; background:rgba(255,255,255,.15); }
.corp-dot.on { background: var(--green); }

/* ===== BOTÓN "VER PRESENTACIÓN" en service cards ===== */
.service-ver-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .85rem;
  padding: .42rem 1rem;
  background: var(--navy);
  color: var(--green);
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(10,22,40,.12);
  transition: background .2s, transform .2s, box-shadow .2s;
  font-family: 'Montserrat', sans-serif;
}
.service-ver-btn:hover {
  background: var(--steel);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10,22,40,.2);
}
.sc-oil .service-ver-btn {
  background: rgba(247,201,72,.12);
  color: var(--gold);
  border-color: rgba(247,201,72,.3);
}
.sc-oil .service-ver-btn:hover { background: rgba(247,201,72,.22); }

@media (max-width: 900px) {
  .corp-inner { grid-template-columns: 1fr; }
  .corp-preview-card { transform: none !important; }
}

/* ===== SOBRE NOSOTROS ===== */
#nosotros { padding: 6rem 0; background: var(--light); }

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

.about-text h2 { font-size: 2rem; color: var(--navy); margin-bottom: 1rem; }
.about-text p  { color: #374151; margin-bottom: 1rem; line-height: 1.8; }

.timeline {
  list-style: none;
  border-left: 3px solid var(--green);
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}
.timeline li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: .5rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: .45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.timeline .year { font-weight: 700; color: var(--navy); margin-right: .5rem; }

.mv-cards { display: flex; flex-direction: column; gap: 1.5rem; }

.mv-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}
.mv-card h3 { color: var(--navy); margin-bottom: .75rem; font-size: 1.1rem; }
.mv-card p  { color: #4B5563; font-size: .95rem; line-height: 1.7; }

/* ===== SERVICIOS ===== */
#servicios { padding: 6rem 0; background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* card with photo */
.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(10,22,40,.08);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(10,22,40,.16);
}

/* photo block */
.service-card-img {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.07); }

/* floating icon over photo */
.service-card-body {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -28px auto 1rem;
  font-size: 1.6rem;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  position: relative;
  z-index: 1;
}

.service-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .6rem; }
.service-card p  { font-size: .88rem; color: var(--gray); line-height: 1.7; }

/* icon backgrounds per service */
.sc-elec  .service-icon { background: #DBEAFE; }
.sc-civil .service-icon { background: #F3F4F6; }
.sc-hydro .service-icon { background: #BFDBFE; }
.sc-proc  .service-icon { background: #DCFCE7; }
.sc-trans .service-icon { background: #FED7AA; }
.sc-oil   .service-icon { background: #FEF3C7; }

.sc-oil { border-color: var(--gold); }

/* ===== PETROLEO Y GAS ===== */
#petroleo {
  padding: 6rem 0;
  background: linear-gradient(160deg, #050C1C 0%, #0A1628 50%, #040B1A 100%);
  position: relative;
  overflow: hidden;
}

#petroleo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(247,201,72,.04) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(46,204,113,.03) 0%, transparent 50%);
}

.petroleo-header { text-align: center; margin-bottom: 3rem; position: relative; z-index: 1; }

.petroleo-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(247,201,72,.12);
  border: 1px solid rgba(247,201,72,.4);
  color: var(--gold);
  padding: .4rem 1.2rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.petroleo-header h2 { color: var(--white); font-size: 2.2rem; margin-bottom: .75rem; }
.petroleo-header p  { color: rgba(255,255,255,.65); max-width: 600px; margin: 0 auto; }

.petroleo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* card with BACKGROUND PHOTO */
.petroleo-card {
  border: 1px solid rgba(247,201,72,.2);
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: default;
}

/* dark gradient overlay so text is readable */
.petroleo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,11,26,.95) 0%,
    rgba(4,11,26,.7)  45%,
    rgba(4,11,26,.3)  100%
  );
  z-index: 0;
  transition: opacity .3s;
}

.petroleo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247,201,72,.55);
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(247,201,72,.15);
}

.petroleo-card:hover::before { opacity: .85; }

/* content sits above overlay */
.petroleo-card-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
}

.petroleo-card .icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.petroleo-card h3    { color: var(--gold); font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.petroleo-card p     { color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.7; }

/* ===== PROYECTOS ===== */
#proyectos { padding: 6rem 0; background: var(--light); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10,22,40,.08);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(10,22,40,.14);
}

.project-thumb {
  height: 190px;
  overflow: hidden;
  position: relative;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card:hover .project-thumb img { transform: scale(1.07); }

/* tag badge sobre la foto */
.project-thumb-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(10,22,40,.82);
  color: var(--green);
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  border: 1px solid rgba(46,204,113,.3);
  backdrop-filter: blur(4px);
}

.project-body { padding: 1.25rem; }
.project-body h3 { font-size: 1rem; color: var(--navy); margin-bottom: .4rem; font-weight: 700; }
.project-body p  { font-size: .85rem; color: var(--gray); line-height: 1.6; }

/* ===== CERTIFICACIONES ===== */
#certificaciones {
  padding: 6rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#certificaciones::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 80%, rgba(46,204,113,.05) 0%, transparent 50%),
                    radial-gradient(circle at 90% 20%, rgba(46,204,113,.04) 0%, transparent 45%);
}

.cert-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.cert-badge-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(46,204,113,.12);
  border: 1px solid rgba(46,204,113,.35);
  color: var(--green);
  padding: .4rem 1.2rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cert-header h2 { color: var(--white); font-size: 2rem; margin-bottom: .75rem; }
.cert-header p  { color: rgba(255,255,255,.65); max-width: 650px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.cert-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(46,204,113,.15);
  border-radius: 14px;
  padding: 1.75rem;
  transition: background .25s, transform .25s, border-color .25s;
}

.cert-card:hover {
  background: rgba(46,204,113,.07);
  border-color: rgba(46,204,113,.35);
  transform: translateY(-4px);
}

.cert-icon {
  font-size: 2rem;
  margin-bottom: .9rem;
  display: block;
}

.cert-card h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  font-family: 'Montserrat', sans-serif;
}

.cert-card p {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  line-height: 1.65;
  margin-bottom: .9rem;
}

.cert-id {
  display: inline-block;
  background: rgba(46,204,113,.12);
  color: var(--green);
  border: 1px solid rgba(46,204,113,.25);
  padding: .2rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.cert-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(46,204,113,.12);
  color: var(--green);
  border: 1px solid rgba(46,204,113,.25);
  padding: .2rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.cert-tag::before { content: '✓'; }

/* barra de confianza */
.cert-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 1.25rem 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cert-trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-weight: 600;
}

.ct-icon { font-size: 1.1rem; }

.cert-trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ===== CONTACTO ===== */
#contacto { padding: 6rem 0; background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 { font-size: 2rem; color: var(--navy); margin-bottom: 1rem; }
.contact-info p  { color: var(--gray); margin-bottom: 2rem; }

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-item h4 { font-size: .85rem; color: var(--gray); font-weight: 600; }
.info-item p  { font-size: .95rem; color: var(--navy); font-weight: 600; }

.contact-form {
  background: var(--light);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
  color: #1F2937;
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: .95rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-submit:hover { background: var(--steel); transform: translateY(-1px); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(46,204,113,.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}

.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: .75rem; max-width: 280px; }
.footer-logo { height: 44px; margin-bottom: .5rem; border-radius: 6px; }

/* correo en footer */
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  color: var(--green);
  font-size: .88rem;
  font-weight: 700;
  transition: opacity .2s;
}
.footer-email:hover { opacity: .75; }

/* correo clickeable en contacto */
.info-link {
  font-size: .95rem;
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid rgba(10,22,40,.2);
  transition: color .2s;
}
.info-link:hover { color: var(--green); border-color: var(--green); }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom .rif { color: var(--green); font-weight: 700; }

/* ===== TOAST ===== */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  font-size: .95rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform .35s, opacity .35s;
  border-left: 4px solid var(--green);
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid    { grid-template-columns: 1fr 1fr; }
  .about-grid       { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .projects-grid    { grid-template-columns: 1fr 1fr; }
  .petroleo-grid    { grid-template-columns: 1fr; }
  .cert-grid        { grid-template-columns: 1fr 1fr; }
  #inicio           { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .nav-links        { display: none; flex-direction: column; gap: .25rem; }
  .nav-links.open   { display: flex; position: fixed; top: 63px; left: 0; right: 0;
                      background: rgba(10,22,40,.97); backdrop-filter: blur(12px);
                      padding: 1rem 1.5rem 1.5rem;
                      border-top: 1px solid rgba(255,255,255,.08); }
  #menu-toggle      { display: flex; }
  .services-grid    { grid-template-columns: 1fr; }
  .projects-grid    { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .cert-grid        { grid-template-columns: 1fr; }
  .cert-trust       { flex-direction: column; gap: .75rem; }
  .cert-trust-divider { width: 40px; height: 1px; }
  .hero-stats       { gap: 1.5rem; }
  .hero-logo-name   { font-size: 2.5rem; }
  .hero-logo-img    { width: 72px; height: 72px; }
}
