:root {
    /* Marca */
    --teal: #069C91;          /* Primario GC */
    --teal-dark: #046e66;     /* Oscuro para hover */
    --teal-light: #4DB9B0;    /* Secundario */
    --teal-pale: #E6F4F2;     /* Fondos suaves */

    /* Neutros */
    --charcoal: #1C1C1C;      /* Fondo oscuro elegante */
    --mid: #838382;           /* Texto principal */
    --light: #F4F7F6;         /* Fondo claro */
    --white: #FEFEFE;         /* Blanco real */
    --accent: #B9CBC9;        /* Detalles / números */
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    color: var(--charcoal);
    background: var(--white);
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 5%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45,139,122,0.12);
    transition: box-shadow 0.3s;
  }
  nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }

  .nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: var(--teal-dark);
  }
  .nav-logo span { color: var(--teal-light); }

  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--mid);
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--teal); }

  /* HERO */
  #hero {
    min-height: 100vh;
    background: var(--teal);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5% 5rem 8%;
    position: relative;
    z-index: 2;
  }

  .hero-tag {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(78,181,160,0.4);
    padding: 0.35rem 0.9rem;
    border-radius: 2px;
    margin-bottom: 2rem;
    width: fit-content;
    animation: fadeUp 0.8s ease both;
  }

  .hero-sub {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--white);
    max-width: 420px;
    font-weight: 300;
    animation: fadeUp 0.8s 0.3s ease both;
  }

  .hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    animation: fadeUp 0.8s 0.45s ease both;
  }

  .btn-primary {
    padding: 0.9rem 2rem;
    background: var(--teal-dark);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }

  .btn-outline {
    padding: 0.9rem 2rem;
    background: transparent;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }
  .btn-outline:hover { border-color: var(--teal-dark); color: var(--teal-dark); }

  .hero-right {
    position: relative;
    overflow: hidden;
  }
  .hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal-dark) 0%, #0d2e29 60%, var(--charcoal) 100%);
    opacity: 0.9;
  }
  .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(78,181,160,0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(78,181,160,0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
  }
  @keyframes gridMove { to { background-position: 40px 40px; } }

  .hero-year-badge {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    text-align: right;
    z-index: 2;
  }
  .year-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 7rem;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .year-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-light);
  }

  .hero-gear {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  .gear-ring {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(78,181,160,0.2);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 30s linear infinite;
  }
  .gear-ring:nth-child(2) {
    width: 200px; height: 200px;
    border-color: rgba(78,181,160,0.35);
    animation-direction: reverse;
    animation-duration: 20s;
  }
  .gear-ring:nth-child(3) {
    width: 100px; height: 100px;
    border-color: rgba(78,181,160,0.5);
    animation-duration: 10s;
  }
  @keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

  .gear-center {
    width: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }

  /* SECTION COMMON */
  section { padding: 7rem 8%; }
  .section-label {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  .section-label::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--teal);
  }

  .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--mid);
  }

  /* HISTORIA */
  #historia {
    background: var(--light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }

  .historia-visual {
    position: relative;
  }

  .timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
  }

  .tl-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s, transform 0.5s;
  }
  .tl-item.visible { opacity: 1; transform: none; }

  .tl-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--teal);
    line-height: 1;
    padding-top: 0.2rem;
  }

  .tl-content {
    padding-bottom: 2rem;
    border-left: 1px solid rgba(45,139,122,0.2);
    padding-left: 1.5rem;
    position: relative;
  }
  .tl-content::before {
    content: '';
    position: absolute;
    left: -4px; top: 6px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
  }

  .tl-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--charcoal);
    font-weight: 300;
  }

  .historia-text .section-title { margin-bottom: 1.5rem; }
  .historia-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    font-weight: 300;
  }

  /* QUIENES SOMOS */
  #quienes {
    background: var(--mid);
    text-align: center;
    padding: 7rem 10%;
  }
  #quienes .section-label { justify-content: center; }
  #quienes .section-label::before { display: none; }
  #quienes .section-title { color: var(--white); margin-bottom: 2rem; }

  .qs-statement {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 4rem;
  }
  .qs-statement strong { color: var(--teal-light); font-style: normal; font-family: 'DM Sans', sans-serif; font-weight: 500; }

  .pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 1000px;
    margin: 0 auto;
  }

  .pillar {
    background: var(--white);
    padding: 2.5rem 2rem;
    transition: background 0.3s;
  }
  .pillar:hover { background: rgba(45,139,122,0.12); }

  .pillar-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .pillar-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: var(--teal-light);
    margin-bottom: 0.6rem;
  }
  .pillar-desc {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
  }

  /* MISION */
  #mision {
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: center;
  }

  .mision-left .section-title { margin-bottom: 0; }
  .mision-left .section-title span {
    /* font-family: 'DM Serif Display', serif; */
    /* font-style: italic; */
    color: var(--teal);
    /* display: block; */
  }

  .mision-right blockquote {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.7;
    color: var(--charcoal);
    border-left: 3px solid var(--teal);
    padding-left: 2rem;
    margin-bottom: 2rem;
  }
  .mision-right blockquote strong { color: var(--teal-dark); font-style: normal; font-family: 'DM Sans', sans-serif; font-weight: 500; }

  .mision-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .tag {
    padding: 0.4rem 1rem;
    background: var(--teal-pale);
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
  }

  /* LINEAS */
  #lineas {
    background: var(--light);
  }
  #lineas .section-title { margin-bottom: 3.5rem; }

  .lineas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .linea-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: default;
  }
  .linea-card:hover {
    border-color: var(--teal);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(45,139,122,0.12);
  }

  .linea-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
  }

  .linea-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.03em;
    color: var(--charcoal);
    margin-bottom: 1rem;
  }

  .linea-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--mid);
    font-weight: 300;
    margin-bottom: 1.5rem;
  }

  .linea-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .linea-items li {
    font-size: 1rem;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .linea-items li::before {
    content: '→';
    color: var(--teal);
  }

  /* CONTACTO */
  #contacto {
    background: var(--teal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 7rem 8%;
  }
  #contacto .section-label { color: var(--teal-dark); justify-content: center; }
  #contacto .section-label::before { background: var(--teal-dark); }
  #contacto .section-title { color: var(--white); margin-bottom: 0.75rem; }
  .contact-sub {
    font-size: 1rem;
    color: var(--white);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 560px;
  }

  .contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 860px;
    cursor: pointer;
  }

  .contact-item {
    background: var(--teal-light);
    border: 1px solid var(--teal-dark);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: background 0.3s, transform 0.3s;
  }
  .contact-item:hover { background: var(--teal-dark); transform: translateY(-4px); }

  .contact-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  /* control del SVG */
  .contact-icon img {
    width: 32px;   /* ajusta si lo quieres más grande */
    height: 32px;
    display: block;
  }
  .contact-info-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 0.15rem;
  }
  .contact-info-value {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 300;
    line-height: 1.6;
  }
  .contact-info-value a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
  }
  .contact-info-value a:hover { color: var(--teal-light); }

  /* FOOTER */
  footer {
    background: var(--charcoal);
    padding: 2rem 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
  }
  .footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    font-weight: 300;
  }
  .footer-since {
    font-size: 0.78rem;
    color: var(--teal);
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible { opacity: 1; transform: none; }

  /* HAMBURGER */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal-dark);
    transition: all 0.3s;
    transform-origin: center;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(45,139,122,0.12);
    z-index: 99;
    flex-direction: column;
    gap: 0;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: color 0.2s;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { color: var(--teal); }

  .li-logo {
    width: 120px;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
  }

  .gc-logo {
    height: 42px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
  }
  
  .gc-logo-hero {
    object-fit: contain;
    flex-shrink: 0;
    width: clamp(18rem, 21vw, 21rem);
    filter: drop-shadow(0 4px 10px var(--teal-dark))
    drop-shadow(0 10px 25px var(--teal-dark));

  }
  
  .igc-logo {
    height: 42px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
  }

  /* TABLET — 768px to 1024px */
  @media (max-width: 1024px) and (min-width: 769px) {
    section { padding: 6rem 6%; }

    #hero { grid-template-columns: 1fr 1fr; }
    .hero-left { padding: 7rem 4% 5rem 6%; }

    #historia { gap: 3rem; padding: 6rem 6%; }

    #mision { gap: 3rem; padding: 6rem 6%; }
    .mision-right blockquote { font-size: 1.15rem; }

    .lineas-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .linea-card { padding: 2rem 1.5rem; }

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

    .contact-details { grid-template-columns: repeat(2, 1fr); }
  }

  /* MOBILE — up to 768px */
  @media (max-width: 768px) {
    /* Nav */
    nav { padding: 0 5%; height: 60px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    /* Hero */
    #hero { grid-template-columns: 1fr; min-height: 100svh; }
    .hero-left { padding: 6rem 6% 4rem; }
    .hero-right { display: none; }
    .hero-cta { flex-direction: column; gap: 0.75rem; }
    .btn-primary, .btn-outline { text-align: center; padding: 1rem; }

    /* Sections */
    section { padding: 4rem 6%; }

    /* Historia */
    #historia { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 6%; }

    /* Quienes somos */
    #quienes { padding: 4rem 6%; }
    .pillars { grid-template-columns: 1fr; }
    .qs-statement { font-size: 1.15rem; }

    /* Mision */
    #mision { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 6%; }
    .mision-right blockquote { font-size: 1rem; padding-left: 1.25rem; }

    /* Lineas */
    #lineas { padding: 4rem 6%; }
    .lineas-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Contacto */
    #contacto { padding: 4rem 6%; }
    .contact-details { grid-template-columns: 1fr; max-width: 100%; gap: 1rem; }

    /* Footer */
    footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.75rem 5%; }
  }

  /* SMALL MOBILE — up to 480px */
  @media (max-width: 480px) {
    .gc-logo-hero { font-size: clamp(2.8rem, 12vw, 4rem); }
    .section-title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .hero-sub { font-size: 0.95rem; }
    .qs-statement { font-size: 1.05rem; }
    .tl-year { font-size: 1.6rem; }
    .linea-num { font-size: 2.8rem; }
    nav { height: 56px; }
    .mobile-menu { top: 56px; }
  }