/* style.css - Estilo principal para Paraje La Venta */

:root {
  --verde: #3B5A2F;
  --verde-claro: #5C7A4A;
  --verde-palido: #E8F0E4;
  --tierra: #8B6347;
  --tierra-claro: #C4956A;
  --crema: #F7F3EE;
  --crema-oscuro: #EDE7DC;
  --texto: #2A2217;
  --texto-medio: #5A5144;
  --texto-suave: #8A7E72;
  --blanco: #FEFCF9;
  --borde: rgba(59,90,47,0.15);
  --sombra: 0 4px 24px rgba(42,34,23,0.08);
  --radio: 4px;
  --radio-lg: 8px;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body { 
  font-family: 'Source Sans 3', sans-serif; 
  background: var(--crema); 
  color: var(--texto); 
  min-height: 100vh; 
  font-size: 16px; 
  line-height: 1.6; 
}

/* Cabecera / Header */
header { 
  background: var(--verde); 
  padding: 1.5rem 2rem; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  box-shadow: var(--sombra);
}

.logo-area { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  color: var(--crema);
}

.logo::before {
  content: '🌿';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--tierra-claro);
  border-radius: 50%;
  font-size: 1.25rem;
}

.logo a {
  font-family: 'Playfair Display', serif;
  color: var(--crema);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

.logo p.slogan {
  margin: 0;
  color: rgba(247,243,238,0.75);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-icon { 
  width: 42px; 
  height: 42px; 
  background: var(--tierra-claro); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 20px; 
}

.logo-text h1 { 
  font-family: 'Playfair Display', serif; 
  color: var(--crema); 
  font-size: 1.3rem; 
  font-weight: 600; 
  letter-spacing: 0.02em; 
}

.logo-text p { 
  color: rgba(247,243,238,0.65); 
  font-size: 0.78rem; 
  font-weight: 300; 
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
}

.header-badge { 
  background: rgba(255,255,255,0.12); 
  border: 1px solid rgba(255,255,255,0.2); 
  color: var(--crema); 
  font-size: 0.75rem; 
  padding: 0.35rem 0.85rem; 
  border-radius: 20px; 
  letter-spacing: 0.04em; 
}

/* Nav Principal */
nav {
  background: var(--verde-claro);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 8px rgba(42,34,23,0.05);
  flex-wrap: wrap;
}

nav a {
  color: var(--crema);
  text-decoration: none;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.18s;
  display: inline-block;
  border-bottom: 3px solid transparent;
}

nav a:hover {
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--tierra-claro);
}

nav a.active {
  background: rgba(255,255,255,0.12);
  border-bottom-color: var(--tierra-claro);
}

/* English link alignment */
.lang-link {
  margin-left: auto;
}

/* Contenedor central */
.container { 
  max-width: 960px; 
  margin: 0 auto; 
  padding: 2.5rem 1.5rem; 
}

/* Tarjetas (Cards) */
.card { 
  background: var(--blanco); 
  border: 1px solid var(--borde); 
  border-radius: var(--radio-lg); 
  padding: 2rem; 
  box-shadow: var(--sombra); 
  margin-bottom: 1.5rem; 
}

.card-title { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.25rem; 
  color: var(--verde); 
  margin-bottom: 0.4rem; 
  font-weight: 600;
}

.card-subtitle { 
  font-size: 0.875rem; 
  color: var(--texto-suave); 
  margin-bottom: 1.5rem; 
  font-weight: 300; 
}

.card-content {
  color: var(--texto);
  line-height: 1.8;
}

.card-content p {
  margin-bottom: 1rem;
}

.card-content strong {
  color: var(--verde);
  font-weight: 600;
}

/* Grid de Secciones */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 1.5rem;
  box-shadow: var(--sombra);
  transition: all 0.2s;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(42,34,23,0.12);
}

.section-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--verde);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-card p {
  font-size: 0.9rem;
  color: var(--texto-suave);
  line-height: 1.6;
}

/* Botones */
.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem; 
  padding: 0.7rem 1.5rem; 
  border-radius: var(--radio); 
  font-family: 'Source Sans 3', sans-serif; 
  font-size: 0.9rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.15s; 
  border: none; 
  letter-spacing: 0.03em; 
  text-decoration: none;
  display: inline-block;
}

.btn-primary { 
  background: var(--verde); 
  color: white; 
}

.btn-primary:hover { 
  background: var(--verde-claro); 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,90,47,0.3);
}

.btn-secondary { 
  background: transparent; 
  color: var(--verde); 
  border: 1px solid var(--verde); 
}

.btn-secondary:hover { 
  background: var(--verde-palido); 
}

/* Alertas */
.alert { 
  padding: 0.85rem 1.1rem; 
  border-radius: var(--radio); 
  font-size: 0.85rem; 
  margin-bottom: 1rem; 
}

.alert-info { 
  background: #EEF4FF; 
  border: 1px solid #B5D4F4; 
  color: #185FA5; 
}

.alert-ok { 
  background: var(--verde-palido); 
  border: 1px solid rgba(59,90,47,0.25); 
  color: var(--verde); 
}

/* Footer */
footer { 
  text-align: center; 
  padding: 2rem; 
  font-size: 0.78rem; 
  color: var(--texto-suave); 
  border-top: 1px solid var(--borde); 
  margin-top: 2rem;
  background: var(--blanco);
}

footer a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: var(--verde-claro);
  text-decoration: underline;
}

/* Imagen Hero */
.hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radio-lg);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  
  nav a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  header {
    padding: 1rem;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .header-badge {
    display: none;
  }

  nav a {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .hero-image {
    height: 200px;
  }
}

/* Improve hero image on small screens */
.hero-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radio-lg);
  display: block;
  margin: 0 auto 1.5rem;
}

/* Responsive map wrapper */
.map-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Layout for pages with sidebar */
.site-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.site-main.single-column {
  grid-template-columns: 1fr;
}

.site-sidebar {
  background: transparent;
}

.site-sidebar h3 {
  font-size: 1rem;
  color: var(--verde);
  margin-bottom: 0.75rem;
}

.site-sidebar ul { list-style: none; padding-left: 0; }
.site-sidebar li { margin-bottom: 0.6rem; }
.site-sidebar a { color: var(--verde); text-decoration: none; }

.content-article header h1, .page-title, .card-title.page {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.route-container { display: flex; gap: 1rem; flex-wrap: wrap; }
.route-map { flex: 1 1 60%; min-height: 320px; border: 1px solid var(--borde); border-radius: var(--radio-lg); }
.route-directions { flex: 1 1 36%; overflow: auto; min-height: 320px; border: 1px solid var(--borde); border-radius: var(--radio-lg); padding: 1rem; background: #fff; }

/* Forms */
form label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--verde); }
input[type="text"], input[type="email"], textarea { width: 100%; padding: 0.6rem 0.85rem; margin-bottom: 0.85rem; border: 1px solid var(--borde); border-radius: var(--radio); }
button, .btn { cursor: pointer; }

/* Responsive adjustments for layout */
@media (max-width: 900px) {
  .site-main { grid-template-columns: 1fr; }
  .route-map, .route-directions { min-height: 240px; }
}

@media (max-width: 480px) {
  .logo-text h1 { font-size: 1rem; }
  .site-sidebar { order: 2; }
  .content-article { order: 1; }
  nav a { font-size: 0.8rem; padding: 0.5rem 0.6rem; }
}
