/* DIREER Soluciones Industriales — Marketing site */
:root {
  /* Brand guide 60-30-10: Navy / Off-white / Gold */
  --navy: #0B1D36;
  --gold: #C9A227;
  --off-white: #E8EEF4;
  --black: #0B1D36;
  --black-soft: #12253f;
  --steel: #152a48;
  --steel-mid: #1e3a5f;
  --teal: #C9A227;
  --teal-bright: #d4b345;
  --teal-deep: #a8871f;
  --orange: #C9A227;
  --orange-bright: #d4b345;
  --blue-gear: #0B1D36;
  --red-gear: #C9A227;
  --white: #ffffff;
  --muted: #9aa8b8;
  --text: #E8EEF4;
  --text-dark: #0B1D36;
  --border: rgba(232, 238, 244, 0.10);
  --border-dark: rgba(11, 29, 54, 0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Georgia", "Times New Roman", "DejaVu Serif", serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  color: var(--black);
  box-shadow: 0 10px 28px rgba(245, 127, 32, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(245, 127, 32, 0.38);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.btn-whatsapp {
  background: #25d366;
  color: #053b1d;
}

.btn-whatsapp:hover {
  background: #2fe374;
}

.btn-full {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 29, 54, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img,
.brand .brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 52vw);
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  /* logo-header already includes a light chip for contrast on dark header */
  background: transparent;
}

.brand-footer .brand-logo {
  height: 52px;
  max-width: min(260px, 70vw);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--orange-bright);
}

.about-brand-lockup {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.about-brand-lockup img {
  width: min(200px, 70%);
  height: auto;
  display: block;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
}

.header-cta {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.97);
  padding: 1rem 0 1.25rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav .container {
  display: grid;
  gap: 0.35rem;
}

.mobile-nav a {
  padding: 0.85rem 0.4rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .nav,
  .header-cta {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(245, 127, 32, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(35, 133, 125, 0.22), transparent 50%),
    linear-gradient(180deg, #000 0%, #0d1214 100%);
  padding: 3.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 5rem 0 6rem;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 184, 19, 0.28);
  background: rgba(253, 184, 19, 0.08);
  color: var(--orange-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 14ch;
}

.hero h1 span {
  color: var(--orange-bright);
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: var(--white);
  font-weight: 700;
}

.hero-card {
  background: linear-gradient(160deg, rgba(31, 122, 115, 0.35), rgba(20, 20, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #111;
}

.hero-card img.hero-photo {
  object-fit: cover;
  object-position: center;
}

.hero-card-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-card-caption strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.25rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #0d1514 0%, #0a1211 100%);
  border-block: 1px solid rgba(35, 133, 125, 0.18);
}

.section-teal {
  background:
    radial-gradient(circle at 90% 10%, rgba(253, 184, 19, 0.12), transparent 35%),
    linear-gradient(160deg, var(--teal-deep), var(--teal) 55%, #1a6b65);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-kicker {
  color: var(--orange-bright);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
  }
}

.about-copy,
.about-aside {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.about-copy strong {
  color: var(--white);
  font-weight: 700;
}

.fact-list {
  display: grid;
  gap: 1rem;
}

.fact {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fact-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.fact-value {
  color: var(--white);
  font-weight: 700;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: rgba(10, 10, 10, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  min-height: 100%;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(253, 184, 19, 0.35);
  background: rgba(10, 10, 10, 0.42);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(253, 184, 19, 0.12);
  border: 1px solid rgba(253, 184, 19, 0.22);
  color: var(--orange-bright);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.service-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.service-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.service-points li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.4;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--orange-bright);
}

.service-card.wide {
  grid-column: 1 / -1;
}

@media (min-width: 980px) {
  .service-card.wide {
    grid-column: auto;
  }
}

/* Why DIREER */
.why-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.why-card h3 {
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.why-card p {
  color: rgba(255, 255, 255, 0.74);
}

.why-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(35, 133, 125, 0.2);
  color: #7fd4cc;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.contact-panel,
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.contact-item {
  display: grid;
  gap: 0.15rem;
}

.contact-item span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item a,
.contact-item strong {
  color: var(--white);
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--orange-bright);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  padding: 0.85rem 0.95rem;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(253, 184, 19, 0.55);
  box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.form-status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #b6f5ce;
}

.form-status.err {
  background: rgba(198, 40, 40, 0.12);
  border: 1px solid rgba(198, 40, 40, 0.35);
  color: #ffc9c9;
}

/* Footer */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand .brand {
  margin-bottom: 0.15rem;
}

.footer-brand .brand-name {
  margin-top: 0.15rem;
}

.footer-copy {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col a,
.footer-col p {
  color: var(--muted);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--orange-bright);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: #6d757c;
  font-size: 0.82rem;
}

/* Utilities */
.accent-line {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-bright), var(--orange));
  margin-bottom: 1rem;
}

/* Mission / Vision */
.mv-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .mv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mv-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}

.mv-label {
  color: var(--orange-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.mv-card p:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

/* Principles */
.principles {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(35, 133, 125, 0.28);
  background: rgba(35, 133, 125, 0.08);
}

.principles-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.principles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.principles-list li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Validation */
.validation-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .validation-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
  }
}

.validation-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: var(--shadow-soft);
}

.validation-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.validation-subtitle {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.18);
}

.result-box {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(35, 133, 125, 0.35);
  background: rgba(35, 133, 125, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-box strong {
  color: var(--white);
}

/* Methodology */
.method-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .method-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.method-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  min-height: 100%;
}

.method-number {
  color: var(--orange-bright);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.method-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.method-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.deliverables {
  margin-top: 1.5rem;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.deliverables-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.deliverables-text {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.55;
}


/* Real service photos */
.service-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card .service-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #0a1628;
}
.service-card .service-body {
  padding: 1.15rem 1.25rem 1.35rem;
}
.service-card .service-body h3 {
  margin-top: 0;
}
.service-card .service-icon { display: none; }

.field-gallery {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.field-gallery-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}
.field-gallery-lead {
  margin: 0 0 1.4rem;
  opacity: 0.85;
  max-width: 40rem;
}
.field-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.field-gallery-grid figure {
  margin: 0;
  background: rgba(0,0,0,0.25);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.field-gallery-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.field-gallery-grid figcaption {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .field-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .field-gallery-grid { grid-template-columns: 1fr; }
  .service-card .service-photo { height: 160px; }
}


/* Layout adjustments after photo feedback */
.service-card {
  padding: 1.35rem 1.35rem 1.5rem;
  display: block;
  overflow: visible;
}
.service-card .service-icon { display: flex; }
.service-card .service-photo { display: none; }
.validation-grid--text {
  grid-template-columns: 1fr;
  max-width: 44rem;
}


/* Admin-only visit counter (shown with ?visitas=direer) */
.visit-stats {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: none !important;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(11, 29, 54, 0.96);
  border: 1px solid rgba(201, 162, 39, 0.55);
  color: var(--off-white);
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.visit-stats.is-visible,
.visit-stats.is-visible[hidden] {
  display: inline-flex !important;
}
.visit-stats strong {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.visit-stats .visit-stats-label {
  opacity: 0.75;
  letter-spacing: 0.02em;
}


/* First gallery image: slight emphasis, same grid */
.field-gallery-grid figure:first-child {
  grid-column: 1 / -1;
}
.field-gallery-grid figure:first-child img {
  height: 280px;
}
@media (max-width: 900px) {
  .field-gallery-grid figure:first-child img { height: 220px; }
}
