/* Variables CSS para consistencia */
:root {
  --color-primary: #8d6e63;
  --color-primary-dark: #5d4037;
  --color-text: #3a2e2e;
  --color-background: #f5f0e6;
  --color-accent: #e9e1d3;
  --font-primary: "Open Sans", sans-serif;
  --font-heading: "Playfair Display", serif;
  --shadow-text: 2px 2px 4px rgba(0, 0, 0, 0.5);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Header mejorado con efecto parallax sutil */
header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("cafeteria.webp");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  text-align: center;
  padding: 112px 20px;
  color: white;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header h1 {
  font-size: 3.5rem;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  text-shadow: var(--shadow-text);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

header p {
  font-size: 1.4rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Navegación mejorada */
nav {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

nav a:hover,
nav a:focus {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* Secciones mejoradas */
section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-primary-dark);
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Párrafos mejorados */
p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Menú mejorado */
.menu-container {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border-left: 4px solid var(--color-primary);
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.menu-item span:first-child {
  font-weight: 600;
  color: var(--color-text);
}

.menu-item span:last-child {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
}

/* Horarios mejorados */
.schedule {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 400px;
  margin: 2rem auto;
}

.schedule p {
  margin: 0.8rem 0;
  text-align: left;
}

/* Enlaces mejorados */
a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
  /* text-decoration: underline; */
}

/* Footer mejorado */
footer {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  color: white;
  text-align: center;
  padding: 2rem 20px;
  margin-top: 3rem;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive mejorado */
@media (max-width: 768px) {
  header {
    padding: 80px 20px;
    min-height: 50vh;
    background-attachment: scroll;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1.2rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
  }

  section {
    padding: 40px 15px;
  }

  h2 {
    font-size: 2rem;
  }

  .menu-item {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  .menu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  header {
    background-attachment: scroll;
  }
}

/* Estados de focus mejorados */
button:focus,
a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

/* Botones generales */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Botón principal (WhatsApp u otro CTA) */
.btn-primary {
  background: #35bc6a; /* Verde WhatsApp */
  color: #fff; /* Texto siempre blanco */
  border: 1px solid #279e53;
}
.btn-primary:hover {
  background: #279e53; /* Más oscuro en hover */
  color: #fff;
  transform: translateY(-2px);
}

/* Botón secundario (Llamar) */
.btn-outline {
  background: transparent;
  color: #fff; /* Texto blanco */
  border: 1px solid #fff;
}
.btn-outline:hover {
  background: #fff; /* Fondo blanco en hover */
  color: #3a2e2e; /* Texto oscuro para contraste */
  transform: translateY(-2px);
}

.float-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
}
.float-wa a {
  display: inline-block;
  background: #25d366;
  color: #0b0b0b;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #1a4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.float-wa a:hover {
  background: #1ebe5b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* .btn {
  display: inline-block;
  background: #5d4037;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid #452f28;
  transition: transform 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
} */
