/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: var(--light);
}

/* NAVBAR */
nav {
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

nav h1 {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(255,77,45,0.6);
}

nav ul li {
  position: relative;
}

/* línea animada */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}



/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* contenedor */
.slider {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* imágenes */
.slide {
  will-change: opacity, transform;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* imagen activa */
.slide.active {
  opacity: 1;
  animation: zoom 6s ease-in-out;
}

@keyframes zoom {
  from {transform: scale(1); }
  to {transform: scale(1.1); }
}

/* capa oscura encima */
.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

/* contenido encima */
.hero-content {
  position: absolute; /* 👈 importante */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 👈 centra exacto */

  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero h2 {
  font-size: 70px;
  margin-bottom: 10px;
  color: var(--secondary);
  text-shadow: 0 0 15px rgb(225, 175, 48);
}

.hero p {
  font-size: 22px;
  opacity: 0.9;
}

.items {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.item {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.item img {
  width: 200px;
  border-radius: 10px;
}

.item:hover {
  transform: translateY(-10px);
}

/* GALERIA */
.gallery {
  padding: 100px 50px;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 40px;
}

.images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.images img {
  width: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.images img:hover {
  transform: scale(1.05);
}

/* RESERVAS */
.reservas {
  padding: 100px;
  text-align: center;
  background: linear-gradient(45deg, #ff4d2d, #ff2a00);
}

.reservas button {
  margin-top: 20px;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: black;
}

.item {
  display: flex;
  justify-content: space-between;
  background: #1a1a1a;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
}

.item h4 {
  margin-bottom: 5px;
}

.item p {
  font-size: 14px;
  color: #aaa;
}

.item span {
  color: #ff4d2d;
  font-weight: bold;
}
.logo {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #ff4d2d;
  text-transform: uppercase;
}

:root {
  --primary: #FF4D2D;
  --secondary: #FFC300;
  --dark: #0F0F0F;
  --red: #8B0000;
  --light: #FFFFFF;
}

.showcase {
  padding: 100px 50px;
}

.showcase h2 {
  text-align: center;
  margin-bottom: 80px;
  font-size: 40px;
  color: var(--secondary);
}

.showcase-item::after {
  display: none;
  content: "";
  position: absolute;
  width: 60%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  bottom: -50px;
}

/* CONTENEDOR */
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  margin-bottom: 120px;
}

.text {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 10px;
}

.text.left {
  transform: translateX(-30px);
}

.text.right {
  transform: translateX(30px);
}

.image img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  transform: rotate(-2deg);
  transition: 0.3s;
}

.showcase-item.reverse .image img {
  transform: rotate(2deg);
}

/* INVERTIR ORDEN */
.showcase-item.reverse {
  flex-direction: row-reverse;
}

/* TEXTO */
.text {
  width: 250px;
}

.text h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.text p {
  color: #ccc;
  font-size: 14px;
}

/* IMAGEN CENTRAL */
.image img {
  width: 350px;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  transition: 0.3s;
}

.image img:hover {
  transform: scale(1.05);
}

.cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  width: 260px;
  background: #1a1a1a;
  border-radius: 15px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card h3 {
  padding: 15px;
  font-size: 18px;
}

.card::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255,77,45,0.2);
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.3s;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
}

button {
  border-radius: 50px;
  letter-spacing: 1px;
  font-weight: bold;
}

section {
  opacity: 1 !important;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  scroll-margin-top: 100px;
  position: relative;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

body {
  cursor: default;
}

a, button {
  cursor: pointer;
}

body {
  background: 
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)),
    url("https://e1.pxfuel.com/desktop-wallpaper/542/918/desktop-wallpaper-grunge-aesthetic-black-grunge-aesthetic-horizontal.jpg");
    
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

img {
  max-width: 100%;
  height: auto;
}

.image-group {
  position: relative;
  width: 350px;
  height: 250px;
}

/* imagen principal */
.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

/* imagen arriba */
.img-top {
  position: absolute;
  width: 120px;
  height: 80px;
  object-fit: cover;
  top: -10px;
  right: -10px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transform: rotate(5deg);
}

/* imagen abajo */
.img-bottom {
  position: absolute;
  width: 120px;
  height: 80px;
  object-fit: cover;
  bottom: -10px;
  left: -10px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transform: rotate(-5deg);
}

.image-group img {
  transition: 0.4s;
}

.image-group:hover .img-top {
  transform: translate(10px, -10px) scale(1.05);
}

.image-group:hover .img-bottom {
  transform: translate(-10px, 10px) scale(1.05);
}

.contacto {
  padding: 100px 50px;
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-container input,
.contact-container textarea {
  padding: 10px;
  width: 250px;
  border: none;
  border-radius: 5px;
}

/* OPTIMIZACIÓN DE RENDIMIENTO */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* CONTENEDOR */
.social-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

/* BOTONES */
.social-floating a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* WHATSAPP */
.social-floating .whatsapp {
  background: #25D366;
}

/* FACEBOOK */
.social-floating .facebook {
  background: #1877F2;
}

/* HOVER EFECTO */
.social-floating a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

body {
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

/*movile*/
@media (max-width: 768px) {

  nav {
    padding: 15px 20px;
  }

  nav ul {
    gap: 15px;
  }

  nav h1 {
    font-size: 18px;
  }

  nav a {
    font-size: 14px;
  }

}

@media (max-width: 768px) {

  .hero h2 {
    font-size: 35px;
  }

  .hero p {
    font-size: 16px;
  }

}
@media (max-width: 768px) {

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

}

@media (max-width: 768px) {

  .images {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .showcase-item {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 25px;
  }

  .text {
    width: 100%;
    max-width: 300px;
    transform: none;
    text-align: center;
  }

  .image-group {
    margin: auto;
    width: 280px;
    height: 200px;
  }

}

@media (max-width: 768px) {

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-container input,
  .contact-container textarea {
    width: 100%;
    max-width: 300px;
  }

}

@media (max-width: 768px) {

  .social-float a {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

}

@media (max-width: 768px) {

  .images {
    grid-template-columns: repeat(2, 1fr);
  }

}