/* =============================================
   VARIABLES Y RESET
   ============================================= */

:root {
  --green-deep:    #1A3A2A;
  --green-mid:     #234D38;
  --green-accent:  #8DC63F;
  --green-light:   #B5D96A;
  --cream:         #F8F6F1;
  --cream-dark:    #EDE9E0;
  --graphite:      #2C2C2C;
  --text-muted:    #6B7A6B;
  --white:         #FFFFFF;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-card: 16px;
  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.32), 0 4px 16px rgba(0, 0, 0, 0.16);
  --transition:  0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--green-deep);
  color: var(--graphite);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* =============================================
   FONDO DECORATIVO
   ============================================= */

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.net-svg {
  width: 100%;
  height: 100%;
}

.court-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */

.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* =============================================
   CABECERA
   ============================================= */

.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.icon-racket {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.site-name {
  display: flex;
  flex-direction: column;
}

.urbanizacion {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-accent);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.nombre {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1;
}

/* =============================================
   TARJETA DE AVISO
   ============================================= */

.notice-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 3rem 3rem 2.5rem;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--green-accent);
}

/* Franja lateral de acento */
.notice-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--green-accent) 0%, var(--green-deep) 100%);
  opacity: 0.3;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

/* =============================================
   BADGE DE AVISO
   ============================================= */

.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 58, 42, 0.08);
  border: 1px solid rgba(141, 198, 63, 0.35);
  border-radius: 40px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.25);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(141, 198, 63, 0.1); }
}

/* =============================================
   LÍNEAS DE PISTA DECORATIVAS
   ============================================= */

.court-line {
  width: 100%;
  margin-bottom: 1.75rem;
}

.court-line--bottom {
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
}

/* =============================================
   TÍTULO
   ============================================= */

.notice-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--graphite);
  margin-bottom: 1.5rem;
}

.notice-title em {
  font-style: normal;
  color: var(--green-deep);
  position: relative;
  display: inline-block;
}

/* Subrayado de acento bajo "Pista de Pádel" */
.notice-title em::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--green-accent);
  border-radius: 2px;
}

/* =============================================
   SEPARADOR
   ============================================= */

.divider {
  width: 48px;
  height: 3px;
  background: var(--green-accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* =============================================
   CUERPO DEL AVISO
   ============================================= */

.notice-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.notice-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  font-weight: 400;
}

.date-highlight {
  font-weight: 700;
  color: var(--green-deep);
  font-family: var(--font-display);
  background: rgba(141, 198, 63, 0.15);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* =============================================
   BLOQUE CTA APP
   ============================================= */

.app-cta {
  background: var(--green-deep);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

/* Acento sutil en el CTA */
.app-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-accent), transparent);
}

.app-cta-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-accent);
  opacity: 0.85;
}

.app-url {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition), gap var(--transition);
}

.app-url:hover {
  color: var(--green-accent);
  gap: 0.875rem;
}

.app-url:focus-visible {
  outline: 2px solid var(--green-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.url-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  flex-shrink: 0;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.6;
  transition: opacity var(--transition), transform var(--transition);
}

.app-url:hover .arrow-icon {
  opacity: 1;
  transform: translateX(4px);
}

/* =============================================
   NOTA AL PIE DE LA TARJETA
   ============================================= */

.notice-footnote {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-left: 2px solid var(--cream-dark);
  padding-left: 0.875rem;
}

/* =============================================
   PIE DE PÁGINA
   ============================================= */

.site-footer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
  text-align: center;
  font-family: var(--font-body);
}

/* =============================================
   RESPONSIVE — MÓVIL
   ============================================= */

@media (max-width: 520px) {
  .wrapper {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .notice-card {
    padding: 2rem 1.5rem 2rem;
  }

  .nombre {
    font-size: 1rem;
  }

  .app-url {
    font-size: 1.05rem;
    word-break: break-all;
  }

  .app-url .arrow-icon {
    display: none;
  }
}

/* =============================================
   REDUCCIÓN DE MOVIMIENTO
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  .badge-dot {
    animation: none;
  }

  .app-url,
  .arrow-icon {
    transition: none;
  }
}
