/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (Inspired by Taller Slide)
   ========================================================================== */
:root {
  /* Exact color matching from the slide */
  --bg-color: #FAF8F5;            /* General cream background */
  --card-bg: #FFFFFF;             /* Clean white card content */
  --text-navy: #002157;           /* Deep navy blue for headings & lines */
  --text-muted: #435473;          /* Navy-grey for readable body text */
  --accent-green: #008060;        /* Green from "Apropiación" pill */
  --accent-green-hover: #00664C;  
  --yellow-bg: #FFF8E7;           /* Light warm yellow for quote box */
  --yellow-border: #FFE4A0;       /* Golden yellow border */
  --star-gold: #FABE2C;           /* Golden star color */
  --border-color: #E2E8F0;        /* Soft slate border */
  
  /* Fonts */
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --max-width: 620px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-color);
  color: var(--text-navy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

/* ==========================================================================
   BACKGROUND DECORATIVE ELEMENTS (Dotted grids & Waves from slide)
   ========================================================================== */
.bg-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.35;
  z-index: -1;
  background-image: radial-gradient(var(--text-navy) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  pointer-events: none;
}

.bg-dots-top-left {
  top: 40px;
  left: 40px;
}

.bg-dots-bottom-right {
  bottom: 40px;
  right: 40px;
}

.bg-wave {
  position: absolute;
  right: 0;
  top: 0;
  width: 250px;
  height: 250px;
  z-index: -1;
  opacity: 0.8;
  transform: rotate(180deg);
  pointer-events: none;
}

/* ==========================================================================
   PAGE CONTAINER
   ========================================================================== */
.page-container {
  width: 100%;
  max-width: var(--max-width);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 33, 87, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HEADER & CAPSULE (Apropiación Style)
   ========================================================================== */
.header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.event-tag-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-tag {
  background-color: var(--accent-green);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Green dashes mimicking slide sparkles */
.decorator-lines {
  display: inline-block;
  width: 8px;
  height: 12px;
  position: relative;
}

.decorator-left {
  border-right: 2px solid var(--accent-green);
  border-top: 2px solid var(--accent-green);
  transform: rotate(-30deg);
}

.decorator-left::before {
  content: "";
  position: absolute;
  right: -5px;
  top: 4px;
  width: 5px;
  height: 2px;
  background-color: var(--accent-green);
  transform: rotate(30deg);
}

.decorator-right {
  border-left: 2px solid var(--accent-green);
  border-top: 2px solid var(--accent-green);
  transform: rotate(30deg);
}

.decorator-right::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 5px;
  height: 2px;
  background-color: var(--accent-green);
  transform: rotate(-30deg);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-navy);
  margin-bottom: 0.75rem;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.75rem;
  max-width: 90%;
}

.description {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 95%;
}

/* ==========================================================================
   YELLOW QUOTE BANNER
   ========================================================================== */
.quote-banner {
  background-color: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}

.quote-star-wrapper {
  background-color: #FFFFFF;
  border: 1px solid var(--yellow-border);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(250, 190, 44, 0.08);
}

.quote-star {
  color: var(--star-gold);
  font-size: 1.25rem;
  line-height: 1;
}

.quote-text {
  font-family: var(--font-serif);
  color: var(--text-navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.quote-line-1 {
  margin-bottom: 2px;
}

/* ==========================================================================
   ACTION BUTTON (Idea Clave Style)
   ========================================================================== */
.action-container {
  width: 100%;
  margin-bottom: 2rem;
}

.btn-idea-clave {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--text-navy);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50px; /* Rounded pill banner */
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  text-align: left;
}

.btn-star-badge {
  background-color: #FFFFFF;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--star-gold);
  font-size: 1rem;
  margin-right: 1rem;
}

.btn-text-content {
  flex-grow: 1;
  line-height: 1.3;
}

.btn-highlight {
  color: var(--star-gold);
  font-weight: 700;
  margin-right: 4px;
}

.btn-arrow {
  font-size: 1.3rem;
  margin-left: 1rem;
  transition: transform 0.25s ease;
  font-weight: 700;
}

/* Hover & Focus states */
.btn-idea-clave:hover {
  background-color: #00173D;
  box-shadow: 0 4px 15px rgba(0, 33, 87, 0.15);
}

.btn-idea-clave:hover .btn-arrow {
  transform: translateX(6px);
}

.btn-idea-clave:focus-visible {
  outline: 3px solid var(--accent-green);
  outline-offset: 4px;
}

.btn-idea-clave:active {
  transform: scale(0.985);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  flex-grow: 1;
}

.instructor-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 33, 87, 0.25);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Handwritten scribble 'mb' inspired by 'le' purple scribble */
.handwritten-logo {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 700;
  color: #8C52FF; /* Signature violet/purple */
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
  transform: rotate(-10deg);
  display: inline-block;
  margin-top: -4px;
}

.official-web {
  font-size: 0.85rem;
  font-weight: 600;
}

.official-web a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.official-web a:hover {
  color: var(--text-navy);
}

.footer a:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* ==========================================================================
   MEDIA QUERIES (Responsive adjustments)
   ========================================================================== */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
  }
  
  .page-container {
    padding: 2.25rem 1.5rem;
    border-radius: 20px;
  }
  
  .title {
    font-size: 2.15rem;
  }
  
  .subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }
  
  .description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  
  .quote-banner {
    padding: 1rem;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  .quote-star-wrapper {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  
  .quote-star {
    font-size: 1rem;
  }
  
  .quote-text {
    font-size: 0.875rem;
  }
  
  .btn-idea-clave {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }
  
  .btn-star-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin-right: 0.75rem;
  }
  
  .footer {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }
  
  .footer-right {
    justify-content: center;
    width: 100%;
  }
}
