/* =========================================================
   M&R Apucallanca — hoja de estilos
   Paleta e identidad tomadas del brochure comercial 2026.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --navy-950: #071a30;
  --navy-900: #0a2647;
  --navy-800: #123a67;
  --navy-700: #1c4d84;
  --orange-600: #e2600a;
  --orange-500: #f2790f;
  --orange-100: #fdeee1;
  --gray-50: #f6f7f9;
  --gray-100: #eceef2;
  --gray-400: #8993a1;
  --gray-600: #5b6472;
  --ink: #0f1c2c;
  --white: #ffffff;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;

  --container: 1220px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-600);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p { line-height: 1.6; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-500); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 26, 48, 0.0);
  padding: 1.1rem 0;
  transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 26, 48, 0.96);
  backdrop-filter: blur(6px);
  padding: 0.65rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }

.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.9;
}
.main-nav a:hover { opacity: 1; border-color: var(--orange-500); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--white); display: block;
}

@media (min-width: 960px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

/* mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.mobile-nav .btn { margin-top: 1rem; }

/* ---------- Hero ---------- */
/* Mobile-first: photo sits as a contained band above a solid navy content
   block (avoids low-contrast text-over-photo). Desktop restores the
   diagonal split with text overlaid on the left. */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
  padding-top: 4.5rem;
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 22%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,20,38,0.5) 0%, rgba(7,20,38,0.05) 20%, rgba(7,20,38,0.05) 55%, var(--navy-900) 100%);
}

@media (min-width: 860px) {
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
  }
  .hero-media {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 46%;
    width: auto;
    aspect-ratio: auto;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  }
  .hero-media::after {
    background: linear-gradient(90deg, var(--navy-900) 0%, rgba(10,38,71,0.25) 22%, rgba(10,38,71,0) 45%);
  }
}

.hero .wrap { position: relative; z-index: 2; width: 100%; }

.hero-content {
  max-width: 620px;
  padding: 2rem 0 3rem;
}

@media (min-width: 860px) {
  .hero-content { padding: 3rem 0 4.5rem; }
}
.hero-content .eyebrow { margin-bottom: 1.4rem; }

.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
}
.hero-title .accent { color: var(--orange-500); display: block; }

.hero-subtitle {
  color: rgba(255,255,255,0.86);
  font-size: 1.08rem;
  max-width: 520px;
  margin-top: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-meta {
  display: flex;
  gap: 1.6rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.scroll-cue {
  display: none;
}
@media (min-width: 860px) {
.scroll-cue {
  display: flex;
  position: absolute;
  left: 1.5rem;
  bottom: 1.6rem;
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue::after {
  content: "";
  width: 28px; height: 1px; background: rgba(255,255,255,0.5);
}
}

/* ---------- Section base ---------- */
.section { padding: var(--section-pad) 0; scroll-margin-top: 4.5rem; }
.hero { scroll-margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head .eyebrow { background: var(--navy-900); margin-bottom: 1.2rem; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--navy-900); }

/* ---------- Quienes somos ---------- */
.quienes {
  position: relative;
  background: var(--gray-50);
}
.quienes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .quienes-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

.quienes-text .eyebrow { margin-bottom: 1.3rem; }
.quienes-text h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); color: var(--navy-900); margin-bottom: 1.4rem; }
.quienes-text p.lead {
  font-size: 1.08rem;
  color: var(--gray-600);
  max-width: 46ch;
}

.value-card {
  margin-top: 2.2rem;
  background: var(--navy-900);
  color: var(--white);
  padding: 1.6rem 1.8rem;
  border-left: 5px solid var(--orange-600);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.value-card svg { flex: none; width: 30px; height: 30px; color: var(--orange-500); margin-top: 0.2rem; }
.value-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.value-card p { font-size: 0.95rem; color: rgba(255,255,255,0.85); }

.diff-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.6rem;
}
.diff-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.diff-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
}
.diff-icon svg { width: 22px; height: 22px; color: var(--white); }
.diff-item span {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--navy-900);
  letter-spacing: 0.01em;
}

.quienes-media {
  position: relative;
}
.quienes-media .frame {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 8% 100%, 0 88%);
  aspect-ratio: 4 / 5;
}
.quienes-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.quienes-media .tag {
  position: absolute;
  left: -0.5rem;
  bottom: 1.6rem;
  background: var(--orange-600);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.1rem 0.6rem 1.4rem;
}

/* ---------- Nav CTA (header) ---------- */
.nav-cta { display: none; }
@media (min-width: 960px) {
  .nav-cta { display: inline-flex; padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}

/* ---------- Servicios ---------- */
.servicios { background: var(--white); }

.servicios-list {
  border-top: 1px solid var(--gray-100);
}

.servicio-item {
  border-bottom: 1px solid var(--gray-100);
}

.servicio-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 1.6rem 0;
  font-family: inherit;
}

.servicio-numero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange-600);
  flex: none;
  width: 3ch;
}

.servicio-nombre {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--navy-900);
  flex: 1;
  letter-spacing: 0.01em;
}

.servicio-toggle {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.servicio-toggle::before, .servicio-toggle::after {
  content: "";
  position: absolute;
  background: var(--navy-900);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.servicio-toggle::before { width: 14px; height: 2px; }
.servicio-toggle::after { width: 2px; height: 14px; }

.servicio-item.is-open .servicio-toggle {
  background: var(--orange-600);
  border-color: var(--orange-600);
}
.servicio-item.is-open .servicio-toggle::before,
.servicio-item.is-open .servicio-toggle::after { background: var(--white); }
.servicio-item.is-open .servicio-toggle::after { transform: rotate(90deg) scaleY(0); }

.servicio-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.servicio-item.is-open .servicio-panel {
  max-height: 1400px;
}

.servicio-panel-inner {
  padding: 0 0 2.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}
@media (min-width: 860px) {
  .servicio-panel-inner { grid-template-columns: 1fr 1fr 260px; gap: 2.4rem; }
}

.servicio-grupo h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--navy-800);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--orange-600);
  padding-left: 0.6rem;
}
.servicio-grupo ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.servicio-grupo li {
  font-size: 0.94rem;
  color: var(--gray-600);
  padding-left: 1.1rem;
  position: relative;
}
.servicio-grupo li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 5px; height: 5px;
  background: var(--orange-600);
}

.servicio-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}
.servicio-media img { width: 100%; height: 100%; object-fit: cover; }

.servicio-beneficios {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.4rem;
}
.servicio-beneficios span {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
}

.servicios-compromiso {
  margin-top: 2.6rem;
  padding: 1.4rem 1.6rem;
  background: var(--gray-50);
  border-left: 4px solid var(--orange-600);
  color: var(--navy-800);
  font-size: 0.98rem;
  max-width: 70ch;
}

/* ---------- Enfoque / forma de trabajo ---------- */
.enfoque { background: var(--navy-900); }
.enfoque .eyebrow { background: var(--orange-600); }

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 860px) {
  .steps { flex-direction: row; align-items: flex-start; }
}

.steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 860px) {
  .steps li {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    border-top: 3px solid rgba(255,255,255,0.2);
    padding: 1.4rem 1.2rem 0 0;
  }
  .steps li:first-child { border-top-color: var(--orange-600); }
}

.step-num {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li:first-child .step-num { background: var(--orange-600); border-color: var(--orange-600); }

.step-name {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

/* ---------- Confianza y clientes ---------- */
.confianza { background: var(--gray-50); }

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--navy-900);
  padding: 0.85rem 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
}
.badge.is-cert { border-left-color: var(--orange-600); }
.badge svg { width: 18px; height: 18px; flex: none; color: var(--orange-600); }
.badge.is-cert svg { color: var(--navy-900); }

.brochure-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  background: var(--navy-900);
  padding: 1.8rem 2rem;
}
.brochure-icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 8px;
  background: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
}
.brochure-icon svg { width: 26px; height: 26px; color: var(--white); }
.brochure-text { flex: 1; min-width: 220px; }
.brochure-text h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.brochure-text p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }

/* ---------- Contacto ---------- */
.contacto { background: var(--navy-950); }
.contacto .eyebrow { background: var(--orange-600); }
.contacto-lead { color: rgba(255,255,255,0.75); margin-top: 1rem; max-width: 42ch; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contacto-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
}

.contacto-list {
  list-style: none;
  margin: 1.8rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contacto-list li {
  color: rgba(255,255,255,0.88);
  font-size: 0.96rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.contacto-list li .ic {
  flex: none;
  width: 20px; height: 20px;
  color: var(--orange-500);
  margin-top: 0.1em;
}
.contacto-list li .ic svg { width: 100%; height: 100%; }
.contacto-list a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.3); }
.contacto-list a:hover { border-color: var(--orange-500); }

.contacto-form {
  background: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy-800);
}
.form-row input, .form-row textarea {
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--orange-600);
  background: var(--white);
}
.form-submit { margin-top: 0.4rem; }
.form-note { font-size: 0.8rem; color: var(--gray-400); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 700px) {
  .footer-wrap { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-logo { height: 32px; width: auto; opacity: 0.85; }
.site-footer p { color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
