

  :root {
    --navy: #0D1B3E;
    --navy-mid: #142550;
    --crimson: #B8133A;
    --crimson-light: #D94A6A; 
    --charcoal: #1A1A2E;
    --muted: #5A5A74; 
     --white: #ffffff;

      --espm-crimson: #B8133A;
            --espm-crimson-dark: #8E0E2D;
            --espm-crimson-light: #D94A6A;
            --cream: #FAF7F2;
            --cream-warm: #F5EDE3;
            --charcoal: #1A1A2E;
            --slate: #3D3D5C;  
            --card-shadow: 0 2px 24px rgba(26, 26, 46, 0.06);
            --card-shadow-hover: 0 12px 40px rgba(184, 19, 58, 0.12);
 
    --white-80: rgba(255,255,255,0.8);
    --white-50: rgba(255,255,255,0.5);
    --white-20: rgba(255,255,255,0.2);
    --white-10: rgba(255,255,255,0.1);
    --white-05: rgba(255,255,255,0.05);
  }

 
body a, 
body a:visited, 
body a:hover, 
body a:active, 
body a:focus { 
    text-decoration: none !important; /* O 'underline' si lo prefieres */
   
}

body a:visited{
    color: #fff !important; /* Mantiene el mismo color para enlaces visitados */
}
  /* ══════════════════════════════════════
     ABOUT SECTION
  ══════════════════════════════════════ */
  .about-section {
    position: relative;
    padding: 80px 40px 100px;
    overflow: hidden;
    background: var(--cream);
  }

  /* Decorative blurred orbs */
  .about-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,19,58,0.06) 0%, transparent 65%);
    pointer-events: none;
  }

  .about-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,27,62,0.04) 0%, transparent 65%);
    pointer-events: none;
  }

  .about-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
        margin-top: 3%;
         margin-bottom: 1%;
  }

  /* ── Left: Image composition ── */
  .about-visual {
    position: relative;
    height: 480px;
  }

  /* Main image */
  .about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 380px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(13,27,62,0.15);
  }

  .about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Secondary floating image */
  .about-img-float {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(13,27,62,0.18);
    border: 4px solid var(--cream);
  }

  .about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ── Glass stat badge ── */
  .glass-badge {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    z-index: 10;
    padding: 22px 26px;
    border-radius: 20px;
    text-align: center;

    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,0.45) 0%,
        rgba(255,255,255,0.12) 40%,
        rgba(255,255,255,0.18) 70%,
        rgba(255,255,255,0.40) 100%
      );
      
    backdrop-filter: blur(24px) saturate(1.5) brightness(1.1);
    -webkit-backdrop-filter: blur(24px) saturate(1.5) brightness(1.1);

    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
      0 8px 32px rgba(0,0,0,0.1),
      inset 0 1px 0 rgba(255,255,255,0.6),
      inset 0 -1px 0 rgba(0,0,0,0.04),
      inset 1px 0 0 rgba(255,255,255,0.2),
      inset -1px 0 0 rgba(255,255,255,0.2);
  }

  /* Specular top shine */
  .glass-badge::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
    pointer-events: none;
  }

  .glass-badge-number {
 
    font-size: 2.4rem;
    color: var(--navy);
    line-height: 1;
    position: relative;
  }

  .glass-badge-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    margin-top: 4px;
    position: relative;
  }

  /* ── Second glass badge (bottom-left) ── */
  .glass-badge-2 {
    position: absolute;
    bottom: 60px;
    left: -12px;
    z-index: 10;
    padding: 16px 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;

    background:
      linear-gradient(
        135deg,
        rgba(13,27,62,0.75) 0%,
        rgba(13,27,62,0.55) 100%
      );
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);

    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
      0 8px 28px rgba(0,0,0,0.2),
      inset 0 1px 0 rgba(255,255,255,0.1);
  }

  .glass-badge-2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    pointer-events: none;
  }

  .badge2-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(184,19,58,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .badge2-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--crimson-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .badge2-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
  }

  .badge2-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
  }

  .badge2-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
  }

  /* ── Right: Text content ── */
  .about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .about-label {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .about-label-line {
    width: 40px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
    border-radius: 2px;
  }

  .about-label-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--crimson);
  }

  .about-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--charcoal);
    line-height: 1.2;
  }

  .about-title span {
    color: var(--crimson);
  }

  .about-text {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
  }

  /* ── Glass-style CTA button ── */
  .about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--white);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.22,.61,.36,1);

    background:
      linear-gradient(
        135deg,
        rgba(184,19,58,0.9) 0%,
        rgba(184,19,58,0.75) 50%,
        rgba(217,74,106,0.85) 100%
      );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255,255,255,0.15);
    box-shadow:
      0 6px 24px rgba(184,19,58,0.25),
      inset 0 1px 0 rgba(255,255,255,0.2),
      inset 0 -1px 0 rgba(0,0,0,0.1);
  }

  /* Specular shine on button */
  .about-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 14px 14px 0 0;
  }

  .about-cta:hover {
    transform: translateY(-3px);
    box-shadow:
      0 12px 36px rgba(184,19,58,0.35),
      inset 0 1px 0 rgba(255,255,255,0.25);
    gap: 14px;
  }

  .about-cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    position: relative;
    transition: transform 0.3s ease;
  }

  .about-cta:hover svg {
    transform: translateX(3px);
  }

  /* ── Key features row (glass pills) ── */
  .about-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .feature-pill {
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--charcoal);

    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,0.7) 0%,
        rgba(255,255,255,0.3) 100%
      );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.6);
    box-shadow:
      0 2px 12px rgba(0,0,0,0.04),
      inset 0 1px 0 rgba(255,255,255,0.8),
      inset 0 -1px 0 rgba(0,0,0,0.02);
    transition: all 0.3s ease;
  }

  .feature-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  }

  .feature-pill svg {
    width: 16px;
    height: 16px;
    stroke: var(--crimson);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  /* ── Animations ── */
  .about-visual {
    opacity: 0;
    transform: translateX(30px);
    animation: slideLeft 0.8s cubic-bezier(.22,.61,.36,1) 0.1s forwards;
  }

  .about-content {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideRight 0.8s cubic-bezier(.22,.61,.36,1) 0.2s forwards;
  }

  .glass-badge {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    animation: badgePop 0.5s cubic-bezier(.22,.61,.36,1) 0.6s forwards;
  }

  .glass-badge-2 {
    opacity: 0;
    transform: scale(0.9);
    animation: badgePop2 0.5s cubic-bezier(.22,.61,.36,1) 0.8s forwards;
  }

  @keyframes slideRight { to { opacity: 1; transform: translateX(0); } }
  @keyframes slideLeft { to { opacity: 1; transform: translateX(0); } }
  @keyframes badgePop { to { opacity: 1; transform: translateY(-50%) scale(1); } }
  @keyframes badgePop2 { to { opacity: 1; transform: scale(1); } }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .about-inner {
      grid-template-columns: 1fr;
      gap: 40px;
      padding: 40px 20px 72px;
    }
    .about-visual {
      height: 380px;
      max-width: 520px;
      margin: 0 auto;
      display: none;
    }
    .about-img-main { width: 80%; height: 300px; }
    .about-img-float { width: 50%; height: 180px; }
    .glass-badge { right: 10px; }
  }

  @media (max-width: 600px) {
    .about-section { padding: 60px 20px 72px; }
    .about-visual { height: 320px; display: none; }
    .about-img-main { width: 78%; height: 250px; border-radius: 16px; }
    .about-img-float { width: 52%; height: 160px; border-radius: 14px; }
    .glass-badge { padding: 16px 20px; }
    .glass-badge-number { font-size: 1.8rem; }
    .about-features { gap: 8px; }
    .feature-pill { padding: 8px 14px; font-size: 0.78rem; }
  }



        /* ============================================
           MENÚ FLOTANTE  
           ============================================ */
        
        .social-float {
            position: fixed;
            left: 20px;
            top: 60%;
            transform: translateY(-10%);
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 1000;
        }

        .social-float a {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .social-float a:hover {
            transform: scale(1.15) translateX(5px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
        }

        /* LinkedIn */
        .social-float a.linkedin {
            background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
        }

        .social-float a.linkedin:hover {
            background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
        }

        /* Facebook */
        .social-float a.facebook {
            background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
        }

        .social-float a.facebook:hover {
            background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
        }

        /* Instagram */
        .social-float a.instagram {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        }

        .social-float a.instagram:hover {
            background: linear-gradient(45deg, #ffb347 0%, #ff6b4a 25%, #e8395a 50%, #d93d7a 75%, #c92498 100%);
        }

        /* Twitter/X */
        .social-float a.twitter {
            background: linear-gradient(135deg, #1da1f2 0%, #0d8ecf 100%);
        }

        .social-float a.twitter:hover {
            background: linear-gradient(135deg, #33b5ff 0%, #1a9fe0 100%);
        }

        /* YouTube */
        .social-float a.youtube {
            background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
        }

        .social-float a.youtube:hover {
            background: linear-gradient(135deg, #ff3333 0%, #e60000 100%);
        }

        /* Spotify */
        .social-float a.spotify {
            background: linear-gradient(135deg, #1db954 0%, #169c46 100%);
        }

        .social-float a.spotify:hover {
            background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
        }

        /* Iconos SVG */
        .social-float a svg {
            width: 24px;
            height: 24px;
            fill: white;
            transition: transform 0.3s ease;
        }

        .social-float a:hover svg {
            transform: scale(1.1);
        }

        /* Tooltip */
        .social-float a::before {
            content: attr(data-tooltip);
            position: absolute;
            left: 65px;
            background-color: #333;
            color: white;
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .social-float a::after {
            content: '';
            position: absolute;
            left: 57px;
            border: 6px solid transparent;
            border-right-color: #333;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .social-float a:hover::before,
        .social-float a:hover::after {
            opacity: 1;
            visibility: visible;
        }

        /* Animación de entrada */
        .social-float a {
            animation: slideIn 0.5s ease forwards;
            opacity: 0;
        }

        .social-float a:nth-child(1) { animation-delay: 0.1s; }
        .social-float a:nth-child(2) { animation-delay: 0.2s; }
        .social-float a:nth-child(3) { animation-delay: 0.3s; }
        .social-float a:nth-child(4) { animation-delay: 0.4s; }
        .social-float a:nth-child(5) { animation-delay: 0.5s; }
        .social-float a:nth-child(6) { animation-delay: 0.6s; }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Efecto pulse opcional */
        .social-float a.pulse::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: inherit;
            animation: pulse 2s infinite;
            z-index: -1;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.7;
            }
            100% {
                transform: scale(1.5);
                opacity: 0;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .social-float {
                left: 15px;
                gap: 10px;
                top:70%;
                transform: translateY(-10%);
                display: none;
            }

            .social-float a {
                width: 45px;
                height: 45px;
            }

            .social-float a svg {
                width: 22px;
                height: 22px;
            }

            /* Ocultar tooltips en móvil */
            .social-float a::before,
            .social-float a::after {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .social-float {
                left: 10px;
            }

            .social-float a {
                width: 42px;
                height: 42px;
            }

            .social-float a svg {
                width: 20px;
                height: 20px;
            }
        }

 /* ============================================
           FIN DEL MENÚ FLOTANTE
  ============================================ */


/* ══════════════════════════════════════
     Seccion Oferta Académica
  ══════════════════════════════════════ */
  .oferta-section {
    padding: 80px 40px 96px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
  }

  .oferta-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -140px;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,19,58,0.04) 0%, transparent 65%);
    pointer-events: none;
  }

  .oferta-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* ── Header ── */
  .oferta-header {
    text-align: center;
    margin-bottom: 56px;
  }

  .oferta-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .oferta-label-line {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
    border-radius: 2px;
  }

  .oferta-label-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--crimson);
  }

  .oferta-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--charcoal);
    line-height: 1.2;
  }

  /* ══════════════════════════════════════
     CARDS
  ══════════════════════════════════════ */
  .oferta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .oferta-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    height: 460px;
    text-decoration: none;
    display: flex;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(.22,.61,.36,1), box-shadow 0.5s ease;
  }

  .oferta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(13,27,62,0.2);
  }

  /* ── Background image ── */
  .card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
  }

  .oferta-card:hover .card-bg img {
    transform: scale(1.08);
  }

  /* Dark gradient overlay */
  .card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(13,27,62,0.08) 0%,
      rgba(13,27,62,0.25) 40%,
      rgba(13,27,62,0.75) 75%,
      rgba(13,27,62,0.92) 100%
    );
    transition: opacity 0.4s ease;
    z-index: 1;
  }

  .oferta-card:hover .card-bg::after {
    background: linear-gradient(
      180deg,
      rgba(13,27,62,0.05) 0%,
      rgba(13,27,62,0.2) 35%,
      rgba(13,27,62,0.7) 70%,
      rgba(13,27,62,0.9) 100%
    );
  }

  /* ── Card content (bottom) ── */
  .card-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* Color accent tag */
  .card-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--white);

    /* glass pill */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  }

  .card-tag-maestrias  { background: rgba(184,19,58,0.55); }
  .card-tag-educon     { background: rgba(10,102,194,0.5); }
  .card-tag-paspe      { background: rgba(0,128,128,0.5); }

  .card-title2 {
   
    font-size: 1.55rem;
    color: var(--white);
    line-height: 1.25;
  }

  .card-excerpt {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Glass CTA button ── */
  .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    margin-top: 4px;
    transition: all 0.35s cubic-bezier(.22,.61,.36,1);

    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,0.14) 0%,
        rgba(255,255,255,0.05) 100%
      );
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);

    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
      0 4px 16px rgba(0,0,0,0.1),
      inset 0 1px 0 rgba(255,255,255,0.2);
  }

  .card-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
  }

  .card-cta svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
  }

  .oferta-card:hover .card-cta {
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.08) 100%
      );
    border-color: rgba(255,255,255,0.3);
    box-shadow:
      0 6px 24px rgba(0,0,0,0.15),
      inset 0 1px 0 rgba(255,255,255,0.3);
    gap: 12px;
  }

  .oferta-card:hover .card-cta svg {
    transform: translateX(3px);
  }

  /* ── Top corner icon (glass badge) ── */
  .card-icon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,0.25) 0%,
        rgba(255,255,255,0.08) 100%
      );
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);

    border: 1px solid rgba(255,255,255,0.3);
    box-shadow:
      0 4px 16px rgba(0,0,0,0.1),
      inset 0 1px 0 rgba(255,255,255,0.35);

    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(.22,.61,.36,1);
  }

  .card-icon-badge::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    pointer-events: none;
  }

  .oferta-card:hover .card-icon-badge {
    opacity: 1;
    transform: scale(1);
  }

  .card-icon-badge svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ══════════════════════════════════════
     ANIMATIONS
  ══════════════════════════════════════ */
  .oferta-header {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease 0.05s forwards;
  }

  .oferta-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.65s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .oferta-card:nth-child(1) { animation-delay: 0.15s; }
  .oferta-card:nth-child(2) { animation-delay: 0.25s; }
  .oferta-card:nth-child(3) { animation-delay: 0.35s; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }

  /* ══════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════ */
  @media (max-width: 900px) {
    .oferta-grid {
      grid-template-columns: 1fr 1fr;
    }
    .oferta-card { height: 420px; }
  }

  @media (max-width: 600px) {
    .oferta-inner { padding: 60px 20px 72px; }
    .oferta-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .oferta-card { height: 400px; }
    .card-content { padding: 28px 24px; }
    .card-title2 { font-size: 1.35rem; }
  }

  /* ══════════════════════════════════════
     FIN DE LA SECCIÓN OFERTA ACADÉMICA 
  ══════════════════════════════════════ */


  /* ══════════════════════════════════════
     Cartas de servicios
  ══════════════════════════════════════ */

        .section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 80px 24px 100px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 64px;
            position: relative;
        }

        .section-label {
           
            font-weight: 600;
            font-size: 0.8rem;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--espm-crimson);
            margin-bottom: 16px;
            display: inline-block;
            position: relative;
        }

        .section-label::before,
        .section-label::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 32px;
            height: 1.5px;
            background: var(--espm-crimson);
            opacity: 0.4;
        }

        .section-label::before {
            right: calc(100% + 14px);
        }

        .section-label::after {
            left: calc(100% + 14px);
        }

        .section-title {
          
            font-size: clamp(2rem, 4vw, 2.8rem);
            color: var(--charcoal);
            line-height: 1.2;
            margin-bottom: 16px;
        }

        .section-subtitle {
            font-size: 1.05rem;
            color: var(--muted);
            max-width: 580px;
            margin: 0 auto;
            line-height: 1.7;
        }

        /* ── Grid ── */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        /* ── Card ── */
        .card {
            background: var(--white);
            border-radius: 16px;
            padding: 40px 32px 36px;
            position: relative;
            overflow: hidden;
            transition: transform 0.4s cubic-bezier(.22, .61, .36, 1), box-shadow 0.4s ease;
            box-shadow: var(--card-shadow);
            cursor: default;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--espm-crimson), var(--espm-crimson-light));
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s cubic-bezier(.22, .61, .36, 1);
        }

        .card:hover {
            transform: translateY(-6px);
            box-shadow: var(--card-shadow-hover);
        }

        .card:hover::before {
            transform: scaleX(1);
        }

        .card-icon {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
            background: linear-gradient(135deg, rgba(184, 19, 58, 0.08), rgba(184, 19, 58, 0.03));
            transition: background 0.3s ease;
        }

        .card:hover .card-icon {
            background: linear-gradient(135deg, rgba(184, 19, 58, 0.14), rgba(184, 19, 58, 0.06));
        }

        .card-icon svg {
            width: 26px;
            height: 26px;
            stroke: var(--espm-crimson);
            fill: none;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .card-title {
           
            font-size: 1.25rem;
            color: var(--charcoal);
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .card-text {
            font-size: 0.925rem;
            color: var(--muted);
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .card-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--espm-crimson);
            text-decoration: none;
            transition: gap 0.3s ease;
        }

        .card-link:hover {
            gap: 10px;
        }

        .card-link svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            transition: transform 0.3s ease;
        }

        .card-link:hover svg {
            transform: translateX(2px);
        }

        /* ── Number badge ── */
        .card-number {
            position: absolute;
            top: 20px;
            right: 24px;
            font-family: 'DM Serif Display', serif;
            font-size: 3.2rem;
            color: rgba(184, 19, 58, 0.04);
            line-height: 1;
            user-select: none;
            transition: color 0.3s ease;
        }

        .card:hover .card-number {
            color: rgba(184, 19, 58, 0.08);
        }

        /* ── Animations ── */
        .card {
            opacity: 0;
            transform: translateY(30px);
            animation: cardReveal 0.6s cubic-bezier(.22, .61, .36, 1) forwards;
        }

        .card:nth-child(1) {
            animation-delay: 0.05s;
        }

        .card:nth-child(2) {
            animation-delay: 0.12s;
        }

        .card:nth-child(3) {
            animation-delay: 0.19s;
        }

        .card:nth-child(4) {
            animation-delay: 0.26s;
        }

        .card:nth-child(5) {
            animation-delay: 0.33s;
        }

        .card:nth-child(6) {
            animation-delay: 0.40s;
        }

        @keyframes cardReveal {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section-header {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 0.7s ease forwards;
        }

        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Responsive ── */
        @media (max-width: 900px) {
            .cards-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 600px) {
            .cards-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .section {
                padding: 60px 16px 72px;
            }

            .card {
                padding: 32px 24px 28px;
            }
        }

        /* ── Decorative background shapes ── */
        .section-wrapper {
            position: relative;
            overflow: hidden;
        }

        .section-wrapper::before {
            content: '';
            position: absolute;
            top: -200px;
            right: -160px;
            width: 420px;
            height: 420px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(184, 19, 58, 0.03) 0%, transparent 70%);
            pointer-events: none;
        }

        .section-wrapper::after {
            content: '';
            position: absolute;
            bottom: -120px;
            left: -100px;
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(184, 19, 58, 0.025) 0%, transparent 70%);
            pointer-events: none;
        }


 

    /* ══════════════════════════════════════
     Fin Cartas de servicios
  ══════════════════════════════════════ */



  /* ══════════════════════════════════════════════════
     SECCIÓN 1: INFORMACIÓN RELEVANTE
  ══════════════════════════════════════════════════ */
  .info-section {
    background: var(--navy);
    padding: 72px 40px 80px;
    position: relative;
    overflow: hidden;
  }

  .info-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 500px 400px at 10% 0%, rgba(184,19,58,0.05) 0%, transparent 70%),
      radial-gradient(ellipse 400px 300px at 90% 100%, rgba(255,255,255,0.02) 0%, transparent 70%);
    pointer-events: none;
  }

  .info-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* Header */
  .info-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .info-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .section-accent {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
    border-radius: 2px;
  }

  .info-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--crimson-light);
  }

  .info-title {
  
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--white);
    line-height: 1.2;
  }

  .info-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--white-20);
    border-radius: 100px;
    color: var(--white-80);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .info-view-all:hover {
    background: var(--white-10);
    border-color: var(--white-50);
    color: var(--white);
    gap: 12px;
  }

  .info-view-all svg {
    width: 15px; height: 15px;
    stroke: currentColor; fill: none; stroke-width: 2;
    transition: transform 0.3s ease;
  }

  .info-view-all:hover svg { transform: translateX(2px); }

  /* News Cards */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .news-card {
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.22,.61,.36,1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
  }

  .news-card:hover {
    background: var(--white-10);
    border-color: var(--white-20);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  }

  .news-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
  }

  .news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
  }

  .news-card:hover .news-card-img img { transform: scale(1.06); }

  .news-date-badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
  }

  .news-date-day {
    font-size: 1.1rem; font-weight: 700; color: var(--white);
  }

  .news-date-month {
    font-size: 0.62rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--white-50); margin-top: 2px;
  }

  .news-card-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .news-card-title {
    
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color 0.3s ease;
  }

  .news-card:hover .news-card-title { color: var(--crimson-light); }

  .news-card-excerpt {
    font-size: 0.88rem;
    color: var(--white-50);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--crimson-light);
    transition: gap 0.3s ease, color 0.3s ease;
  }

  .news-card:hover .news-card-link { gap: 10px; color: var(--white); }

  .news-card-link svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none; stroke-width: 2.5;
    transition: transform 0.3s ease;
  }

  .news-card:hover .news-card-link svg { transform: translateX(2px); }

  /* News animations */
  .news-card {
    opacity: 0; transform: translateY(24px);
    animation: cardUp 0.6s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .news-card:nth-child(1) { animation-delay: 0.1s; }
  .news-card:nth-child(2) { animation-delay: 0.2s; }
  .news-card:nth-child(3) { animation-delay: 0.3s; }

  @keyframes cardUp { to { opacity: 1; transform: translateY(0); } }


  /* ══════════════════════════════════════════════════
     SECCIÓN 2: AVISO
  ══════════════════════════════════════════════════ */
  .aviso-section {
    padding: 72px 40px 80px; 
    position: relative;
    overflow: hidden;
  }

  .aviso-section::before {
    content: '';
    position: absolute;
    top: -80px; left: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,19,58,0.04) 0%, transparent 65%);
    pointer-events: none;
  }

  .aviso-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: start;
  }

  /* Left: Icon column */
  .aviso-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
  }

  .aviso-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
      linear-gradient(
        135deg,
        rgba(184,19,58,0.12) 0%,
        rgba(184,19,58,0.04) 100%
      );
    border: 1px solid rgba(184,19,58,0.15);
    box-shadow:
      0 4px 16px rgba(184,19,58,0.06),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }

  .aviso-icon-badge svg {
    width: 28px; height: 28px;
    stroke: var(--crimson); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }

  .aviso-icon-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, rgba(184,19,58,0.2), transparent);
    border-radius: 2px;
  }

  /* Right: Content */
  .aviso-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .aviso-header-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .aviso-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--crimson);
  }

  .aviso-title {
    
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--charcoal);
    line-height: 1.25;
  }

  .aviso-text {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
  }

  .aviso-text span {
    color: var(--crimson);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(184,19,58,0.3);
    transition: border-color 0.2s ease;
  }

  .aviso-text span:hover {
    border-color: var(--crimson);
  }

  /* Glass highlight quote */
  .aviso-highlight {
    padding: 24px 28px;
    border-radius: 16px;
    position: relative;

    background:
      linear-gradient(
        135deg,
        rgba(13,27,62,0.06) 0%,
        rgba(13,27,62,0.02) 50%,
        rgba(184,19,58,0.03) 100%
      );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(13,27,62,0.08);
    box-shadow:
      0 2px 12px rgba(0,0,0,0.03),
      inset 0 1px 0 rgba(255,255,255,0.6);
  }

  /* Specular top shine */
  .aviso-highlight::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 100%);
    pointer-events: none;
  }

  /* Left crimson bar */
  .aviso-highlight::after {
    content: '';
    position: absolute;
    top: 16px; bottom: 16px; left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--crimson), var(--crimson-light));
  }

  .aviso-highlight p {
    font-size: 0.92rem;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.7;
    position: relative;
    padding-left: 16px;
  }

  /* Contact CTA pill */
  .aviso-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--white);
    margin-top: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(.22,.61,.36,1);

    background:
      linear-gradient(
        135deg,
        rgba(184,19,58,0.9) 0%,
        rgba(184,19,58,0.75) 50%,
        rgba(217,74,106,0.85) 100%
      );
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
      0 4px 20px rgba(184,19,58,0.2),
      inset 0 1px 0 rgba(255,255,255,0.18);
  }

  .aviso-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
  }

  .aviso-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184,19,58,0.3);
    gap: 14px;
  }

  .aviso-cta svg {
    width: 15px; height: 15px;
    stroke: currentColor; fill: none; stroke-width: 2;
    transition: transform 0.3s ease;
  }

  .aviso-cta:hover svg { transform: translateX(3px); }

  /* Aviso animation */
  .aviso-icon-col, .aviso-content {
    opacity: 0; transform: translateY(20px);
    animation: cardUp 0.6s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .aviso-icon-col { animation-delay: 0.1s; }
  .aviso-content  { animation-delay: 0.2s; }

  /* ══════════════════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════════════════ */
  @media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 600px) {
    .info-section { padding: 56px 20px 64px; }
    .news-grid { grid-template-columns: 1fr; gap: 18px; }
    .info-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }

    .aviso-section { padding: 56px 20px 64px; }
    .aviso-inner {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .aviso-icon-col {
      flex-direction: row;
      gap: 16px;
    }
    .aviso-icon-line {
      width: 40px; height: 2px;
      background: linear-gradient(90deg, rgba(184,19,58,0.2), transparent);
    }
  }


  /* ══════════════════════════════════════════════════
     Noticias
  ══════════════════════════════════════════════════ */
  #nx-news-relevante {
    background: #0D1B3E;
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

#nx-news-relevante::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 400px at 10% 0%, rgba(184,19,58,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 90% 100%, rgba(255,255,255,0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.nx-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.nx-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nx-accent-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #B8133A, #D94A6A);
    border-radius: 2px;
}

.nx-sup-label {
    
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #D94A6A;
}

.nx-main-title {
  
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #fff;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    border: none;
}

.nx-main-title::before,
.nx-main-title::after {
    display: none;
}

.nx-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
  
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
}

.nx-view-all:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    text-decoration: none;
    gap: 12px;
}

.nx-view-all svg {
    width: 15px; height: 15px;
    stroke: currentColor; fill: none; stroke-width: 2;
    transition: transform 0.3s ease;
}

.nx-view-all:hover svg {
    transform: translateX(2px);
}

/* Cards Grid */
.nx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Card ── */
.nx-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.22,.61,.36,1);
    display: flex;
    flex-direction: column;
}

.nx-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.nx-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image */
.nx-card-thumb {
    width: 100%;
    height: 100px;
    overflow: hidden;
    position: relative;
}

.nx-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
}

.nx-card:hover .nx-card-thumb img {
    transform: scale(1.06);
}

/* Date badge (glass) */
.nx-card-date {
    position: absolute;
    top: 14px; left: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    z-index: 2;
}

.nx-card-date-day {
 
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.nx-card-date-month {
 
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* Body */
.nx-card-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nx-card-body h3 {
   
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.35;
    margin: 0 0 12px 0;
    padding: 0;
    transition: color 0.3s ease;
}

.nx-card:hover .nx-card-body h3 {
    color: #D94A6A;
}

.nx-card-excerpt {
     
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nx-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
 
    font-size: 0.82rem;
    font-weight: 600;
    color: #D94A6A;
    transition: gap 0.3s ease, color 0.3s ease;
}

.nx-card:hover .nx-card-readmore {
    gap: 10px;
    color: #fff;
}

.nx-card-readmore svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none; stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.nx-card:hover .nx-card-readmore svg {
    transform: translateX(2px);
}

/* Staggered animation */
.nx-card {
    opacity: 0;
    transform: translateY(24px);
    animation: nxCardUp 0.6s cubic-bezier(.22,.61,.36,1) forwards;
}
.nx-card:nth-child(1) { animation-delay: 0.1s; }
.nx-card:nth-child(2) { animation-delay: 0.2s; }
.nx-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes nxCardUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .nx-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    #nx-news-relevante { padding: 56px 0 64px; }
    .nx-grid { grid-template-columns: 1fr; gap: 18px; }
    .nx-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .nx-card-thumb { height: 180px; }
}


/* ======================
footer 
============================= */

  .nx-ft { position: relative; overflow: hidden; background: #03315F; }

  .nx-ft-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .nx-ft-bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; animation: nxOrbFloat 12s ease-in-out infinite alternate; }
  .nx-ft-bg-orb--1 { width: 500px; height: 500px; top: -150px; left: -100px; background: radial-gradient(circle, rgba(184,19,58,0.08) 0%, transparent 70%); animation-duration: 14s; }
  .nx-ft-bg-orb--2 { width: 400px; height: 400px; bottom: -100px; right: -80px; background: radial-gradient(circle, rgba(13,27,62,0.06) 0%, transparent 70%); animation-duration: 10s; animation-direction: alternate-reverse; }
  .nx-ft-bg-orb--3 { width: 300px; height: 300px; top: 40%; left: 50%; background: radial-gradient(circle, rgba(212,168,83,0.06) 0%, transparent 70%); animation-duration: 16s; }
  @keyframes nxOrbFloat { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(30px,-20px) scale(1.08); } }

  .nx-ft-accent { height: 3px; background: linear-gradient(90deg, #B8133A, #D94A6A, #D4A853, #D94A6A, #B8133A); background-size: 200% 100%; animation: nxShimmer 6s ease infinite; position: relative; z-index: 2; }
  @keyframes nxShimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

  .nx-ft-inner { position: relative; z-index: 1;  margin: 0 auto; padding: 56px 36px 0; }

  /* Glass card */
  .nx-ft-glass { border-radius: 24px; padding: 48px 44px; margin-bottom: 40px; position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.35) 15%, rgba(255,255,255,0.45) 65%, rgba(255,255,255,0.65) 100%);
    backdrop-filter: blur(40px) saturate(1.4) brightness(1.02); -webkit-backdrop-filter: blur(40px) saturate(1.4) brightness(1.02);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 48px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -1px 0 rgba(0,0,0,0.02); }
  .nx-ft-glass::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%); pointer-events: none; }

  .nx-ft-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; position: relative; }

  /* Brand */
  .nx-ft-brand { display: flex; flex-direction: column; gap: 22px; }
  .nx-ft-logo { display: block; text-decoration: none; }
  .nx-ft-logo img { height: 55px; transition: opacity 0.3s ease; }
  .nx-ft-logo:hover img { opacity: 0.8; }
  .nx-ft-tagline { font-size: 0.88rem; color: #262626 line-height: 1.65; max-width: 340px; }

  /* Contacts */
  .nx-ft-contacts { display: flex; flex-direction: column; gap: 8px; }
  .nx-ft-contact { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; padding: 10px 14px; border-radius: 12px; transition: all 0.3s ease; background: transparent; }
  .nx-ft-contact:hover { background: rgba(13,27,62,0.04); }
  .nx-ft-contact-icon { width: 34px; height: 34px; min-width: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(184,19,58,0.08); border: 1px solid rgba(184,19,58,0.08); margin-top: 1px; }
  .nx-ft-contact-icon svg { width: 15px; height: 15px; stroke: #B8133A; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .nx-ft-contact-text { font-size: 0.84rem; color: #262626; line-height: 1.5; }

  /* Social circles */
  .nx-ft-socials { display: none; gap: 10px; margin-top: 4px; }
  .nx-ft-soc { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(.22,.61,.36,1); border: none; }
  .nx-ft-soc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%); border-radius: 50% 50% 0 0; pointer-events: none; }
  .nx-ft-soc svg { width: 18px; height: 18px; fill: #fff; position: relative; z-index: 1; transition: transform 0.3s ease; }
  .nx-ft-soc:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
  .nx-ft-soc:hover svg { transform: scale(1.05); }
  .nx-ft-soc--fb { background: #1877F2; }
  .nx-ft-soc--ig { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
  .nx-ft-soc--x  { background: #000; }
  .nx-ft-soc--li { background: #0A66C2; }
  .nx-ft-soc--yt { background: #FF0000; }
  .nx-ft-soc--sp { background: #1DB954; }

  /* Links */
  .nx-ft-col-title { font-weight: 700; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #B8133A; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(184,19,58,0.12); }
  .nx-ft-links { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
  .nx-ft-links li a { font-size: 0.86rem; color: #262626; text-decoration: none; display: inline-flex; align-items: center; gap: 0; padding: 4px 0; transition: all 0.25s ease; position: relative; }
  .nx-ft-links li a:hover { color: rgba(26,26,46,0.9); gap: 6px; }
  .nx-ft-links li a::before { content: ''; width: 0; height: 1.5px; border-radius: 1px; background: #D94A6A; transition: width 0.25s ease; flex-shrink: 0; }
  .nx-ft-links li a:hover::before { width: 12px; }

  /* Partners */
  .nx-ft-partners {   margin: 0 auto; padding: 0 36px; position: relative; z-index: 1; }
  .nx-ft-partners-bar { border-radius: 16px; padding: 28px 36px; display: flex; flex-direction: column; align-items: center; gap: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 20%);
    backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255,255,255,0.55); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 20px rgba(0,0,0,0.04); }
  .nx-ft-partners-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #B8133A; }
  .nx-ft-logos { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
  .nx-ft-logos a { text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; transition: all 0.3s ease; }
  .nx-ft-logos a:hover { border-color: rgba(13,27,62,0.06); background: rgba(255,255,255,0.5); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
  .nx-ft-logos img { height: 30px; width: auto; opacity: 0.35; transition: opacity 0.3s ease; }
  .nx-ft-logos a:hover img { opacity: 0.75; }

  /* Bottom */
  .nx-ft-bottom { max-width: 1200px; margin: 32px auto 0; padding: 22px 36px 28px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(26,26,46,0.06); }
  .nx-ft-copy { font-size: 1rem; color: #fff; }
  .nx-ft-copy a { color: #fff; text-decoration: none; transition: color 0.2s; }
  .nx-ft-copy a:hover { color: #fff; }
  .nx-ft-blinks { display: flex; gap: 20px; }
  .nx-ft-blinks a { font-size: 0.76rem; color: rgba(26,26,46,0.3); text-decoration: none; transition: color 0.2s; }
  .nx-ft-blinks a:hover { color: rgba(26,26,46,0.6); }

  /* Responsive */
  @media (max-width: 900px) { .nx-ft-grid { grid-template-columns: 1fr; gap: 36px; } .nx-ft-glass { padding: 40px 32px; }   .nx-ft-socials { display: flex;  }}
  @media (max-width: 600px) { .nx-ft-socials { display: flex;  } .nx-ft-inner { padding: 44px 16px 0; } .nx-ft-glass { padding: 32px 22px; border-radius: 18px; } .nx-ft-partners { padding: 0 16px; } .nx-ft-partners-bar { padding: 22px 18px; border-radius: 12px; } .nx-ft-logos { gap: 16px; } .nx-ft-logos img { height: 22px; } .nx-ft-bottom { flex-direction: column; text-align: center; padding: 18px 16px 24px; } }

  /* Animations */
  .nx-ft-glass { opacity: 0; transform: translateY(24px); animation: nxFtReveal 0.7s cubic-bezier(.22,.61,.36,1) 0.1s forwards; }
  .nx-ft-partners-bar { opacity: 0; transform: translateY(16px); animation: nxFtReveal 0.6s cubic-bezier(.22,.61,.36,1) 0.25s forwards; }
  @keyframes nxFtReveal { to { opacity: 1; transform: translateY(0); } }


  /* ==================
  Contacto
  ===================== */


      .bg-img {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .bg-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://espm.mx/wp-content/uploads/2021/09/contacto.jpg') center/cover no-repeat;
    transform: scale(1.03);
    filter: brightness(0.8) saturate(1.1);
    z-index: 0;
  }

  /* ── Glass overlay — full width ── */
  .glass-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 56px 40px;

    background:
    linear-gradient(        135deg,        rgba(39, 139, 245, 0.4) 0%,        rgba(39, 139, 245, 0.4) 35%,        rgba(39, 139, 245, 0.4) 65%,        rgba(39, 139, 245, 0.4) 100%);
    backdrop-filter: blur(32px) saturate(1.6) brightness(1.05);
    -webkit-backdrop-filter: blur(32px) saturate(1.6) brightness(1.05);

    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(0, 0, 0, 0.05),
      0 4px 32px rgba(0, 0, 0, 0.15);
  }

  .glass-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
  }

  /* ── Inner layout ── */
  .contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }

  /* ── Left: Logo + Social ── */
  .contact-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex-shrink: 0;
  }

  .glass-logo img {
    height: 38px; 
    opacity: 0.95;
  }

  .logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7rem;
    color: #fff;
    letter-spacing: 2px;
  }

  .social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.22,.61,.36,1);
  }

  .social-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: transform 0.3s ease;
  }

  .social-icon:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  }

  .social-facebook  { background: #1877F2; }
  .social-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
  .social-x         { background: #000; border: 1px solid rgba(255,255,255,0.15); }
  .social-linkedin  { background: #0A66C2; }
  .social-youtube   { background: #FF0000; }
  .social-spotify   { background: #1DB954; }

  /* ── Vertical divider ── */
  .contact-divider {
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25), transparent);
    flex-shrink: 0;
  }

  /* ── Right: Contact info ── */
  .contact-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-width: 280px;
  }

  .contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .contact-row:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }

  .contact-row-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-row-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .contact-phone .contact-row-icon       { background: rgba(59,130,246,0.18); }
  .contact-phone .contact-row-icon svg    { stroke: #60A5FA; }
  .contact-whatsapp .contact-row-icon     { background: rgba(37,211,102,0.18); }
  .contact-whatsapp .contact-row-icon svg { stroke: #25D366; }
  .contact-email .contact-row-icon        { background: rgba(239,68,68,0.15); }
  .contact-email .contact-row-icon svg    { stroke: #F87171; }

  .contact-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .contact-row-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.45);
  }

  .contact-row-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
  }

  /* ── Animations ── */
  .contact-left, .contact-divider, .contact-right {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal 0.6s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .contact-left    { animation-delay: 0.1s; }
  .contact-divider { animation-delay: 0.2s; }
  .contact-right   { animation-delay: 0.3s; }

  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── Responsive ── */
  @media (max-width: 768px) {
    .glass-overlay { padding: 44px 24px; }

    .contact-inner {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 28px;
    }

    .contact-left { align-items: center; }

    .contact-divider {
      width: 80px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    }

    .contact-right { width: 100%; }
    .contact-row { justify-content: center; }
  }
