/* ============================================================
   PRYMAX — Landing Pages CSS
   Compartido por pintura.html, herreria.html, proyectos.html
   Mobile-first. Sin dependencia de styles-prymax.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

/* ——— VARIABLES ——— */
:root {
  --blue:       #0034CC;
  --blue-iso:   #0040FB; /* Used for isotipo SVG fill in HTML — not applied via CSS */
  --text:       #4D4D4D;
  --white:      #FFFFFF;
  --grey-light: #F9F9F9;
  --grey-cards: #EDEDED;
  --dark:       #29292B;
  --wa-green:   #25D366;
  --dark-heading: #1a1a1a;
  --wa-green-hover: #1da851;
  --overlay-base: 20, 20, 20;
  --radius:     28px;
  --container:  1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
a, button { touch-action: manipulation; }
p { margin: 0; padding: 0; }
strong { font-weight: 700; }

/* ——— CONTENEDOR ——— */
.lp-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— HEADER (logo + link sitio completo) ——— */
/* Header estático — tab strip se agrega debajo en el HTML */
.lp-header {
  position: relative;
  z-index: 10;
  padding: 16px 32px;
  background: #111;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-header img { width: 160px; height: auto; }
.lp-header-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.lp-header-link:hover { color: rgba(255,255,255,0.9); }

/* ——— HERO ——— */
.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px 72px;
  background-image: url("img/prymax-back.jpg");
  background-size: cover;
  background-position: center;
  text-align: left;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--overlay-base), 0.62);
}
.lp-hero .lp-container { position: relative; z-index: 1; }

.lp-hero-eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.lp-hero h1 {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 100;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 780px;
}
.lp-hero h1 strong { font-weight: 700; color: var(--white); }

.lp-hero .subhead {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.55;
}

/* ——— BOTÓN WHATSAPP ——— */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-green);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 40px;
  transition: background 0.25s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn-wa:hover { background: var(--wa-green-hover); transform: translateY(-2px); }
.btn-wa svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ——— VINETA DECORATIVA ——— */
.lp-vineta {
  display: block;
  margin: 0 0 28px 0;
  width: 40px; height: 40px;
}

/* ——— TRUST STRIP ——— */
.lp-trust {
  background: var(--white);
  border-bottom: 1px solid var(--grey-cards);
}
.lp-trust .lp-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--grey-cards);
}
.trust-item:last-child { border-bottom: none; }
.trust-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--grey-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-text h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-heading);
  margin-bottom: 2px;
  line-height: 1.2;
}
.trust-text p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.4;
}

/* ——— SECCIÓN GENÉRICA ——— */
.lp-section {
  padding: 72px 0;
}
.lp-section--grey { background: var(--grey-light); }
.lp-section--dark {
  background: var(--dark);
  color: var(--white);
}
.lp-section--photo {
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
}
.lp-section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--overlay-base), 0.72);
}
.lp-section--photo .lp-container { position: relative; z-index: 1; }

/* ——— HEADINGS DE SECCIÓN ——— */
.lp-section-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}
.lp-section--dark .lp-section-label,
.lp-section--photo .lp-section-label { color: rgba(255,255,255,0.55); }

.lp-section h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 100;
  line-height: 1.1;
  color: var(--blue);
  margin-bottom: 20px;
}
.lp-section--dark h2,
.lp-section--photo h2 { color: var(--white); }

.lp-section h2 strong { font-weight: 700; }

.lp-section .intro {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.6;
}
.lp-section--dark .intro,
.lp-section--photo .intro { color: rgba(255,255,255,0.8); }

/* ——— DETALLE DEL SERVICIO (pasos numerados) ——— */
.lp-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.lp-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--grey-cards);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0;
}
.step-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-heading);
  margin-bottom: 4px;
}
.step-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
}

/* ——— GRILLA DIFERENCIADORES ——— */
.lp-difs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
.dif-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
  border: 1px solid var(--grey-cards);
  transition: box-shadow 0.2s ease;
}
.dif-card:hover { box-shadow: 0 8px 28px rgba(0,52,204,0.08); }
.dif-card .dif-icon {
  width: 48px; height: 48px;
  background: rgba(0,52,204,0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.dif-card .dif-icon svg { width: 26px; height: 26px; }
.dif-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-heading);
  margin-bottom: 8px;
  line-height: 1.2;
}
.dif-card p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.55;
}

.dif-card-spec {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin: 0 0 6px;
  line-height: 1.2;
}

/* ——— PROCESO (proyectos.html, Estructura B) ——— */
.lp-proceso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 40px;
  position: relative;
}
.proceso-paso {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--grey-cards);
}
.proceso-paso:last-child { border-bottom: none; }
.proceso-num {
  font-size: 48px;
  font-weight: 100;
  color: var(--blue);
  line-height: 1;
  width: 60px;
  flex-shrink: 0;
  text-align: center;
  opacity: 0.3;
}
.proceso-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-heading);
  margin-bottom: 6px;
}
.proceso-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.55;
}

/* ——— WHY PRYMAX (proyectos.html) ——— */
.lp-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}
.why-dot {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.lp-section--dark .why-dot { background: rgba(255,255,255,0.5); }
.why-item p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.why-item strong { font-weight: 600; color: var(--white); }

/* ——— GALERÍA DE TRABAJOS ——— */
.lp-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 40px;
}
.lp-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* ——— CTA FINAL ——— */
.lp-cta-final {
  padding: 80px 0;
  text-align: center;
}
.lp-cta-final h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 100;
  color: var(--white);
  margin-bottom: 12px;
}
.lp-cta-final .cta-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}
.lp-cta-final .btn-wa {
  font-size: 18px;
  padding: 18px 40px;
}

/* ——— MINI FOOTER ——— */
.lp-footer {
  background: var(--dark-heading);
  padding: 20px 24px;
  text-align: center;
}
.lp-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}
.lp-footer a { color: rgba(255,255,255,0.5); }
.lp-footer a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   RESPONSIVE — TABLET 768px+
   ============================================================ */
@media (min-width: 768px) {
  .lp-header { padding: 36px 48px; }
  .lp-header img { width: 200px; }

  .lp-hero { padding: 140px 48px 80px; }

  .lp-trust .lp-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-item {
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--grey-cards);
    padding: 36px 24px;
    text-align: center;
    align-items: center;
  }
  .trust-item:last-child { border-right: none; }

  .lp-difs-grid { grid-template-columns: repeat(2, 1fr); }

  .lp-proceso-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .proceso-paso {
    flex-direction: column;
    border-bottom: none;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--grey-cards);
  }
  .proceso-num { margin-bottom: 8px; width: auto; text-align: left; }

  .lp-why-grid { grid-template-columns: repeat(2, 1fr); }

  .lp-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE — DESKTOP 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  body { font-size: 20px; }

  .lp-section { padding: 96px 0; }

  .lp-steps { gap: 16px; }

  .lp-difs-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .lp-difs-grid.lp-difs-grid--2col { grid-template-columns: repeat(2, 1fr); }

  .lp-cta-final { padding: 100px 0; }
}

/* ——— TAB STRIP de servicios ———
   Skills: ui-ux-pro-max (touch-target-size, horizontal-scroll, nav-state-active)
   ——— */
.lp-service-tabs {
  display: flex;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lp-service-tabs::-webkit-scrollbar { display: none; }

.lp-service-tabs a {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lp-service-tabs a:hover { color: rgba(255,255,255,0.85); }
/* Tab activo — ui-ux-pro-max: nav-state-active */
.lp-service-tabs a.active {
  color: #fff;
  border-bottom-color: #0034CC;
}
.lp-service-tabs a:focus-visible {
  outline: 2px solid #0034CC;
  outline-offset: 2px;
}

/* ——— GALLERY LINK ——— */
.lp-gallery-link {
  text-align: center;
  padding: 48px 0 0;
}
.lp-gallery-link a {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.15s;
}
.lp-gallery-link a:hover { opacity: 0.7; }
.lp-gallery-link a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ——— CROSS-LINKS "También hacemos" ———
   Skills: ui-ux-pro-max (primary-action — siempre DESPUÉS del CTA)
   ——— */
.lp-cross-links {
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  padding: 32px 24px;
  text-align: center;
}
.lp-cross-links p {
  font-size: 12px;
  color: #999;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.lp-cross-links-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* touch target mínimo 44px — ui-ux-pro-max: touch-target-size */
.lp-cross-links-list a {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1.5px solid #d8d8d8;
  border-radius: 28px;
  font-size: 13px;
  font-weight: 600;
  color: #0034CC;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
  text-decoration: none;
}
.lp-cross-links-list a:hover { background: #f0f4ff; border-color: #0034CC; }
.lp-cross-links-list a:focus-visible { outline: 2px solid #0034CC; outline-offset: 2px; }
