/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #2c5530;
  --color-primary-dark: #1a3a1e;
  --color-primary-light: #3d7a42;
  --color-accent: #c8a951;
  --color-accent-light: #e0c97a;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-alt: #f8f6f0;
  --color-bg-dark: #1a1a1a;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 4px;
  transition: all var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 60%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: var(--color-text);
}

.dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.dropdown-menu a::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

/* ===== HERO / SLIDESHOW ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.5) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 2rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200,169,81,0.4);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-primary-dark);
  color: #fff;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.section-dark .section-title {
  color: #fff;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 1.5rem;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-body .card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-body .card-link:hover {
  color: var(--color-primary);
}

/* ===== ABOUT TEXT ===== */
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-images img {
  border-radius: 8px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== PROPERTY PAGE ===== */
.property-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
  margin-top: 80px;
}

.property-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-hero .hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
}

.property-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.property-hero .location {
  color: var(--color-accent-light);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.property-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  padding: 2rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
  background: #fff;
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.3rem;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===== SUSTAINABILITY ===== */
.sustainability-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.sustainability-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.sustainability-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.sustainability-item p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* ===== COFFEE VARIETIES ===== */
.coffee-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-left: 4px solid var(--color-accent);
  transition: all var(--transition);
}

.coffee-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.coffee-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.8rem;
}

.coffee-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===== ANIMAL CARD (Estancia) ===== */
.animal-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.animal-card:hover {
  transform: translateY(-3px);
}

.animal-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.animal-card .card-body {
  padding: 1.5rem;
}

.animal-card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.animal-card .year {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ===== CONTACT ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44,85,48,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  background: var(--color-primary-dark);
  padding: 8rem 0 3rem;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-content h1 { font-size: 2.8rem; }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    gap: 0;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 0.8rem 1rem;
    width: 100%;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    margin-top: 0;
  }

  .hamburger { display: flex; }

  .property-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .property-hero h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }
  .section { padding: 4rem 0; }
}
