/* ===== Colores y tipografía ===== */
:root {
  --thistle-dark: #4a2c63;   /* lila oscuro: títulos, cabecera */
  --thistle: #7d5a9e;        /* lila thistle: botones, detalles */
  --thistle-light: #d8bfd8;  /* thistle claro */
  --thistle-pale: #f5eff8;   /* fondo suave de secciones */
  --text: #2b2330;
  --white: #ffffff;
  --radius: 10px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--thistle-dark);
  line-height: 1.2;
}

a { color: var(--thistle); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 760px; }

/* ===== Cabecera ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--thistle-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover { color: var(--thistle-light); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

/* ===== Portada ===== */
.hero {
  /* Foto de Edimburgo con un velo lila para que el texto se lea bien */
  background:
    linear-gradient(rgba(74, 44, 99, 0.55), rgba(74, 44, 99, 0.7)),
    url("../images/portada-edimburgo.jpg") center / cover no-repeat,
    var(--thistle-dark);
  color: var(--white);
  text-align: center;
  padding: 150px 0 160px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 12px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--thistle-dark);
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover { background: var(--thistle-pale); }

/* ===== Secciones ===== */
.section { padding: 80px 0; }

.section-alt { background: var(--thistle-pale); }

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  margin: 0 0 24px;
}

.section .narrow p { text-align: center; font-size: 1.1rem; }

/* ===== Tours ===== */
.tour-group-title {
  font-size: 1.4rem;
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--thistle-light);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tour-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74, 44, 99, 0.1);
}

.tour-image {
  height: 180px;
  background: linear-gradient(135deg, var(--thistle-light), var(--thistle));
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-body { padding: 20px 22px 24px; }

.tour-body h4 { font-size: 1.25rem; margin: 0 0 8px; }

.tour-meta {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  color: var(--thistle-dark);
}

/* ===== Contacto ===== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--thistle-pale);
  color: var(--thistle-dark);
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.contact-item:hover { background: var(--thistle-light); }

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-list a { font-weight: 600; }

/* ===== Botón flotante de WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

/* ===== Pie ===== */
.site-footer {
  background: var(--thistle-dark);
  color: var(--thistle-light);
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

.site-footer .photo-credit {
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.8;
}

.site-footer .photo-credit a { color: inherit; }

/* ===== Móvil ===== */
@media (max-width: 720px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--thistle-dark);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .main-nav li a {
    display: block;
    padding: 12px 0;
  }

  .hero { padding: 80px 0 90px; }

  .section { padding: 56px 0; }
}
