/* ==========================================================
   PALETA DE COLORES:
   - Amarillo vibrante: #FFD700
   - Amarillo claro (fondo): #FFFDE7
   - Negro (detalles y textos): #121212
   ========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #FFFDE7; /* Fondo amarillo claro */
  color: #121212; /* Texto en negro */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra todo el contenido horizontalmente */
}

/* ----------------------------------
   ENCABEZADO (HERO)
---------------------------------- */
.hero-header {
  width: 100%;
  height: 60vh;
  min-height: 350px;
  background-image: url('imagenes/fondo-header.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-header .overlay {
  background-color: rgba(18, 18, 18, 0.85); /* Capa negra traslúcida */
  padding: 2rem 2.5rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #FFD700; /* Borde amarillo */
  width: 90%;
  max-width: 600px;
}

.hero-header h1 {
  color: #FFD700; /* Título en amarillo */
  font-size: clamp(2rem, 4vw, 2.8rem); /* Tamaño adaptable */
  margin-bottom: 0.5rem;
}

.hero-header p {
  color: #FFFDE7; /* Subtítulo en amarillo claro */
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* ----------------------------------
   SECCIÓN CENTRAL (CONTENEDOR GENERAL)
---------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra los hijos horizontalmente */
  gap: 3.5rem; /* Espacio entre la galería y el formulario */
}

/* ----------------------------------
   CARRUSEL / GALERÍA
---------------------------------- */
.carousel-section {
  width: 100%;
  text-align: center;
}

.carousel-section h2 {
  color: #121212;
  margin-bottom: 2rem;
  font-size: 2rem;
  border-bottom: 3px solid #FFD700;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.carousel-container {
  display: flex;
  gap: 2rem;
  justify-content: center; /* Centra las tarjetas en pantallas grandes */
  flex-wrap: wrap; /* Baja las tarjetas en pantallas pequeñas */
  width: 100%;
}

.carousel-slide {
  background-color: #ffefc5; /* Tarjetas en fondo negro */
  border: 2px solid #FFD700; /* Borde en amarillo */
  border-radius: 10px;
  overflow: hidden;
  flex: 1 1 280px;
  max-width: 340px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  text-align: left;
}

.carousel-slide:hover {
  transform: translateY(-6px);
}

.carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  padding: 1.5rem;
  color: #FFFDE7;
}

.slide-caption h3 {
  color: #000000;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

/* ----------------------------------
   ESTILOS PARA EL FORMULARIO
---------------------------------- */
.form-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
  border: 2px solid #FFD700;
  text-align: left;
}

.form-container h2 {
  text-align: center;
  color: #121212;
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #121212;
}

select, input, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #FFD700;
  color: #121212;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #e6c200;
}

/* ----------------------------------
   FOOTER (CONTACTO)
---------------------------------- */
.site-footer {
  width: 100%;
  background-color: #121212; /* Pie de página negro */
  color: #FFFDE7;
  padding: 2.5rem 1rem;
  margin-top: auto; /* Empuja el footer al fondo si sobra espacio */
  border-top: 4px solid #FFD700;
  text-align: center;
}

.footer-content h3 {
  color: #FFD700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-content p {
  margin: 0.4rem 0;
  font-size: 1rem;
}

/* ----------------------------------
   MEDIA QUERIES (RESPONSIVE EXTRA)
---------------------------------- */
@media (max-width: 768px) {
  .hero-header {
    height: 50vh;
  }
  
  .carousel-container {
    gap: 1.5rem;
  }

  .form-container {
    padding: 20px;
  }
}