/* duda.css */
@import url('/taggi/assets/fonts.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* -------------------------------------------
   ESTILOS GENERALES
-------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ESTILOS PARA SCROLL */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #3c7f78;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #2b6058;
}

/* General */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #565656;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.duda-section {
  padding: 3rem 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.duda-container {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

/* -------------------------------------------
   TARJETAS
-------------------------------------------- */
.tarjeta {
  background: #ffffff;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

/* -------------------------------------------
   FORMULARIO
-------------------------------------------- */
.formulario {
  background: #ffffff;
  border-radius: 16px 0 0 16px;
}

.form-header {
  margin-bottom: 2rem;
  text-align: center;
}

.formulario h2 {
  font-size: 2.2rem;
  color: #535c6b;
  margin-bottom: 1.2rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.formulario h2 span {
  color: #28ce93;
  position: relative;
}

.header-decoration {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #28ce93, transparent);
  margin: 0 auto 1.5rem;
}

.formulario p {
  font-size: 1rem;
  color: #777;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 90%;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.5rem;
}

.input-icon {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.input-icon:hover,
.input-icon:focus-within {
  border-color: #28ce93;
  box-shadow: 0 5px 15px rgba(40, 206, 147, 0.1);
}

.input-icon-decorative {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background-color: #f9f9f9;
  color: #858585;
}

.input-icon-decorative svg {
  width: 20px;
  height: 20px;
}

.input-icon input {
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  flex: 1;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

.input-icon input::placeholder,
textarea::placeholder {
  color: #bbb;
  font-weight: 400;
}

.textarea-container {
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.textarea-container:hover,
.textarea-container:focus-within {
  border-color: #28ce93;
  box-shadow: 0 5px 15px rgba(40, 206, 147, 0.1);
}

textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  outline: none;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin: 0.5rem 0 1.5rem;
}

.checkbox-group input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  margin-top: 2px;
  accent-color: #28ce93;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  cursor: pointer;
}

/* Botón */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #28ce93, #048f78);
  color: #ffffff;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(40, 206, 147, 0.2);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #20b883, #037864);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 206, 147, 0.3);
}

.btn-submit:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(40, 206, 147, 0.2);
}

.submit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------
   CONTACTO
-------------------------------------------- */
.contacto {
  background: linear-gradient(135deg, #28ce93, #048f78);
  color: white;
  display: flex;
  flex-direction: column;
  border-radius: 0 16px 16px 0;
  position: relative;
  overflow: hidden;
}

.contacto-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contacto-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contacto-header p {
  font-size: 1rem;
  opacity: 0.9;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
}

.icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-item:hover .icon {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.info-text p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Redes sociales */
.social-links {
  display: flex;
  gap: 15px;
  margin: 1.5rem 0 2.5rem;
  justify-content: center;
}

.social-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Imagen perro */
.dog-image {
  margin-top: auto;
  text-align: center;
}

.dog-image img {
  max-width: 90%;
  border-radius: 12px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.dog-image img:hover {
  transform: translateY(5px);
}

/* Mensajes de éxito y error */
.mensaje-exito,
.mensaje-error {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0 2rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mensaje-exito {
  background: #e8f9f2;
  color: #28ce93;
  border-left: 4px solid #28ce93;
}

.mensaje-error {
  background: #fdeeec;
  color: #e74c3c;
  border-left: 4px solid #e74c3c;
}

.exito-icon,
.error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.exito-icon svg {
  fill: #28ce93;
}

.error-icon svg {
  fill: #e74c3c;
}

.mensaje-exito p,
.mensaje-error p {
  margin: 0;
  font-size: 0.95rem;
}

/* -------------------------------------------
   RESPONSIVE
-------------------------------------------- */
@media (min-width: 768px) {
  .duda-container {
    flex-direction: row;
    max-width: 100%;
    margin: 0 auto;
  }

  .formulario {
    flex: 6;
  }

  .contacto {
    flex: 4;
  }
}

@media (max-width: 767px) {
  .duda-section {
    padding: 1.5rem;
  }

  .duda-container {
    border-radius: 12px;
  }

  .formulario,
  .contacto {
    border-radius: 0;
    padding: 1.5rem;
  }

  .formulario {
    border-radius: 12px 12px 0 0;
  }

  .contacto {
    border-radius: 0 0 12px 12px;
  }

  .formulario h2 {
    font-size: 1.8rem;
  }

  .info-item {
    margin-bottom: 1rem;
  }

  .dog-image img {
    max-width: 70%;
  }
}
