/*
  Petrología — Style limpio y ordenado
  Sitio claro-industrial premium con secciones visuales corporativas.
  Tipografía corporativa: Century Gothic.
  Estructura: base global + componentes reutilizables + páginas específicas.
*/

/* =========================================================
   00 — TOKENS / RESET / BASE
========================================================= */

:root {
  --paper: #ffffff;
  --warm: #f7f5f1;
  --concrete: #eef0f1;
  --concrete-2: #e3e6e7;

  --graphite: #202427;
  --graphite-2: #2d3337;
  --dark: #0b0d0e;

  --orange: #f15a0b;
  --orange-dark: #c94705;
  --orange-soft: rgba(241, 90, 11, 0.10);
  --orange-line: rgba(241, 90, 11, 0.28);

  --text: #1f2427;
  --muted: #5f686f;
  --muted-2: #7a848a;

  --border: rgba(31, 36, 39, 0.10);
  --border-strong: rgba(31, 36, 39, 0.16);

  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-dark: 0 24px 80px rgba(0, 0, 0, 0.24);

  --radius: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --container: 1200px;

  --font-primary: "Century Gothic", CenturyGothic, AppleGothic, "Trebuchet MS", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--warm);
  color: var(--text);
  overflow-x: hidden;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font-family: var(--font-primary);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: auto;
}

h1,
h2,
h3 {
  color: var(--text);
}

h2 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 850px;
  margin-bottom: 18px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

/* =========================================================
   01 — GLOBAL LAYOUT / TYPOGRAPHY
========================================================= */

.section {
  padding: 86px 0;
  background: var(--warm);
}

.light {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.40)),
    var(--concrete);
}

.section p {
  max-width: 950px;
}

.section-heading,
.petro-section-head {
  margin-bottom: 38px;
}

.petro-section-head {
  max-width: 900px;
  margin-bottom: 42px;
}

.petro-section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.petro-section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  max-width: 900px;
}

.petro-section-head p {
  font-size: 17px;
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

/* =========================================================
   02 — BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary-btn {
  background: linear-gradient(135deg, var(--orange), #ff8a2b);
  box-shadow: 0 16px 36px rgba(241, 90, 11, 0.28);
  border: 1px solid rgba(255,255,255,0.24);
}

.secondary-btn {
  background: var(--paper);
  color: var(--graphite) !important;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.secondary-btn:hover {
  border-color: var(--orange-line);
  color: var(--orange-dark) !important;
}

.dark-btn {
  background: rgba(255,255,255,0.10) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.24) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.dark-btn:hover {
  color: #ffffff !important;
  border-color: rgba(255,154,82,0.58) !important;
}

/* =========================================================
   03 — HEADER / NAVIGATION
========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 36, 39, 0.08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

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

.header .container {
  max-width: 1380px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  color: var(--graphite);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.site-logo-horizontal {
  width: 245px;
  height: auto;
  max-height: 64px;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav a {
  color: var(--graphite-2);
  font-size: 15.5px;
  font-weight: 900;
  text-decoration: none;
  transition: 0.25s ease;
  white-space: nowrap;
}

nav a:hover,
nav a.active,
.lang-link.active {
  color: var(--orange);
}

nav a.active {
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--orange), #ff8a2b);
}

nav a.btn {
  padding: 11px 18px;
  min-height: auto;
  font-size: 15px;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--orange), #ff8a2b);
  box-shadow: 0 12px 26px rgba(241, 90, 11, 0.22);
}

nav a.btn.active-btn {
  box-shadow: 0 0 0 1px var(--orange-line), 0 16px 34px rgba(241,90,11,0.22);
}

.lang-link {
  font-size: 13px;
  font-weight: 900;
  opacity: 0.95;
}

@media (max-width: 1250px) {
  .logo-link span {
    font-size: 15.5px;
    max-width: 260px;
    white-space: normal;
    line-height: 1.08;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 14px;
  }

  nav a.btn {
    padding: 10px 15px;
    font-size: 14px;
  }
}

/* =========================================================
   04 — GENERIC CARDS / GRIDS
========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: var(--paper);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--orange-line);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: 22px;
  line-height: 1.22;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.premium-card {
  position: relative;
  overflow: hidden;
}

.premium-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -44px;
  top: -44px;
  border-radius: 50%;
  background: var(--orange-soft);
  filter: blur(20px);
}

.card-number {
  display: inline-block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  margin-bottom: 26px;
}

/* =========================================================
   05 — LEGACY / GENERIC HERO SUPPORT
   Kept for future inner pages that still use these classes.
========================================================= */

.hero,
.inner-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(241, 90, 11, 0.11), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--warm) 100%);
}

.hero {
  text-align: center;
  padding: 130px 0;
}

.inner-hero {
  min-height: 440px;
  padding: 105px 0;
  display: flex;
  align-items: center;
}

.hero::before,
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,36,39,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,36,39,0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  pointer-events: none;
}

.premium-hero {
  min-height: 680px;
  padding: 0;
  display: flex;
  align-items: center;
}

.hero-bg-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: 4%;
  top: 12%;
  border-radius: 50%;
  background: rgba(241, 90, 11, 0.12);
  filter: blur(90px);
}

.hero-content,
.inner-hero .container {
  position: relative;
  z-index: 4;
}

.hero-content {
  text-align: left;
  max-width: 1200px;
}

.hero h1,
.premium-hero h1 {
  max-width: 940px;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -2.2px;
  margin-bottom: 24px;
}

.inner-hero h1 {
  max-width: 950px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -1.7px;
  margin-bottom: 22px;
}

.hero p,
.premium-hero p,
.inner-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero p,
.premium-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin-top: 54px;
}

.hero-stats div {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-stats strong {
  display: block;
  color: var(--graphite);
  font-size: 25px;
  margin-bottom: 6px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 14px;
}

.image-hero,
.page-hero-image,
.contact-hero-image {
  background: var(--dark);
  color: #ffffff;
}

.image-hero h1,
.image-hero p,
.page-hero-image h1,
.page-hero-image p,
.contact-hero-image h1,
.contact-hero-image p {
  color: #ffffff;
}

.image-hero p,
.page-hero-image p,
.contact-hero-image p {
  color: rgba(255,255,255,0.82);
}

.hero-image-bg,
.inner-hero-image-bg,
.contact-hero-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.78;
  transform: scale(1.02);
  z-index: 1;
}

.hero-image-overlay,
.inner-hero-image-overlay,
.contact-hero-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 18% 78%, rgba(241,90,11,0.34), transparent 32%),
    linear-gradient(90deg, rgba(11,13,14,0.92) 0%, rgba(11,13,14,0.68) 48%, rgba(11,13,14,0.30) 100%),
    linear-gradient(180deg, rgba(11,13,14,0.26) 0%, rgba(11,13,14,0.88) 100%);
}

.home-hero-image .hero-image-bg { background-image: url("../img/home-hero.webp"); }
.about-hero-image .inner-hero-image-bg { background-image: url("../img/about-hero.webp"); }
.services-hero-image .inner-hero-image-bg { background-image: url("../img/services-hero.webp"); }
.accreditation-hero-image .inner-hero-image-bg { background-image: url("../img/accreditation-hero.webp"); }
.gallery-hero-image .inner-hero-image-bg { background-image: url("../img/gallery-hero.webp"); }
.projects-hero-image .inner-hero-image-bg { background-image: url("../img/projects-hero.webp"); }
.clients-hero-image .inner-hero-image-bg { background-image: url("../img/clients-hero.webp"); }
.contact-hero-image .contact-hero-image-bg { background-image: url("../img/contact-hero.webp"); }

/* =========================================================
   06 — SHARED COMPONENTS
========================================================= */

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 11px 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.trust-badge span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.trust-badge strong {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
}

.service-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(241,90,11,0.10);
}

.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up:nth-child(2) { transition-delay: 0.08s; }
.reveal-up:nth-child(3) { transition-delay: 0.14s; }
.reveal-up:nth-child(4) { transition-delay: 0.20s; }

@keyframes petroHeroSlowZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.11); }
}

/* =========================================================
   07 — CONTACT / FORMS
========================================================= */

.contact-premium-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: start;
}

.contact-copy h2 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 760px;
  margin-bottom: 20px;
}

.contact-info {
  margin-top: 30px;
  padding: 26px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.premium-contact-info {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.premium-contact-info div {
  display: grid;
  gap: 6px;
}

.premium-contact-info strong {
  color: var(--orange);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.premium-contact-info span {
  color: var(--muted);
}

.contact-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.contact-audience-grid div {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.contact-audience-grid h3 {
  margin-bottom: 10px;
}

.contact-form {
  background: var(--paper);
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.premium-form {
  position: sticky;
  top: 100px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
  transition: 0.22s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--orange-line);
  box-shadow: 0 0 0 4px rgba(241,90,11,0.08);
  background: #ffffff;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8b949b;
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-2) !important;
  line-height: 1.5;
}

.form-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #166534;
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #991b1b;
}

.website-field {
  display: none;
}

/* =========================================================
   08 — CTA / FOOTER / WHATSAPP
========================================================= */

.cta-section {
  padding: 84px 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(241, 90, 11, 0.18), transparent 34%),
    linear-gradient(135deg, var(--graphite) 0%, var(--dark) 100%);
}

.cta-box {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}

.cta-box h2 {
  margin-bottom: 14px;
  color: #ffffff;
}

.cta-box p {
  color: rgba(255,255,255,0.76);
}

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.62);
}

.premium-footer {
  padding: 72px 0 28px;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1fr;
  gap: 42px;
}

.footer-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.22));
}

.footer-logo-horizontal {
  max-width: 100%;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 23px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 430px;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
}

.footer-email {
  display: inline-block;
  color: #ff9a52;
  text-decoration: none;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
}

.footer-email:hover {
  color: #ffffff;
}

.footer-location {
  display: block;
  color: rgba(255,255,255,0.52);
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.footer-column a,
.footer-column span {
  display: block;
  color: rgba(255,255,255,0.66);
  text-decoration: none;
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.45;
}

.footer-column a:hover {
  color: #ff9a52;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 50px;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.50);
  font-size: 14px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ff8a2b);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(241,90,11,0.30);
  border: 1px solid rgba(255,255,255,0.18);
  transition: 0.28s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(241,90,11,0.38);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

/* =========================================================
   09 — HOME PAGE
========================================================= */

.petro-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #101010;
  isolation: isolate;
}

.petro-hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.petro-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.03);
  animation: petroHeroSlowZoom 16s ease-in-out infinite alternate;
}

.petro-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 16% 72%, rgba(241, 90, 11, 0.35), transparent 34%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.70) 42%, rgba(10, 10, 10, 0.24) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0.78) 100%);
}

.petro-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
  opacity: 0.55;
}

.petro-hero-content {
  position: relative;
  z-index: 4;
  max-width: 980px;
  padding: 110px 0 90px;
}

.petro-hero .eyebrow {
  color: #ff9a52;
}

.petro-hero h1 {
  color: #ffffff;
  max-width: 930px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: -3.4px;
  margin-bottom: 28px;
}

.petro-hero p {
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  font-size: 20px;
  line-height: 1.65;
}

.petro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.petro-hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
  max-width: 790px;
  margin-top: 62px;
}

.petro-hero-badges div {
  padding: 18px 20px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.petro-hero-badges strong {
  display: block;
  color: #ffffff;
  font-size: 25px;
  margin-bottom: 6px;
}

.petro-hero-badges span {
  color: rgba(255,255,255,0.70);
  font-size: 14px;
}

.petro-intro-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--warm) 100%);
}

.petro-intro-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 70px;
  align-items: start;
}

.petro-intro-copy h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -2px;
  max-width: 620px;
}

.petro-intro-text {
  padding-top: 10px;
}

.petro-intro-text p,
.services-intro-text p,
.petro-editorial-copy p {
  font-size: 18px;
  color: #4e575e;
}

.petro-intro-text p + p,
.services-intro-text p + p {
  margin-top: 18px;
}

.petro-showcase-section {
  background:
    radial-gradient(circle at 10% 16%, rgba(241,90,11,0.08), transparent 32%),
    var(--warm);
}

.petro-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.petro-project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  text-decoration: none;
  background: #111;
  box-shadow: 0 28px 80px rgba(15,23,42,0.16);
  isolation: isolate;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-radius 0.45s ease;
}

.petro-card-large {
  min-height: 500px;
}

.petro-project-card.tilt-card:nth-child(2) { transform: rotate(-1.5deg); }
.petro-project-card.tilt-card:nth-child(3) { transform: rotate(1.2deg); }

.petro-project-card:hover {
  transform: translateY(-10px) rotate(0deg) !important;
  border-radius: 34px;
  box-shadow: 0 36px 100px rgba(15,23,42,0.24);
}

.petro-project-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.8s ease;
}

.petro-project-card:hover img {
  transform: scale(1.12);
}

.petro-project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 30% 20%, rgba(241,90,11,0.24), transparent 36%),
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.78) 100%);
}

.petro-project-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  transition: transform 0.45s ease;
}

.petro-project-card:hover .petro-project-content {
  transform: translateY(-10px);
}

.petro-project-content span {
  display: inline-block;
  color: #ffad72;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.petro-project-content h3 {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -1.2px;
  max-width: 560px;
}

.petro-project-content p {
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-top: 12px;
  line-height: 1.55;
}

.petro-services-snapshot,
.petro-clients-preview {
  background: linear-gradient(180deg, var(--concrete) 0%, var(--warm) 100%);
}

.petro-service-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.petro-service-tile {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.petro-service-tile::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: var(--orange-soft);
  filter: blur(14px);
}

.petro-service-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(241,90,11,0.32);
  box-shadow: 0 26px 80px rgba(15,23,42,0.12);
}

.petro-service-tile span {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.petro-service-tile h3 {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.7px;
  margin-bottom: 14px;
}

.petro-service-tile p {
  position: relative;
  z-index: 2;
  color: var(--muted);
  line-height: 1.62;
}

.petro-centered-action {
  text-align: center;
  margin-top: 38px;
}

.petro-accreditation-feature {
  background:
    radial-gradient(circle at 78% 18%, rgba(241,90,11,0.20), transparent 34%),
    linear-gradient(135deg, var(--graphite) 0%, var(--dark) 100%);
  color: #ffffff;
}

.petro-accreditation-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: center;
}

.petro-accreditation-feature .eyebrow,
.petro-band-content .eyebrow,
.services-closing-content .eyebrow {
  color: #ffad72;
}

.petro-accreditation-copy h2,
.petro-band-content h2,
.services-closing-content h2 {
  color: #ffffff;
}

.petro-accreditation-copy h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -2px;
  max-width: 780px;
}

.petro-accreditation-copy p {
  color: rgba(255,255,255,0.76);
  font-size: 18px;
  max-width: 720px;
  margin-bottom: 28px;
}

.petro-ema-card,
.petro-accreditation-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 90px rgba(0,0,0,0.30);
  text-align: center;
  backdrop-filter: blur(12px);
}

.petro-ema-card span,
.petro-accreditation-card span {
  color: #ffad72;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.petro-ema-card strong,
.petro-accreditation-card strong {
  color: #ffffff;
  font-size: 82px;
  line-height: 1;
  letter-spacing: -4px;
  margin: 18px 0 12px;
}

.petro-ema-card p,
.petro-accreditation-card p {
  color: rgba(255,255,255,0.76);
  font-weight: 800;
}

.petro-editorial-section {
  background: #ffffff;
}

.petro-editorial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.petro-editorial-image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(15,23,42,0.16);
}

.petro-editorial-image::after {
  content: "CONTROL TÉCNICO";
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

html[lang="en"] .petro-editorial-image::after {
  content: "TECHNICAL CONTROL";
}

.petro-editorial-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.petro-editorial-image:hover img {
  transform: scale(1.08);
}

.petro-editorial-copy h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -2px;
}

.petro-mini-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.petro-mini-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: var(--warm);
  border: 1px solid rgba(31,36,39,0.08);
}

.petro-mini-list strong {
  color: var(--orange);
  font-size: 15px;
  font-weight: 900;
}

.petro-mini-list span {
  color: var(--graphite);
  font-weight: 800;
}

.petro-visual-band {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
  color: #ffffff;
  isolation: isolate;
}

.petro-band-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.petro-band-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
}

.petro-band-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 20% 75%, rgba(241,90,11,0.32), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.56) 48%, rgba(0,0,0,0.26) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.76) 100%);
}

.petro-band-content {
  position: relative;
  z-index: 3;
  max-width: 930px;
}

.petro-band-content h2 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -2.4px;
  max-width: 900px;
  margin-bottom: 28px;
}

.petro-client-card {
  width: min(100%, 520px);
  margin: 0 auto;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.petro-client-card strong {
  display: block;
  color: var(--graphite);
  font-size: 32px;
  letter-spacing: -0.8px;
}

.petro-client-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* =========================================================
   HOME — VIDEO INSTITUCIONAL
========================================================= */

.petro-video-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(241, 90, 11, 0.18), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(255, 154, 82, 0.12), transparent 30%),
    linear-gradient(135deg, #202427 0%, #111827 48%, #0b0d0e 100%);
  color: #ffffff;
}

.petro-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  opacity: 0.38;
  pointer-events: none;
}

.petro-video-section .container {
  position: relative;
  z-index: 2;
}

.petro-video-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.petro-video-copy .eyebrow {
  color: #ffad72;
}

.petro-video-copy h2 {
  color: #ffffff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.3px;
  margin-bottom: 20px;
  max-width: 620px;
}

.petro-video-copy p {
  color: rgba(255,255,255,0.76);
  font-size: 17px;
  line-height: 1.75;
  max-width: 620px;
}

.petro-video-card {
  position: relative;
  padding: 14px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.petro-video-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(241, 90, 11, 0.20);
  filter: blur(50px);
  pointer-events: none;
}

.petro-video-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none;
  z-index: 3;
}

.petro-video-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #0b0f1a;
}

.petro-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .petro-video-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .petro-video-copy {
    text-align: center;
  }

  .petro-video-copy h2,
  .petro-video-copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .petro-video-card {
    padding: 8px;
    border-radius: 22px;
  }

  .petro-video-card::after {
    inset: 8px;
    border-radius: 16px;
  }

  .petro-video-frame {
    border-radius: 16px;
  }
}

/* =========================================================
   ABOUT — OPERATING AREAS
========================================================= */

.petro-operations-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(241,90,11,0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--warm) 100%);
}

.petro-operations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.petro-operation-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.petro-operation-card:hover {
  transform: translateY(-8px);
  border-color: rgba(241,90,11,0.34);
  box-shadow: 0 26px 80px rgba(15,23,42,0.14);
}

.petro-operation-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #111;
}

.petro-operation-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(241,90,11,0.22), transparent 38%),
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.48) 100%);
  z-index: 2;
}

.petro-operation-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.75s ease;
}

.petro-operation-card:hover .petro-operation-media img {
  transform: scale(1.11);
}

.petro-operation-content {
  padding: 26px;
}

.petro-operation-content span {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.petro-operation-content h3 {
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.petro-operation-content p {
  color: var(--muted);
  line-height: 1.62;
  margin-bottom: 18px;
}

.petro-operation-content a {
  display: inline-flex;
  align-items: center;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.petro-operation-content a:hover {
  color: var(--graphite);
}

@media (max-width: 1100px) {
  .petro-operations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .petro-operations-grid {
    grid-template-columns: 1fr;
  }

  .petro-operation-media {
    height: 240px;
  }
}

/* =========================================================
   10 — SERVICES PAGE
========================================================= */

.services-hero-pro {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
  color: #ffffff;
  isolation: isolate;
}

.services-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.services-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  animation: petroHeroSlowZoom 18s ease-in-out infinite alternate;
}

.services-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 18% 78%, rgba(241,90,11,0.36), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 48%, rgba(0,0,0,0.24) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.72) 100%);
}

.services-hero-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(255,255,255,0.040) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.040) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  opacity: 0.45;
  pointer-events: none;
}

.services-hero-content {
  position: relative;
  z-index: 4;
  max-width: 980px;
  padding: 115px 0 90px;
}

.services-hero-content .eyebrow {
  color: #ffad72;
}

.services-hero-content h1 {
  color: #ffffff;
  max-width: 980px;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin-bottom: 26px;
}

.services-hero-content p {
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  font-size: 19px;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.services-intro {
  background: #ffffff;
}

.services-intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.services-intro-copy h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.services-index-section {
  background: linear-gradient(180deg, var(--concrete) 0%, var(--warm) 100%);
}

.services-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.services-index-card {
  display: grid;
  gap: 18px;
  min-height: 180px;
  align-content: space-between;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.services-index-card:hover {
  transform: translateY(-7px);
  border-color: rgba(241,90,11,0.34);
  box-shadow: 0 26px 80px rgba(15,23,42,0.13);
}

.services-index-card span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.services-index-card strong {
  color: var(--graphite);
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.5px;
}

.services-detail-section {
  scroll-margin-top: 110px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: stretch;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(15,23,42,0.11);
}

.service-detail-card.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.service-detail-card.reverse .service-detail-media {
  order: 2;
}

.service-detail-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 26px;
  background: #111;
}

.service-detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 24%, rgba(241,90,11,0.18), transparent 38%),
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.34));
  z-index: 2;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.8s ease;
}

.service-detail-card:hover .service-detail-media img {
  transform: scale(1.10);
}

.service-detail-content {
  padding: 32px 22px 32px 0;
  align-self: center;
}

.service-detail-card.reverse .service-detail-content {
  padding: 32px 0 32px 22px;
}

.service-kicker {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.service-detail-content h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin-bottom: 18px;
}

.service-detail-content > p {
  color: #4e575e;
  font-size: 17px;
  margin-bottom: 28px;
}

.service-columns,
.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.service-columns h3,
.materials-grid h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.service-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--warm);
  border: 1px solid rgba(31,36,39,0.08);
  color: #4e575e;
  line-height: 1.6;
}

.service-note strong {
  color: var(--graphite);
}

.services-closing-band {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background:
    radial-gradient(circle at 18% 70%, rgba(241,90,11,0.22), transparent 34%),
    linear-gradient(135deg, var(--graphite) 0%, var(--dark) 100%);
  color: #ffffff;
}

.services-closing-content {
  max-width: 920px;
  text-align: center;
}

.services-closing-content h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -2.2px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.services-closing-content p {
  color: rgba(255,255,255,0.76);
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 18px;
}



/* =========================================================
   GALLERY PAGE
========================================================= */

.gallery-intro-section {
  background:
    radial-gradient(circle at 12% 16%, rgba(241,90,11,0.08), transparent 32%),
    linear-gradient(180deg, var(--concrete) 0%, var(--warm) 100%);
}

.gallery-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.gallery-category-card {
  display: grid;
  gap: 16px;
  min-height: 145px;
  align-content: space-between;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.30s ease, box-shadow 0.30s ease, border-color 0.30s ease;
}

.gallery-category-card:hover {
  transform: translateY(-7px);
  border-color: rgba(241,90,11,0.34);
  box-shadow: 0 24px 70px rgba(15,23,42,0.13);
}

.gallery-category-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.gallery-category-card strong {
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.16;
  letter-spacing: -0.3px;
}

.gallery-area-section {
  scroll-margin-top: 120px;
}

.gallery-feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.88fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}

.gallery-feature-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 28px;
  background: #111;
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(15,23,42,0.15);
  isolation: isolate;
}

.gallery-feature-card.large {
  min-height: 460px;
}

.gallery-feature-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.8s ease;
}

.gallery-feature-card:hover img {
  transform: scale(1.11);
}

.gallery-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 28% 22%, rgba(241,90,11,0.22), transparent 38%),
    linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.78) 100%);
}

.gallery-feature-card div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 3;
}

.gallery-feature-card span {
  display: inline-block;
  color: #ffad72;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gallery-feature-card h3 {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: -1px;
  max-width: 520px;
}

@media (max-width: 1100px) {
  .gallery-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery-feature-card,
  .gallery-feature-card.large {
    min-height: 420px;
  }
}

@media (max-width: 700px) {
  .gallery-category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-category-card {
    min-height: 130px;
    padding: 20px;
  }

  .gallery-feature-card,
  .gallery-feature-card.large {
    min-height: 340px;
    border-radius: 22px;
  }

  .gallery-feature-card div {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
}

@media (max-width: 430px) {
  .gallery-category-grid {
    grid-template-columns: 1fr;
  }

  .gallery-feature-card,
  .gallery-feature-card.large {
    min-height: 310px;
  }
}

/* =========================================================
   11 — GALLERY / CLIENTS / LEGAL SUPPORT
========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,14,0.02) 0%, rgba(11,13,14,0.42) 100%),
    radial-gradient(circle at 30% 30%, rgba(241,90,11,0.14), transparent 40%);
}

.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 30px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.client-logo-card strong {
  font-size: 24px;
  color: var(--graphite);
}

.legal-hero {
  background:
    radial-gradient(circle at 20% 25%, rgba(241,90,11,0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--warm) 100%);
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.legal-content a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 800;
}

.legal-updated {
  color: var(--muted-2) !important;
  font-size: 14px;
  margin-bottom: 34px !important;
}

/* =========================================================
   12 — ACCREDITATION PAGE
========================================================= */

.accreditation-hero-pro {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
  color: #ffffff;
  isolation: isolate;
}

.accreditation-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.accreditation-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  animation: petroHeroSlowZoom 18s ease-in-out infinite alternate;
}

.accreditation-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 18% 78%, rgba(241,90,11,0.34), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.64) 48%, rgba(0,0,0,0.26) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.76) 100%);
}

.accreditation-hero-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(255,255,255,0.040) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.040) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  opacity: 0.45;
  pointer-events: none;
}

.accreditation-hero-content {
  position: relative;
  z-index: 4;
  max-width: 980px;
  padding: 115px 0 90px;
}

.accreditation-hero-content .eyebrow {
  color: #ffad72;
}

.accreditation-hero-content h1 {
  color: #ffffff;
  max-width: 980px;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -3.2px;
  margin-bottom: 26px;
}

.accreditation-hero-content p {
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  font-size: 19px;
}

.accreditation-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.accreditation-intro-section {
  background: #ffffff;
}

.accreditation-intro-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 70px;
  align-items: start;
}

.accreditation-intro-copy h2,
.accreditation-feature-copy h2,
.accreditation-editorial-copy h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.accreditation-intro-text p {
  font-size: 18px;
  color: #4e575e;
}

.accreditation-intro-text p + p {
  margin-top: 18px;
}

.accreditation-card-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(241,90,11,0.20), transparent 34%),
    linear-gradient(135deg, #202427 0%, #0b0d0e 100%);
  color: #ffffff;
}

.accreditation-feature-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: center;
}

.accreditation-certificate-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 90px rgba(0,0,0,0.30);
  text-align: center;
  backdrop-filter: blur(12px);
}

.accreditation-certificate-card span {
  color: #ffad72;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.accreditation-certificate-card strong {
  color: #ffffff;
  font-size: 88px;
  line-height: 1;
  letter-spacing: -4px;
  margin: 20px 0 12px;
}

.accreditation-certificate-card p {
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  margin-bottom: 8px;
}

.accreditation-certificate-card small {
  color: rgba(255,255,255,0.68);
  font-weight: 800;
}

.accreditation-feature-copy .eyebrow {
  color: #ffad72;
}

.accreditation-feature-copy h2 {
  color: #ffffff;
  max-width: 820px;
}

.accreditation-feature-copy p {
  color: rgba(255,255,255,0.76);
  font-size: 18px;
  max-width: 760px;
  margin-bottom: 30px;
}

.accreditation-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.accreditation-points div {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.accreditation-points strong {
  display: block;
  color: #ffad72;
  margin-bottom: 10px;
}

.accreditation-points span {
  color: rgba(255,255,255,0.74);
  line-height: 1.55;
}

.accreditation-why-section {
  background:
    linear-gradient(180deg, #eef0f1 0%, #f7f5f1 100%);
}

.accreditation-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.accreditation-benefit {
  min-height: 280px;
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(31,36,39,0.10);
  box-shadow: 0 18px 50px rgba(15,23,42,0.08);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.accreditation-benefit:hover {
  transform: translateY(-8px);
  border-color: rgba(241,90,11,0.34);
  box-shadow: 0 26px 80px rgba(15,23,42,0.13);
}

.accreditation-benefit span {
  display: inline-block;
  color: #f15a0b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

.accreditation-benefit h3 {
  font-size: 25px;
  line-height: 1.12;
  margin-bottom: 14px;
}

.accreditation-benefit p {
  color: #5f686f;
}

.accreditation-editorial-section {
  background: #ffffff;
}

.accreditation-editorial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.accreditation-editorial-image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(15,23,42,0.16);
}

.accreditation-editorial-image::after {
  content: "LABORATORIO ACREDITADO";
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

html[lang="en"] .accreditation-editorial-image::after {
  content: "ACCREDITED LABORATORY";
}

.accreditation-editorial-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.8s ease;
}

.accreditation-editorial-image:hover img {
  transform: scale(1.08);
}

.accreditation-editorial-copy p {
  font-size: 18px;
  color: #4e575e;
}

.accreditation-mini-grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.accreditation-mini-grid div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f5f1;
  border: 1px solid rgba(31,36,39,0.08);
}

.accreditation-mini-grid strong {
  color: #f15a0b;
  font-size: 15px;
  font-weight: 900;
}

.accreditation-mini-grid span {
  color: #202427;
  font-weight: 800;
}

.accreditation-process-band {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
  color: #ffffff;
  isolation: isolate;
}

.accreditation-process-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.accreditation-process-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
}

.accreditation-process-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 20% 75%, rgba(241,90,11,0.32), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.56) 48%, rgba(0,0,0,0.26) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.76) 100%);
}

.accreditation-process-content {
  position: relative;
  z-index: 3;
  max-width: 930px;
}

.accreditation-process-content .eyebrow {
  color: #ffad72;
}

.accreditation-process-content h2 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -2.4px;
  max-width: 900px;
}

.accreditation-process-content p {
  color: rgba(255,255,255,0.76);
  max-width: 720px;
  font-size: 18px;
}

.accreditation-download-section {
  background:
    linear-gradient(180deg, #eef0f1 0%, #f7f5f1 100%);
}

.accreditation-download-box {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(31,36,39,0.10);
  box-shadow: 0 24px 70px rgba(15,23,42,0.10);
}

.accreditation-download-box h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.accreditation-download-box p {
  max-width: 680px;
}

@media (max-width: 1100px) {
  .accreditation-feature-layout,
  .accreditation-editorial-grid,
  .accreditation-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .accreditation-certificate-card {
    max-width: 430px;
  }

  .accreditation-points {
    grid-template-columns: 1fr;
  }

  .accreditation-benefits-grid {
    grid-template-columns: 1fr;
  }

  .accreditation-download-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .accreditation-hero-content {
    padding: 92px 0 76px;
    text-align: center;
  }

  .accreditation-hero-content h1 {
    font-size: clamp(38px, 10vw, 54px);
    letter-spacing: -2px;
  }

  .accreditation-hero-content p {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .accreditation-hero-actions {
    justify-content: center;
  }

  .accreditation-hero-actions .btn {
    width: 100%;
    max-width: 290px;
  }

  .accreditation-editorial-image,
  .accreditation-editorial-image img {
    min-height: 360px;
  }

  .accreditation-process-band {
    min-height: 480px;
    text-align: center;
  }

  .accreditation-process-content {
    margin-left: auto;
    margin-right: auto;
  }

  .accreditation-certificate-card {
    min-height: 280px;
    padding: 30px 24px;
  }

  .accreditation-certificate-card strong {
    font-size: 66px;
  }

  .accreditation-download-box {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .accreditation-download-box .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .accreditation-hero-content h1 {
    font-size: 36px;
  }

  .accreditation-editorial-image,
  .accreditation-editorial-image img {
    min-height: 310px;
  }
}

/* =========================================================
   99 — RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .site-logo-horizontal {
    width: 220px;
    max-height: 58px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 14px;
  }

  .capabilities-grid,
  .gallery-grid,
  .petro-service-tiles,
  .services-index-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .petro-showcase-grid,
  .petro-accreditation-layout,
  .petro-editorial-grid,
  .petro-intro-grid,
  .service-detail-card,
  .service-detail-card.reverse,
  .services-intro-grid {
    grid-template-columns: 1fr;
  }

  .petro-accreditation-layout,
  .petro-editorial-grid,
  .petro-intro-grid {
    gap: 40px;
  }

  .petro-project-card,
  .petro-card-large {
    min-height: 420px;
    transform: none !important;
  }

  .petro-ema-card,
.petro-accreditation-card {
    max-width: 420px;
  }

  .service-detail-card.reverse .service-detail-media {
    order: 0;
  }

  .service-detail-content,
  .service-detail-card.reverse .service-detail-content {
    padding: 18px 8px 14px;
  }
}

@media (max-width: 950px) {
  .nav {
    flex-direction: column;
    gap: 14px;
  }

  nav {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch;
  }

  nav a {
    flex: 0 0 auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero h1,
  .premium-hero h1,
  .inner-hero h1 {
    margin-left: auto;
    margin-right: auto;
    font-size: 46px;
  }

  .hero p,
  .premium-hero p,
  .inner-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .split-layout,
  .contact-premium-layout,
  .accreditation-box {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .premium-form {
    position: static;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    width: 88%;
  }

  .section {
    padding: 62px 0;
  }

  .header {
    padding: 10px 0;
  }

  .logo-link {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .site-logo-horizontal {
    width: 190px;
    max-height: 54px;
  }

  nav {
    justify-content: flex-start;
  }

  nav a.active::after {
    bottom: -5px;
  }

  .hero,
  .inner-hero,
  .premium-hero {
    min-height: auto;
    padding: 76px 0 70px;
  }

  .hero h1,
  .premium-hero h1,
  .inner-hero h1,
  .services-hero-content h1 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.08;
    letter-spacing: -1.2px;
  }

  h2,
  .contact-copy h2,
  .petro-intro-copy h2,
  .petro-section-head h2,
  .petro-accreditation-copy h2,
  .petro-editorial-copy h2,
  .petro-band-content h2,
  .services-intro-copy h2,
  .service-detail-content h2,
  .services-closing-content h2 {
    font-size: clamp(27px, 7vw, 40px);
    line-height: 1.14;
    letter-spacing: -1.2px;
  }

  .hero p,
  .premium-hero p,
  .inner-hero p,
  .petro-hero p,
  .services-hero-content p {
    font-size: 16px;
    line-height: 1.58;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero-actions .btn,
  .petro-hero-actions .btn,
  .services-hero-actions .btn {
    width: 100%;
    max-width: 290px;
  }

  .petro-hero,
  .services-hero-pro {
    min-height: auto;
  }

  .petro-hero-content,
  .services-hero-content {
    padding: 92px 0 76px;
    text-align: center;
  }

  .petro-hero-actions,
  .services-hero-actions {
    justify-content: center;
  }

  .petro-hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    letter-spacing: -2px;
  }

  .petro-hero-badges {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
  }

  .capabilities-grid,
  .gallery-grid,
  .contact-audience-grid,
  .form-row,
  .petro-service-tiles,
  .services-index-grid,
  .service-columns,
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .capability-card,
  .contact-form,
  .contact-info,
  .contact-audience-grid div,
  .accreditation-box,
  .cta-box,
  .service-detail-card {
    border-radius: 18px;
  }

  .accreditation-box,
  .cta-box {
    padding: 30px 24px;
  }

  .petro-project-card,
  .petro-card-large {
    min-height: 360px;
    border-radius: 22px;
  }

  .petro-project-content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .petro-editorial-image,
  .petro-editorial-image img {
    min-height: 360px;
  }

  .petro-visual-band {
    min-height: 480px;
    text-align: center;
  }

  .petro-band-content {
    margin-left: auto;
    margin-right: auto;
  }

  .petro-ema-card,
.petro-accreditation-card {
    min-height: 260px;
    padding: 30px 24px;
  }

  .petro-ema-card strong,
.petro-accreditation-card strong {
    font-size: 64px;
  }

  .service-detail-card {
    padding: 16px;
    border-radius: 26px;
  }

  .service-detail-media,
  .service-detail-media img {
    min-height: 330px;
  }

  .services-closing-band {
    padding: 78px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .premium-footer {
    padding: 50px 0 24px;
  }

  .footer-logo {
    width: 110px;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    padding: 14px;
    border-radius: 50%;
  }

  .whatsapp-float span {
    display: none;
  }

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

@media (max-width: 430px) {
  .container {
    width: 90%;
  }

  .hero,
  .inner-hero,
  .premium-hero {
    padding: 68px 0 62px;
  }

  .hero h1,
  .premium-hero h1,
  .inner-hero h1,
  .services-hero-content h1 {
    font-size: 31px;
  }

  .petro-hero h1 {
    font-size: 36px;
  }

  .btn {
    padding: 12px 16px;
  }

  .hero-stats div,
  .card,
  .capability-card {
    padding: 22px;
  }

  .petro-project-card,
  .petro-card-large {
    min-height: 330px;
  }

  .petro-service-tile {
    min-height: auto;
    padding: 26px 22px;
  }

  .petro-client-card strong {
    font-size: 26px;
  }

  .service-detail-media,
  .service-detail-media img {
    min-height: 290px;
  }

  .services-index-card {
    min-height: 150px;
  }
}

@media (max-width: 420px) {
  .site-logo-horizontal {
    width: 165px;
    max-height: 48px;
  }
}



/* =========================================================
   PETROLOGÍA THEME TOGGLE — LIGHT / DARK
========================================================= */
.logo-link .site-logo-dark { display: none; }
:root[data-theme="dark"] .logo-link .site-logo-light { display: none; }
:root[data-theme="dark"] .logo-link .site-logo-dark { display: block; }

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.78);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
  overflow: hidden;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(241,90,11,.45);
}

.theme-icon {
  position: absolute;
  font-size: 18px;
  line-height: 1;
  transition: opacity .25s ease, transform .25s ease;
}

.theme-icon-sun {
  color: var(--orange);
  opacity: 0;
  transform: rotate(-60deg) scale(.65);
}

.theme-icon-moon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--graphite);
  color: transparent;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle.is-light .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle.is-light .theme-icon-moon {
  opacity: 0;
  transform: rotate(60deg) scale(.65);
}

.lang-link.active {
  color: var(--orange);
  font-weight: 800;
}

:root[data-theme="dark"] {
  --paper: #111315;
  --warm: #0b0d0e;
  --concrete: #13171a;
  --concrete-2: #1b2024;
  --graphite: #f5f5f5;
  --graphite-2: #d7dde1;
  --dark: #070809;
  --text: #f4f5f5;
  --muted: #c1c8cc;
  --muted-2: #9ea7ad;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.20);
  --shadow-soft: 0 18px 50px rgba(0,0,0,0.28);
  --shadow-card: 0 24px 70px rgba(0,0,0,0.38);
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .section,
:root[data-theme="dark"] .light,
:root[data-theme="dark"] .accreditation-intro-section,
:root[data-theme="dark"] .accreditation-card-section,
:root[data-theme="dark"] .accreditation-logo-section,
:root[data-theme="dark"] .accreditation-why-section,
:root[data-theme="dark"] .petro-intro-section,
:root[data-theme="dark"] .services-intro,
:root[data-theme="dark"] .services-index-section {
  background: var(--warm) !important;
}

:root[data-theme="dark"] .header {
  background: rgba(10, 11, 12, 0.84);
  border-bottom-color: rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .premium-card,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .premium-form,
:root[data-theme="dark"] .accreditation-certificate-card,
:root[data-theme="dark"] .accreditation-logo-box,
:root[data-theme="dark"] .accreditation-benefit,
:root[data-theme="dark"] .accreditation-editorial-copy,
:root[data-theme="dark"] .service-detail-card,
:root[data-theme="dark"] .services-index-card,
:root[data-theme="dark"] .petro-operation-card,
:root[data-theme="dark"] .contact-audience-grid > div,
:root[data-theme="dark"] .contact-info > div {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: var(--shadow-card);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.16);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: rgba(255,255,255,0.62);
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}

:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .premium-footer {
  background: #090a0b !important;
}

@media (max-width: 768px) {
  .theme-toggle { min-width: 34px; }
}

:root[data-theme="dark"] .header nav a:not(.btn) {
  color: #f7f7f7;
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,.07);
  color: #f7f7f7;
  border-color: rgba(255,255,255,.18);
}

:root[data-theme="dark"] .theme-icon-moon {
  background: #f7f7f7;
}


/* =========================================================
   PETROLOGÍA PATCH — IMÁGENES, GALERÍA Y TEMA OSCURO
========================================================= */

/* Footer: el logo horizontal ya incluye la palabra Petrología */
.footer-brand .footer-logo {
  margin-bottom: 22px;
}

/* EMA: versión clara/oscura */
.ema-logo-dark {
  display: none !important;
}

:root[data-theme="dark"] .ema-logo-light {
  display: none !important;
}

:root[data-theme="dark"] .ema-logo-dark {
  display: block !important;
}

/* Refuerzo general de lectura en modo oscuro */
:root[data-theme="dark"] p,
:root[data-theme="dark"] .section p,
:root[data-theme="dark"] .petro-section-head p,
:root[data-theme="dark"] .petro-intro-text p,
:root[data-theme="dark"] .services-intro-text p,
:root[data-theme="dark"] .petro-editorial-copy p,
:root[data-theme="dark"] .service-detail-content > p,
:root[data-theme="dark"] .accreditation-editorial-copy p,
:root[data-theme="dark"] .service-note,
:root[data-theme="dark"] .accreditation-intro-text p {
  color: rgba(245,245,245,0.78) !important;
}

:root[data-theme="dark"] strong,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] .gallery-category-card strong,
:root[data-theme="dark"] .card h3,
:root[data-theme="dark"] .premium-card h3 {
  color: #ffffff;
}

/* Cards y cajas que quedaban blancas/grises en dark mode */
:root[data-theme="dark"] .gallery-category-card,
:root[data-theme="dark"] .accreditation-mini-grid div,
:root[data-theme="dark"] .accreditation-logo-box,
:root[data-theme="dark"] .accreditation-editorial-copy,
:root[data-theme="dark"] .accreditation-certificate-card,
:root[data-theme="dark"] .cta-box,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .premium-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035)) !important;
  border-color: rgba(255,255,255,0.13) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.36) !important;
}

:root[data-theme="dark"] .gallery-category-card span,
:root[data-theme="dark"] .card-number,
:root[data-theme="dark"] .accreditation-mini-grid strong {
  color: var(--orange) !important;
}

:root[data-theme="dark"] .gallery-category-card:hover {
  border-color: rgba(241,90,11,0.44) !important;
  background: linear-gradient(145deg, rgba(241,90,11,0.15), rgba(255,255,255,0.045)) !important;
}

:root[data-theme="dark"] .gallery-intro-section,
:root[data-theme="dark"] .light.gallery-area-section,
:root[data-theme="dark"] .light,
:root[data-theme="dark"] .accreditation-logo-section,
:root[data-theme="dark"] .accreditation-why-section {
  background: #0b0d0e !important;
}

:root[data-theme="dark"] .accreditation-card-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(241,90,11,0.14), transparent 34%),
    linear-gradient(135deg, #15191c 0%, #08090a 100%) !important;
}

:root[data-theme="dark"] .cta-section,
:root[data-theme="dark"] .services-closing-band {
  background:
    radial-gradient(circle at 18% 70%, rgba(241,90,11,0.22), transparent 34%),
    linear-gradient(135deg, #17191b 0%, #070809 100%) !important;
}

/* Bloque visual para proyectos */
.projects-visual-grid {
  margin: 42px 0 54px;
}

.projects-visual-grid .gallery-feature-card {
  min-height: 340px;
}

.projects-visual-grid .gallery-feature-card.large {
  min-height: 420px;
}

@media (max-width: 700px) {
  .projects-visual-grid .gallery-feature-card,
  .projects-visual-grid .gallery-feature-card.large {
    min-height: 340px;
  }
}

/* =========================================================
   PETROLOGÍA PATCH V3 — AJUSTES FINOS DE CONTRASTE DARK
   Corrige tarjetas claras con texto claro, cajas de laboratorio,
   documento de acreditación y mini-listas en modo oscuro.
========================================================= */

[data-theme="dark"] .accreditation-download-section,
[data-theme="dark"] .services-index-section,
[data-theme="dark"] .gallery-intro-section,
[data-theme="dark"] .light,
[data-theme="dark"] .section.light {
  background: #0b0d0e !important;
}

[data-theme="dark"] .accreditation-download-box,
[data-theme="dark"] .services-index-card,
[data-theme="dark"] .gallery-category-card,
[data-theme="dark"] .petro-mini-list div,
[data-theme="dark"] .accreditation-mini-grid div,
[data-theme="dark"] .card,
[data-theme="dark"] .premium-card,
[data-theme="dark"] .cta-box,
[data-theme="dark"] .service-note,
[data-theme="dark"] .accreditation-editorial-copy,
[data-theme="dark"] .service-detail-card {
  background:
    radial-gradient(circle at 88% 18%, rgba(241,90,11,0.075), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035)) !important;
  border-color: rgba(255,255,255,0.14) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.38) !important;
}

[data-theme="dark"] .accreditation-download-box h2,
[data-theme="dark"] .services-index-card strong,
[data-theme="dark"] .gallery-category-card strong,
[data-theme="dark"] .petro-mini-list span,
[data-theme="dark"] .accreditation-mini-grid span,
[data-theme="dark"] .card p strong,
[data-theme="dark"] .premium-card p strong,
[data-theme="dark"] .service-note strong {
  color: #ffffff !important;
}

[data-theme="dark"] .accreditation-download-box p,
[data-theme="dark"] .services-index-card p,
[data-theme="dark"] .gallery-category-card p,
[data-theme="dark"] .petro-mini-list span,
[data-theme="dark"] .accreditation-mini-grid span,
[data-theme="dark"] .card p,
[data-theme="dark"] .premium-card p,
[data-theme="dark"] .service-note,
[data-theme="dark"] .service-detail-content p,
[data-theme="dark"] .accreditation-editorial-copy p {
  color: rgba(245,245,245,0.82) !important;
}

[data-theme="dark"] .accreditation-download-box .eyebrow,
[data-theme="dark"] .services-index-card span,
[data-theme="dark"] .gallery-category-card span,
[data-theme="dark"] .petro-mini-list strong,
[data-theme="dark"] .accreditation-mini-grid strong,
[data-theme="dark"] .card-number {
  color: var(--orange) !important;
}

[data-theme="dark"] .services-index-card:hover,
[data-theme="dark"] .gallery-category-card:hover,
[data-theme="dark"] .petro-mini-list div:hover,
[data-theme="dark"] .accreditation-mini-grid div:hover {
  border-color: rgba(241,90,11,0.42) !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(241,90,11,0.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045)) !important;
}

/* Evita que los CTA o tarjetas claras hereden texto blanco sobre fondo blanco */
[data-theme="dark"] .accreditation-download-box,
[data-theme="dark"] .services-index-card,
[data-theme="dark"] .gallery-category-card,
[data-theme="dark"] .petro-mini-list div,
[data-theme="dark"] .accreditation-mini-grid div {
  color: #f5f5f5 !important;
}

@media (max-width: 768px) {
  [data-theme="dark"] .accreditation-download-box {
    gap: 24px;
  }
}


/* =========================================================
   PETROLOGÍA PATCH V4 — LOGO LIMPIO, HOME CARDS Y EMA
   Ajustes finales solicitados:
   - Tarjetas de inicio en modo oscuro
   - Logo horizontal sin elemento gráfico duplicado
   - Sección EMA con mejor composición en claro y oscuro
========================================================= */

/* 1) Tarjetas de servicios en el inicio: evitar fondo blanco + texto claro */
:root[data-theme="dark"] .petro-service-tile,
[data-theme="dark"] .petro-service-tile {
  background:
    radial-gradient(circle at 88% 14%, rgba(241,90,11,0.08), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035)) !important;
  border-color: rgba(255,255,255,0.14) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.38) !important;
  color: #f5f5f5 !important;
}

:root[data-theme="dark"] .petro-service-tile h3,
[data-theme="dark"] .petro-service-tile h3 {
  color: #ffffff !important;
}

:root[data-theme="dark"] .petro-service-tile p,
[data-theme="dark"] .petro-service-tile p {
  color: rgba(245,245,245,0.82) !important;
}

:root[data-theme="dark"] .petro-service-tile span,
[data-theme="dark"] .petro-service-tile span {
  color: var(--orange) !important;
}

:root[data-theme="dark"] .petro-service-tile::after,
[data-theme="dark"] .petro-service-tile::after {
  background: rgba(241,90,11,0.16) !important;
  opacity: 0.9;
}

/* 2) Sección del reconocimiento EMA: composición equilibrada en ambos temas */
.accreditation-logo-box {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  padding: clamp(38px, 5vw, 72px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 22%, rgba(241,90,11,0.08), transparent 35%),
    #ffffff;
  border: 1px solid rgba(31,36,39,0.08);
  box-shadow: 0 24px 80px rgba(15,23,42,0.10);
}

.accreditation-logo-copy {
  max-width: 760px;
}

.accreditation-logo-copy .eyebrow {
  margin-bottom: 18px;
}

.accreditation-logo-copy h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -1.8px;
}

.accreditation-logo-copy p {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.72;
  color: #4e575e;
}

.accreditation-logo-display {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.accreditation-logo-display img {
  display: block;
  width: min(100%, 560px);
  max-height: 310px;
  height: auto;
  object-fit: contain;
}

/* Imagen EMA según tema */
.ema-logo-dark {
  display: none !important;
}

:root[data-theme="dark"] .ema-logo-light,
[data-theme="dark"] .ema-logo-light {
  display: none !important;
}

:root[data-theme="dark"] .ema-logo-dark,
[data-theme="dark"] .ema-logo-dark {
  display: block !important;
}

/* EMA en modo oscuro: mantener estructura, no pegar el título a la esquina */
:root[data-theme="dark"] .accreditation-logo-box,
[data-theme="dark"] .accreditation-logo-box {
  background:
    radial-gradient(circle at 82% 22%, rgba(241,90,11,0.11), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)) !important;
  border-color: rgba(255,255,255,0.13) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.40) !important;
}

:root[data-theme="dark"] .accreditation-logo-copy h2,
[data-theme="dark"] .accreditation-logo-copy h2 {
  color: #ffffff !important;
}

:root[data-theme="dark"] .accreditation-logo-copy p,
[data-theme="dark"] .accreditation-logo-copy p {
  color: rgba(245,245,245,0.82) !important;
}

/* 3) Ajuste fino de tamaño del logo horizontal del header */
.site-logo-horizontal,
.logo-link .site-logo {
  max-width: 230px;
  width: 230px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .site-logo-horizontal,
  .logo-link .site-logo {
    max-width: 205px;
    width: 205px;
  }
}

@media (max-width: 520px) {
  .site-logo-horizontal,
  .logo-link .site-logo {
    max-width: 170px;
    width: 170px;
  }
}

@media (max-width: 900px) {
  .accreditation-logo-box {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .accreditation-logo-display {
    justify-content: flex-start;
  }

  .accreditation-logo-display img {
    width: min(100%, 460px);
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  .accreditation-logo-box {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .accreditation-logo-copy h2 {
    font-size: clamp(28px, 9vw, 40px);
  }
}


/* =========================================================
   PETROLOGÍA PATCH V5 — CLIENTES, MENÚ MÓVIL Y COMPACTACIÓN
========================================================= */

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--graphite);
  transition: transform .25s ease, opacity .25s ease;
}

.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.client-logo-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-logo-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: petro-clients-scroll 42s linear infinite;
}

.client-logo-marquee:hover .client-logo-track {
  animation-play-state: paused;
}

.client-logo-slot {
  width: 190px;
  height: 82px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(31,36,39,0.10);
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
  flex: 0 0 auto;
}

.client-logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .86;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.client-logo-slot:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-1px);
}

@keyframes petro-clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.legal-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(241,90,11,0.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(238,240,241,0.92));
}

.legal-content {
  max-width: 1050px;
}

.legal-updated {
  margin-bottom: 24px;
  font-weight: 800;
  color: var(--graphite-2);
}

.legal-grid {
  display: grid;
  gap: 18px;
}

.legal-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -.4px;
}

:root[data-theme="dark"] .mobile-nav-toggle {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

:root[data-theme="dark"] .mobile-nav-toggle span { background: #ffffff; }

:root[data-theme="dark"] .client-logo-marquee,
:root[data-theme="dark"] .legal-card {
  background:
    radial-gradient(circle at 88% 18%, rgba(241,90,11,0.10), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34) !important;
}

:root[data-theme="dark"] .client-logo-slot {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.16);
}

:root[data-theme="dark"] .legal-updated,
:root[data-theme="dark"] .legal-card h2 {
  color: #ffffff !important;
}

@media (max-width: 980px) {
  .header { padding: 7px 0; }

  .nav {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
  }

  .logo-link {
    width: auto !important;
    justify-content: flex-start !important;
  }

  .mobile-nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 14px;
    border-radius: 24px;
    border: 1px solid rgba(31,36,39,0.12);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 24px 80px rgba(15,23,42,0.18);
    transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
    overflow-x: visible !important;
    z-index: 10000;
  }

  body.nav-open .primary-nav {
    max-height: 78vh;
    opacity: 1;
    pointer-events: auto;
    padding: 14px;
    overflow-y: auto;
  }

  .primary-nav a,
  .primary-nav .theme-toggle {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
  }

  .primary-nav a:not(.btn) {
    padding: 10px 12px;
    background: rgba(31,36,39,0.035);
  }

  .primary-nav a.active::after { display: none; }

  .primary-nav .lang-link {
    font-size: 13px;
  }

  :root[data-theme="dark"] .primary-nav {
    background: rgba(12,14,15,0.98);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 24px 80px rgba(0,0,0,0.50);
  }

  :root[data-theme="dark"] .primary-nav a:not(.btn) {
    background: rgba(255,255,255,0.055);
  }
}

@media (max-width: 768px) {
  .section { padding: 44px 0 !important; }
  .container { width: 91% !important; }

  .site-logo-horizontal,
  .logo-link .site-logo {
    max-width: 168px !important;
    width: 168px !important;
  }

  .hero,
  .inner-hero,
  .premium-hero {
    padding: 54px 0 48px !important;
  }

  .petro-hero-content,
  .services-hero-content {
    padding: 64px 0 54px !important;
  }

  h2,
  .petro-section-head h2,
  .contact-copy h2,
  .petro-intro-copy h2,
  .petro-accreditation-copy h2,
  .petro-editorial-copy h2,
  .petro-band-content h2,
  .services-intro-copy h2,
  .service-detail-content h2,
  .services-closing-content h2 {
    font-size: clamp(24px, 6.5vw, 34px) !important;
    line-height: 1.08 !important;
    margin-bottom: 12px;
  }

  .petro-section-head,
  .section-heading {
    margin-bottom: 24px !important;
  }

  p { line-height: 1.56; }

  .grid,
  .petro-service-tiles,
  .services-index-grid,
  .materials-grid,
  .contact-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .contact-premium-layout,
  .split-layout,
  .services-intro-grid,
  .petro-editorial-grid,
  .petro-intro-grid,
  .service-detail-card,
  .service-detail-card.reverse,
  .footer-grid,
  .form-row,
  .accreditation-logo-box {
    grid-template-columns: 1fr !important;
  }

  .card,
  .capability-card,
  .services-index-card,
  .gallery-category-card,
  .contact-audience-grid div,
  .petro-service-tile,
  .legal-card {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .card h3,
  .services-index-card h3,
  .petro-service-tile h3,
  .contact-audience-grid h3 {
    font-size: 16px !important;
    line-height: 1.16 !important;
    margin-bottom: 8px !important;
  }

  .card p,
  .services-index-card p,
  .petro-service-tile p,
  .contact-audience-grid p {
    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  .petro-project-card,
  .petro-card-large {
    min-height: 280px !important;
    border-radius: 18px !important;
  }

  .petro-project-content {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
  }

  .petro-project-content h3 { font-size: 20px !important; }
  .petro-project-content p { font-size: 13px !important; line-height: 1.42 !important; }

  .client-logo-marquee {
    border-radius: 20px;
    padding: 12px 0;
  }

  .client-logo-track { gap: 12px; animation-duration: 34s; }

  .client-logo-slot {
    width: 142px;
    height: 62px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .cta-box,
  .accreditation-box,
  .accreditation-logo-box {
    padding: 24px 20px !important;
    border-radius: 20px !important;
  }

  .footer-grid { gap: 22px !important; }
}

@media (max-width: 520px) {
  .grid,
  .petro-service-tiles,
  .services-index-grid,
  .materials-grid,
  .contact-audience-grid {
    gap: 12px !important;
  }

  .site-logo-horizontal,
  .logo-link .site-logo {
    max-width: 150px !important;
    width: 150px !important;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero h1,
  .premium-hero h1,
  .inner-hero h1,
  .services-hero-content h1,
  .petro-hero h1 {
    font-size: clamp(28px, 8.6vw, 36px) !important;
    line-height: 1.05 !important;
  }

  .card,
  .capability-card,
  .services-index-card,
  .gallery-category-card,
  .contact-audience-grid div,
  .petro-service-tile {
    padding: 14px !important;
  }

  .card-number { font-size: 12px !important; }
}

@media (max-width: 380px) {
  .grid,
  .petro-service-tiles,
  .services-index-grid,
  .materials-grid,
  .contact-audience-grid {
    grid-template-columns: 1fr !important;
  }
}

.btn-disabled { opacity: .72; cursor: not-allowed; transform: none !important; }
