/* CMAP light visual direction
   Keeps navy and red as authority/action colors while increasing daylight,
   image clarity and reading contrast across desktop and mobile. */

:root {
  --paper: #f7f6f3;
  --surface-gray: #f4f5f4;
  --light-gray: #eef1f2;
  --muted: #5d6a73;
  --line: #dfe3e5;
  --shadow: 0 18px 46px rgba(30, 45, 61, 0.11);
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #20bd5a;
  --whatsapp-dark: #075e54;
}

body {
  background: #faf9f7;
}

/* Keep the route-loading line anchored to the exact upper edge of the hero. */
.page-transition::before {
  position: absolute;
  top: 0;
}

/* Let the photography carry the industrial character without dimming it all. */
.home-hero > img,
.page-hero > img {
  filter: brightness(1.12) saturate(1.045) contrast(0.98);
}

.home-hero {
  align-items: end;
  min-height: clamp(360px, 41vw, 480px);
  border-bottom: 4px solid var(--accent-red);
}

.page-hero {
  min-height: clamp(360px, 41vw, 480px);
}

.page-hero > img {
  filter: brightness(1.12) saturate(1.045) contrast(0.98);
}

.page-hero-content {
  padding-block: clamp(56px, 7vw, 82px);
}

.home-hero > img {
  animation-fill-mode: both;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 42, 57, 0.612) 0%, rgba(23, 42, 57, 0.378) 52%, rgba(23, 42, 57, 0.045) 84%),
    linear-gradient(0deg, rgba(23, 42, 57, 0.162) 0%, transparent 50%);
}

.page-hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 42, 57, 0.612) 0%, rgba(23, 42, 57, 0.378) 52%, rgba(23, 42, 57, 0.045) 84%),
    linear-gradient(0deg, rgba(23, 42, 57, 0.162) 0%, transparent 50%);
}

.hero-content > p,
.page-hero p {
  color: #f0f4f6;
  text-shadow: 0 1px 16px rgba(8, 20, 30, 0.26);
}

.hero-content h1,
.page-hero h1 {
  text-shadow: 0 2px 24px rgba(8, 20, 30, 0.2);
}

.hero-content {
  padding-block: clamp(56px, 7vw, 82px);
}

.hero-content h1 {
  max-width: 850px;
  margin-top: 18px;
  font-size: clamp(2.55rem, 4.4vw, 4rem);
  line-height: 1.05;
}

.hero-content > p {
  max-width: 650px;
  margin-top: 22px;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 26px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(4px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* A lighter page rhythm: warm white, soft gray, warm white. */
.intro-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(188, 49, 56, 0.07), transparent 23%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 62%, #f7f6f3 100%);
}

.trust-strip {
  background: linear-gradient(180deg, #faf9f7 0%, #f1f3f3 100%);
}

.services-preview {
  background: linear-gradient(180deg, #f4f5f4 0%, #faf9f7 100%);
}

.mineral-section {
  background:
    radial-gradient(circle at 96% 54%, rgba(188, 49, 56, 0.07), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
}

.mineral-photo-section {
  background:
    radial-gradient(circle at 92% 10%, rgba(188, 49, 56, 0.065), transparent 24%),
    linear-gradient(180deg, #f8f7f4 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
}

.mineral-photo-heading {
  max-width: 760px;
}

.mineral-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
}

.mineral-photo-card {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(78, 89, 99, 0.2);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(30, 45, 61, 0.11);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mineral-photo-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9edef;
}

.mineral-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.72, 0.2, 1), filter 0.5s ease;
}

.mineral-photo-card figcaption {
  color: var(--navy-900);
  padding: 17px 20px 18px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .mineral-photo-card:hover {
    border-color: rgba(78, 89, 99, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(30, 45, 61, 0.15);
  }

  .mineral-photo-card:hover img {
    filter: brightness(1.025) saturate(1.035);
    transform: scale(1.025);
  }
}

.coverage-section {
  background:
    radial-gradient(circle at 6% 18%, rgba(78, 89, 99, 0.1), transparent 30%),
    radial-gradient(circle at 96% 4%, rgba(188, 49, 56, 0.06), transparent 22%),
    linear-gradient(135deg, #fafaf8 0%, #eef1f1 100%);
}

.image-card,
.trust-grid article,
.form-panel {
  border-color: rgba(78, 89, 99, 0.2);
  box-shadow: var(--shadow);
}

.image-card-media img,
.mineral-visual > img {
  filter: brightness(1.06) saturate(1.02) contrast(0.98);
}

.image-card-media::after {
  background: linear-gradient(transparent, rgba(30, 45, 61, 0.1));
}

/* Image emphasis: restrained depth and zoom for pointer devices only. */
.image-card,
.service-detail-card,
.mineral-visual {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.72, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.image-card-media,
.service-detail-media {
  overflow: hidden;
}

.image-card-media img,
.service-detail-media img,
.mineral-visual > img {
  transform-origin: center center;
  transition:
    transform 0.68s cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 0.45s ease;
}

.evaluation-slider {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #1e2d3d;
}

.evaluation-slides,
.evaluation-slide {
  position: absolute;
  inset: 0;
}

.evaluation-slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease,
    transform 0.85s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.evaluation-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.service-detail-media .evaluation-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.06) saturate(0.99) contrast(0.98);
  transition: transform 0.75s cubic-bezier(0.2, 0.72, 0.2, 1), filter 0.5s ease;
}

.evaluation-slider::after {
  content: "";
  z-index: 2;
  pointer-events: none;
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(23, 42, 57, 0.32));
}

.evaluation-slider-button {
  z-index: 4;
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: rgba(23, 42, 57, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.evaluation-slider-button span {
  margin-top: -3px;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.evaluation-slider-button.is-prev {
  left: 16px;
}

.evaluation-slider-button.is-next {
  right: 16px;
}

.evaluation-slider-button:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-50%) scale(1.04);
}

.evaluation-slider-button:focus-visible,
.evaluation-slider-dot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.evaluation-slider-footer {
  z-index: 4;
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 13px;
  color: #ffffff;
  background: rgba(23, 42, 57, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transform: translateX(-50%);
}

.evaluation-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.evaluation-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.evaluation-slider-dot.is-active {
  width: 22px;
  background: #ffffff;
}

.evaluation-slider-count {
  min-width: 34px;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.evaluation-slider-autoplay {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.evaluation-slider-autoplay span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.evaluation-slider-autoplay:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.evaluation-slider-autoplay:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

/* Layered portfolio imagery inspired by stacked industrial material samples. */
.service-detail-card {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.service-detail-card .service-detail-media {
  isolation: isolate;
  background: linear-gradient(145deg, #f2f4f4 0%, #e4e8ea 100%);
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.22, 0.72, 0.2, 1);
}

.service-detail-card .service-detail-media::before,
.service-detail-card .service-detail-media::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 23px;
}

.service-detail-card .service-detail-media::before {
  z-index: 0;
  inset: 16px 30px 32px 34px;
  background: #2d4b63;
  box-shadow: 0 16px 34px rgba(30, 45, 61, 0.16);
}

.service-detail-card .service-detail-media::after {
  display: none;
}

.service-detail-card[data-step="01"] .service-detail-media::before,
.service-detail-card[data-step="04"] .service-detail-media::before {
  background: linear-gradient(135deg, #29485f 0%, #3f6078 100%);
}

.service-detail-card[data-step="02"] .service-detail-media::before,
.service-detail-card[data-step="05"] .service-detail-media::before {
  background: linear-gradient(135deg, #c8d0d5 0%, #e0e4e6 100%);
  border: 1px solid #b8c1c7;
}

.service-detail-card[data-step="03"] .service-detail-media::before {
  background: linear-gradient(135deg, #46515b 0%, #626d76 100%);
}

.service-detail-card:nth-child(even) .service-detail-media::before {
  inset: 16px 34px 32px 30px;
}

.service-detail-card .service-detail-media > img,
.service-detail-media .evaluation-slider {
  z-index: 1;
  inset: 40px 20px 22px 20px !important;
  width: calc(100% - 40px) !important;
  height: calc(100% - 62px) !important;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(30, 45, 61, 0.2);
}

.service-detail-card .service-detail-media > img {
  position: absolute;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .evaluation-slider:hover .evaluation-slide.is-active img {
    filter: brightness(1.085) saturate(1.015) contrast(0.985);
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .image-card:hover,
  .service-detail-card:hover {
    border-color: rgba(78, 89, 99, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(30, 45, 61, 0.16);
  }

  .motion-ready .image-card[data-reveal].is-revealed:hover,
  .motion-ready .service-detail-card[data-reveal].is-revealed:hover {
    transform: translateY(-4px);
  }

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

  .image-card:hover .image-card-media img,
  .mineral-visual:hover > img {
    filter: brightness(1.09) saturate(1.08) contrast(0.99);
    transform: scale(1.045);
  }

  .service-detail-card:hover .service-detail-media img {
    filter: brightness(1.09) saturate(1.08) contrast(0.99);
    transform: none;
  }

  .service-detail-card:hover .evaluation-slide img {
    filter: brightness(1.06) saturate(0.99) contrast(0.98);
    transform: none;
  }

  .service-detail-card:hover .evaluation-slider:hover .evaluation-slide.is-active img {
    filter: brightness(1.085) saturate(1.015) contrast(0.985);
    transform: none;
  }
}

@media (max-width: 860px) {
  /* The desktop accent must not become a lower edge beneath the media. */
  .service-detail-card::after {
    display: none;
  }
}

/* A restrained CMAP accent gives every principle card a clearer visual anchor. */
.principles-process li::before {
  content: "";
  z-index: 2;
  position: absolute;
  top: -1px;
  left: 22px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent-red);
  box-shadow: 0 3px 10px rgba(188, 49, 56, 0.2);
  transition: width 0.28s ease, background 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .principles-process li:hover::before {
    width: 58px;
    background: var(--accent-red-dark);
  }
}

/* Compliance changes from a heavy dark block to a transparent, authoritative panel. */
.commitment-section {
  background:
    radial-gradient(circle at 90% 12%, rgba(188, 49, 56, 0.08), transparent 28%),
    linear-gradient(135deg, #eef2f3 0%, #f9f9f7 62%, #eef1f2 100%);
  color: var(--ink);
}

.commitment-section::before {
  border-color: rgba(30, 45, 61, 0.07);
  box-shadow: 0 0 0 70px rgba(30, 45, 61, 0.025), 0 0 0 140px rgba(30, 45, 61, 0.015);
}

.commitment-section .eyebrow.light {
  color: var(--corporate-blue);
}

.commitment-copy h2,
.commitment-points h3 {
  color: var(--navy-900);
}

.commitment-copy > p,
.commitment-points p {
  color: #53626d;
}

.commitment-copy .button.light {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.commitment-copy .button.light:hover {
  background: var(--accent-red-dark);
}

.commitment-points article {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(78, 89, 99, 0.2);
  box-shadow: 0 14px 34px rgba(30, 45, 61, 0.09);
}

.commitment-points article::after {
  border-color: rgba(30, 45, 61, 0.08);
}

/* Central content stays light; navy is reserved for heroes, closing calls to action and footer. */
.model-band,
.process-section,
.integrated-compliance,
.traceability-band,
.mineral-evaluation-band,
.ssoma-band {
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 10%, rgba(188, 49, 56, 0.065), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #f3f4f2 64%, #e9edef 120%);
}

.model-band {
  border-color: rgba(78, 89, 99, 0.2);
  box-shadow: 0 24px 58px rgba(30, 45, 61, 0.12);
}

.model-band::before,
.ssoma-band::before {
  border-color: rgba(30, 45, 61, 0.07);
  box-shadow: 0 0 0 60px rgba(30, 45, 61, 0.025), 0 0 0 120px rgba(30, 45, 61, 0.015);
}

.model-band-copy > span,
.process-section .eyebrow.light,
.integrated-compliance .eyebrow.light,
.traceability-band .eyebrow.light,
.mineral-evaluation-band .eyebrow.light,
.ssoma-band .eyebrow.light {
  color: var(--corporate-blue);
}

.model-band-copy h3,
.process-section h2,
.process-grid h3,
.integrated-compliance h2,
.integrated-process-grid h3,
.traceability-grid h2,
.mineral-evaluation-band h2,
.ssoma-band h2 {
  color: var(--navy-900);
}

.model-band-copy p,
.process-grid p,
.integrated-process-grid p,
.traceability-grid p,
.traceability-grid li,
.ssoma-copy > p,
.ssoma-copy li {
  color: #53626d;
}

.model-steps li,
.integrated-compliance .integrated-process-grid article,
.integrated-compliance .integrated-process-grid article:first-child,
.ssoma-grid,
.ssoma-copy li {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(78, 89, 99, 0.2);
  box-shadow: 0 14px 34px rgba(30, 45, 61, 0.09);
}

.model-steps strong {
  color: var(--navy-900);
}

.model-steps small {
  color: #60707b;
}

.model-steps li:not(:last-child)::after {
  border-color: #eef1f2;
}

.process-grid {
  border-top-color: rgba(78, 89, 99, 0.22);
}

.process-grid article,
.process-grid article:first-child {
  border-color: rgba(78, 89, 99, 0.18);
}

.process-grid span {
  color: var(--accent-red);
}

.integrated-process-grid article > span {
  color: rgba(30, 45, 61, 0.08);
}

.traceability-grid li {
  border-bottom-color: rgba(78, 89, 99, 0.2);
}

.ssoma-grid > div:first-child {
  border-right-color: rgba(78, 89, 99, 0.2);
}

/* Contact should feel clear, approachable and easy to complete. */
.contact-section {
  background:
    radial-gradient(circle at 6% 88%, rgba(188, 49, 56, 0.06), transparent 25%),
    linear-gradient(135deg, #f6f6f3 0%, #ffffff 58%, #f1f3f3 120%);
}

.contact-copy .section-intro,
.contact-options p,
.contact-audience {
  color: #55646e;
}

.corporate-form input:not([type="checkbox"]),
.corporate-form select,
.corporate-form textarea {
  background: #fbfbfa;
  border-color: #c7d0d5;
}

/* Keep only intentional dark anchors so the overall site remains premium. */
.final-cta {
  background: linear-gradient(118deg, #bc3138 0%, #a52b32 64%, #263b4c 135%);
}

.site-footer {
  background:
    radial-gradient(circle at 88% 0%, rgba(174, 182, 189, 0.13), transparent 31%),
    linear-gradient(120deg, #1e2d3d 0%, #293c4c 72%, #40515e 155%);
}

.footer-brand strong::before {
  content: "";
  flex: none;
  width: 34px;
  height: 38px;
  background: url("/images/isotipo-cmap-footer.svg") center / contain no-repeat;
}

.footer-brand strong::after {
  display: none !important;
}

.site-footer h2 {
  font-weight: 850;
}

.cookie-policy-links {
  gap: 8px;
}

.cookie-policy-links a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cookie-policy-links a:hover {
  background: var(--accent-red-dark);
  border-color: var(--accent-red-dark);
  transform: translateY(-1px);
}

.cookie-policy-links a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.62);
  outline-offset: 3px;
}

/* WhatsApp brand treatment: official green, white mark and clear focus states. */
.whatsapp-float {
  background: var(--whatsapp-green);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 38px rgba(7, 94, 84, 0.32);
}

.whatsapp-float svg {
  color: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(7, 94, 84, 0.12));
}

.whatsapp-float:hover {
  background: var(--whatsapp-green-hover);
  box-shadow: 0 18px 44px rgba(7, 94, 84, 0.38);
}

.whatsapp-float:focus-visible,
.whatsapp-contact-link:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.42);
  outline-offset: 4px;
}

.contact-section .contact-options .whatsapp-contact-link {
  background: #25d366 !important;
  color: #ffffff;
  border-color: #25d366 !important;
  box-shadow: 0 12px 28px rgba(7, 94, 84, 0.2);
}

.contact-section .contact-options .whatsapp-contact-link:hover {
  background: #20bd5a !important;
  border-color: #20bd5a !important;
  box-shadow: 0 15px 34px rgba(7, 94, 84, 0.26);
}

.whatsapp-modal-icon {
  background: var(--whatsapp-green);
  color: #ffffff;
}

.whatsapp-continue {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
}

.whatsapp-continue:hover:not(:disabled) {
  background: #064f47;
  border-color: #064f47;
}

/* The footer keeps one clear contact action; WhatsApp remains in Contact and the floating shortcut. */
.site-footer .footer-contact .footer-whatsapp-link {
  display: none !important;
}

.site-footer .footer-contact .footer-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid var(--accent-red);
  border-radius: 7px;
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-footer .footer-contact .footer-contact-link:hover {
  background: var(--accent-red-dark);
  border-color: var(--accent-red-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(188, 49, 56, 0.28);
}

.site-footer .footer-contact .footer-contact-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.62);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .home-hero {
    align-items: end;
    min-height: clamp(500px, 68svh, 540px);
  }

  .home-hero > img {
    object-position: 54% center;
    filter: brightness(1.14) saturate(1.035) contrast(0.97);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(23, 42, 57, 0.288) 0%, rgba(23, 42, 57, 0.576) 100%),
      linear-gradient(90deg, rgba(23, 42, 57, 0.234), rgba(23, 42, 57, 0.054));
  }

  .page-hero-overlay {
    background:
      linear-gradient(180deg, rgba(23, 42, 57, 0.288) 0%, rgba(23, 42, 57, 0.576) 100%),
      linear-gradient(90deg, rgba(23, 42, 57, 0.234), rgba(23, 42, 57, 0.054));
  }

  .page-hero {
    min-height: 350px;
  }

  .page-hero > img {
    filter: brightness(1.14) saturate(1.035) contrast(0.97);
  }

  .page-hero-content {
    padding-block: 46px;
  }

  .hero-content {
    padding-block: 46px;
  }

  .hero-content h1 {
    font-size: clamp(2.05rem, 9.4vw, 2.6rem);
    line-height: 1.08;
    margin-top: 14px;
  }

  .hero-content > p {
    margin-top: 18px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .trust-grid article,
  .image-card,
  .form-panel,
  .commitment-points article {
    box-shadow: 0 12px 30px rgba(30, 45, 61, 0.09);
  }

  .mineral-photo-grid {
    grid-template-columns: 1fr;
  }

  .evaluation-slider-button {
    width: 40px;
    height: 40px;
  }

  .evaluation-slider-button.is-prev {
    left: 12px;
  }

  .evaluation-slider-button.is-next {
    right: 12px;
  }

  .evaluation-slider-footer {
    bottom: 11px;
    gap: 10px;
    padding: 8px 10px;
  }

  .service-detail-card .service-detail-media::before {
    inset: 12px 22px 26px 26px;
    border-radius: 19px;
  }

  .service-detail-card:nth-child(even) .service-detail-media::before {
    inset: 12px 26px 26px 22px;
  }

  .service-detail-card .service-detail-media > img,
  .service-detail-media .evaluation-slider {
    inset: 32px 15px 18px 15px !important;
    width: calc(100% - 30px) !important;
    height: calc(100% - 50px) !important;
    border-radius: 17px;
  }

  .ssoma-grid > div:first-child {
    border-right: 0;
    border-bottom-color: rgba(78, 89, 99, 0.2);
  }

  .footer-brand strong::before {
    width: 30px;
    height: 34px;
  }
}

/* Numeración decorativa retirada por validación de contenido. */
.trust-grid article > small,
.principle-number,
.logistics-flow-grid article > span,
.development-flow-grid article > span,
.safety-grid > article > span {
  display: none;
}

.service-detail-card::before {
  display: none;
  content: none;
}

.trust-grid article {
  justify-content: flex-start;
  padding-top: 36px;
}

.principle-copy {
  justify-content: flex-start;
  padding-top: 58px;
}

.logistics-flow-grid article,
.development-flow-grid article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.logistics-flow-grid h3 {
  margin-top: 35px;
}

.development-flow-grid h3 {
  margin-top: 47px;
}

.safety-grid article {
  justify-content: flex-start;
}

.safety-grid h2 {
  margin-top: 64px;
}

.model-steps li {
  justify-content: flex-start;
  padding-top: 46px;
}

.mineral-list article,
.commitment-points article {
  align-items: start;
}

@media (max-width: 860px) {
  .principle-copy {
    padding-top: 30px;
  }

  .logistics-flow-grid h3,
  .development-flow-grid h3 {
    margin-top: 28px;
  }

  .safety-grid h2 {
    margin-top: 38px;
  }

  .model-steps li {
    padding-top: 32px;
  }
}

@media (prefers-contrast: more) {
  .hero-overlay,
  .page-hero-overlay {
    background-color: rgba(23, 42, 57, 0.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero > img,
  .evaluation-slide,
  .evaluation-slide img,
  .mineral-photo-card,
  .mineral-photo-media img,
  .image-card,
  .service-detail-card,
  .service-detail-media,
  .mineral-visual,
  .image-card-media img,
  .service-detail-media img,
  .mineral-visual > img {
    transition: none !important;
  }

  .image-card:hover,
  .service-detail-card:hover,
  .service-detail-card:hover .service-detail-media,
  .evaluation-slider:hover .evaluation-slide.is-active img,
  .mineral-photo-card:hover,
  .mineral-photo-card:hover img,
  .image-card:hover .image-card-media img,
  .service-detail-card:hover .service-detail-media img,
  .mineral-visual:hover,
  .mineral-visual:hover > img {
    transform: none !important;
  }

  .home-hero:hover > img {
    filter: brightness(1.08) saturate(1.04) contrast(0.98);
  }

}

/* v81 — breadcrumbs, formulario accesible y controles táctiles */
.cmap-breadcrumb {
  color: var(--steel-gray-dark);
  background: #f7f8f8;
  border-bottom: 1px solid rgba(78, 89, 99, 0.16);
}

.cmap-breadcrumb ol {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
}

.cmap-breadcrumb a {
  color: var(--accent-red-dark);
  font-weight: 750;
}

.cmap-breadcrumb [aria-current="page"] {
  color: var(--navy-900);
  font-weight: 650;
}

.form-guidance,
.form-context-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--steel-gray-dark);
  background: #f4f6f7;
  border-left: 3px solid var(--steel-gray-medium);
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.form-context-note {
  color: var(--navy-900);
  background: var(--accent-red-soft);
  border-left-color: var(--accent-red);
  font-weight: 700;
}

.corporate-form label {
  position: relative;
}

.form-field-status {
  float: right;
  margin: 2px 0 4px 12px;
  color: var(--steel-gray);
  font-size: 0.64rem;
  font-weight: 650;
}

.form-field-status.is-required {
  color: var(--accent-red-dark);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(188, 49, 56, 0.72);
  outline-offset: 3px;
}

.map-marker:focus-visible {
  outline: none;
}

.map-marker:focus-visible .marker-touch-target {
  fill: rgba(188, 49, 56, 0.18);
  stroke: #ffffff;
  stroke-width: 4px;
}

.map-marker:focus-visible .marker-halo {
  stroke: var(--accent-red);
  stroke-width: 4px;
}

@media (max-width: 860px) {
  .map-marker .marker-touch-target {
    r: 22px;
  }

  .language-trigger,
  .menu-toggle,
  .captcha-refresh,
  .coverage-region-toggle,
  .coverage-list button,
  .evaluation-slider-dot,
  .evaluation-slider-autoplay,
  .footer-cookie-button,
  .footer-legal a,
  .footer-contact a,
  .footer-whatsapp-link,
  .cookie-actions button,
  .cookie-policy-links a,
  .whatsapp-modal-actions button,
  .whatsapp-modal-close,
  .language-menu a,
  .text-link,
  .cmap-breadcrumb a {
    min-width: 44px;
    min-height: 44px;
  }

  .site-footer .footer-contact .footer-contact-link,
  .coverage-list li button,
  .coverage-compact-centers button {
    min-height: 44px !important;
  }

  .captcha-refresh,
  .footer-cookie-button,
  .footer-legal a,
  .footer-contact a,
  .footer-whatsapp-link,
  .cookie-policy-links a,
  .language-menu a,
  .text-link,
  .cmap-breadcrumb a {
    display: inline-flex;
    align-items: center;
  }
}

@media print {
  html.motion-ready [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }

  .site-header,
  .site-footer,
  .cookie-banner,
  .whatsapp-float,
  .whatsapp-modal-backdrop,
  .cmap-breadcrumb {
    display: none !important;
  }
}

/* Header corporativo aprobado — escritorio y navegación responsive. */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(30, 45, 61, 0.05);
  backdrop-filter: none;
}

.site-header::before {
  content: "CORPORACIÓN MINERA AMERICAN PERÚ S.A.C.";
  display: flex;
  align-items: center;
  min-height: 34px;
  padding-inline: max(24px, calc((100vw - 1392px) / 2));
  color: #53636e;
  background: #e5ebe9;
  border-bottom: 1px solid rgba(30, 45, 61, 0.08);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 10px 34px rgba(30, 45, 61, 0.12);
}

.header-shell {
  width: min(1440px, calc(100% - 48px));
  min-height: 96px;
  justify-content: flex-start;
  gap: 0;
}

.site-header.is-scrolled .header-shell {
  min-height: 84px;
}

.brand-lockup {
  min-height: 48px;
  gap: 15px;
}

.brand-symbol {
  align-self: center;
  width: 48px;
  height: 42px;
}

.brand-symbol::before,
.brand-symbol i {
  bottom: 3px;
  width: 6px;
}

.brand-symbol::before {
  left: 8px;
  height: 35px;
}

.brand-symbol i:first-child {
  left: 22px;
  height: 25px;
}

.brand-symbol i:last-child {
  left: 36px;
  height: 15px;
}

.brand-copy {
  align-items: center;
}

.brand-copy strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.14em;
}

.brand-copy small {
  display: none;
}

.main-navigation {
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: clamp(34px, 3.25vw, 47px);
  margin-left: clamp(140px, 16.45vw, 237px);
}

.main-navigation > a:not(.nav-brochure),
.nav-group > button {
  color: #40525f;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
}

.main-navigation > a:not(.nav-brochure)[aria-current="page"],
.nav-group > button.is-active {
  font-weight: 500;
}

.main-navigation > a:not(.nav-brochure)::after,
.nav-group > button::after {
  right: auto;
  left: 50%;
  width: 30px;
  transform: translateX(-50%) scaleX(0);
}

.main-navigation > a:not(.nav-brochure):hover::after,
.main-navigation > a:not(.nav-brochure)[aria-current="page"]::after,
.nav-group > button:hover::after,
.nav-group > button.is-active::after,
.nav-group.is-open > button::after {
  transform: translateX(-50%) scaleX(1);
}

.main-navigation > a[href="/contacto"],
.main-navigation > a[href="/en/contact"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 48px;
  margin-left: clamp(12px, 3.5vw, 50px);
  padding: 0 25px;
  color: #ffffff;
  background: var(--navy-900);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(30, 45, 61, 0.17);
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.main-navigation > a[href="/contacto"]::after,
.main-navigation > a[href="/en/contact"]::after {
  display: none;
}

.main-navigation > a[href="/contacto"]:hover,
.main-navigation > a[href="/en/contact"]:hover,
.main-navigation > a[href="/contacto"][aria-current="page"],
.main-navigation > a[href="/en/contact"][aria-current="page"] {
  color: #ffffff;
  background: #2b465e;
  box-shadow: 0 9px 22px rgba(30, 45, 61, 0.22);
  transform: translateY(-1px);
}

.nav-brochure {
  display: none !important;
}

.language-switcher {
  margin-left: 12px;
}

.language-trigger {
  min-width: 76px;
  height: 48px;
  padding-inline: 14px;
  color: #40525f;
  background: #ffffff;
  border-color: var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.language-trigger:hover,
.language-switcher.is-open .language-trigger {
  background: #f5f7f8;
  border-color: #b9c4ca;
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .main-navigation {
    gap: clamp(20px, 2vw, 30px);
    margin-left: clamp(70px, 9vw, 115px);
  }

  .main-navigation > a:not(.nav-brochure),
  .nav-group > button {
    font-size: 0.94rem;
  }

  .main-navigation > a[href="/contacto"],
  .main-navigation > a[href="/en/contact"] {
    min-width: 110px;
    margin-left: 20px;
    padding-inline: 20px;
  }

  .language-trigger {
    min-width: 68px;
    padding-inline: 10px;
  }
}

@media (max-width: 1100px) {
  .site-header::before {
    display: none;
  }

  .header-shell {
    width: var(--shell);
    min-height: 78px;
    justify-content: space-between;
    gap: 14px;
  }

  .site-header.is-scrolled .header-shell {
    min-height: 68px;
  }

  .brand-symbol {
    width: 42px;
    height: 40px;
  }

  .brand-symbol::before {
    left: 7px;
    height: 31px;
  }

  .brand-symbol i:first-child {
    left: 19px;
    height: 22px;
  }

  .brand-symbol i:last-child {
    left: 31px;
    height: 13px;
  }

  .brand-copy strong {
    font-size: 1.4rem;
  }

  .main-navigation {
    margin-left: 0;
  }

  .main-navigation > a[href="/contacto"],
  .main-navigation > a[href="/en/contact"] {
    width: 100%;
    min-height: 48px;
    margin: 12px 0 0;
    padding: 0 22px;
    color: #ffffff;
    border-bottom: 0;
  }

  .language-switcher {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .header-shell {
    min-height: 70px;
    gap: 10px;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
  }

  .brand-symbol::before {
    left: 6px;
    height: 28px;
  }

  .brand-symbol i:first-child {
    left: 17px;
    height: 20px;
  }

  .brand-symbol i:last-child {
    left: 27px;
    height: 12px;
  }

  .brand-copy strong {
    font-size: 1.2rem;
  }

  .language-trigger {
    min-width: 58px;
    height: 42px;
    padding-inline: 8px;
    font-size: 0.7rem;
  }
}
