/* ==========================================================================
   Contáctenos - Based on casaeditora styles
   ========================================================================== */

.contactenos {
  background: #f5f5f5;
  padding: 90px 0;
}
@media screen and (max-width: 768px) {
  .contactenos {
    padding: 40px 0;
  }
}

/* ---------- Heading ---------- */

.contactenos-heading {
  text-align: left;
  margin-bottom: 2.5rem;
}

.contactenos-heading .section-overline {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: 3px;
  font-weight: 500;
  text-align: left;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.contactenos-heading .section-title {
  font-family: 'Epilogue', sans-serif;
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  word-break: break-word;
}
@media screen and (max-width: 768px) {
  .contactenos-heading .section-title {
    font-size: calc(2.19rem + (4.4 - 2.19) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.3 * (2.19rem + (4.4 - 2.19) * ((100vw - 20rem) / (48 - 20))));
  }
}

/* ---------- Autoridades ---------- */

.contactenos-autoridades {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.autoridad-card {
  display: inline-block;
  text-align: center;
  margin: 0 20px 20px;
}

.autoridad-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
}

.autoridad-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autoridad-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.autoridad-cargo {
  font-size: 13px;
  color: #666666;
  margin-bottom: 8px;
}

.autoridad-email {
  font-size: 13px;
  color: #ff4f26;
  text-decoration: none;
  transition: 0.3s ease;
}

.autoridad-email:hover {
  color: #f5ac3c;
}

.autoridad-desc,
.autoridad-desc p {
  font-size: 13px;
  color: #666666;
  margin-top: 8px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact Info ---------- */

.contactenos-intro {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
  font-weight: 500;
}

.contactenos-datos {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff4f26;
  color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 16px;
}

.contact-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-text p {
  font-size: 13px;
  color: #666666;
  margin-bottom: 4px;
  line-height: 1.6;
}

.contact-text a {
  color: #ff4f26;
  text-decoration: none;
  transition: 0.3s ease;
}

.contact-text a:hover {
  color: #f5ac3c;
}

/* ---------- Contact Form ---------- */

.contactenos-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contactenos-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.contactenos-form input[type="text"],
.contactenos-form input[type="email"],
.contactenos-form input[type="tel"],
.contactenos-form input[type="url"],
.contactenos-form input[type="number"],
.contactenos-form select,
.contactenos-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.contactenos-form input[type="text"]:focus,
.contactenos-form input[type="email"]:focus,
.contactenos-form input[type="tel"]:focus,
.contactenos-form input[type="url"]:focus,
.contactenos-form input[type="number"]:focus,
.contactenos-form select:focus,
.contactenos-form textarea:focus {
  outline: none;
  border-color: #ff4f26;
  box-shadow: 0 0 0 3px rgba(255, 79, 38, 0.12);
  background: #ffffff;
}

.contactenos-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contactenos-form input[type="submit"],
.contactenos-form button[type="submit"],
.contactenos-form .webform-button--submit {
  display: inline-block;
  background: #ff4f26;
  color: #ffffff;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contactenos-form input[type="submit"]:hover,
.contactenos-form button[type="submit"]:hover,
.contactenos-form .webform-button--submit:hover {
  background: #f5ac3c;
  transform: translateY(-2px);
}

.contactenos-form .form-item {
  margin-bottom: 0;
}

.contactenos-form .webform-confirmation-message,
.contactenos-form .messages {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  .contactenos-form {
    padding: 25px;
    margin-top: 30px;
  }
}

/* ---------- Autoridades empty state ---------- */

.contactenos-autoridades:empty {
  display: none;
}
