:root {
  --dark-green: #0b3d1e;
  --mid-green: #2e7d32;
  --bright-green: #6fbf3e;
  --black: #1a1a1a;
  --cream: #f5f1e6;
  --white: #ffffff;
  --earth: #8b5e3c;
  --text: #3a3a3a;
  --grad-teal: #0f6e56;
  --grad-deep: #04342c;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0.35 0.35 0 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 28px;
  transition: transform 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--dark-green);
  font-weight: 700;
}

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

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

.eyebrow {
  color: var(--mid-green);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.btn-brand {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--mid-green);
  color: #fff;
}
.btn-brand:hover {
  background: var(--bright-green);
  color: #fff;
}

.btn-brand-outline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}
.btn-brand-outline:hover {
  background: #fff;
  color: var(--dark-green);
}

section {
  padding: 80px 0;
}

.bg-cream {
  background-image: var(--noise), linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  background-blend-mode: overlay;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: 32px;
  margin-top: 8px;
}

/* LANG SWITCH */
.lang-switch {
  display: flex;
  border: 1.5px solid var(--mid-green);
  border-radius: 20px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--mid-green);
  padding: 6px 12px;
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--mid-green);
  color: #fff;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}
.logo-img {
  height: 52px;
  width: auto;
}
.footer-logo .logo-img {
  height: 44px;
}
@media (max-width: 420px) {
  .logo-img { height: 42px; }
}
.nav-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-row-top > * {
  flex: 0 0 auto;
  width: auto;
}
.nav-row-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.nav-row-links a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--black);
  padding: 6px 12px;
  border-radius: 20px;
}
.nav-row-links a:hover {
  color: var(--mid-green);
  background: var(--cream);
}
.phone-pill {
  font-weight: 700;
  color: var(--dark-green);
  font-size: 14.5px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .nav-row-links { gap: 2px 2px; }
  .nav-row-links a { font-size: 13px; padding: 6px 8px; }
  .btn-brand { padding: 10px 18px; font-size: 13.5px; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noise),
    linear-gradient(120deg, rgba(4, 52, 44, 0.92) 25%, rgba(15, 110, 86, 0.55) 65%, rgba(15, 110, 86, 0.25)),
    url("../images/hero.jpg") center/cover;
  background-blend-mode: overlay, normal, normal;
}
.hero-content {
  position: relative;
  max-width: 640px;
}
.hero h1 {
  color: #fff;
  font-size: 46px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 em {
  color: var(--bright-green);
  font-style: normal;
}
.hero p {
  font-size: 17px;
  margin-bottom: 30px;
  color: #eef5ee;
  max-width: 520px;
}
.hero-badge {
  position: absolute;
  right: 40px;
  bottom: -30px;
  background: #fff;
  color: var(--dark-green);
  padding: 18px 26px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  text-align: center;
  z-index: 2;
}
.hero-badge b {
  display: block;
  font-size: 30px;
  color: var(--mid-green);
}
@media (max-width: 900px) {
  .hero-badge { display: none; }
  .hero h1 { font-size: 34px; }
}

/* ABOUT */
.about-photos {
  position: relative;
  height: 420px;
}
.about-photos .ph1 {
  position: absolute;
  width: 78%;
  height: 78%;
  top: 0;
  left: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.about-photos .ph2 {
  position: absolute;
  width: 52%;
  height: 52%;
  bottom: 0;
  right: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}
.about-list {
  list-style: none;
  margin-top: 22px;
  padding: 0;
}
.about-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-weight: 600;
  color: var(--black);
}
.about-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 8px;
  color: #fff;
  background: var(--mid-green);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .about-photos { height: 320px; margin-bottom: 20px; }
}

/* SERVICES */
.service-card {
  background: #fff;
  border: 1px solid #e7e2d3;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.2s;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(11, 61, 30, 0.12);
  border-color: var(--bright-green);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--mid-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--mid-green);
}
.service-card h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 13.5px;
  color: #666;
}

/* PROCESS */
#proceso {
  background-image: var(--noise), linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  background-blend-mode: overlay;
}
.process-card {
  background: #fff;
  border: 1px solid #e7e2d3;
  border-radius: 14px;
  padding: 28px 22px;
  height: 100%;
  position: relative;
  transition: 0.2s;
}
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(11, 61, 30, 0.12);
  border-color: var(--bright-green);
}
.process-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mid-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 16px;
}
.process-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.process-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}
@media (min-width: 992px) {
  .process-card::after {
    content: "";
    position: absolute;
    top: 54px;
    left: 100%;
    width: 24px;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--bright-green) 0 6px, transparent 6px 12px);
  }
  .col-lg-3:last-child .process-card::after {
    display: none;
  }
}

/* GALLERY */
.gallery-item {
  position: relative;
  height: 230px;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-item img,
.about-photos img {
  width: 100%;
  height: 100%;
}
.gallery-item span {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(11, 61, 30, 0.85), transparent);
  color: #fff;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
}

/* STATS */
.stats {
  background-image: var(--noise), linear-gradient(135deg, var(--grad-teal) 0%, var(--grad-deep) 100%);
  background-blend-mode: overlay;
  color: #fff;
}
.stats b {
  display: block;
  font-size: 38px;
  color: var(--bright-green);
  font-family: 'Poppins', sans-serif;
}
.stats span {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* TESTIMONIALS */
.test-card {
  background: #fff;
  border: 1px solid #e7e2d3;
  border-radius: 14px;
  padding: 26px;
  height: 100%;
}
.stars {
  color: var(--bright-green);
  margin-bottom: 10px;
  font-size: 15px;
}
.test-card p {
  font-size: 14.5px;
  color: #555;
  margin-bottom: 16px;
}
.test-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-green);
  flex-shrink: 0;
}
.test-avatar svg {
  width: 20px;
  height: 20px;
}
.test-who b {
  font-size: 14px;
  color: var(--black);
  display: block;
}
.test-who small {
  color: #888;
  font-size: 12px;
}

/* CONTACT */
.contact {
  background-image: var(--noise), linear-gradient(135deg, var(--grad-teal) 0%, var(--grad-deep) 100%);
  background-blend-mode: overlay;
  color: #fff;
}
.contact h2 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 14px;
}
.contact-desc {
  color: #dfe9df;
  margin-bottom: 26px;
  font-size: 15px;
}
.info-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.info-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mid-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-line b {
  display: block;
  font-size: 14px;
}
.info-line span {
  font-size: 13.5px;
  color: #cfe0cf;
}
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  margin-top: 8px;
  font-size: 14.5px;
}

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 34px;
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.form-card h3 {
  color: var(--dark-green);
  margin-bottom: 4px;
}
.form-card > p {
  color: #777;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field .form-control {
  background: var(--cream);
  border: 1.5px solid #e2ddc9;
  border-radius: 8px;
}
.service-check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid #e2ddc9;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  height: 100%;
}
.service-check input {
  accent-color: var(--mid-green);
  width: 16px;
  height: 16px;
}
.form-card .btn-brand {
  width: 100%;
  text-align: center;
  font-size: 16px;
  padding: 15px;
  border-radius: 10px;
}

/* FOOTER */
footer {
  background-image: var(--noise), linear-gradient(160deg, var(--grad-deep) 0%, var(--grad-teal) 100%);
  background-blend-mode: overlay;
  color: #cfe0cf;
  padding: 60px 0 20px;
}
footer h5 {
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
footer ul {
  list-style: none;
  padding: 0;
}
footer li {
  margin-bottom: 9px;
  font-size: 13.5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 12.5px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfe0cf;
  transition: 0.2s;
}
.social-row a:hover {
  background: var(--bright-green);
  border-color: var(--bright-green);
  color: #08290f;
}

/* ADMIN (shared with login/dashboard) */
.admin-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.admin-table th {
  background: var(--cream);
  color: var(--dark-green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-nuevo { background: #e8f0fe; color: #1a56c4; }
.status-contactado { background: #fff4e0; color: #a15c00; }
.status-cotizado { background: #f0e6fb; color: #6a2fb3; }
.status-en_servicio { background: #e0f3ff; color: #036a9e; }
.status-completado { background: #e3f5e3; color: var(--mid-green); }
