/* ============================================================
   CSS/contact.css
   Estilos exclusivos de contact.html
   El resto de estilos (header, nav, footer, botones, etc.)
   viven en CSS/styles.css
   ============================================================ */

/* ===== INTRO TEXTO ===== */
.contact-intro {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  margin: 0.5rem auto 2rem;
  max-width: 600px;
}

/* ===== BOTONES DE ACCIÓN (WhatsApp + Calendly) ===== */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 220px;
  justify-content: center;
}

.btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-action--whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-action--whatsapp:hover {
  background: #1ebe5d;
}

.btn-action--calendly {
  background: #006bff;
  color: #fff;
}

.btn-action--calendly:hover {
  background: #0057cc;
}


/* ===== COLUMNA FORMULARIO ===== */
.contact-form-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #002244;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #002244;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #015ab4;
  box-shadow: 0 0 0 3px rgba(1, 90, 180, 0.12);
}


/* ===== VALIDACIÓN EN TIEMPO REAL ===== */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #1eb856;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
}

.field-error {
  font-size: 0.8rem;
  color: #e74c3c;
  display: none;
  margin-top: 0.2rem;
}

.field-error.visible {
  display: block;
}


/* ===== CAMPO "OTRO" ===== */
#other-reason-container {
  display: none;
  margin-top: 0.5rem;
}

#other-reason-container textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#other-reason-container textarea:focus {
  outline: none;
  border-color: #015ab4;
  box-shadow: 0 0 0 3px rgba(1, 90, 180, 0.12);
}


/* ===== RECAPTCHA ===== */
.g-recaptcha {
  margin: 1rem 0;
}

/* ===== AVISO DE PRIVACIDAD ===== */
.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

.privacy-notice input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #002244;
}

.privacy-link {
  background: none;
  border: none;
  color: #015ab4;
  font-weight: 700;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.privacy-link:hover {
  color: #002244;
}

/* Modal */
.privacy-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.privacy-modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.privacy-modal-content h3 {
  font-family: 'Playfair Display', serif;
  color: #002244;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.privacy-modal-content p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.privacy-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f0f4fa;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.privacy-modal-close:hover {
  background: #e0e8f4;
}

/* ===== MENSAJE DE ÉXITO — UNA SOLA REGLA ===== */
#success-message {
  display: none;
  text-align: center;
  padding: 2rem;
  background: #f0fff8;
  border: 1.5px solid #1eb856;
  border-radius: 12px;
  margin-top: 1rem;
}

#success-message.visible {
  display: block;
}

.success-check {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

#success-message h3 {
  font-family: 'Playfair Display', serif;
  color: #002244;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

#success-message > p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.success-calendly {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #c3e6cb;
}

.success-calendly p {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
}

/* ===== SUCCESS + CALENDLY ===== */

.success-check {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

#success-message h3 {
  font-family: 'Playfair Display', serif;
  color: #002244;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

#success-message p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.success-calendly {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #c3e6cb;
}

.success-calendly p {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
}

/* ===== COLUMNA INFO DE CONTACTO ===== */
.contact-info-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #002244;
  margin-bottom: 1.5rem;
}

.contact-info-card {
  background: #f0f4fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #002244;
}

.contact-info-card p {
  margin-bottom: 0.6rem;
  color: #333;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

.contact-info-card .info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}


/* ===== BLOQUE CALENDLY ===== */
.calendly-wrapper {
  background: linear-gradient(135deg, #002244, #015ab4);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}

.calendly-wrapper p {
  color: #cce0ff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.calendly-wrapper h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.btn-calendly {
  display: inline-block;
  background: #f1c40f;
  color: #002244;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}

.btn-calendly:hover {
  background: #ffdf4e;
  transform: translateY(-2px);
}


/* ===== DIVISOR VISUAL ===== */
.contact-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: #888;
  font-size: 0.85rem;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ddd;
}

/* ===== DATALIST CIUDAD ===== */
input[list] {
  cursor: text;
}

/* Indicador visual de que tiene sugerencias */
#city {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 2rem;
}

.contact-divider::before { left: 0; }
.contact-divider::after  { right: 0; }


/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
