/* ================================================
   GEOFISA – Hoja de estilos principal
   Colores: Verde #5EC48A · Carbón #484848
   Fuente: DM Sans (Google Fonts)
   ================================================ */

/* ---- Variables ---- */
:root {
  --green:       #5EC48A;
  --green-dark:  #4aaf78;
  --green-light: #eaf7ef;
  --charcoal:    #484848;
  --gray:        #6b7280;
  --light-bg:    #f8f9fa;
  --border:      #e5e7eb;
  --white:       #ffffff;
  --black:       #111111;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.07);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- Container ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Section base ---- */
.section { padding: 100px 0; }
.bg-light { background: var(--light-bg); }
.bg-green { background: var(--green); }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-label.light { color: rgba(255,255,255,0.75); }

h2 {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 20px;
}
h2.light { color: var(--white); }

.section-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 52px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
}
.btn-green  { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-white  { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: #f0f0f0; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn.full { width: 100%; text-align: center; }


/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.09);
  padding: 12px 0;
}

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

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon circle,
.logo-icon line { stroke: var(--green); }
.navbar:not(.scrolled) .logo-icon circle,
.navbar:not(.scrolled) .logo-icon line { stroke: var(--white); }

.logo-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--charcoal);
}
.navbar:not(.scrolled) .logo-text { color: var(--white); }
.logo-text.white { color: var(--white); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  transition: color .2s;
}
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.9); }
.nav-links a:hover { color: var(--green); }
.navbar:not(.scrolled) .nav-links a:hover { color: var(--white); }

.btn-nav {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 7px;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--green-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.navbar.scrolled .hamburger span { background: var(--charcoal); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--charcoal); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--charcoal); }


/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #236b44 0%, #3a9964 45%, var(--green) 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 140px 28px 100px;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-content h1 {
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-content h1 span {
  color: rgba(255,255,255,.88);
  font-weight: 300;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 42px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}


/* ================================================
   STATS
   ================================================ */
.stats {
  background: var(--charcoal);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  text-align: center;
}
.stat { padding: 16px; }
.stat-num {
  display: block;
  font-size: 44px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  letter-spacing: .5px;
}


/* ================================================
   NOSOTROS — misión y visión
   ================================================ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv-card {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--light-bg);
  border: 1px solid var(--border);
}
.mv-featured {
  background: var(--green);
  border-color: var(--green);
}
.mv-ico { font-size: 32px; margin-bottom: 18px; }
.mv-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.mv-card p { color: var(--gray); line-height: 1.75; }
.mv-featured h3,
.mv-featured p { color: var(--white); }
.mv-featured p { color: rgba(255,255,255,.9); }


/* ================================================
   SERVICIOS
   ================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
.svc-card {
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.svc-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(94,196,138,.16);
  transform: translateY(-4px);
}
.svc-icon { font-size: 26px; margin-bottom: 14px; }
.svc-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.svc-card p { font-size: 14px; color: var(--gray); line-height: 1.65; }


/* ================================================
   POR QUÉ NOS PREFIEREN
   ================================================ */
.porque-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
  margin-top: 52px;
}
.porque-card {
  padding: 36px 28px;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
}
.porque-num {
  font-size: 52px;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 18px;
}
.porque-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.porque-card p { color: var(--gray); line-height: 1.7; }


/* ================================================
   VALORES
   ================================================ */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 44px;
}
.valor-card {
  padding: 32px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.valor-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.valor-card p { color: rgba(255,255,255,.88); line-height: 1.7; font-size: 15px; }


/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  background: var(--charcoal);
  padding: 80px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: 8px; font-size: clamp(22px,3vw,34px); }
.cta-inner p  { color: rgba(255,255,255,.7); font-size: 16px; margin-bottom: 0; }


/* ================================================
   CONTACTO
   ================================================ */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contacto-info h2 { margin-bottom: 14px; }
.contacto-sub { color: var(--gray); font-size: 17px; margin-bottom: 36px; line-height: 1.7; }

.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; color: var(--charcoal); }
.c-icon {
  width: 38px; height: 38px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Form */
.contacto-form-wrap {
  background: var(--light-bg);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.fg { margin-bottom: 20px; }
.fg label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--charcoal);
  letter-spacing: .3px;
}
.opt { font-weight: 400; color: var(--gray); font-size: 12px; }
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(94,196,138,.15);
}
.fg textarea { resize: vertical; }
.form-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: 10px;
}


/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #181818;
  color: rgba(255,255,255,.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr;
  gap: 56px;
  padding: 64px 28px 56px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-logo { margin-bottom: 16px; }
.footer-desc { font-size: 14px; margin-bottom: 8px; color: rgba(255,255,255,.5); }
.footer-tags { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.6; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: .5px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 28px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}


/* ================================================
   ANIMATE ON SCROLL
   ================================================ */
.animate-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.animate-card.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .services-grid   { grid-template-columns: repeat(2,1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand    { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }

  /* Mobile nav */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    display: none;
    z-index: 1000;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--charcoal) !important; font-size: 20px; }

  /* Grids */
  .stats-grid    { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .mv-grid       { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .porque-grid   { grid-template-columns: 1fr; }
  .valores-grid  { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; padding: 48px 28px 40px; }

  .hero-btns     { flex-direction: column; align-items: center; }
  .cta-inner     { flex-direction: column; text-align: center; }
  .cta-inner .btn { align-self: center; }
  .contacto-form-wrap { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .porque-card { padding: 28px 20px; }
}
