/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==== BASE ==== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0074D9;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000;
}

/* ==== SLIDER ==== */
.slider-container {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}

.slider {
  width: 100vw;
  height: 45vh;
  max-height: 300px;
  overflow: hidden;
  border-bottom: 6px solid #0074D9;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  margin: 0;
  padding: 0;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==== FORMULARIO ==== */
.form-container {
  margin: 0;
  padding-top: 0;
  background-color: #fff;
  padding: 30px;
  border: 3px solid #91ff00;
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 255, 0.1);
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 20px;
  color: #333;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.input-group {
  flex: 1 1 48%;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.input-group input,
.input-group select {
  width: 100%;
  height: 42px;
  padding: 14px 10px 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease-in-out;
  appearance: none;
}

.input-group input[type="file"] {
  background-color: #fafafa;
  cursor: pointer;
  padding: 0.5rem;
}

.input-group input[type="file"]:hover {
  border-color: #003eff;
  background-color: #f0f8ff;
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 14px;
  background-color: #fff;
  padding: 0 4px;
  color: #666;
  pointer-events: none;
  transition: all 0.2s ease-out;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group select:focus + label,
.input-group select:valid + label {
  top: -8px;
  font-size: 12px;
  color: #1a73e8;
}

.input-group small {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  line-height: 1.3;
}

/* Select con flechita */
.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%22%23333%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20width%3D%2210%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%202l5%205%205-5z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
  color: #000;
}

/* Botón */
button[type="submit"] {
  background-color: #003eff;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: #002bb8;
}

/* Mensaje de éxito */
.mensaje-exito {
  background-color: #e0fce0;
  border: 1px solid #42c942;
  color: #277d27;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .slider {
    height: 25vh;
    max-height: 200px;
  }

  .form-container {
    padding: 20px;
    margin: 10px;
  }

  .input-row {
    flex-direction: column;
    gap: 12px;
  }

  .input-group {
    flex: 1 1 100%;
  }

  .input-group input,
  .input-group select {
    font-size: 16px;
    height: 48px;
    padding: 16px 12px 6px;
  }

  .input-group label {
    font-size: 14px;
    top: 12px;
    left: 14px;
  }

  .input-group input:focus + label,
  .input-group input:not(:placeholder-shown) + label,
  .input-group select:focus + label,
  .input-group select:valid + label {
    top: -10px;
    font-size: 12px;
  }

  button[type="submit"] {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    margin-top: 20px;
  }

  .mensaje-exito {
    font-size: 14px;
    padding: 12px;
  }
}