/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #1a1a1a;
  color: #ffdd59;
  line-height: 1.6;
  transition: background-color 0.5s, color 0.5s;
}

a {
  color: #ff5e00;
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: #ff9500;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= NAVBAR ================= */

/* ================= NAVBAR AJUSTE ================= */
/* TOPBAR */

/* ================= NAVBAR TRANSPARENTE ================= */
.topbar {
  position: fixed;   /* flota sobre la hero */
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.3); /* transparente con un poco de sombra */
  z-index: 1000;
  transition: transform 0.3s ease-in-out, background 0.3s ease;
  box-shadow: none; /* quita sombra si no quieres */
}

/* opcional: cambiar fondo al hacer scroll */
.topbar.scrolled {
  background: #1a1a1a; /* o un color más opaco cuando se baja */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}


/* cuando se oculta con scroll */
.topbar.hidden {
  transform: translateY(-100%);
}

/* el contenido interno (nav) */
.topbar .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

/* aseguramos que el body deje espacio debajo del menú fijo */
body {
  padding-top: 5px;
}


.brand img {
  height: 50px; /* tamaño del logo más pequeño */
  width: auto;
}

.brand h1 {
  font-size: 20px; /* ajustar tamaño del texto si es necesario */
  margin-left: 10px;
  color: #ff9500;
}

.menu a {
  margin-left: 15px;
  font-weight: bold;
  color: #ff9500;
}

.menu a.cta {
  background-color: #ff5e00;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
}



/* ================= HERO ================= */

/* ================================ */
/* HERO HALLOWEEN                   */
/* ================================ */

/* ================= HERO FULLSCREEN ================= */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;       /* si se pone 100 ocupa toda la pantalla */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-image: url('../images/halloween-bg.png');
  background-size: 100%;
  background-position: 60% top;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding-top: 200px;  /* solo un poco para que no pegue el texto al borde */
  overflow: hidden;
  filter: brightness(0.7);
}


/* Animación de texto tipo Halloween */
.hero h2 {
  font-family: 'Creepster', cursive; /* fuente divertida estilo Halloween */
  font-size: 2.5rem;
  color: #ff7518; /* naranja Halloween */
  text-shadow: 2px 2px 5px #000; /* sombra para resaltar */
  margin-bottom: 20px;
  animation: floatText 3s ease-in-out infinite alternate;
}

.hero p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: #fff7e6;
  text-shadow: 1px 1px 3px #000;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
  animation: floatText 3s ease-in-out infinite alternate-reverse;
}

/* Botones */
.hero-actions .btn-primary {
  background-color: #ff7518;
  color: #fff;
  border: none;
  padding: 12px 25px;
  margin-right: 10px;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.hero-actions .btn-primary:hover {
  background-color: #ffa500;
  transform: scale(1.05);
}

.hero-actions .btn-outline {
  background-color: transparent;
  color: #ff7518;
  border: 2px solid #ff7518;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.hero-actions .btn-outline:hover {
  background-color: #ff7518;
  color: #fff;
  transform: scale(1.05);
}

/* ================= Keyframes ================= */
@keyframes floatText {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.btn-primary {
  background-color: #ff5e00;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  margin-right: 10px;
}

.btn-outline {
  border: 2px solid #ff9500;
  color: #ff9500;
  padding: 10px 20px;
  border-radius: 4px;
}

/* ================= CARDS ================= */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  justify-content: center; /* centra las cards */
}

.card {
  flex: 1 1 280px; /* cada card ocupa mínimo 280px */
  background: rgba(255, 255, 255, 0.05); /* estilo Halloween: cambiar color si quieres */
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card img {
  width: 100%;
  height: 220px;        /* altura uniforme para todas */
  object-fit: cover;    /* recorta / ajusta para mantener proporción */
  border-radius: 6px;
  display: block;
  margin-bottom: 12px;
}


.card h4 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.card .badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  background: rgba(255, 69, 0, 0.8); /* estilo Halloween */
  color: #fff;
}

.card:hover {
  transform: translateY(-4px);
}


.badge {
  background-color: #ff5e00;
  padding: 5px 10px;
  border-radius: 4px;
  margin-top: 10px;
  display: inline-block;
  color: #fff;
}

/* ================= ABOUT / WHY ================= */

/* ABOUT US GRID */
.about-grid {
  display: flex;
  flex-wrap: wrap;      /* Para que en pantallas pequeñas se apilen */
  gap: 20px;            /* Espacio entre texto e imagen */
  align-items: center;  /* Centra verticalmente texto e imagen */
}

.about-grid > div {
  flex: 1 1 300px;      /* Cada div ocupa al menos 300px, y se expande */
}

.about-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.about-section, .why {
  margin: 50px 0;
}

.why {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.why-item {
  flex: 1 1 250px; /* Cada item mínimo 250px */
  background: rgba(255, 255, 255, 0.05); /* estilo Halloween puedes cambiar */
  padding: 16px;
  border-radius: 8px;
}


/* ================= GALLERY ================= */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.video-wrapper {
  flex: 1 1 300px;      /* ancho mínimo y flexible */
  height: 500px;        /* altura uniforme */
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* mantiene proporción y recorta exceso */
}



/* ================= CONTACT ================= */
.contact-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  flex: 1;
  min-width: 280px;
}

.contact-left .muted, .contact-right .muted {
  color: #ffdd59;
}

/* ================= FOOTER ================= */
footer {
  background-color: #000000cc;
  color: #ffdd59;
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  background-color: #1c1c1c; /* fondo oscuro para Halloween */
  color: #f8a91b; /* naranja */
  font-family: 'Creepster', cursive; /* si quieres tipografía Halloween, se puede usar Google Fonts */
}

.footer-logo {
  width: 120px; /* reduce tamaño del logo */
  height: auto;
}

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left .muted, .footer-right .muted {
  font-size: 13px;
  color: #f8a91b; /* naranja Halloween */
}


/* ================= HALLOWEEN DECOR ================= */
.halloween-decor img {
  position: absolute;
  width: 50px;
  animation: float 6s ease-in-out infinite;
}

.halloween-decor .bat {
  top: 10%;
  left: 5%;
}

.halloween-decor .pumpkin {
  bottom: 5%;
  right: 5%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
}

/* ================= WHATSAPP BUTTON ================= */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 999;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-box {
    flex-direction: column;
  }
}


/* ================= ICONOS DE REDES ================= */
.socials img {
  width: 30px;   /* reducir tamaño de los íconos */
  height: 30px;
  margin-right: 8px;
  transition: transform 0.3s;
}

.socials img:hover {
  transform: scale(1.1); /* efecto sutil al pasar el mouse */
}




/* ================================ */
/* HALLOWEEN DINÁMICO AVANZADO      */
/* ================================ */

.halloween-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.halloween-decor img {
  position: absolute;
  width: 100px;
  opacity: 0.9;
  user-select: none;
}

/* ----------------- CALABAZAS ----------------- */
.pumpkin {
  top: -80px;
  left: 0;
  animation: fallBounce linear infinite;
}

/* ----------------- MURCIÉLAGOS ----------------- */
.bat {
  width: 200px;
  top: 0;
  left: 0;
  animation: batFly linear infinite;
}

/* ----------------- TELARAÑAS ----------------- */
.spiderweb {
  width: 80px;
  top: 0;
  left: 0;
  animation: swing ease-in-out infinite;
}

/* ================= KEYFRAMES ================= */
@keyframes swing {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}



/* ================= MENU MÓVIL ================= */
#hambtn {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #ff9500;
  background: none;
  border: none;
}

#hambtn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ff9500;
  margin: 5px 0;
  transition: all 0.3s;
}

/* Panel móvil oculto inicialmente */
#mobilePanel {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  background-color: #1a1a1a;
  box-shadow: -2px 0 6px rgba(0,0,0,0.5);
  z-index: 9999;
  padding: 80px 20px 20px 20px;
  flex-direction: column;
  gap: 20px;
  transition: right 0.3s ease-in-out;
}

#mobilePanel.active {
  display: flex;
  right: 0;
}

#mobilePanel a {
  color: #ff9500;
  font-size: 1.2rem;
  font-weight: bold;
}

#mobilePanel a.cta {
  background-color: #ff5e00;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .topbar .menu {
    display: none; /* ocultar menú de escritorio */
  }

  #hambtn {
    display: block; /* mostrar hamburguesa */
  }

}


/* ================= MOBILE MENU ================= */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;            /* escondido fuera de pantalla */
  width: 250px;            /* ancho del panel */
  height: 100%;
  background-color: #1a1a1a; /* fondo oscuro Halloween */
  color: #ffdd59;
  z-index: 999;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 80px 20px;      /* espacio superior para topbar */
  box-shadow: -2px 0 8px rgba(0,0,0,0.7);
  font-family: 'Creepster', cursive; /* estilo Halloween */
}


.mobile-menu-panel a {
  display: block;      /* asegura que cada enlace sea un bloque */
  color: #ff7518;          /* naranja Halloween */
  text-decoration: none;
  margin: 20px 0;          /* espacio vertical */
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px #000; /* sombra para Halloween */
}

.mobile-menu-panel a.cta {
  background-color: #ff5e00;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-menu-panel a.cta:hover {
  background-color: #ffa500;
  transform: scale(1.05);
}

.mobile-menu-panel.active {
  right: 0;                /* aparece en pantalla */
}

/* HAMBURGUESA */
.hamburger {
  display: none; /* oculto en desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger div {
  height: 3px;
  width: 100%;
  background: #ff7518;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ANIMACIÓN “X” */
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu { display: none; }       /* ocultamos menú desktop */
  .hamburger { display: flex; }  /* mostramos hamburguesa */
}



/* ================= HERO RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.1rem; /* más pequeño para móviles */
  }

  .hero p {
    font-size: 0.8rem;  /* reduce el párrafo */
    max-width: 90%;   /* asegura que no se salga de la pantalla */
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    padding: 8px 12px;  /* botones más pequeños */
    font-size: 0.8rem;
  }
}
