/* ============================================
   AMAZAS JARDINERÍA — Main Stylesheet
   ============================================ */

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

:root {
  --green-dark:   #2d5a27;
  --green-mid:    #3d7a35;
  --green-light:  #e8f5e2;
  --earth:        #8b6914;
  --text:         #1a1a1a;
  --text-muted:   #666;
  --bg:           #fff;
  --bg-gray:      #f7f7f5;
  --radius:       12px;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* ---- Utilities ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section--gray { background: var(--bg-gray); }
.section--green { background: var(--green-dark); }

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section__title--white { color: #fff; }
.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-dark);
  color: #fff;
}
.btn--primary:hover { background: var(--green-mid); }
.btn--outline {
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.btn--outline:hover { background: var(--green-light); }
.btn--ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
}
.nav__logo-icon { font-size: 1.4rem; }
.nav__logo-img { height: 40px; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav__links a:hover { color: var(--green-dark); }

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 45, 15, 0.72) 0%,
    rgba(30, 60, 20, 0.45) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   SERVICES
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.service-card__img {
  height: 200px;
  object-fit: cover;
  background: var(--green-light);
}
/* Placeholder when image is missing */
.service-card__img[src$=".jpg"]:not([complete]),
.service-card__img[src=""] {
  background: var(--green-light);
  min-height: 200px;
}
.service-card__body {
  padding: 20px;
}
.service-card__icon { font-size: 1.8rem; margin-bottom: 10px; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   GALLERY
   ============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery__img {
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--green-light);
  transition: transform var(--transition);
  cursor: pointer;
}
.gallery__img:hover { transform: scale(1.02); }

@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__img { height: 160px; }
}

.gallery__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 24px;
  background: var(--green-light);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.gallery__placeholder span { font-size: 3rem; }
.gallery__placeholder p { font-size: 1rem; }

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  flex: 1;
  cursor: grab;
  user-select: none;
}
.carousel__viewport.is-dragging { cursor: grabbing; }
.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 calc(50% - 6px);
  margin-right: 12px;
}
.carousel__slide:last-child { margin-right: 0; }
.carousel__slide img {
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  width: 100%;
  pointer-events: none;
}
.carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green-dark);
  background: #fff;
  color: var(--green-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}
.carousel__btn:hover { background: var(--green-dark); color: #fff; }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 640px) {
  .carousel__slide { flex: 0 0 100%; margin-right: 12px; }
  .carousel__btn { display: none; }
}

/* ============================================
   CAL.COM EMBED
   ============================================ */
.cal-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-gray);
}
.cal-embed iframe {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .cal-embed iframe { height: 500px; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.contact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  transition: background var(--transition);
}
.contact-card:hover { background: rgba(255,255,255,0.18); }
.contact-card__icon { font-size: 2rem; }
.contact-card__label { font-size: 0.8rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card__value { font-size: 1rem; font-weight: 600; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 2;
}
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: #fff; }
