@import url('../asset/styles.css');

/* ---------- General ---------- */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #333;
  color: white;
}

/* ---------- Sección Contacto ---------- */
#contacto {
  display: flex;
  flex-direction: column;
}

.contact-header {
  text-align: center;
  margin-top: 120px;
  margin-bottom: 40px;
}

.contact-header h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.contact-header p {
  font-size: 1.2em;
  color: #ccc;
}

/* ---------- Contenedor blanco flotante ---------- */
.contact-float-wrapper {
  background: white;
  padding: 12px;
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  max-width: 1160px;
  width: 100%;
  margin: 0 auto 40px;
  transform: translateY(-20px);
}

/* ---------- Estructura interna ---------- */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  color: black;
  overflow: hidden;
}

.contact-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

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

.contact-form-container {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  background: white;
  color: black;
}

.contact-form-container h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  border-left: 5px solid #0033A0;
  border-bottom: 2px solid #0033A0;
  padding-left: 12px;
  padding-bottom: 6px;
  color: #0033A0;
}

/* ---------- Formulario ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background: #f9f9f9;
  color: black;
  resize: none;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

input:focus,
textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 2px #0033A0;
}

/* ---------- Botón Enviar ---------- */
button[type="submit"] {
  background-color: #0033A0;
  color: white;
  border: 2px solid gray;
  padding: 14px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #002080;
}

/* ---------- Estado de envío ---------- */
#estado-envio {
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

#estado-envio.exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#estado-envio.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#estado-envio.procesando {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* ---------- Barra de contacto directo ---------- */
.barra-contacto-directo {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px;
  margin: 40px auto 10px;
  max-width: 900px;
}

.item-contacto {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0, 51, 160, 0.9);
  padding: 12px 20px;
  border-radius: 14px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.item-contacto:hover {
  transform: translateY(-2px);
  background-color: #002080;
}

.item-contacto img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

/* ---------- Botón de WhatsApp flotante ---------- */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  z-index: 1001;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
}

/* ---------- Responsive Tablets ---------- */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
  .contact-form-container {
    padding: 30px 20px;
  }
  .contact-header h1 {
    font-size: 1.6em;
  }
  .contact-float-wrapper {
    transform: none;
    margin-top: 0;
  }
}

/* ---------- Responsive Móviles pequeños ---------- */
@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 1.4em;
  }
  .contact-header p {
    font-size: 1em;
  }
  .contact-form-container h2 {
    font-size: 1.4em;
  }
  .barra-contacto-directo {
    gap: 15px;
  }
  .item-contacto {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 15px;
    left: 15px;
  }
}
