/* ========================================
   JCR SAS
   Consultoría en Proyectos Sociales
======================================== */

:root {
  --color-texto: #17202a;
  --color-texto-suave: #5f6975;
  --color-fondo: #ffffff;
  --color-fondo-suave: #f5f7f6;
  --color-principal: #173f35;
  --color-principal-hover: #102f28;
  --color-borde: #e3e8e5;

  --ancho-maximo: 1200px;
  --radio: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-fondo);
  color: var(--color-texto);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 48px, var(--ancho-maximo));
  margin: 0 auto;
}


/* ========================================
   HEADER
======================================== */

.site-header {
  position: relative;
  z-index: 100;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-borde);
}

.header-inner {
  position: relative;

  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;

  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a {
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-principal);
}

.nav-contact {
  padding: 10px 18px;

  color: #ffffff;
  background: var(--color-principal);
  border-radius: 999px;
}

.nav-contact:hover {
  color: #ffffff !important;
  background: var(--color-principal-hover);
}


/* ========================================
   BOTÓN MENÚ MÓVIL
======================================== */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;
  padding: 0;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  background: transparent;
  border: 1px solid var(--color-borde);
  border-radius: 10px;

  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;

  background: var(--color-texto);
  border-radius: 999px;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ========================================
   HERO
======================================== */

.hero {
  padding: 42px 0 90px;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #ffffff 55%,
      #f3f7f5 100%
    );
}

.hero-content {
  max-width: var(--ancho-maximo);
}

.hero-eyebrow {
  margin: 0 0 22px;

  color: var(--color-principal);

  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 960px;
  margin: 0 0 30px;

  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 750;
}

.hero-description {
  max-width: 760px;
  margin: 0;

  color: var(--color-texto-suave);

  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 22px;

  border-radius: 999px;

  font-size: 0.96rem;
  font-weight: 650;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--color-principal);
  border: 1px solid var(--color-principal);
}

.button-primary:hover {
  background: var(--color-principal-hover);
  border-color: var(--color-principal-hover);
}

.button-secondary {
  color: var(--color-texto);
  background: #ffffff;
  border: 1px solid var(--color-borde);
}

.button-secondary:hover {
  border-color: #b9c4bf;
}


/* ========================================
   TABLET Y MÓVIL
======================================== */

@media (max-width: 900px) {

  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: static;
    order: 3;

    width: 100%;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;

    padding: 6px 0 12px;

    background: #ffffff;
    border-top: 1px solid var(--color-borde);

    font-size: 0.98rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    display: block;

    padding: 10px 14px;

    border-radius: 10px;
  }

  .main-nav a:hover {
    background: var(--color-fondo-suave);
  }

  .main-nav .nav-contact {
    margin-top: 6px;

    text-align: center;

    color: #ffffff;
    background: var(--color-principal);
  }

  .main-nav .nav-contact:hover {
    background: var(--color-principal-hover);
  }

  .hero {
  min-height: auto;
  padding: 48px 0 90px;
}

  .hero h1 {
    max-width: 760px;
  }
}


/* ========================================
   MÓVIL
======================================== */

@media (max-width: 600px) {

  .container {
    width: min(100% - 32px, var(--ancho-maximo));
  }

  .header-inner {
  min-height: 0;
  padding: 12px 0;
  }

  .brand {
    font-size: 1rem;
  }

  .main-nav {
    left: 16px;
    right: 16px;
  }

  .hero {
  padding: 36px 0 72px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;

    font-size: 0.78rem;
  }

  .hero h1 {
    margin-bottom: 24px;

    font-size: clamp(2.6rem, 13vw, 4rem);
    line-height: 1;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;

    margin-top: 32px;
  }

  .button {
    width: 100%;
  }
}

/* ========================================
   QUÉ HACEMOS
======================================== */

.services-section {
  padding: 110px 0;
  background: var(--color-fondo);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 64px;
}

.section-eyebrow {
  margin: 0 0 16px;

  color: var(--color-principal);

  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 22px;

  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-description {
  max-width: 720px;
  margin: 0;

  color: var(--color-texto-suave);

  font-size: 1.1rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 270px;
  padding: 34px;

  background: var(--color-fondo-suave);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
}

.service-number {
  display: block;
  margin-bottom: 52px;

  color: var(--color-principal);

  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin: 0 0 14px;

  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-card p {
  max-width: 500px;
  margin: 0;

  color: var(--color-texto-suave);

  font-size: 1rem;
  line-height: 1.65;
}


/* ========================================
   QUÉ HACEMOS - RESPONSIVE
======================================== */

@media (max-width: 900px) {

  .services-section {
    padding: 80px 0;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {

  .services-section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .service-card {
    padding: 26px;
  }

  .service-number {
    margin-bottom: 34px;
  }
}
