/*
Theme Name: Fundación Miguel Castillejo
Theme URI: https://fundacionmiguelcastillejo.es/
Author: SummArte
Author URI: https://summarte.es/
Description: Tema oficial de la Fundación Miguel Castillejo. Incluye páginas institucionales, noticias, cursos, avisos y formularios de contacto.
Version: 1.0.4
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: fundacion-miguel-castillejo
*/

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 12px;
  padding: 12px 18px;
  z-index: 9999;
  background: #fff;
  color: #1a1917;
}

.fmc-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.fmc-form-status {
  display: block;
  padding: 12px 14px;
  margin: 0 0 14px;
  border-left: 3px solid #b8963e;
  background: rgba(184, 150, 62, .10);
  color: #655126;
  font-size: .9rem;
  line-height: 1.5;
}

.fmc-form-status.is-error {
  border-color: #a13d35;
  background: rgba(161, 61, 53, .08);
  color: #7b2822;
}

.fmc-generic {
  min-height: 65vh;
  padding: 150px 0 90px;
  background: #fdfaf4;
}

.fmc-generic article {
  max-width: 860px;
  margin: 0 auto;
}

.fmc-generic h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08;
  color: #1a1917;
  margin-bottom: 30px;
}

.fmc-generic .entry-content {
  font-family: Lato, system-ui, sans-serif;
  color: #625c53;
  font-size: 1rem;
  line-height: 1.9;
}

.fmc-generic .entry-content > * + * {
  margin-top: 1.25em;
}

body.admin-bar #nav {
  top: 32px;
}

#fmc-aviso {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  width: 340px;
  max-width: calc(100vw - 40px);
  padding: 22px;
  border: 1px solid rgba(184, 150, 62, .35);
  border-radius: 6px;
  background: #1a1917;
  color: #fff;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .6);
  font-family: Lato, system-ui, sans-serif;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1), opacity .45s;
}

#fmc-aviso.show {
  transform: translateY(0);
  opacity: 1;
}

#fmc-aviso .av-tag {
  margin: 0 0 8px;
  color: #d4af6a;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#fmc-aviso .av-title {
  padding-right: 16px;
  margin: 0 0 8px;
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

#fmc-aviso .av-text {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .65);
  font-size: .83rem;
  line-height: 1.6;
}

#fmc-aviso .av-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 3px;
  background: #b8963e;
  color: #0e0d0c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
}

#fmc-aviso .av-btn:hover {
  background: #d4af6a;
}

#fmc-aviso .av-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  font-size: 20px;
  line-height: 1;
}

#fmc-aviso .av-close:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

@media (max-width: 782px) {
  body.admin-bar #nav {
    top: 46px;
  }
}

@media (max-width: 520px) {
  #fmc-aviso {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
}
