  
    /* ===== RESET & BASE ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    
    :root {
      --primary: #39bdf5;
      --primary-hover: #2da8e1;
      --dark: #5a5b7f;
      --dark-deep: #4a4b6f;
      --white: #ffffff;
      --gray-50: #f9fafb;
      --gray-100: #f3f4f6;
      --gray-300: #d1d5db;
      --gray-500: #6b7280;
      --gray-600: #4b5563;
      --gray-700: #374151;
      --gray-800: #1f2937;
      --radius: 0.75rem;
      --radius-lg: 1rem;
      --radius-xl: 1.5rem;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Avenir', 'Inter', -apple-system, sans-serif;
      color: var(--gray-700);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

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

    /* ===== UTILITIES ===== */
    .container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
    .container-sm { max-width: 896px; margin: 0 auto; padding: 0 1rem; }
    .container-md { max-width: 672px; margin: 0 auto; padding: 0 1rem; }
    .text-center { text-align: center; }
    .text-left { text-align: left; }

    /* ===== BUTTONS ===== */
    .btn-primary {
      display: inline-block;
      background: var(--primary);
      color: var(--white);
      font-weight: 600;
      padding: 1rem 2rem;
      border-radius: var(--radius);
      transition: all 0.3s ease;
      box-shadow: 0 4px 14px rgba(57, 189, 245, 0.3);
      border: none;
      cursor: pointer;
      font-size: 1rem;
    }
    .btn-primary:hover {
      background: var(--primary-hover);
      box-shadow: 0 6px 20px rgba(57, 189, 245, 0.4);
      transform: translateY(-2px);
    }

    .btn-secondary {
      display: inline-block;
      background: var(--dark);
      color: var(--white);
      font-weight: 500;
      padding: 0.75rem 1.5rem;
      border-radius: var(--radius);
      transition: all 0.3s ease;
    }
    .btn-secondary:hover { background: var(--dark-deep); }

    .btn-inline {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      justify-content: center;
    }

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

    /* ===== ICONS (SVG inline) ===== */
    .icon { width: 2.5rem; height: 2.5rem; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .icon-lg { width: 4rem; height: 4rem; }
    .icon-sm { width: 1.25rem; height: 1.25rem; stroke: currentColor; }
    .icon-md { width: 3rem; height: 3rem; }
    .icon-footer { width: 1.75rem; height: 1.75rem; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .icon-contact { width: 3rem; height: 3rem; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    /* ===== ANIMATIONS ===== */
    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .slide-up {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    .fade-in.visible, .slide-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ===== CARDS ===== */
    .service-card {
      background: var(--white);
      padding: 1.5rem;
      border-radius: var(--radius-lg);
      box-shadow: 0 4px 14px rgba(0,0,0,0.08);
      border: 1px solid var(--gray-100);
      transition: all 0.3s ease;
      text-align: center;
    }
    .service-card:hover {
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      border-color: rgba(57, 189, 245, 0.3);
      transform: translateY(-8px);
    }

    /* ===== SECTION STYLES ===== */
    .section { padding: 5rem 1rem; }
    .section-dark {
      background: linear-gradient(135deg, var(--dark) 0%, var(--dark-deep) 100%);
      color: var(--white);
      position: relative;
      overflow: hidden;
    }
    .section-light { background: var(--white); }
    .section-gray { background: var(--gray-50); }

    /* ===== HERO ===== */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 2rem 1rem;
    }
    .hero h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; color: var(--white); margin-bottom: 0.5rem; line-height: 1.1; }
    .hero .divider { width: 6rem; height: 4px; background: var(--primary); margin: 1rem auto; border: none; }
    .hero .subtitle { font-size: clamp(1.1rem, 2vw, 1.5rem); color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
    .hero h1 { font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 700; color: var(--white); margin-bottom: 1.5rem; line-height: 1.15; }
    .hero h1 .accent { color: var(--primary); }
    .hero .lead { font-size: clamp(1.1rem, 2vw, 1.5rem); color: rgba(255,255,255,0.9); margin-bottom: 3rem; max-width: 56rem; margin-left: auto; margin-right: auto; line-height: 1.6; }

    /* ===== SECTION TITLES ===== */
    .section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }
    .section-title-white { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); margin-bottom: 1.5rem; }
    .section-subtitle { font-size: 1.25rem; color: var(--gray-600); max-width: 48rem; margin: 0 auto 3rem; line-height: 1.6; }
    .section-subtitle-white { font-size: 1.25rem; color: rgba(255,255,255,0.9); max-width: 48rem; margin: 0 auto 3rem; line-height: 1.6; }

    /* ===== GRIDS ===== */
    .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
    .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }

    /* ===== ABOUT CARD ===== */
    .about-card {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
      border-radius: var(--radius-xl);
      padding: 2rem 3rem;
      border: 1px solid rgba(255,255,255,0.2);
    }
    .about-card p { font-size: 1.25rem; margin-bottom: 2rem; line-height: 1.7; color: var(--white); }
    .about-card p.secondary { color: rgba(255,255,255,0.9); font-size: 1.125rem; }
    .about-card a.link { color: var(--primary); text-decoration: underline; transition: color 0.3s; }
    .about-card a.link:hover { color: var(--white); }

    /* ===== BLOG CARDS ===== */
    .blog-card {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
      padding: 1.5rem;
      border-radius: var(--radius-xl);
      box-shadow: 0 4px 14px rgba(0,0,0,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      transition: all 0.3s ease;
      display: block;
      text-align: left;
    }
    .blog-card:hover { background: rgba(255,255,255,0.2); }
    .blog-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
    .blog-card p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; line-height: 1.6; }
    .blog-card .read-more { color: var(--primary); font-weight: 500; }

    /* ===== BLOG CTA ===== */
    .blog-cta {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
      padding: 2rem;
      border-radius: var(--radius-xl);
      box-shadow: 0 4px 14px rgba(0,0,0,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      max-width: 42rem;
      margin: 0 auto;
      text-align: center;
    }
    .blog-cta h3 { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
    .blog-cta p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; line-height: 1.6; }
    .blog-cta .btn-stack { display: flex; flex-direction: column; gap: 1rem; }

    /* ===== NEWSLETTER ===== */
    .newsletter-form {
      max-width: 32rem;
      margin: 0 auto;
    }
    .newsletter-row {
      display: flex;
      gap: 1rem;
      margin-bottom: 1rem;
    }
    .newsletter-row input {
      flex: 1;
      padding: 0.75rem 1rem;
      border: 1px solid var(--gray-300);
      border-radius: var(--radius);
      font-size: 1rem;
      font-family: inherit;
      transition: all 0.3s;
      outline: none;
    }
    .newsletter-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(57,189,245,0.2); }
    .newsletter-small { font-size: 0.875rem; color: var(--gray-500); line-height: 1.5; }

    /* ===== CONTACT ===== */
    .contact-card {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(8px);
      padding: 2rem;
      border-radius: var(--radius-xl);
      box-shadow: 0 4px 14px rgba(0,0,0,0.1);
      border: 1px solid rgba(255,255,255,0.2);
    }
    .contact-item { text-align: center; margin-bottom: 2rem; }
    .contact-item:last-of-type { margin-bottom: 0; }
    .contact-item h3 { font-size: 1.25rem; font-weight: 600; color: var(--white); margin: 0.5rem 0; }
    .contact-item a, .contact-item p { font-size: 1.125rem; color: rgba(255,255,255,0.9); transition: color 0.3s; }
    .contact-item a:hover { color: var(--primary); }

    /* ===== FOOTER ===== */
    footer { background: var(--gray-100); padding: 4rem 1rem; color: var(--gray-800); }
    .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
    .footer-text { font-size: 1.25rem; font-weight: 500; color: var(--gray-700); }
    .footer-social { display: flex; gap: 1.5rem; }
    .footer-social a { color: var(--primary); padding: 0.5rem; border-radius: var(--radius); transition: all 0.3s; }
    .footer-social a:hover { color: var(--dark); background: rgba(0,0,0,0.05); }
    .footer-copy { border-top: 1px solid var(--gray-300); padding-top: 2rem; text-align: center; color: var(--gray-600); }

    /* ===== COURSE CARD (formación) ===== */
    .course-card-content { margin-bottom: 1.5rem; }
    .course-card-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.75rem; }
    .course-card-content p { color: var(--gray-600); line-height: 1.6; margin-bottom: 1.5rem; }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 640px) {
      .newsletter-row { flex-direction: column; }
      .about-card { padding: 1.5rem; }
      .footer-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
      .section { padding: 3rem 1rem; }
    }

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

/* ===== SERVICE PAGE LAYOUT ===== */
.page-service { min-height: 100vh; background: var(--white); color: var(--dark); padding: 5rem 1rem; }
.page-service h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
.page-service .intro { font-size: 1.25rem; color: var(--gray-600); margin-bottom: 2rem; line-height: 1.7; }
.page-service .detail-box { background: var(--gray-50); padding: 2rem; border-radius: var(--radius-xl); box-shadow: 0 4px 14px rgba(0,0,0,0.08); text-align: left; }
.page-service .detail-box h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: var(--dark); }
.page-service .detail-box ul { list-style: disc; padding-left: 1.5rem; color: var(--gray-700); }
.page-service .detail-box li { margin-bottom: 0.75rem; line-height: 1.5; }

/* ===== ARTICLE PAGE LAYOUT ===== */
.article-header { background: var(--dark); padding: 2rem 1rem; }
.article-header .back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--white); transition: color 0.3s; margin-bottom: 1.5rem; }
.article-header .back-link:hover { color: var(--primary); }
.article-header h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: var(--white); margin-bottom: 0.75rem; line-height: 1.2; }
.article-header .meta { font-size: 1.25rem; color: rgba(255,255,255,0.9); }

.article-main { padding: 5rem 1rem; }
.article-card { background: var(--white); padding: 2rem; border-radius: var(--radius-xl); box-shadow: 0 4px 14px rgba(0,0,0,0.08); border: 1px solid var(--gray-100); margin-bottom: 3rem; }
.article-card.summary-card { background: var(--gray-50); }
.article-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.article-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-top: 2rem; margin-bottom: 1rem; }
.article-card p { font-size: 1.125rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 1.5rem; }
.article-card p:last-child { margin-bottom: 0; }
.article-card p.strong { font-weight: 600; color: var(--dark); }

.callout { padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0; }
.callout-blue { background: #eff6ff; border-left: 4px solid var(--primary); }
.callout-green { background: #f0fdf4; border-left: 4px solid #22c55e; }
.callout-yellow { background: #fefce8; border-left: 4px solid #eab308; }
.callout h3, .callout h4 { font-size: 1.25rem; font-weight: 600; color: var(--dark); margin-bottom: 0.75rem; }
.callout ul { list-style: disc; padding-left: 1.5rem; color: var(--gray-700); }
.callout li { margin-bottom: 0.5rem; line-height: 1.5; }
.callout p { font-size: 1.125rem; color: var(--gray-700); line-height: 1.6; margin-bottom: 0; }
.callout a { color: var(--primary); text-decoration: underline; }
.callout a:hover { color: var(--dark); }

.video-wrapper { position: relative; padding-bottom: 56.25%; width: 100%; margin-bottom: 2rem; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0,0,0,0.1); border: none; }

@media (max-width: 640px) {
  .article-card { padding: 1.5rem; }
}
