:root {
    /* Colores oficiales según Manual de Marca */
    --green:  #27af72;   /* primario */
    --teal:   #11646e;   /* primario oscuro */
    --gray:   #3e3f3f;   /* primario texto */
    --navy:   #0D1F3C;   /* fondo oscuro hero/footer */
    --cream:  #F5F0E8;
    --white:  #FFFFFF;
    --gold:   #27af72;   /* accent = verde marca */
    --teal-light: #27af72;
    --text:   #1A2A3A;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  img { max-width: 100%; height: auto; }
  /* Century Gothic principal (sistema) con Lato como fallback Google */
  body { font-family: 'Century Gothic', 'AppleGothic', 'Lato', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }

  /* ── NAV ─────────────────────────────────────────── */
  nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.3rem 6%;
    background: rgba(13,31,60,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(39,175,114,0.25);
  }
  .nav-logo { text-decoration: none; display: flex; align-items: center; }
  .nav-logo img { height: 60px; width: auto; display: block; transition: opacity 0.2s; }
  .nav-logo img:hover { opacity: 0.85; }
  .nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
  .nav-links a {
    color: rgba(255,255,255,0.82); text-decoration: none; font-size: 1rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    border: 1.5px solid transparent; padding: 0.4rem 1rem; border-radius: 20px;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
  }
  .nav-links a:hover {
    border-color: var(--green);
    color: var(--green) !important;
    background: rgba(39,175,114,0.07);
  }
  .nav-cta { background: var(--green); color: var(--white); padding: 0.75rem 1.8rem; border-radius: 6px; font-size: 0.98rem; font-weight: 700; text-decoration: none; transition: background 0.25s, transform 0.2s, box-shadow 0.25s; box-shadow: 0 4px 15px rgba(39,175,114,0.35); }
  .nav-cta:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39,175,114,0.45); }

  /* ── HAMBURGER MÓVIL ─────────────────────────────── */
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; z-index: 200; }
  .hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    display: none; position: fixed; inset: 0;
    background: rgba(13,31,60,0.98); z-index: 150;
    flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
  }
  .mobile-menu.open { opacity: 1; pointer-events: all; }
  .mobile-menu a { color: #fff; text-decoration: none; font-size: 1.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
  .mobile-menu a:hover { color: var(--green); }
  .mobile-menu .mob-cta { background: var(--green); color: #fff; padding: 1rem 3rem; border-radius: 7px; font-size: 1.15rem; }

  /* ── HERO ────────────────────────────────────────── */
  .hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--navy); padding: 0; }
  .hero-left {
    background: linear-gradient(135deg, var(--navy) 0%, #1A3A5C 100%);
    padding: 8rem 5% 6rem; display: flex; align-items: center; position: relative;
  }

  .hero-right { position: relative; overflow: hidden; min-height: 100vh; }
  .hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.7) saturate(0.85); }
  .hero-right::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--navy) 0%, transparent 25%);
  }
  .hero-content { position: relative; z-index: 2; max-width: 560px; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(39,175,114,0.12); border: 1px solid rgba(39,175,114,0.35);
    color: var(--green); padding: 0.5rem 1.2rem; border-radius: 50px;
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 2rem; animation: fadeUp 0.7s ease both;
  }
  .hero h1 {
    font-family: 'Century Gothic', 'AppleGothic', 'Lato', sans-serif;
    font-size: clamp(2.8rem, 4.5vw, 4.4rem); font-weight: 900; line-height: 1.08;
    color: var(--white); margin-bottom: 1rem; animation: fadeUp 0.7s 0.1s ease both;
  }
  .hero h1 em { color: var(--green); font-style: normal; }
  /* SLOGAN oficial */
  .hero-slogan {
    font-family: 'Lato', sans-serif; font-size: 1rem; font-weight: 300;
    letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6);
    margin-bottom: 1.8rem; animation: fadeUp 0.7s 0.15s ease both;
  }
  .hero p { font-size: 1.18rem; line-height: 1.8; color: rgba(255,255,255,0.75); max-width: 500px; margin-bottom: 2.8rem; animation: fadeUp 0.7s 0.2s ease both; }
  .hero-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; animation: fadeUp 0.7s 0.3s ease both; }
  .btn-primary { background: var(--green); color: var(--white); padding: 1.1rem 2.5rem; border-radius: 7px; font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: background 0.25s, transform 0.2s, box-shadow 0.25s; box-shadow: 0 6px 24px rgba(39,175,114,0.45); }
  .btn-primary:hover { background: var(--teal); transform: translateY(-3px); box-shadow: 0 10px 35px rgba(39,175,114,0.5); }
  .btn-outline { border: 2px solid rgba(255,255,255,0.35); color: var(--white); padding: 1.1rem 2.5rem; border-radius: 7px; font-size: 1.05rem; font-weight: 600; text-decoration: none; transition: border-color 0.25s, background 0.25s; }
  .btn-outline:hover { border-color: var(--green); background: rgba(39,175,114,0.1); }
  .hero-stats { display: flex; gap: 3rem; margin-top: 4.5rem; animation: fadeUp 0.7s 0.4s ease both; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .stat-num { font-family: 'Century Gothic', 'AppleGothic', 'Lato', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--green); }
  .stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; margin-top: 0.2rem; }

  /* ── SECTION BASE ────────────────────────────────── */
  section { padding: 7rem 6%; }
  .section-label { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--teal); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
  .section-title { font-family: 'Century Gothic', 'AppleGothic', 'Lato', sans-serif; font-size: clamp(2.1rem, 3.8vw, 3.2rem); font-weight: 700; line-height: 1.18; color: var(--navy); margin-bottom: 1.2rem; }
  .section-desc { font-size: 1.15rem; line-height: 1.8; color: #5A7090; max-width: 580px; }

  /* ── SERVICIOS ───────────────────────────────────── */
  .services { background: var(--cream); }
  .services-header { text-align: center; margin-bottom: 3.5rem; }
  .services-header .section-desc { margin: 0 auto; }
  .services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; max-width: 1100px; margin: 0 auto; }
  .service-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid rgba(17,100,110,0.12); transition: transform 0.3s, box-shadow 0.3s; position: relative; }
  .service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(10,50,80,0.14); }
  .service-img { width: 100%; height: 195px; object-fit: cover; display: block; filter: brightness(0.88) saturate(0.8); transition: filter 0.35s, transform 0.4s; }
  .service-card:hover .service-img { filter: brightness(1) saturate(1); transform: scale(1.04); }
  .service-img-wrap { overflow: hidden; height: 195px; }
  .service-body { padding: 1.8rem; }
  .service-icon { width: 50px; height: 50px; border-radius: 10px; background: rgba(17,100,110,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
  .service-card h3 { font-family: 'Century Gothic', 'AppleGothic', 'Lato', sans-serif; font-size: 1.18rem; font-weight: 700; color: var(--navy); margin-bottom: 0.65rem; }
  .service-card p { font-size: 0.97rem; color: #5A7090; line-height: 1.7; }
  .service-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--teal), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
  .service-card:hover::after { transform: scaleX(1); }

  /* ── IMAGE BANNER ────────────────────────────────── */
  .img-banner { padding: 0; height: 440px; overflow: hidden; position: relative; }
  .img-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: brightness(0.55) saturate(0.8); }
  .img-banner-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: linear-gradient(135deg, rgba(13,31,60,0.7) 0%, rgba(17,100,110,0.25) 100%); text-align: center; padding: 2rem; }
  .img-banner-overlay h2 { font-family: 'Century Gothic', 'AppleGothic', 'Lato', sans-serif; font-size: clamp(2rem, 3.5vw, 3.2rem); color: var(--white); font-weight: 700; margin-bottom: 1.2rem; }
  .img-banner-overlay p { color: rgba(255,255,255,0.85); font-size: 1.18rem; max-width: 620px; line-height: 1.75; }

  /* ── METODOLOGÍAS ────────────────────────────────── */
  .metodologias { background: var(--white); }
  .meto-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; max-width: 1200px; margin: 0 auto; }
  .meto-list { display: flex; flex-direction: column; gap: 1.4rem; }
  .meto-item { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem; border-radius: 10px; border: 1px solid transparent; transition: border-color 0.25s, background 0.25s; }
  .meto-item:hover { border-color: rgba(17,100,110,0.2); background: rgba(17,100,110,0.03); }
  .meto-num { font-family: 'Century Gothic', 'AppleGothic', 'Lato', sans-serif; font-size: 2.4rem; font-weight: 900; color: rgba(17,100,110,0.35); line-height: 1; flex-shrink: 0; width: 50px; }
  .meto-item h4 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
  .meto-item p { font-size: 1.05rem; color: #5A7090; line-height: 1.7; }
  .meto-right { display: flex; flex-direction: column; gap: 1.5rem; }
  .meto-photo { border-radius: 16px; overflow: hidden; height: 250px; }
  .meto-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: filter 0.3s, transform 0.4s; }
  .meto-photo:hover img { filter: saturate(1); transform: scale(1.04); }
  .meto-visual { background: linear-gradient(145deg, var(--navy), #1A3A5C); border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
  .meto-tag { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: #fff; padding: 1rem 1.3rem; border-radius: 8px; font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 0.7rem; transition: background 0.25s; }
  .meto-tag:hover { background: rgba(39,175,114,0.25); }
  .meto-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

  /* ── NOSOTROS ────────────────────────────────────── */
  .nosotros { background: var(--navy); padding: 0; overflow: hidden; }
  .nosotros-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; }
  .nosotros-img { position: relative; overflow: hidden; }
  .nosotros-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) saturate(0.85); }
  .nosotros-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, transparent 55%, var(--navy) 100%); }
  .nosotros-text { padding: 5rem 5% 5rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
  .nosotros .section-title { color: var(--white); }
  .nosotros .section-desc { color: rgba(255,255,255,0.6); margin-bottom: 1.8rem; }
  .values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.8rem; }
  .value-pill { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 1.1rem 1.3rem; border-radius: 10px; color: rgba(255,255,255,0.95); font-size: 1.05rem; font-weight: 600; }
  .value-pill span { display: block; font-size: 1.6rem; margin-bottom: 0.3rem; }
  .nosotros-quote { background: rgba(39,175,114,0.08); border-left: 3px solid var(--green); padding: 1.2rem 1.7rem; border-radius: 0 10px 10px 0; }
  .nosotros-quote p { color: rgba(255,255,255,0.85); font-style: italic; line-height: 1.75; font-size: 1.08rem; }

  /* ── FORMULARIO DE CONTACTO ──────────────────────── */
  .contact-section { background: var(--cream); }
  .contact-inner { max-width: 720px; margin: 0 auto; }
  .contact-inner .section-desc { max-width: 100%; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
  .form-field { display: flex; flex-direction: column; gap: 0.4rem; }
  .form-field.full { grid-column: 1 / -1; }
  .form-field label { font-size: 0.85rem; font-weight: 700; color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase; }
  .form-field input, .form-field select, .form-field textarea {
    padding: 1rem 1.15rem; border: 1.5px solid rgba(17,100,110,0.22); border-radius: 8px;
    font-family: inherit; font-size: 1rem; color: var(--text); background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s; outline: none;
  }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--teal); box-shadow: 0 0 0 4px rgba(17,100,110,0.1);
  }
  .form-field textarea { resize: vertical; min-height: 130px; }
  .form-submit { margin-top: 2rem; text-align: center; }
  .form-submit button {
    background: var(--green); color: #fff; padding: 1.15rem 3.5rem; border: none; border-radius: 8px;
    font-size: 1.1rem; font-weight: 700; font-family: inherit; cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 6px 24px rgba(39,175,114,0.4);
  }
  .form-submit button:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 35px rgba(39,175,114,0.45); }
  .form-success { display: none; text-align: center; padding: 1.5rem; background: rgba(39,175,114,0.1); border: 1.5px solid var(--green); border-radius: 10px; color: var(--teal); font-weight: 600; margin-top: 1.5rem; }

  /* ── CTA BAND ────────────────────────────────────── */
  .cta-band { background: linear-gradient(135deg, var(--teal) 0%, #0a4a52 100%); padding: 6rem 5%; text-align: center; }
  .cta-band h2 { font-family: 'Century Gothic', 'AppleGothic', 'Lato', sans-serif; font-size: clamp(2rem, 3.5vw, 3rem); color: var(--white); font-weight: 700; margin-bottom: 1.2rem; }
  .cta-band p { color: rgba(255,255,255,0.85); font-size: 1.18rem; margin-bottom: 2.8rem; }
  .cta-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
  .btn-white { background: var(--white); color: var(--teal); padding: 1.1rem 2.5rem; border-radius: 7px; font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
  .btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
  .btn-ghost-white { border: 2px solid rgba(255,255,255,0.6); color: var(--white); padding: 1.1rem 2.5rem; border-radius: 7px; font-size: 1.05rem; font-weight: 600; text-decoration: none; transition: border-color 0.25s, background 0.25s; }
  .btn-ghost-white:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }

  /* ── AULA VIRTUAL ────────────────────────────────── */
  .aula-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
  }

  /* ── FOOTER ──────────────────────────────────────── */

  footer { background: #080F1E; padding: 4rem 6% 2.5rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3.5rem; }
  .footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.97rem; line-height: 1.75; margin-top: 1rem; }
  /* Logo footer */
  .footer-brand .nav-logo img { height: 70px; width: auto; display: block; margin-bottom: 0.9rem; opacity: 0.92; transition: opacity 0.3s; }
  .footer-brand .nav-logo img:hover { opacity: 1; }
  footer h5 { color: rgba(255,255,255,0.6); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; }
  .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
  .footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.97rem; transition: color 0.2s; }
  .footer-links a:hover { color: var(--green); }
  .footer-contact-item { color: rgba(255,255,255,0.45); font-size: 0.97rem; margin-bottom: 0.6rem; }
  .footer-contact-item a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
  .footer-contact-item a:hover { color: var(--green); }
  .footer-bottom { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.5rem; display: flex; justify-content: space-between; color: rgba(255,255,255,0.22); font-size: 0.82rem; }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

  /* Offset para menú fijo */
  section, #servicios, #metodologias, #nosotros, #contacto, #aula-virtual {
    scroll-margin-top: 90px;
  }

  /* ── RESPONSIVE ──────────────────────────────────── */
  @media (max-width: 1000px) {
    .nav-logo img { height: 75px; } /* Se agregó para reducir el logo en tablet/mobile */
    section, #servicios, #metodologias, #nosotros, #contacto, #aula-virtual { scroll-margin-top: 90px; }
    .hero { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .hero-left { padding: 9rem 5% 5rem; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .meto-layout { grid-template-columns: 1fr; gap: 3rem; }
    .nosotros-inner { grid-template-columns: 1fr; }
    .nosotros-img { height: 300px; }
    .nosotros-img::after { background: linear-gradient(to bottom, transparent 50%, var(--navy) 100%); }
    footer { grid-template-columns: 1fr 1fr; }
    .footer-brand .nav-logo img { height: 80px; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .aula-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  }
  @media (max-width: 640px) {
    .hero h1 { font-size: 2.2rem; }
    .services-grid { grid-template-columns: 1fr; }
    footer { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .values-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .img-banner-overlay h2 { font-size: 1.8rem; }
  }