/* ====================================================
   SEJACSA · Jardinería Profesional · Orizaba, Ver.
   Paleta: verdes naturales con acentos tierra
   Tipografías: Fraunces (display) + Outfit (body)
   ==================================================== */

:root {
  --verde-oscuro: #1f3d2b;
  --verde-medio:  #2f6b3e;
  --verde:        #3d8b4a;
  --verde-claro:  #6fb07a;
  --crema:        #f6f1e7;
  --crema-dark:   #ece4d2;
  --tierra:       #8a6a3f;
  --tierra-claro: #c9a96b;
  --negro:        #1a1f1a;
  --gris:         #5b5f58;
  --blanco:       #ffffff;
  --wa:           #25d366;
  --wa-dark:      #128c7e;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(31,61,43,0.08);
  --shadow: 0 10px 30px rgba(31,61,43,0.12);
  --shadow-lg: 0 20px 50px rgba(31,61,43,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--negro);
  background: var(--crema);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--verde-medio); text-decoration: none; transition: color .25s; }
a:hover { color: var(--verde-oscuro); }

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

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,241,231,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,61,43,0.08);
}
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--verde-oscuro);
}
.brand-mark {
  display: inline-flex;
  width: 44px; height: 44px;
  color: var(--verde-medio);
  background: var(--verde-oscuro);
  border-radius: 50%;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 100%; height: 100%; color: var(--verde-claro); }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  display: block;
  line-height: 1;
  color: var(--verde-oscuro);
}
.brand-text em {
  font-style: normal;
  font-size: .75rem;
  color: var(--gris);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  color: var(--verde-oscuro);
  font-size: .95rem;
  position: relative;
}
.nav-links a:not(.btn-wa-sm)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--verde-medio);
  transition: width .25s;
}
.nav-links a:not(.btn-wa-sm):hover::after { width: 100%; }
.btn-wa-sm {
  background: var(--wa);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.btn-wa-sm:hover { background: var(--wa-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--verde-oscuro);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(111,176,122,0.35), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(61,139,74,0.25), transparent 60%),
    linear-gradient(135deg, #2a4e33 0%, #1f3d2b 55%, #17301f 100%);
  z-index: -2;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .6;
  pointer-events: none;
}
.hero-leaves { position: absolute; inset: 0; z-index: -1; }
.hero-leaves .leaf {
  position: absolute;
  width: 280px;
  animation: float 18s ease-in-out infinite;
}
.hero-leaves .leaf-1 { top: -60px; right: -80px; transform: rotate(25deg); }
.hero-leaves .leaf-2 { bottom: -80px; left: -60px; transform: rotate(-35deg); animation-delay: -6s; }
.hero-leaves .leaf-3 { top: 40%; left: 55%; width: 180px; transform: rotate(60deg); animation-delay: -12s; opacity: .5; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--r, 0deg)); }
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  animation: fadeUp 1s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  margin-bottom: 26px;
  color: rgba(255,255,255,0.9);
}
.eyebrow.dark {
  border-color: rgba(31,61,43,0.2);
  color: var(--verde-medio);
}
.eyebrow.light {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--verde-claro);
  font-weight: 300;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.hero-badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  font-size: .9rem;
  color: rgba(255,255,255,0.85);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges span {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37,211,102,0.35);
}
.btn-primary:hover {
  background: var(--wa-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37,211,102,0.45);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}
.btn-sm { padding: 11px 22px; font-size: .9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: 18px; }

/* ===== SECTIONS ===== */
.section {
  padding: 110px 0;
  position: relative;
}
.section-alt { background: var(--crema-dark); }
.section-dark {
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, #17301f 100%);
  color: #fff;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head h2,
.about-text h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  color: var(--verde-oscuro);
}
.section-head h2 em,
.about-text h2 em,
.contact-info h2 em {
  font-style: italic;
  color: var(--tierra);
  font-weight: 400;
}
.section-dark .section-head h2,
.contact-info h2 { color: #fff; }
.contact-info h2 em { color: var(--verde-claro); }
.section-lead {
  color: var(--gris);
  font-size: 1.1rem;
  line-height: 1.7;
}
.section-lead.light { color: rgba(255,255,255,0.8); }

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--verde-medio);
  transition: height .4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(61,139,74,0.15);
}
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 66px; height: 66px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f1e6, #d4e7cf);
  color: var(--verde-medio);
  border-radius: 18px;
  margin-bottom: 22px;
  padding: 13px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--verde-oscuro);
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-card p {
  color: var(--gris);
  font-size: .98rem;
  line-height: 1.65;
}
.service-card.feature {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-medio));
  color: #fff;
}
.service-card.feature h3 { color: #fff; }
.service-card.feature p { color: rgba(255,255,255,0.85); }
.service-card.feature .service-icon {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.service-card.cta-card {
  background: var(--crema);
  border: 2px dashed var(--tierra-claro);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.service-card.cta-card h3 { color: var(--tierra); }
.service-card.cta-card p { margin-bottom: 20px; }

/* ===== GALERÍA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.g-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
  position: relative;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.g-item:hover img { transform: scale(1.08); }
.g-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,61,43,0.35), transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.g-item:hover::after { opacity: 1; }
.g-1 { grid-column: span 2; grid-row: span 2; }
.g-2 { grid-column: span 1; grid-row: span 1; }
.g-3 { grid-column: span 1; grid-row: span 1; }
.g-4 { grid-column: span 1; grid-row: span 2; }
.g-5 { grid-column: span 1; grid-row: span 1; }
.g-6 { grid-column: span 2; grid-row: span 1; }
.g-7 { grid-column: span 1; grid-row: span 1; }
.g-8 { grid-column: span 1; grid-row: span 1; }
.g-9 { grid-column: span 1; grid-row: span 1; }
.g-10 { grid-column: span 2; grid-row: span 1; }

/* ===== NOSOTROS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-text p {
  color: var(--gris);
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.75;
}
.about-list {
  list-style: none;
  margin-top: 24px;
}
.about-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: var(--negro);
  border-bottom: 1px solid rgba(31,61,43,0.08);
}
.about-list li::before {
  content: '❧';
  position: absolute;
  left: 0; top: 12px;
  color: var(--verde-medio);
  font-size: 1.2rem;
  font-family: var(--font-display);
}
.about-list li strong { color: var(--verde-oscuro); }

.about-card {
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-medio) 100%);
  color: #fff;
  padding: 42px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(111,176,122,0.4), transparent 70%);
  border-radius: 50%;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: relative;
}
.stat:last-of-type { border-bottom: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--verde-claro);
}
.stat .lbl {
  font-size: .9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
  letter-spacing: .02em;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: stretch;
}
.contact-list {
  list-style: none;
  margin: 32px 0;
}
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { color: #fff; font-weight: 600; }
.contact-list a { color: var(--verde-claro); }
.contact-list a:hover { color: #fff; }
.c-ico {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 450px;
  background: rgba(255,255,255,0.05);
}
.contact-map iframe { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: #131a13;
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text em { color: rgba(255,255,255,0.55); }
.footer-desc {
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.site-footer ul {
  list-style: none;
}
.site-footer ul li {
  margin-bottom: 10px;
  font-size: .92rem;
}
.site-footer ul a {
  color: rgba(255,255,255,0.7);
  transition: color .2s;
}
.site-footer ul a:hover { color: var(--verde-claro); }
.footer-contact li { color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  font-size: .85rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 62px; height: 62px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
  z-index: 999;
  animation: pulseWa 2.5s infinite;
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); background: var(--wa-dark); }
@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== LEGAL PAGES ===== */
.legal-hero {
  background: linear-gradient(135deg, var(--verde-oscuro), #17301f);
  color: #fff;
  padding: 100px 24px 60px;
  text-align: center;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.legal-hero p { color: rgba(255,255,255,0.75); }
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--verde-oscuro);
  font-size: 1.6rem;
  margin: 34px 0 14px;
}
.legal-content h3 {
  font-family: var(--font-display);
  color: var(--verde-medio);
  font-size: 1.2rem;
  margin: 24px 0 10px;
}
.legal-content p, .legal-content li {
  color: var(--gris);
  margin-bottom: 14px;
  line-height: 1.75;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.legal-content a { color: var(--verde-medio); text-decoration: underline; }
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--verde-medio);
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--crema);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
    border-bottom: 1px solid rgba(31,61,43,0.1);
  }
  .nav-links.open { display: flex; }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .g-1, .g-4, .g-6, .g-10 { grid-column: span 2; grid-row: span 1; }
  .section { padding: 80px 0; }
  .hero { min-height: auto; padding: 60px 24px 80px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-1, .g-4, .g-6, .g-10 { grid-column: span 1; }
  .hero-badges { gap: 16px; }
  .btn { padding: 13px 24px; font-size: .95rem; }
  .wa-float { width: 56px; height: 56px; bottom: 18px; right: 18px; }
}
