@charset "UTF-8";
/* CSS Document */

.formulario-moderno {
  font-family: "Segoe UI", sans-serif;
  color: #333;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background: #fff;
}

.formulario-moderno .campo {
  flex: 1 1 calc(50% - 15px);
  background: #f5f5f5;
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.formulario-moderno .campo:hover {
  background: #ebebeb;
}

.formulario-moderno label {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 6px;
  font-weight: 500;
}

.formulario-moderno textarea,
.formulario-moderno input,
.formulario-moderno select {
  border: none;
  outline: none;
  font-size: 1em;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
  color: #333;
}

.formulario-moderno textarea:focus,
.formulario-moderno input:focus,
.formulario-moderno select:focus {
  box-shadow: 0 0 0 2px #1e3a5f33;
}

.formulario-moderno select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #888 50%), 
                    linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Botones */
.formulario-moderno .acciones-form {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  gap: 10px;
  margin-top: 10px;
}

.formulario-moderno button {
  background: #ff7f41;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.formulario-moderno button:hover {
  background: #963b20;
  transform: scale(1.03);
}

.formulario-moderno button.secundario {
  background: #ccc;
  color: #333;
}

.formulario-moderno button.secundario:hover {
  background: #bbb;
}

.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 20px;
}

.foto-item {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: background 0.2s;
}

.foto-item:hover {
  background: #ebebeb;
}

.foto-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.foto-item img:hover {
  transform: scale(1.03);
}

.check-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.9em;
  color: #555;
  user-select: none;
}

.check-foto input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1e3a5f; /* color del check */
}

/* Responsive */
@media (max-width: 700px) {
  .formulario-moderno .campo {
    flex: 1 1 100%;
  }
    .galeria-fotos {
    grid-template-columns: repeat(2, 1fr);
  }
}


