/* ============================================================
   VARIABLES DE COLOR — Modifica aquí para cambiar el tema
   ============================================================ */
:root {
  --navy:       #0d1b3e;
  --navy-mid:   #162040;
  --green:      #4caf22;
  --green-dark: #3d9419;
  --white:      #ffffff;
  --gray-bg:    #f2f2f2;
  --gray-text:  #777777;
  --dark-text:  #1a1a2e;
  --gold:       #d4a017;
}

/* ============================================================
   RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.25;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark-text);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 70px;
  gap: 2rem;
}

.logo {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dark-text);
  white-space: nowrap;
  margin-right: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--dark-text);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); }

.nav-cta { white-space: nowrap; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: 70px;
  /* Parallax: la imagen queda fija mientras el contenido hace scroll */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,20,60,0.85) 40%, rgba(10,20,60,0.35));
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  max-width: 700px;
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero-content p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 460px;
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   PREFIJOS DE SECCIÓN
   ============================================================ */
.section-prefix {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.section-prefix.light { color: rgba(255,255,255,0.5); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 6rem 0 5rem;
  background: var(--white);
}

.about .container { text-align: center; }

.about h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.about-text-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  text-align: left;
  margin-bottom: 3.5rem;
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* ---- Galería escalonada (4 fotos) ---- */
.photo-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.photo-item { overflow: hidden; flex-shrink: 0; }

.photo-item.small  { width: 200px; height: 260px; }
.photo-item.medium { width: 220px; height: 300px; }
.photo-item.large  { width: 280px; height: 360px; }

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item:hover img { transform: scale(1.04); }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 5rem 0;
  background: var(--white);
  border-top: 1px solid #e8e8e8;
}

.services .container { text-align: center; }

.services h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 3rem;
}

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

.service-card { text-align: center; }

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1.2rem;
}

.service-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--gray-text);
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================================
   MID CTA BANNER
   ============================================================ */
.mid-cta {
  position: relative;
  height: 380px;
  /* Parallax */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.mid-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,0.65);
}

.mid-cta-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  color: var(--white);
}

.mid-cta-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  max-width: 600px;
}

/* ============================================================
   BLOG / FEATURE
   ============================================================ */
.blog-section {
  padding: 6rem 0;
  background: var(--white);
  border-top: 1px solid #e8e8e8;
}

.blog-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.blog-img {
  height: 420px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.blog-text p {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
}

/* ============================================================
   ESTADÍSTICAS
   ============================================================ */
.stats {
  background: var(--gray-bg);
  padding: 5rem 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stats-heading h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--navy);
}

.stats-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item h3 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--navy);
  font-family: 'Merriweather', serif;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--gray-text);
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials {
  position: relative;
  padding: 6rem 0;
  /* Parallax */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.testimonials-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,0.82);
}

.testimonials-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  color: var(--white);
}

.quote-mark {
  font-size: 8rem;
  line-height: 0.8;
  font-family: 'Merriweather', serif;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}

.testimonials-left h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.testimonials-right blockquote {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}

.author {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.testimonials-right hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.25);
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.footer-cta {
  background: var(--navy);
  padding: 6rem 0;
  text-align: center;
  color: var(--white);
}

.footer-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta-inner > p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--white);
  padding: 1.5rem 0;
  border-top: 1px solid #e0e0e0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--green);
  transition: opacity 0.2s;
}
.footer-nav a:hover { opacity: 0.7; }

.copyright {
  font-size: 0.8rem;
  color: var(--gray-text);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 999;
  transition: background 0.2s;
}
.scroll-top:hover { background: var(--green-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-text-cols,
  .services-grid,
  .blog-inner,
  .stats-inner,
  .testimonials-inner,
  .mid-cta-content,
  .footer-inner { grid-template-columns: 1fr; flex-direction: column; }

  .photo-grid { flex-wrap: wrap; justify-content: center; }
  .photo-item.small, .photo-item.medium, .photo-item.large {
    width: 45%; height: 200px;
  }

  .nav-links { display: none; }

  .mid-cta-content { text-align: center; justify-content: center; }
  .stats-cols { grid-template-columns: 1fr 1fr; }
}
