﻿/* ==================== TIPOGRAFÍA Y HTML BASE ==================== */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 576px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }
}

/* ==================== CUERPO ==================== */
body {
  background: linear-gradient(to bottom, #f8f9fa, #e0f7fa);
  line-height: 1.6;
  overflow-x: hidden;
  
  /* Scrollbar oculto pero scroll habilitado */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

body::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* Chrome, Safari y Opera */
}

/* ==================== NAVEGACIÓN ==================== */
.navbar-brand img {
  height: 27px;
  width: auto;
}

.navbar,
.navbar .container,
.navbar-collapse {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

button.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' " +
    "xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ff6600' stroke-width='2' " +
    "stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* ==================== CONTAINERS ==================== */
.container,
.container-fluid {
  max-width: 100vw;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ==================== SECCIONES ==================== */
section {
  scroll-margin-top: 130px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

:target::before {
  content: "";
  display: block;
  height: 100px;
  margin-top: -100px;
  visibility: hidden;
}

/* ==================== IMÁGENES ==================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* ==================== FLIP CARDS ==================== */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 320px;
  min-height: 300px;
  perspective: 1000px;
  cursor: pointer;
  max-width: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 10px;
}

.flip-card:hover .flip-card-inner,
.flip-card-inner.flipped,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
  background-color: #fff;
  color: black;
}

.flip-card-front img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.flip-card-back {
  background-color: #f8f9fa;
  color: #333;
  transform: rotateY(180deg);
  padding: 1rem;
  text-align: center;
}

/* ==================== BOTONES ==================== */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
  outline: none;
}

.btn-facebook {
  background-color: #3b5998;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-facebook:hover {
  background-color: #2d4373;
  transform: scale(1.05);
  color: #fff;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
  color: #fff;
}

/* ==================== LINKS / ENLACES ==================== */
.phone-link {
  display: block;
  background-color: #ff5733;
  color: #fff;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: center;
}

.phone-link:hover {
  transform: scale(1.03);
  color: #fff;
}

.phone-link i {
  margin-right: 10px;
}

.phone-link.facebook {
  background-color: #3b5998;
}

.phone-link.facebook:hover {
  background-color: #2d4373;
}

.phone-link.whatsapp {
  background-color: #25D366;
}

.phone-link.whatsapp:hover {
  background-color: #1ebe5d;
}

/* ==================== ANIMACIONES ==================== */
.card .fa-map-marker-alt {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==================== MAPA ==================== */
.map-container {
  height: 100%;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==================== GALERÍA ==================== */
.galeria-section {
  background-color: transparent;
  color: #000;
}

.gallery-card {
  background-color: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-bottom: 2px solid #ff5733;
}

.gallery-caption {
  font-weight: 600;
  font-size: 1.1rem;
  color: #000;
}

/* ==================== INGREDIENTES ==================== */
.ingredientes-list li {
  font-weight: 500;
  padding: 6px 0;
  font-size: 1.05rem;
  color: #333;
  border-bottom: 1px dashed #ddd;
}

.ingredientes-list li:last-child {
  border-bottom: none;
}

/* ==================== FONDO DE CÓCTELES (ANIMACIÓN) ==================== */
.cocktail-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cocktail-bg img {
  position: absolute;
  opacity: 0.2;
  width: 100px;
}

/* ==================== FOOTER ==================== */
footer.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: #f8f9fa;
  text-align: center;
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE EXTRA ==================== */
@media (max-width: 576px) {
  h1.display-4 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .flip-card {
    min-height: 280px;
  }
}

.card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}