body {
  font-family: 'poppins', 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #121212;
  color: #f5f5f5;
  overflow-x: hidden;
}

h1, h2, h3 {
    margin: 0;
    color: #fff
}

/** === Header con logo y boton admin === **/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1f1f1f;
  padding: 10px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}


header .logo {

  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
}


header .logo h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;

}

.admin-btn {
  background: #404041;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: background 0.3s ease;
}

.admin-btn:hover {
  background: #222222;
}

/** === Banner principal === **/
.banner {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
              url("img/banner2.png") center/cover no-repeat;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.banner-texto h1 {
  font-size: 2.5rem;
  color: #fff;
}

/** === Navegacion === **/
nav {
  background-color: #0d0d0d;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  transition: color 0.3s;
}

nav .admin-btn {
text-align: right;
background-color: #000;
}

nav a:hover {
  color: #850404;
}

/** === Boton === **/
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #404041;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
/** === Hero === **/
#hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero-content h2 {
  font-size: 2.2rem;
  text-transform:uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: #9b0b0b;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpTitle 1.5s ease-out forwards;
  position: relative;
  background: linear-gradient(90deg, #9b0b0b 0%, #ffffff 50%, #9b0b0b 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  max-width: 600px;
  margin: 1rem auto;
  color: #dcdcdc;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out 0.5s forwards;
}

/** === Animacion de entrada secuencial === **/

.hero-content .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out 1s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpTitle {
  0% { opacity: 0; transform: translateY(30px); background-position: 200%; }
  50% { opacity: 1; transform: translateY(0); background-position: 100%;}
  100% { opacity: 1; transform: translateY(0); background-position: 0%;}
}

/** === Ajuste especifico para pantallas moviles=== **/
@media (max-width: 768px) {
  .hero-content h2 {
    filter: brightness(1.4) contrast(1.2);
  }
}
#hero:target .hero-content h2 {
  animation: frameUpTitle 1.5s ease-out forwards;
}

/** === Animacion con efecto brillo metalico === **/
@keyframes fadeUpTitle {
  0% {
    opacity: 0;
    transform: translateY(30px);
    background-position: 200%;
  }
  50% {
    opacity: 1;
    transform: translateY(0);
    background-position: 100%;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background-position: 0%;
  }
}

/** === Repeticion al volver a la seccion hero === **/
#hero:target .hero-content h2 {
  animation: fadeUpTitle 1.5s ease-out forwards;
}


.btn:hover {
  background: #9b0b0b;
}

/** === Servicios === **/
#servicios {
  text-align: center;
  padding: 3rem 1rem;
  background: #1a1a1a;
}

.servicios-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 2rem;
}

.servicio {
  background: #222;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  padding: 1.5rem;
  width: 250px;
  transition: 0.3s;
}

.servicio img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}


.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.tipo-label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #dcdcdc;
}

.tipo-select {
  width: 100%;
  padding: 8px;
  margin: 8px 0 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1c1c1c;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s;
}

.tipo-select:hover, .tipo-select:focus {
  border-color: #9b0b0b;
  box-shadow: 0 0 5px #9b0b0b;
}

/** === Otros SErvicios == **/
#otros-servicios {
  text-align: center;
  padding: 3rem 1rem;
  background: #0f0f0f; /* un poco más oscuro que servicios normales */
}

#otros-servicios h2 {
  font-size: 2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.otros-servicios-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.otros-servicios-container .servicio {
  width: 220px; /* un poco más pequeño que los servicios principales */
}



/** === Galeria === **/

#galeria {
  text-align: center;
  padding: 3rem 1rem;
  background: #111;
  color: #fff;
  position: relative;
}

.galeria-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

/*contenedor para imagenes desplazables*/
.galeria-scroll {
  display: flex;
  gap: 1rem;
  scroll-behavior:smooth;
  overflow-x: auto;
  scrollbar-width: none;
}
.galeria-scroll::-webkit-scrollbar {
  display: none; /* Oculta barra en Chrome */
}

.galeria-scroll img {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}


.galeria-scroll img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* === Flechas === */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  opacity: 0;
  z-index: 2;
}
/* Mostrar flechas al pasar el mouse */
.galeria-container:hover .arrow {
  opacity: 1;
}

.arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* --- Scroll personalizado --- */
.galeria-slider::-webkit-scrollbar {
  height: 8px;
}

.galeria-slider::-webkit-scrollbar-thumb {
  background: #9b0b0b;
  border-radius: 4px;
}

.galeria-slider::-webkit-scrollbar-track {
  background: #1e1e1e;
}

/** === Contacto === **/
#contacto {
  background: #0d0d0d;
  text-align: center;
  padding: 3rem 1rem;
}

.contacto-container p {
  margin: 8px 0;
  color: #ccc;
}

/** === Footer === **/
footer {
  background: #000;
  color: #888;
  text-align: center;
  padding: 1rem;
  font-size: 0.9em;
  border-top: 1px solid #222;
}


/** === Responsive === **/
/* === Galería: ajuste responsive === */
@media (max-width: 768px) {
  .galeria-scroll img {
    width: 220px;
    height: 140px;
  }

  .galeria-container {
    padding: 0 10px;
  }

  .arrow.left {
    left: 0;
  }

  .arrow.right {
    right: 0;
  }
}

@media (max-width: 375px) {
  .galeria-scroll img {
    width: 180px;
    height: 120px;
  }
}