html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #fff;
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.15);
}

.date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

button {
  cursor: pointer;
  transition: all 0.3s ease;
}
/* Fondo con logo en la sección #inicio */
#inicio::before {
  content: "";
  position: absolute;
  top: -80px;              /* sube o baja el logo */
  left: 50%;
  transform: translateX(-50%);
  width: 480px;            /* tamaño del logo */
  height: 480px;
  background-image: url("LOGO SOLAR DESING.JPG");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  opacity: 0.18;           /* transparencia tipo marca de agua */
  pointer-events: none;    /* no bloquea clics */
}

/* ===== NAVBAR GLOBAL (GitHub / Vercel) ===== */

.sd-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.sd-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sd-nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.sd-nav-logo span {
  color: #0284c7;
}

.sd-nav-toggle {
  display: none;
}

.sd-nav-hamburger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #0f172a;
}

.sd-nav-menu {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: #475569;
}

.sd-nav-menu a {
  text-decoration: none;
  color: inherit;
}

.sd-nav-menu a:hover {
  color: #0284c7;
}

/* Responsive */
@media (max-width: 768px) {
  .sd-nav-inner {
    padding: 10px 14px;
  }

  .sd-nav-hamburger {
    display: block;
  }

  .sd-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0 14px;
    display: none;
  }

  .sd-nav-toggle:checked ~ .sd-nav-menu {
    display: flex;
  }
}

/* ======= NAVBAR ======= */

.sd-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

.sd-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.sd-logo {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sd-logo-main {
  color: #0284c7; /* azul Solar */
}

.sd-logo-dot {
  color: #0f172a;
}

/* Enlaces escritorio */
.sd-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.sd-nav-links a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
}

.sd-nav-links a:hover {
  color: #0284c7;
}

/* Botón móvil */
.sd-menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
  .sd-nav-inner {
    padding: 8px 14px;
  }

  /* Enlaces se vuelven menú desplegable */
  .sd-nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    padding: 10px 16px 14px;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

  .sd-nav.open .sd-nav-links {
    display: flex;
  }

  .sd-menu-toggle {
    display: inline-flex;
  }
}



