@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Josefin+Sans:wght@300;400;600&display=swap');

:root {
  --verde-bosque: #2d4a22;
  --verde-musgo: #5a7a3a;
  --verde-claro: #8fb56a;
  --tierra: #8b6914;
  --crema: #f5f0e8;
  --blanco-calido: #faf8f4;
  --gris-oscuro: #1a1a1a;
  --acento-dorado: #c9a227;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  background-color: var(--blanco-calido);
  color: var(--gris-oscuro);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

a {
  color: var(--verde-musgo);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--acento-dorado);
}

.navbar-custom {
  background: linear-gradient(135deg, var(--verde-bosque) 0%, #1a2e14 100%);
  padding: 0.8rem 1.5rem;
  border-bottom: 3px solid var(--acento-dorado);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--crema) !important;
  letter-spacing: 2px;
}

.navbar-brand-sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--acento-dorado);
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

.navbar-custom .nav-link {
  color: var(--crema) !important;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.3s;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--acento-dorado);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 80%;
}

.navbar-custom .nav-link:hover {
  color: var(--acento-dorado) !important;
}

.navbar-custom .navbar-toggler {
  border-color: var(--acento-dorado);
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c9a227' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
  background: linear-gradient(135deg, var(--verde-bosque) 0%, var(--verde-musgo) 50%, var(--verde-claro) 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section::before {
  pointer-events: none;
}

.hero-section .hero-leaf {
  position: absolute;
  opacity: 0.07;
  font-size: 18rem;
  right: -2rem;
  top: -3rem;
  color: white;
  animation: floatLeaf 8s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

@keyframes floatLeaf {
  0%, 100% { transform: rotate(15deg) translateY(0); }
  50% { transform: rotate(20deg) translateY(-20px); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: white;
  line-height: 1.1;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--acento-dorado);
}

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
}

.btn-naturaleza {
  background: var(--acento-dorado);
  color: var(--verde-bosque);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-naturaleza:hover {
  background: var(--verde-bosque);
  color: var(--acento-dorado);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-outline-naturaleza {
  border: 2px solid var(--acento-dorado);
  color: var(--acento-dorado);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.7rem 1.8rem;
  background: transparent;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-outline-naturaleza:hover {
  background: var(--acento-dorado);
  color: var(--verde-bosque);
}

.card-naturaleza {
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  background: white;
}

.card-naturaleza:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-naturaleza .card-img-overlay-custom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(29, 45, 18, 0.9));
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.card-naturaleza:hover .card-img-overlay-custom {
  transform: translateY(0);
}

.card-naturaleza .card-tag {
  display: inline-block;
  background: var(--acento-dorado);
  color: var(--verde-bosque);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--acento-dorado);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--verde-bosque);
  margin-bottom: 0.5rem;
}

.divider-leaf {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--verde-musgo), var(--acento-dorado));
  margin: 1rem 0 2rem;
}

.carousel-custom .carousel-item {
  height: 500px;
}

.carousel-custom .carousel-item img {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.carousel-custom .carousel-caption {
  bottom: 3rem;
  text-align: left;
  left: 8%;
  right: 40%;
}

.carousel-custom .carousel-caption h5 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.carousel-custom .carousel-caption p {
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0.9;
}

.carousel-custom .carousel-indicators button {
  width: 30px;
  height: 3px;
  background-color: var(--acento-dorado);
  opacity: 0.5;
  border: none;
}

.carousel-custom .carousel-indicators button.active {
  opacity: 1;
}

.tabla-custom {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
}

.tabla-custom thead {
  background: var(--verde-bosque);
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.tabla-custom tbody tr:nth-child(odd) {
  background-color: rgba(90, 122, 58, 0.08);
}

.tabla-custom tbody tr:hover {
  background-color: rgba(201, 162, 39, 0.1);
  transition: background 0.2s;
}

.form-custom .form-control,
.form-custom .form-select {
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-custom .form-control:focus,
.form-custom .form-select:focus {
  border-color: var(--verde-musgo);
  box-shadow: 0 0 0 3px rgba(90, 122, 58, 0.15);
}

.form-custom .form-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde-bosque);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-custom {
  background: linear-gradient(135deg, var(--gris-oscuro) 0%, var(--verde-bosque) 100%);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  font-size: 0.85rem;
  margin-top: 4rem;
}

.footer-custom .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-custom .footer-links a {
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-custom .footer-links a:hover {
  color: var(--acento-dorado);
}

.footer-custom hr {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1rem;
}

.footer-custom .footer-copy {
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.badge-categoria {
  background: var(--verde-claro);
  color: white;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-verde {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90, 122, 58, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(90, 122, 58, 0); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

.hidden-anim {
  opacity: 0;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  border-left: 3px solid var(--acento-dorado);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--verde-musgo);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tierra);
  margin-top: 0.5rem;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.9);
}

.galeria-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: rgba(29,45,18,0.6);
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay .galeria-icon {
  font-size: 2.5rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.galeria-item:hover .galeria-overlay .galeria-icon {
  transform: translateY(0);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.audio-player-custom {
  background: linear-gradient(135deg, var(--verde-bosque), var(--verde-musgo));
  border-radius: 0;
  padding: 1.5rem;
  color: white;
}

.audio-player-custom audio {
  width: 100%;
  margin-top: 0.5rem;
  filter: invert(1) hue-rotate(180deg);
}

.tip-card {
  border-left: 4px solid var(--verde-claro);
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.tip-card:hover {
  border-left-color: var(--acento-dorado);
  transform: translateX(5px);
}

.tip-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--verde-claro);
  opacity: 0.4;
  line-height: 1;
  float: left;
  margin-right: 1rem;
}

.page-header {
  background: linear-gradient(135deg, var(--verde-bosque) 0%, var(--verde-musgo) 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--blanco-calido);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.page-header h1 {
  color: white;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.3);
}

.page-header p {
  color: rgba(255,255,255,0.8);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .carousel-custom .carousel-item {
    height: 300px;
  }
  
  .carousel-custom .carousel-caption {
    right: 5%;
    left: 5%;
    bottom: 1.5rem;
  }

  .hero-section {
    min-height: 50vh;
    text-align: center;
  }

  .divider-leaf {
    margin: 1rem auto 2rem;
  }

  .stat-box {
    border-left: none;
    border-bottom: 3px solid var(--acento-dorado);
    margin-bottom: 1.5rem;
  }
}
