/*
 * Our own styles, on top of the Impact template's main.css.
 * Keep template changes here so main.css stays as the template shipped it.
 */

/* Header logo (was an inline style in the old Master.cshtml). */
.header .logo img.site-logo {
  max-height: 60px;
  border-radius: 30px;
}

/* "Iniciar Sesión" button in the header (was inline styles). */
.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.btn-header {
  background: var(--color-primary);
  border: 0;
  padding: 12px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-header:hover {
  color: #fff;
  opacity: 0.85;
}

/* Office blocks in the footer: same spacing as the old <p> per office. */
.footer .footer-office h6 {
  margin-bottom: 4px;
}

/* Email links in the footer: the template colours links green, the same as the footer. */
.footer .footer-contact a {
  color: #fff;
}

.footer .footer-contact a:hover {
  text-decoration: underline;
}

/* ---------- Home page (were inline styles in the old Inicio.cshtml) ---------- */

/* Hero: white verse text, the gap before the buttons, rounded photo. */
.hero .hero-text {
  color: #fff;
}

.hero .hero-buttons {
  margin-top: 40px;
  gap: 8px;
}

.hero .hero-image {
  border-radius: 30px;
}

/* Highlight boxes: white titles; an image box has no padding, rounded corners. */
.hero .icon-box .title {
  color: #fff;
}

.hero .icon-box.icon-box-image {
  padding: 0;
}

.hero .icon-box.icon-box-image img {
  border-radius: 20px;
}

/* ---------- Content pages (were inline styles in the old SobreNosotros.cshtml) ---------- */

/* Card image (Quiénes Somos): half the card width, space below. */
.services .service-item img.card-image {
  display: block;
  width: 50%;
  padding-bottom: 20px;
}

/* People: the old names were links styled black; ours are plain text in the same colour. */
.team .member h4 {
  color: #000;
}

/* Founders inside the history column: the old page pulled the heading closer to the text. */
.about .embedded-team {
  padding: 0;
}

.about .embedded-team .section-header {
  margin-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 0;
}

/* ---------- News ---------- */

/* Audio player under an article: full width, space above. */
.blog .blog-details .news-audio {
  display: block;
  width: 100%;
  margin-top: 20px;
}

/* Images inside the article text never overflow the column. */
.blog .blog-details .content img {
  max-width: 100%;
  height: auto;
}

/* ---------- Obituaries ---------- */

/* Obituary photo: centred and not wider than the old page showed it. */
.blog .blog-details .obituary-photo {
  text-align: center;
}

.blog .blog-details .obituary-photo img {
  max-height: 520px;
  width: auto;
}

.blog .blog-details .obituary-dates {
  color: var(--color-secondary);
  margin-bottom: 30px;
}

/* ---------- Magazine (Revista ReEncuentro) ---------- */

/* Covers are portrait pages: show the whole cover, don't crop it to a banner. */
.blog .posts-list .magazine-cover {
  text-align: center;
  background: #f6f6f6;
}

.blog .posts-list .magazine-cover img {
  max-height: 420px;
  width: auto;
}

/* The online flipbook fills the column and most of the screen height. */
.blog .blog-details .magazine-viewer iframe {
  width: 100%;
  height: 80vh;
  min-height: 480px;
  border: 0;
  border-radius: 8px;
}

.blog .blog-details .magazine-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-magazine {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
}

.btn-magazine:hover {
  color: #fff;
  opacity: 0.85;
}

/* ---------- Forms (Rincón de Oración, Contáctenos) ---------- */

/* Honeypot field: off-screen, so people never see it; bots that fill every field do. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-form .field-error,
.site-form .form-error {
  color: #b02a37;
  font-size: 14px;
  margin-top: 4px;
}

.site-form .form-error ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.site-form .input-validation-error {
  border-color: #b02a37;
}

.site-form .form-note {
  font-size: 12px;
  margin-top: 30px;
}

/* Thank-you box shown after sending. */
.form-thanks {
  background: #fff;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.form-thanks i {
  font-size: 48px;
  color: var(--color-primary);
}

.form-thanks p {
  margin-top: 15px;
}

/* The template styles text and email inputs only; give the phone input the same size and focus. */
.contact .php-email-form input[type=tel] {
  padding: 12px 15px;
}

.contact .php-email-form input[type=tel]:focus {
  border-color: var(--color-primary);
}

/* Contact page: office details in the green column. */
.contact .info-item a {
  color: #fff;
}

.contact .info-item a:hover {
  text-decoration: underline;
}

/* Formularios y Documentos: the "Abrir" button (inline-block, so its padding doesn't overlap the title)
   and an item that has no file yet. */
.faq .accordion-body .btn-magazine {
  display: inline-block;
}

/* An item without a file. */
.document-soon {
  font-style: italic;
  color: #6c757d;
  margin-bottom: 0;
}
