html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 90px 0 0 0;
  background-color: #ffffff;
  color: #1a1a1a;
  transition: all 0.4s ease;
  font-family: 'Inter', sans-serif;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 1s ease-out;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.4s ease;
  color: #1a1a1a;
}

.nav {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #d62828;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background: #ffffff;
    width: 100%;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 1rem;
  }

  .nav.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

.hero {
  height: 90vh;
  background: url('hero.png') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  background-color: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 10px;
  color: white;
}

.hero h1 {
  font-size: 3rem;
}

.sabores {
    color: #e63946;
    }

.cta-button,
.btn-outline,
.whatsapp-btn,
.map-button a {
  background-color: #d62828;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.4s ease;
  cursor: pointer;
}

.cta-button:hover,
.btn-outline:hover,
.whatsapp-btn:hover,
.map-button a:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  border: 2px solid #d62828;
  color: #d62828;
}

.btn-outline:hover {
  background-color: #d62828;
  color: white;
}

.menu-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.menu-card {
  flex: 1 1 250px;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: all 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.menu-card ul {
  padding-left: 1.2rem;
}

.menu-button-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.formulario {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

.formulario input,
.formulario textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
}

.formulario textarea {
  resize: vertical;
  min-height: 100px;
}

.whatsapp-btn {
  margin-top: 1rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.galeria-grid img {
  width: 100%;
  height: auto; /* mantiene proporción natural */
  object-fit: cover; /* asegura que se vea centrada y recortada si es necesario */
  border-radius: 10px;
  transition: all 0.4s ease;
  aspect-ratio: 1 / 1; /* fuerza a que cada celda sea cuadrada si querés uniformidad */
}

.galeria-grid img:hover {
  transform: scale(1.03);
}


.testimonios blockquote {
  font-style: italic;
  margin: 1.5rem auto;
  max-width: 800px;
  border-left: 4px solid #d62828;
  padding-left: 1rem;
  color: #1a1a1a;
}

.map-container {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.map-button {
  text-align: center;
  margin-top: 1rem;
}

.map-button a {
  background-color: #d62828;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.redes-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.redes-icons img {
  width: 40px;
  height: 40px;
  transition: all 0.4s ease;
}

.redes-icons img:hover {
  transform: scale(1.1);
}

.eventos ul {
  list-style: none;
  padding: 0;
}

.eventos li {
  margin-bottom: 0.5rem;
}

.confianza .badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.confianza .badges img {
  height: 60px;
  transition: transform 0.3s ease;
}

.confianza .badges img:hover {
  transform: scale(1.1);
}

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* Inputs y accesibilidad */
input, textarea, select {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid #ccc;
  transition: all 0.4s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(128, 128, 128, 0.7);
}

a {
  color: #d62828;
  transition: all 0.4s ease;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: block;
  color: #1a1a1a;
}

button, input, textarea, select {
  outline: none;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #d62828;
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: #d62828;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a00;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablas */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  background-color: #ffffff;
  color: #1a1a1a;
}

th, td {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  text-align: left;
}

th {
  background-color: #d62828;
  color: white;
}

/* Impresión */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  header, footer, nav, .hero, .whatsapp-btn, #themeToggle {
    display: none !important;
  }

  section {
    padding: 1rem !important;
  }
}

/* Corrección de formularios válidos e inválidos */
.formulario input:invalid,
.formulario textarea:invalid {
  border-color: #e63946;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.formulario input:valid,
.formulario textarea:valid {
  border-color: #2a9d8f;
}

/* Mensajes de error */
.error-message {
  color: #e63946;
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Responsive videos */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Citas largas */
blockquote {
  border-left: 5px solid #d62828;
  padding-left: 1rem;
  font-style: italic;
  opacity: 0.9;
  color: #1a1a1a;
}

/* Tooltip básico */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.8rem;
  z-index: 10;
}

/* Tabla */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  background-color: #ffffff;
  color: #1a1a1a;
}

th, td {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  text-align: left;
}

th {
  background-color: #d62828;
  color: white;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: #d62828;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a00;
}

/* Modo impresión */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  header, footer, nav, .hero, .whatsapp-btn, #themeToggle {
    display: none !important;
  }

  section {
    padding: 1rem !important;
  }
}
