/* ============================================================
   SuperLED — style.css
   All colors & fonts referenced via CSS custom properties only.
   ============================================================ */

:root {
  /* Brand color tokens (from SuperLED logo) */
  --color-navy: #0A1024;        /* deep navy-blue base */
  --color-white: #F8F8FF;       /* ghost white (logo) */
  --color-amber: #2D62FF;       /* brand accent = logo blue */
  --color-charcoal: #15192B;
  --color-wa-green: #25D366;
  --color-closed: #9CA3AF;

  /* Fonts */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Derived / utility tokens */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F2F5FC;
  --color-text: var(--color-charcoal);
  --color-muted: #545B72;
  --color-amber-tint: rgba(45, 98, 255, 0.14);
  --color-overlay: rgba(10, 16, 36, 0.74);
  --color-border: #DEE4F2;
  --color-dot-open: var(--color-wa-green);
  --color-dot-closed: #E5484D;

  --nav-height: 64px;
  --radius: 12px;
  --shadow-card: 0 6px 24px rgba(10, 22, 40, 0.08);
  --shadow-soft: 0 2px 12px rgba(10, 22, 40, 0.06);
}

/* ============ RESET / BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

/* Accessible focus styles */
a:focus-visible,
button:focus-visible,
.gallery-item:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ LAYOUT HELPERS ============ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title--light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-amber);
  margin: -0.75rem 0 2rem;
  font-weight: 500;
}

.lead {
  font-size: 1.1rem;
  max-width: 760px;
  color: var(--color-muted);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-wa {
  background: var(--color-wa-green);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.btn-wa--lg {
  font-size: 1.1rem;
  padding: 1rem 1.8rem;
}

.wa-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  height: var(--nav-height);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-menu a:hover {
  color: var(--color-amber);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ 1. HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/superledprincipal.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem;
  max-width: 820px;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--color-white);
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
  padding-bottom: 0.15em;
}

/* Signature animation: amber underline sweeps left-to-right on load */
.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: var(--color-amber);
  transform: scaleX(0);
  transform-origin: left center;
  animation: underline-sweep 0.6s ease-out 0.3s forwards;
}

@keyframes underline-sweep {
  to { transform: scaleX(1); }
}

.hero-subtitle {
  color: var(--color-white);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  margin: 1.25rem 0 2rem;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title::after { animation: none; transform: scaleX(1); }
  .btn { transition: none; }
}

/* ============ 3. LED SECTION ============ */
.section--led {
  background: var(--color-navy);
  color: var(--color-white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--color-amber);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card-icon {
  color: var(--color-amber);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 40px;
  height: 40px;
}

.card-title {
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

.card-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  margin: 0;
}

.led-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.led-cta-text {
  font-size: 1.15rem;
  margin: 0;
  color: var(--color-white);
}

/* ============ 4. GALLERY ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-amber);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 0.28;
}

/* ============ 5. PROGRAM ============ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-closed);
  flex-shrink: 0;
}

.status-badge.is-open .status-dot { background: var(--color-dot-open); }
.status-badge.is-closed .status-dot { background: var(--color-dot-closed); }

.schedule-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
}

.schedule th,
.schedule td {
  padding: 0.9rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
}

.schedule th {
  font-weight: 500;
  font-family: var(--font-body);
}

.schedule td {
  text-align: right;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.schedule tr + tr {
  border-top: 1px solid var(--color-border);
}

.schedule-closed th,
.schedule-closed td {
  color: var(--color-closed);
  opacity: 0.7;
}

/* Today highlight (applied by JS) */
.schedule tr.is-today th,
.schedule tr.is-today td {
  background: var(--color-amber-tint);
  font-weight: 700;
  color: var(--color-charcoal);
}

/* ============ 6. LOCATION ============ */
.map-wrap {
  margin-bottom: 1.5rem;
}

.map-wrap iframe {
  display: block;
  width: 100%;
}

.address-line {
  margin: 0.25rem 0;
  font-size: 1.05rem;
}

.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-amber);
  font-weight: 600;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

/* ============ 7. CONTACT ============ */
.section--contact {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  margin: 0;
}

/* ============ WHATSAPP FAB ============ */
.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease;
}

.wa-fab svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

.wa-fab:hover {
  transform: scale(1.08);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-navy);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu a {
    display: block;
    padding: 0.85rem 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 375px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1180px;
  }
}
