.image-fondo{
    height:250px;
    background-image: linear-gradient(#00000067,#07070765), url('../new-assets/img/validar-cert-1.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 100px;
}
.image-fondo p{
    font-size: 50px;
    font-weight: bold;
    color: white;
    border-left: 7px solid #852221;
    padding-left: 30px;
}
.image-fondo p span{
    color:#852221;
}
.content-fondo{
    padding-top: 130px;
    width: 100%;
}

/* Wrapper general */
.contact-form-wrapper {
  padding: 60px 20px;
  background: #f6f7ef;
  display: flex;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

/* Card */
.contact-card {
  width: 90%;
  background: #fff;
  display: flex;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Imagen */
.contact-image {
  width: 45%;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Formulario */
.contact-form {
  width: 55%;
  padding: 40px;
}

.contact-form h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

/* Filas */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #333;
}

/* Inputs */
.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #c94b5f;
  font-size: 14px;
  outline: none;
}

.form-group textarea {
  resize: none;
  background: #f2f2f2;
}

/* Footer */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.checkbox {
  font-size: 12px;
  color: #555;
}

.checkbox a {
  color: #a10f2b;
  text-decoration: none;
}

/* Botón */
button {
  background: #a10f2b;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

button:hover {
  background: #850c23;
}

/* Responsive Tablets */
@media (max-width: 900px) {
  .contact-card {
    flex-direction: column;
  }

  .contact-image,
  .contact-form {
    width: 100%;
  }

  .contact-image {
    height: 220px;
  }

  .image-fondo {
    height: 200px;
    padding-left: 60px;
  }

  .image-fondo p {
    font-size: 40px;
  }

  .content-fondo {
    padding-top: 100px;
  }
}

/* Responsive Móviles */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .image-fondo {
    height: 180px;
    padding-left: 40px;
  }

  .image-fondo p {
    font-size: 32px;
    border-left: 5px solid #852221;
    padding-left: 20px;
  }

  .content-fondo {
    padding-top: 80px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .contact-form h3 {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .form-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  button {
    width: 100%;
  }
}

/* Responsive Móviles Pequeños */
@media (max-width: 480px) {
  .image-fondo {
    height: 150px;
    padding-left: 20px;
  }

  .image-fondo p {
    font-size: 26px;
    border-left: 4px solid #852221;
    padding-left: 15px;
  }

  .content-fondo {
    padding-top: 70px;
  }

  .contact-form-wrapper {
    padding: 40px 15px;
  }

  .contact-card {
    width: 100%;
  }

  .contact-form {
    padding: 25px 15px;
  }

  .contact-form h3 {
    font-size: 16px;
  }

  .contact-image {
    height: 180px;
  }
}