﻿  /* ===== Sección Certificación MediSel (estilos con prefijo .ms-cert para no chocar con el sitio) ===== */
  .ms-cert {
    --ms-green-900: #14532d;
    --ms-green-700: #1f8a3e;
    --ms-green-600: #2ea84f;
    --ms-green-500: #46b85c;
    --ms-green-100: #e4f4e8;
    --ms-green-50:  #f2faf4;
    --ms-purple:    #7b4bc4;
    --ms-purple-50: #f1eafb;
    --ms-ink:       #1d2b36;
    --ms-text:      #4a5a66;
    --ms-link:      #1d4ed8;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    padding: 72px 20px;
    box-sizing: border-box;
  }
  .ms-cert *, .ms-cert *::before, .ms-cert *::after { box-sizing: border-box; }

  .ms-cert__card {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 28px;
    background:
      radial-gradient(circle at 92% 8%, rgba(70,184,92,.18) 0, transparent 38%),
      radial-gradient(circle at 4% 100%, rgba(123,75,196,.10) 0, transparent 40%),
      linear-gradient(135deg, #ffffff 0%, var(--ms-green-50) 55%, var(--ms-green-100) 100%);
    border: 1px solid rgba(46,168,79,.22);
    box-shadow: 0 30px 60px -30px rgba(20,83,45,.35), 0 8px 24px -12px rgba(20,83,45,.15);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    padding: 56px 56px 48px;
  }
  /* franja superior de acento */
  /*.ms-cert__card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 6px;
    background: linear-gradient(90deg, var(--ms-green-700), var(--ms-green-500) 60%, var(--ms-purple));
  }*/

  /* ---------- Sello ---------- */
  .ms-cert__seal-wrap {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 18px;
  }
  .ms-cert__seal {
    position: relative;
    width: 250px; height: 250px;
    filter: drop-shadow(0 18px 28px rgba(20,83,45,.28));
  }
  .ms-cert__seal svg { width: 100%; height: 100%; display: block; }
  .ms-cert__seal-ring { transform-origin: 125px 125px; animation: ms-spin 40s linear infinite; }
  .ms-cert__seal-shine {
    position: absolute; inset: 22px; border-radius: 50%; overflow: hidden; pointer-events: none;
  }
  .ms-cert__seal-shine::after {
    content: ""; position: absolute; top: -50%; left: -80%; width: 50%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: rotate(20deg);
    animation: ms-shine 4.5s ease-in-out infinite;
  }
  .ms-cert__valid {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid rgba(46,168,79,.35);
    color: var(--ms-green-900); font-weight: 600; font-size: 14px;
    padding: 8px 16px; border-radius: 999px;
    box-shadow: 0 6px 14px -8px rgba(20,83,45,.4);
  }
  .ms-cert__dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--ms-green-600);
    box-shadow: 0 0 0 0 rgba(46,168,79,.6); animation: ms-pulse 2s infinite;
  }

  /* ---------- Contenido ---------- */
  .ms-cert__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ms-green-700);
    background: rgba(46,168,79,.10);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  }
  .ms-cert__title {
    font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15;
    color: var(--ms-ink); margin: 0 0 18px;
  }
  .ms-cert__title span {
    background: linear-gradient(90deg, var(--ms-green-700), var(--ms-green-500));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .ms-cert__lead {
    font-size: 17px; line-height: 1.7; color: var(--ms-text); margin: 0 0 28px; max-width: 720px;
  }
  .ms-cert__lead strong { color: var(--ms-ink); font-weight: 600; }

  /* Datos clave */
  .ms-cert__facts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px;
  }
  .ms-cert__fact {
    background: #fff; border: 1px solid rgba(29,43,54,.08); border-radius: 16px;
    padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .ms-cert__fact:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(20,83,45,.4); }
  .ms-cert__fact-icon {
    flex: 0 0 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--ms-green-600), var(--ms-green-500));
  }
  .ms-cert__fact:nth-child(2) .ms-cert__fact-icon { background: linear-gradient(135deg, #8a5bd6, var(--ms-purple)); }
  .ms-cert__fact-label { font-size: 12px; color: var(--ms-text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
  .ms-cert__fact-value { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--ms-ink); line-height: 1.3; }

  /* Beneficio */
  .ms-cert__benefit {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--ms-purple-50); border-left: 4px solid var(--ms-purple);
    border-radius: 12px; padding: 16px 20px; margin-bottom: 28px;
    color: #3d2a5c; font-size: 15.5px; line-height: 1.6;
  }
  .ms-cert__benefit svg { flex: 0 0 24px; color: var(--ms-purple); margin-top: 1px; }

  /* Enlace / CTA */
  .ms-cert__cta {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--ms-green-700); color: #fff; text-decoration: none;
    font-weight: 600; font-size: 15.5px;
    padding: 15px 24px; border-radius: 14px;
    box-shadow: 0 12px 24px -12px rgba(31,138,62,.8);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .ms-cert__cta:hover { background: var(--ms-green-900); transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(20,83,45,.9); }
  .ms-cert__cta:focus-visible { outline: 3px solid var(--ms-purple); outline-offset: 3px; }
  .ms-cert__cta svg { flex: 0 0 20px; }
  .ms-cert__cta-arrow { transition: transform .2s ease; }
  .ms-cert__cta:hover .ms-cert__cta-arrow { transform: translate(3px,-3px); }
  .ms-cert__cta-note { display: block; margin-top: 10px; font-size: 13px; color: var(--ms-text); }

  @keyframes ms-spin  { to { transform: rotate(360deg); } }
  @keyframes ms-shine { 0%, 55% { left: -80%; } 100% { left: 140%; } }
  @keyframes ms-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46,168,79,.55); }
    70% { box-shadow: 0 0 0 10px rgba(46,168,79,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,168,79,0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .ms-cert__seal-ring, .ms-cert__seal-shine::after, .ms-cert__dot { animation: none; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 980px) {
    .ms-cert__card { grid-template-columns: 1fr; padding: 44px 32px 36px; gap: 32px; text-align: center; }
    .ms-cert__lead { margin-left: auto; margin-right: auto; }
    .ms-cert__facts { text-align: left; }
    .ms-cert__benefit { text-align: left; }
  }
  @media (max-width: 640px) {
    .ms-cert { padding: 48px 16px; }
    .ms-cert__card { padding: 36px 20px 28px; border-radius: 22px; }
    .ms-cert__seal { width: 200px; height: 200px; }
    .ms-cert__facts { grid-template-columns: 1fr; }
    .ms-cert__cta { width: 100%; justify-content: center; text-align: left; }
  }