/* =============================================
   SAETA Consultoría - Styles
   ============================================= */

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

:root {
  --primary: #3a6347;
  --primary-dark: #2d4e38;
  --primary-light: #4e7d5e;
  --accent: #c9943a;
  --bg: #ffffff;
  --bg-secondary: #f4f6f4;
  --text: #1a2e1f;
  --text-muted: #6b7c6e;
  --border: #dce5de;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.bg-white { background: #fff; }
.bg-secondary { background: var(--bg-secondary); }
.bg-primary { background: var(--primary); }
.text-white { color: #fff; }
.text-primary { color: var(--primary); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
}

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

.logo { height: 44px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}

.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--primary); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }

.btn-wa-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-wa-nav:hover { opacity: 0.88; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s;
}
.navbar.scrolled .hamburger span { background: var(--text); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; font-size: 16px; }
  .btn-wa-nav { color: #fff !important; width: 100%; text-align: center; padding: 14px; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,47,38,0.92) 0%, rgba(45,74,62,0.82) 50%, rgba(26,47,38,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 90px);
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title em { color: var(--accent); font-style: italic; }

.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.btn-white {
  background: #fff;
  color: var(--text);
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.btn-white:hover { background: rgba(255,255,255,0.9); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.45);
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 28px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- FADE IN ---- */
.fade-in { animation: fadeIn 1s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 56px; }

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.section-title em { font-style: italic; }
.section-title.white { color: #fff; }

.subtitle-text {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 16px;
}

.body-text {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ---- ABOUT ---- */
.about-images { position: relative; }
.about-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
.about-thumb {
  position: absolute;
  bottom: -32px; right: -32px;
  width: 180px; height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  border: 4px solid #fff;
}
@media (max-width: 768px) { .about-thumb { display: none; } }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.stat-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.4s, border-color 0.4s;
}
.service-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: rgba(58,99,71,0.3);
}

.service-icon {
  width: 56px; height: 56px;
  background: rgba(58,99,71,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: background 0.4s, color 0.4s;
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- NORMAS ---- */
.logos-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.partner-logo { height: 60px; object-fit: contain; }

.normas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 900px) { .normas-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .normas-grid { grid-template-columns: 1fr; } }

.norma-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background 0.2s;
  font-size: 14px;
  color: var(--text-muted);
}
.norma-item:hover { background: var(--bg-secondary); }
.norma-item svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.norma-item strong { color: var(--text); }

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.gallery-item { overflow: hidden; position: relative; }
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ---- PROTECCION CIVIL ---- */
.bg-primary .eyebrow { color: rgba(255,255,255,0.75); }

.pc-logo {
  height: 64px;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 32px;
  object-fit: contain;
}

.check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  display: block;
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9943a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}

.section-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 560px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

/* ---- MEDIO AMBIENTE ---- */
.card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 32px;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.leaf-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.leaf-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
}
.leaf-list li::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a6347' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- EMA ---- */
.ema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .ema-grid { grid-template-columns: 1fr; } }

.ema-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.4s;
}
.ema-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.ema-card img { width: 100%; height: 220px; object-fit: cover; }
.ema-body { padding: 24px; }
.badge {
  display: inline-block;
  background: rgba(58,99,71,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ema-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.ema-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- CLIENTS ---- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .clients-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 700px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 400px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }

.client-logo {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}
.client-logo:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.client-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---- CONTACT ---- */
.contact-info { display: flex; flex-direction: column; gap: 24px; margin: 32px 0; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(58,99,71,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-label { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.contact-value { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.contact-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--primary);
}
.form-header h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.form-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 18px 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* ---- FOOTER ---- */
.footer { background: var(--text); color: #fff; padding: 48px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 40px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.55); text-align: center; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ---- WHATSAPP FAB ---- */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  color: #fff;
  transition: transform 0.3s, background 0.2s;
}
.wa-fab:hover { transform: scale(1.12); background: #1ebe5c; }