:root {
  --primary: #6b705c; /* Verde Olivo suave */
  --accent: #b7b7a4;
  --bg: #f8f7f2;
  --text: #333d29;
  --white: #ffffff;
  --gold: #d4a373;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- Hero Section --- */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('fotofinca.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0;
  font-weight: 400;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto;
}

/* --- Contador --- */
#countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.time-unit {
 -webkit-backdrop-filter: blur(5px); /* Add this */
  backdrop-filter: blur(5px);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  padding: 15px;
  border-radius: 8px;
  min-width: 60px;
}

.time-unit span {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
}

/* --- Cards y Secciones --- */
section {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
}

.card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
}

/* --- Formulario Moderno --- */
.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--accent);
  background: transparent;
  outline: none;
  font-size: 1rem;
  transition: 0.3s;
}

.input-group label {
  position: absolute;
  left: 0;
  top: 10px;
  color: #999;
  pointer-events: none;
  transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--gold);
}

.btn-submit {
  background: var(--primary);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(107, 112, 92, 0.3);
}

.btn-submit:hover {
  transform: translateY(-3px);
  background: var(--text);
  box-shadow: 0 8px 20px rgba(107, 112, 92, 0.4);
}

/* --- Mapas --- *//* --- Mapas Apilados Verticalmente --- */
.grid-maps {
  display: flex;
  flex-direction: column; /* Fuerza el orden vertical */
  gap: 40px; /* Espacio generoso entre las dos secciones */
  max-width: 650px; /* Evita que los mapas se vean gigantes en ordenador */
  margin: 0 auto;
}

.map-card {
  width: 100%;
  text-align: center; /* Centra el texto para que quede armónico */
}

/* Estilo para los textos de los buses que añadimos antes */
.bus-info {
  text-align: left;
  font-size: 0.95rem;
  margin: 20px 0;
  padding: 15px;
  background-color: rgba(212, 163, 115, 0.1); /* Un fondo crema muy suave */
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
.grid-maps {
  display: flex;
  flex-direction: column; /* Fuerza el orden vertical */
  gap: 40px; /* Espacio generoso entre las dos secciones */
  max-width: 650px; /* Evita que los mapas se vean gigantes en ordenador */
  margin: 0 auto;
}

.map-card iframe {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  margin: 15px 0;
}

.btn-map {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 20px;
  transition: 0.3s;
}

.btn-map:hover {
  background: var(--primary);
  color: white;
}

/* --- Efectos de Revelación (Scroll) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.foto-principal {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.foto-principal:hover {
  transform: scale(1.02);
}

.btn-submit:disabled {
  background-color: #ccc; /* Color gris */
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}