/*
  Estilos principales del aviso de mantenimiento.
  - Variables CSS para colores usados en toda la página.
  - Cuerpo con fuente global y fondo degradado.
*/
:root {
  --navy-dark: #07163d;
  --navy: #091e2f;
  --sky: #091e2f;
  --text-light: #eef2ff;
  --text-muted: #b8c3e6;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #071428 0%, #091f49 100%);
  color: var(--text-light);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}
/* Estilos del encabezado */
header {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-left,
.header-center,
.header-right {
  min-height: 80px;
}
.header-left {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-right {
  margin-right: 2cm;
}
/* Contenedor del logo en el header */
.logo-placeholder {
  margin-left: 5cm;
  width: 160px;
  height: 100px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
/* Imagen de logo dentro del contenedor */
.logo-image {
  display: block;
  width: 94%;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}
/* Texto central del header: título y subtítulo */
.title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.title-group h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-light);
  text-transform: uppercase;
}
.title-group h4 {
  margin: 0.85rem 0 0;
  color: rgba(238, 242, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  max-width: 36rem;
}
.title-group p {
  margin: 0.75rem 0 0;
  color: rgba(238, 242, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.75;
  text-align: center;
  letter-spacing: 0.01em;
  padding: 0 0.5rem;
}
/* Contenido de contacto en el header */
.contact-info {
  text-align: right;
  color: var(--text-light);
  font-size: 0.95rem;
  display: grid;
  gap: 0.65rem;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
.contact-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #91b7ff;
  font-size: 1rem;
}
.header-details {
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
}
.header-details summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  color: #e5ecff;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-details summary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.header-details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.details-content {
  padding: 1rem;
  margin-top: -1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: none;
  border-radius: 0 0 20px 20px;
  color: rgba(238, 242, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}
.details-content p {
  margin: 0.45rem 0;
}
.details-content strong {
  color: var(--text-light);
}
.more-info-btn {
  margin-top: 0.75rem;
  padding: 1rem 1.4rem;
  min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(81,144,255,0.08), rgba(255,255,255,0.02));
  color: rgba(238, 242, 255, 0.98);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transform: translateX(-1cm);
  position: relative;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2,.9,.3,1), box-shadow 320ms ease, color 200ms ease;
  box-shadow: 0 10px 30px rgba(81, 144, 255, 0.06);
  animation: glowPulse 3.8s ease-in-out infinite;
}
.more-info-btn::before {
  content: '';
  position: absolute;
  left: -75%;
  top: 0;
  width: 75%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.02), rgba(255,255,255,0.16), rgba(255,255,255,0.02));
  transform: skewX(-18deg);
  transition: left 620ms cubic-bezier(.2,.9,.3,1), opacity 420ms ease;
  opacity: 0;
  pointer-events: none;
}
.more-info-btn:hover::before {
  left: 120%;
  opacity: 1;
}
.more-info-btn:hover,
.more-info-btn:focus {
  background: linear-gradient(90deg, rgba(81,144,255,0.14), rgba(255,255,255,0.04));
  color: #ffffff;
  transform: translateX(-1cm) translateY(-4px) scale(1.01);
  box-shadow: 0 26px 60px rgba(81, 144, 255, 0.18);
}
.more-info-btn:focus {
  outline: 2px solid rgba(145, 183, 255, 0.35);
  outline-offset: 2px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 999;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-window {
  max-width: 520px;
  width: 100%;
  background: rgba(10, 18, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.28);
  padding: 1.8rem 1.3rem 1rem;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  transform: translateY(26px) scale(0.98);
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.modal-overlay.open .modal-window {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(81, 144, 255, 0.14), transparent 30%);
  pointer-events: none;
}
.modal-window::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.modal-window h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.modal-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.modal-tag {
  margin: 0 0 0.25rem;
  color: #8fb8ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.modal-pill {
  align-self: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe7ff;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateX(-3cm);
}
.modal-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}
.modal-summary {
  margin: 0;
  color: rgba(238, 242, 255, 0.84);
  line-height: 1.65;
}
.modal-info {
  position: relative;
  z-index: 1;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}
.modal-info p {
  margin: 0.45rem 0;
  color: rgba(238, 242, 255, 0.9);
}
.modal-contact {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
}
.contact-title {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8da9ff;
}
.contact-group {
  display: grid;
  gap: 0.35rem;
}
.modal-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 242, 255, 0.95);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.modal-contact a:hover,
.modal-contact a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Animaciones adicionales y ajustes trasladados desde index.html */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(81, 144, 255, 0.06);
    transform: translateX(-1cm) translateY(0);
  }
  50% {
    box-shadow: 0 26px 64px rgba(81, 144, 255, 0.18);
    transform: translateX(-1cm) translateY(-2px);
  }
}

@keyframes modalPop {
  0% {
    transform: translateY(26px) scale(0.98);
    opacity: 0;
  }
  60% {
    transform: translateY(-8px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Compact modal overrides (moved from inline <style> in index.html) */
#pageInfoModal .modal-overlay.open { display: flex !important; }
#pageInfoModal .compact-modal {
  max-width: 520px !important;
  padding: 1.4rem !important;
  border-radius: 26px !important;
}
#pageInfoModal .compact-modal .modal-header {
  gap: 0.75rem !important;
  margin-bottom: 1rem !important;
}
#pageInfoModal .compact-modal .modal-tag { font-size: 0.82rem !important; }
#pageInfoModal .compact-modal .modal-pill { padding: 0.35rem 0.75rem !important; }
#pageInfoModal .compact-modal .modal-grid { gap: 0.85rem !important; margin-bottom: 1rem !important; }
#pageInfoModal .compact-modal .modal-card {
  padding: 0.85rem 1rem !important;
  border-radius: 18px !important;
}
#pageInfoModal .compact-modal .modal-info { padding: 0.95rem 1rem !important; margin-bottom: 1rem !important; }
#pageInfoModal .compact-modal .modal-contact { gap: 0.6rem !important; }
#pageInfoModal .compact-modal .modal-contact a { padding: 0.75rem 0.9rem !important; border-radius: 16px !important; }

/* Aplicar animación al mostrar modal */
.modal-overlay.open .modal-window {
  animation: modalPop 360ms cubic-bezier(.2,.9,.3,1) both;
}

/* (La animación del botón se especifica en la regla principal `.more-info-btn`) */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0.65rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
  touch-action: manipulation;
}
.modal-close:hover,
.modal-close:focus {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.modal-close:focus {
  outline: 2px solid rgba(145, 183, 255, 0.35);
  outline-offset: 2px;
}
.contact-emails {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-emails a {
  display: inline-block;
}
.contact-email-secondary {
  color: rgba(238, 242, 255, 0.7);
  font-weight: 400;
  font-size: 0.9rem;
}
.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.contact-item a:hover {
  color: #ffffff;
}
/* Pie de página */
.footer {
  width: 100%;
  background: #04112c;
  color: #c7d3f0;
  text-align: center;
  padding: 16px 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
/* Sección principal con imagen de fondo tipo hero */
.hero-background {
  flex: 1;
  width: 100%;
  background-image: url('../assets/images/fondo_helicenter.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer {
  width: 100%;
  background: #04112c;
  color: var(--text-muted);
  text-align: center;
  padding: 14px 0;
  font-size: 0.95rem;
}
@media (max-width: 767px) {
  .header-left {
    justify-content: center;
    padding-left: 0;
  }
  .logo-placeholder {
    margin-left: 0;
    width: 140px;
    height: 90px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.36);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
  }
  .logo-image {
    width: 92%;
    height: 92%;
  }
  .header-center {
    order: 3;
    width: 100%;
    padding: 0 1rem;
  }
  .title-group h1 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    line-height: 1.2;
  }
  .title-group h4 {
    max-width: 100%;
    padding: 0 0.5rem;
    font-size: 1rem;
  }
  .header-right {
    width: auto;
    margin-left: 3cm;
    margin-top: 1rem;
    text-align: left;
    display: flex;
    justify-content: flex-start;
  }
  .contact-info {
    text-align: center;
    justify-items: center;
  }
  .contact-item {
    width: 100%;
    justify-content: center;
  }
}
