@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --verde-oscuro: #1b5e20;
  --verde-medio: #2e7d32;
  --verde-vivo: #43a047;
  --crema: #f9f6f0;
  --texto: #222;
  --texto-suave: #666;
}

#nosotros,
#ubicacion {
  scroll-margin-top: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--crema);
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--texto);
}

/* ── HEADER ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: var(--verde-oscuro);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 3px 16px rgba(0,0,0,0.25);
}

.logo img { height: 90px; }
.logo div {padding: 0;}

nav { display: flex; gap: 2px; }

nav a {
  padding: 8px 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

nav a.active {
  background: rgba(255,255,255,0.15);
  color: #ffd54f;
}

.icons { display: flex; align-items: center; gap: 14px; color: white; font-size: 18px; }
.icons > i { cursor: pointer; opacity: 0.85; transition: opacity 0.2s; }
.icons > i:hover { opacity: 1; }

/* ── MENÚ USUARIO CIRCULAR ── */
.user-menu { position: relative; }

.btn-user-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  position: relative;
}
.btn-user-circle:hover { background: rgba(255,255,255,0.32); transform: scale(1.08); }

.btn-user-circle .session-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: #69f0ae;
  border: 2px solid #1b5e20;
  border-radius: 50%;
  display: none;
}
.user-menu.logueado .session-dot { display: block; }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px); right: 0;
  background: #fff;
  border-radius: 14px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  border: 1px solid #e4e7ec;
  overflow: hidden;
  z-index: 200;
  animation: dropIn 0.18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-menu.open .user-dropdown { display: block; }

.user-drop-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e4e7ec;
}
.user-drop-header span {
  display: block; font-size: 13px; font-weight: 700; color: #222;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-drop-header small { font-size: 11px; color: #666; }

.user-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 13.5px; font-weight: 600;
  color: #1a1f2e; text-decoration: none; transition: background 0.12s;
}
.user-drop-item:hover { background: #f4f6f8; }
.user-drop-item i { width: 16px; text-align: center; color: #2e7d32; }
.user-drop-divider { height: 1px; background: #e4e7ec; margin: 2px 0; }
.user-drop-logout { color: #dc2626 !important; }
.user-drop-logout i { color: #dc2626 !important; }
.user-drop-logout:hover { background: #fee2e2 !important; }

/* ── HERO ── */
.hero {
  height: 85vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
}

.slide.active { opacity: 1; }

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 30px;
}

.buttons { margin-top: 20px; }

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px;
  font-family: 'DM Sans', sans-serif;
}

.btn-green { background: #3fa34d; color: white; }
.btn-yellow { background: #f4b400; color: white; }
.btn:hover { opacity: 0.85; }

/* ── NOSOTROS ── */
.nosotros {
  padding: 80px 40px;
  background: white;
}

.nosotros-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  flex-wrap: wrap;
}

.nosotros-texto { flex: 1; min-width: 300px; }

.nosotros-texto h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--verde-medio);
  margin-bottom: 20px;
}

.nosotros-texto p {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

.nosotros-img { flex: 1; min-width: 300px; text-align: center; }
.nosotros-img img { width: 100%; max-width: 500px; border-radius: 20px; }

/* ── PROMOCIONES ── */
.promociones {
  padding: 80px 40px;
  text-align: center;
  background: var(--crema);
}

.promociones h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--verde-medio);
  margin-bottom: 50px;
}

.promo-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.promo-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 250px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.promo-card i {
  font-size: 40px;
  color: var(--verde-vivo);
  margin-bottom: 15px;
}

.promo-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--verde-medio);
  font-weight: 700;
}

.promo-card p { font-size: 15px; color: #555; }

.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

/* ── UBICACIÓN ── */
.ubicacion {
  padding: 70px 40px;
  background: white;
}

.ubicacion h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--verde-medio);
  margin-bottom: 50px;
}

.ubicacion h2 i { margin-right: 10px; }

.ubicacion-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: stretch;
  flex-wrap: wrap;
}

.ubicacion-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item { display: flex; align-items: flex-start; gap: 16px; }

.info-icon {
  width: 44px; height: 44px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i { font-size: 18px; color: var(--verde-vivo); }

.info-item strong {
  display: block;
  color: var(--verde-medio);
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item p { color: #555; font-size: 14px; line-height: 1.6; }
.info-item p a { color: var(--verde-vivo); text-decoration: none; font-weight: bold; }

.info-divider { height: 1px; background: #e0e0e0; margin: 4px 0; }

.horario-tabla {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 20px;
  font-size: 14px;
  color: #555;
}
.horario-tabla span:nth-child(odd) { font-weight: 600; color: #333; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

.badge {
  background: #e8f5e9;
  color: var(--verde-medio);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.frase-columna {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.frase-card {
  background: var(--crema);
  border-left: 4px solid var(--verde-vivo);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.frase-card-alt { border-left-color: #f4b400; background: #fffdf0; }
.frase-hoja { font-size: 28px; color: var(--verde-vivo); margin-bottom: 12px; }
.frase-card-alt .frase-hoja { color: #f4b400; }

.frase-card blockquote {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

.frase-autor { margin-top: 10px; font-size: 13px; font-weight: bold; color: var(--verde-vivo); }

.frase-valores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #e8f5e9;
  border-radius: 12px;
  padding: 20px;
}

.valor { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: bold; color: var(--verde-medio); }
.valor i { font-size: 18px; color: var(--verde-vivo); width: 24px; text-align: center; }

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verde-medio);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  width: fit-content;
  transition: background 0.2s;
}
.btn-directions:hover { background: var(--verde-oscuro); }

.mapa {
  flex: 1.5;
  min-width: 260px;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* ── FOOTER ── */
footer {
  background: var(--verde-oscuro);
  color: rgba(255,255,255,0.7);
  padding: 36px 48px 20px;
  font-size: 13px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.footer-logo img { height: 60px; opacity: 0.9; }

.footer-pagos p,
.footer-redes p {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tarjetas { display: flex; gap: 10px; }

.tarjeta-icono {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redes-iconos { display: flex; gap: 10px; }

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: white;
  font-size: 13px;
  font-weight: bold;
  border-radius: 8px;
  transition: transform 0.2s, opacity 0.2s;
}
.social-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.social-btn i { font-size: 18px; }
.social-btn.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-btn.facebook { background: #1877f2; }

.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
.footer-copy strong { color: #ffd54f; }

/* ── HAMBURGER (oculto en desktop) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.2); }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header {
    padding: 12px 20px;
    position: relative;
    flex-wrap: nowrap;
    min-height: 64px;
  }

  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--verde-oscuro);
    flex-direction: column;
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 100;
  }
  nav.open { display: flex; }

  nav a {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  nav a:last-child { border-bottom: none; }

  .hero h1 { font-size: 36px; }
  .nosotros-container { flex-direction: column; text-align: center; }
  .promo-container { flex-direction: column; align-items: center; }
  footer { padding: 28px 20px 20px; }
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .tarjetas, .redes-iconos { justify-content: center; }
}