/* ==============================
   VARIABLES GLOBALES
================================ */
:root {
  --font-title: "Playfair Display", serif;
  --font-body: "Inter", system-ui, sans-serif;

  --color-bg-main: #fafafa;
  --color-bg-soft: #f3efea;
  --color-primary: #2f5d8c;
  --color-secondary: #9ec5e8;
  --color-text-main: #333333;
  --color-text-muted: #666666;
  --color-status: #8fa9c2;

  --radius: 16px;
  --max-width: 1100px;
  --header-height: 72px;
}

/* ==============================
   RESET BÁSICO
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
}

/* ==============================
   UTILIDADES GENERALES
================================ */
.section {
  padding: 4rem 1.5rem;
  scroll-margin-top: 88px;
}

.section-title {
  font-size: 2.1rem;
  color: var(--color-primary);
  text-align: center;
  font-family: var(--font-title);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* ==============================
   NAVBAR
================================ */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.navbar {
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  position: relative;
}

.nav-logo {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* ==============================
   HERO / INICIO
================================ */
.section-inicio {
  background: linear-gradient(to bottom, #ffffff, var(--color-bg-soft));
}

.hero {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: 160px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.4rem;
  font-family: var(--font-title);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-faith {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
}

/* ==============================
   VALORES
================================ */
.values {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
}

.value-card {
  background-color: var(--color-bg-soft);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.value-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* ==============================
   CONTACTO
================================ */
.contact {
  margin-top: 4rem;
  text-align: center;
}

.contact-title {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

/* ==============================
   NUESTRA LABOR
================================ */
.projects-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.project-image {
  width: 100%;
  background-color: var(--color-bg-soft);
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.project-featured .project-image {
  aspect-ratio: 1 / 1;
}

.project-content {
  padding: 1.5rem;
}

.project-status {
  font-size: 0.75rem;
  color: var(--color-status);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-title {
  margin: 0.5rem 0;
  color: var(--color-primary);
}

.project-impact {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.impact-item strong {
  font-size: 1.3rem;
  color: var(--color-primary);
}

/* ==============================
   NUESTRO EQUIPO
================================ */
.team-grid {
  display: grid;
  gap: 2rem;
}

.team-card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--color-bg-soft);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-secondary);
}

.team-role, .project-status {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ==============================
   FOOTER
================================ */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==============================
   MEDIA QUERIES
================================ */
@media (min-width: 768px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

h1, h2, h3 {
  font-family: var(--font-title);
}

h1, h2 {
  letter-spacing: -0.02em;
}

/* ==============================
   ANIMACIONES SUTILES (SCROLL)
================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Respeto a accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0.1s;
  }
}

@media (min-width: 768px) {
  .reveal {
    transition-delay: 0.15s;
  }
}

/* ==============================
   NAVBAR MOBILE (HAMBURGUESA)
================================ */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-bg-soft);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .section {
      scroll-margin-top: calc(var(--header-height) + 16px);
    }

  .navbar {
    min-height: 72px;
  }


  .nav-toggle {
    display: block;
    padding: 12px;
    border-radius: 10px;
  }

  .nav-toggle span {
    width: 26px;     /* un poquito más largo */
    height: 2px;
    margin: 6px 0;   /* más aire entre líneas */
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    margin: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    display: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  }

  .nav-links.active {
    display: flex;
  }
}
