/* =====================================================
   MAGUTEC — Sistema de diseño
   Integrador de infraestructura tecnológica para construcción
   ===================================================== */

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

:root {
  /* Color */
  --bg: #0a0a0a;
  --bg-elevated: #0f0f0f;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --border: #262626;
  --border-strong: #333333;
  --text: #ffffff;
  --text-secondary: #a3a3a3;
  --text-tertiary: #6b6b6b;
  --accent: #ffd700;
  --accent-dim: #b8960c;
  --accent-wash: rgba(255, 215, 0, 0.08);

  /* Type */
  --font-display: 'Urbanist', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-5xl: 4.5rem;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --max-width: 1200px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.25s var(--ease);

  /*Header*/
  --header-height: 50px; /* ajusta según tu navbar */

}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  overflow-x: hidden;
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.vertical-grid{
  padding-bottom: 100px;
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 110px;

  display: flex;
  align-items: center;

  position: relative;

  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.96) 0%,
      rgba(10, 10, 10, 0.91) 30%,
      rgba(10, 10, 10, 0.62) 58%,
      rgba(10, 10, 10, 0.32) 78%,
      rgba(10, 10, 10, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.30) 0%,
      rgba(10, 10, 10, 0.18) 30%,
      rgba(10, 10, 10, 0.68) 100%
    ),
    url("../assets/photos/hero-inicio.jpg");
    

  background-color: var(--bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Para lograr un efecto de superposición de colores y degradados sobre la imagen de fondo, se utiliza la propiedad `background-blend-mode`. Esto permite combinar los diferentes fondos (gradientes y la imagen) de manera que se logre un efecto visual más atractivo y legible. En este caso, se ha configurado para que los gradientes se mezclen con la imagen de fondo, creando un efecto de sombreado y resaltando el contenido del héroe. */
  background-blend-mode: normal; 

}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero h1 {
  max-width: 840px;
}

.hero p {
  font-size: var(--text-lg);
  max-width: 620px;
  margin-top: var(--space-3);
}

.hero-intro {
  background: rgba(0, 0, 0, 0.6);
  padding: var(--space-3) var(--space-4);
  justify-content: center;
  color: white;
}

.hero-buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

p { color: var(--text-secondary); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 1.05rem 2.15rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.18);
  /* Agregar un contorno negro más intenso */
  
}
.btn-primary:hover {
  background: #ffe14d;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.32);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  border-width: 1.5px;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; height: 100%; }
.brand img {
   height: 120px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: 40px; /* separa del logo */
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: var(--space-3); margin-left: var(--space-5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}

.footer-brand img { height: 100px; margin-bottom: var(--space-2); }
.footer-brand p { font-size: var(--text-sm); max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--accent); background: var(--accent-wash); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--text-secondary); }
.footer-social a:hover svg { stroke: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.footer-bottom a { color: var(--text-tertiary); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- WhatsApp flotante ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.25);
}
.whatsapp-float svg { width: 26px; height: 26px; fill: #0a0a0a; }

/* ---------- Blueprint motif (elemento firma) ---------- */

.blueprint-corner {
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.6s var(--ease);
  box-shadow: 0 4px 24px -12px rgba(0, 0, 0, 0.55);
}
.blueprint-corner::before,
.blueprint-corner::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  opacity: 0.5;
  transition: opacity var(--transition);
}
.blueprint-corner::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.blueprint-corner::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.blueprint-corner:hover::before,
.blueprint-corner:hover::after { opacity: 1; }

.grid-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim) 20%, var(--accent-dim) 80%, transparent);
  opacity: 0.4;
  margin: var(--space-6) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg) 45%);
  position: relative;
}
.section-alt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: var(--border);
}

/* ---------- Section utilities ---------- */

.section { padding: var(--space-7) 0; }
.section-header { max-width: 620px; margin-bottom: var(--space-5); }
.section-header p { font-size: var(--text-lg); }

/* ---------- Responsive ---------- */

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ---------- Desktop grande: 1200px+ ----------
   Diseño principal.
   No es necesario agregar media query aquí.
*/


/* ---------- Laptop / Desktop pequeño ----------
   992px - 1199px
----------------------------------------------------- */
@media (max-width: 1199px) {

  :root {
    --max-width: 1100px;
  }

  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  /* Header */
  .nav-links {
    gap: var(--space-3);
  }

  .nav-links a {
    font-size: var(--text-xs);
  }

  .nav-cta {
    margin-left: var(--space-3);
  }

  /* Hero */
  h1 {
    font-size: var(--text-4xl);
  }

  .hero h1 {
    max-width: 760px;
  }

  .hero p {
    max-width: 580px;
  }

  /* Grids */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

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

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


/* ---------- Tablet ----------
   768px - 991px
----------------------------------------------------- */
@media (max-width: 991px) {

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  /* Header */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    background: transparent;
    border: 0;

    cursor: pointer;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-top: 110px;
    padding-bottom: 70px;

    background-position: 65% center;
    background-size: cover;
  }

  .hero h1 {
    max-width: 700px;
  }

  .hero p {
    max-width: 580px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  /* Grids */
  .audience-grid,
  .solutions-grid,
  .sectors-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .cases-grid {
    grid-template-columns: 1fr !important;
  }

  #contact-grid {
    grid-template-columns: 1fr !important;
  }

  #form-row-1,
  #form-row-2 {
    grid-template-columns: 1fr !important;
  }

  #diferenciador-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  #sol-grid-1,
  #sol-grid-2,
  #sol-grid-3 {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }

  /* Methodology */
  .methodology-strip {
    flex-direction: column;
  }

  .methodology-strip > div {
    border-left: none !important;
    border-top: 1px solid var(--border-strong);
    padding-left: 0 !important;
  }

  /* Aliados */
  .allies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  /* Certificaciones */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-3);
  }

  .vertical-grid {
    grid-template-columns: 1fr !important;
  }

  
  .nav-links {
    position: fixed;
    top: 80px;
    right: 0;

    width: min(320px, 82vw);
    height: calc(100dvh - 80px);

    margin: 0;
    padding: 20px 24px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    background: rgba(10, 10, 10, 0.98);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 35px rgba(0, 0, 0, 0.35);

    overflow-y: auto;

    z-index: 1200;

    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }

  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;

    border-bottom: 1px solid var(--border);

    color: var(--text);
    text-decoration: none;
  }

  .nav-links a:hover {
      color: lightyellow;
  }

  .mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 24px;
    padding: 13px 20px;

    background: var(--green);
    color: #000;

    border: 1px solid var(--green);
    border-radius: 8px;
    border-bottom: none !important;

    font-weight: 600;
    text-decoration: none;

    transition:
      background 0.25s ease,
      transform 0.25s ease;
  }

  .mobile-nav-cta:hover {
    transform: translateY(-2px);
  }

}


/* ---------- Móvil grande ----------
   576px - 767px
----------------------------------------------------- */
@media (max-width: 767px) {

  :root {
    --space-7: 5rem;
    --space-8: 6rem;
  }

  /* Tipografía */
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }

  /* Container */
  .container {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-top: 110px;
    padding-bottom: 70px;

    background-position: 65% center;
    background-attachment: scroll;
    background-size: cover;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero p {
    max-width: 100%;
    font-size: var(--text-base);
  }

  /* Botones */
  .hero-buttons {
    gap: var(--space-2);
    text-align: center;
  }

  .btn {
    padding: 0.9rem 1.4rem;
  }

/* Footer */
.footer-grid {
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  text-align: center;
}

  /* Grids */
  .audience-grid,
  .solutions-grid,
  .sectors-grid {
    grid-template-columns: 1fr !important;
  }

  .allies-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  }

  .ally-card {
  min-height: 170px;
  padding: 16px 12px;
}

.ally-logo-box {
  min-height: 90px;
}

.ally-category {
  font-size: 0.68rem;
  line-height: 1.35;
}

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

  /* WhatsApp */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

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


/* ---------- Móvil pequeño ----------
   ≤ 575px
----------------------------------------------------- */
@media (max-width: 575px) {

  /* Tipografía */
  h1 {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    height: auto;
    padding-bottom: 60px;
    background-position: 62% center;
    background-attachment: scroll;
    background-size: cover;
  }

  .hero .eyebrow {
    font-size: 0.7rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Botones */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Secciones */
  .section {
    padding: var(--space-6) 0;
  }

  .section-header {
    margin-bottom: var(--space-4);
  }

  .section-header p {
    font-size: var(--text-base);
  }

  /* Certificaciones */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-brand img {
    height: 80px;
  }

  /* WhatsApp */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

    .keypoints-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .keypoint-card {
    min-height: 90px;
    padding: 0.9rem;
  }

  .keypoint-text {
    font-size: 0.85rem;
    line-height: 1.25;
  }

}


/* ---------- Móvil extra pequeño ----------
   ≤ 375px
----------------------------------------------------- */
@media (max-width: 375px) {

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding-bottom: 50px;
  }

  .hero-buttons .btn {
    padding: 0.85rem 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* =====================================================
   Movimiento y microinteracciones
   (Referencia de calidad/UX: comportamiento de Eonti,
   adaptado a la identidad visual de MAGUTEC)
   ===================================================== */

body {
  opacity: 0;
  animation: body-fade-in 0.6s var(--ease) 0.05s forwards;
}
@keyframes body-fade-in { to { opacity: 1; } }
body.page-loaded { opacity: 1; animation: none; }
body.page-leaving { opacity: 0; animation: none; transition: opacity 0.4s var(--ease); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--border-strong);
}

.blueprint-corner:hover {
  border-color: var(--accent-dim) !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
  background: #ffe14d;
  box-shadow: 0 0 32px rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  body, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================
   Aliados tecnológicos — mayor protagonismo
   ===================================================== */

.allies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.ally-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--ally-color, var(--accent));
  border-radius: 8px;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  box-shadow: 0 4px 24px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ally-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(0,0,0,.7); }

.ally-card .ally-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--text);
  letter-spacing: -0.01em;
}

.ally-card { display: flex; flex-direction: column; align-items: center; }

.ally-logo-box {
  height: 150px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.ally-logo-box img { max-height: 100%; max-width: 100%; width: auto; height: auto; }

.ally-logo { height: 150px; }
.ally-logo-wide { height: 72px; }

.ally-card .ally-category {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ally-color, var(--accent));
  margin-top: 6px;
  font-weight: 600;
}

/* =====================================================
   Certificaciones
   ===================================================== */

.cert-brand-group { margin-bottom: var(--space-6); }
.cert-brand-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.cert-brand-heading .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cert-color, var(--accent));
}
.cert-brand-heading h3 { margin: 0; font-size: var(--text-xl); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5) var(--space-4);
}

.cert-item { display: flex; flex-direction: column; align-items: center; }
.cert-item-visual { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }

.cert-halo {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.16), transparent 70%);
  z-index: 0;
  transition: opacity 0.35s var(--ease);
}

.cert-frame {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
  width: 100%;
  box-shadow: 0 10px 34px -14px rgba(0,0,0,.7), 0 0 0 1px var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cert-frame img { width: 100%; height: auto; border-radius: 4px; display: block; }

.cert-item:hover .cert-frame {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 44px -14px rgba(0,0,0,.75), 0 0 0 1px var(--accent-dim);
}
.cert-item:hover .cert-halo { opacity: 1.4; }

.cert-caption {
  margin-top: var(--space-2);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

@media (max-width: 968px) {
  .allies-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); }
  .vertical-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .allies-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Audience cards (con imagen de fondo) ---------- */

.audience-card {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.audience-card h3 { font-size: var(--text-lg); margin-bottom: 6px; color: #fff; }
.audience-card p { font-size: var(--text-sm); color: #d4d4d4; margin: 0; }

/* ---------- Imágenes de Soluciones: contenedor limpio, sin efectos ---------- */

.sol-image-wrap .sol-image {
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Intros de cada página exceptuando la de index.html */
.intro-section{
  padding-top: 75px; padding-bottom: var(--space-5);
}

/* ---------- Puntos clave (sección ¿Por qué MAGUTEC?) ---------- */
.keypoints-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.keypoint-card {
  padding: var(--space-3);
  background: var(--surface);
}
.keypoint-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.keypoint-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 480px) {
  .keypoints-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   MAGUTEC — OPTIMIZACIÓN RESPONSIVE
   INDEX / MOBILE v1
   ===================================================== */

@media (max-width: 767px) {

  /* ---------- HEADER ---------- */

  .site-header .container {
    height: 80px;
    justify-content: space-between;
  }

  .brand {
    height: 82px;
  }

  .brand img {
    height: 76px;
    width: auto;
  }

  .nav-toggle {
    padding: 8px;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
  }


  /* ---------- HERO ---------- */

  .hero {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 70px;
    background-position: 68% center;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    max-width: 100%;
    text-align: center;
  }

  .hero .eyebrow {
    font-size: 0.68rem;
    line-height: 1.5;
    letter-spacing: 0.11em;
  }

  .hero-intro {
    font-size: 1rem;
    line-height: 1.6;
    padding: 1.1rem 1.2rem;
    margin-top: 1.5rem;
  }


  /* ---------- BOTONES HERO ---------- */

  .hero-buttons {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 1rem;
  }


  /* ---------- TARJETAS CON IMAGEN ---------- */

  .audience-card {
    min-height: 250px;
    padding: 1.25rem;
    background-size: cover;
    background-position: center;
  }

  .audience-card h3 {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .audience-card p {
    font-size: 0.92rem;
    line-height: 1.5;
  }


  /* ---------- DIFERENCIADOR ---------- */

  #diferenciador-grid {
    gap: 2rem !important;
  }

  #diferenciador-grid > .blueprint-corner {
    min-height: 260px !important;
    margin-top: 0.5rem;
    background-position: center;
  }

}


/* =====================================================
   MÓVIL PEQUEÑO
   ===================================================== */

@media (max-width: 575px) {

  /* Tipografía */

  h1 {
    font-size: clamp(2rem, 9vw, 2.3rem);
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.12;
  }


  /* Contenedor */

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }


  /* Puntos clave */

  .keypoints-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .keypoint-card {
    min-height: 90px;
    padding: 0.9rem;
  }

  .keypoint-text {
    font-size: 0.85rem;
    line-height: 1.25;
  }


  /* Hero */

  .hero {
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .hero-intro {
    padding: 1rem;
  }

}


/* =====================================================
   MÓVIL EXTRA PEQUEÑO
   ===================================================== */

@media (max-width: 375px) {

  .site-header .container {
    height: 76px;
  }

  .brand {
    height: 76px;
  }

  .brand img {
    height: 70px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero {
    padding-top: 45px;
  }

  .audience-card {
    min-height: 230px;
  }

}