/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #f5f5f7;
  color: #1f2933;
}

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

/* HEADER Y NAV */
.site-header {
  background: #0b1724;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo a {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #cbd2e1;
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: #ffffff;
  color: #0b1724;
}

.main-nav a.active {
  background: #22c55e;
  color: #0b1724;
  font-weight: 600;
}

/* HERO PRINCIPAL */
.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, #0b1724, #1e3a8a);
  color: #ffffff;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.02rem;
  max-width: 30rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-placeholder {
  border-radius: 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}

.btn.primary {
  background: #22c55e;
  color: #0b1724;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.3);
}

.btn.secondary {
  background: #ffffff;
  color: #0b1724;
}

.btn.secondary:hover {
  background: #e5e7eb;
}

/* SECCIONES GENERALES */
.section-light {
  padding: 2.75rem 0;
  background: #f5f5f7;
}

.section-dark {
  padding: 2.75rem 0;
  background: #111827;
  color: #e5e7eb;
}

.section-light h2,
.section-dark h2 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

/* PAGE HERO (páginas internas) */
.page-hero {
  padding: 2.3rem 0 1.8rem;
  background: #0b1724;
  color: #ffffff;
}

.page-hero h1 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.page-hero p {
  max-width: 32rem;
  font-size: 0.98rem;
}

/* CARDS Y GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.feature-card,
.post-card,
.gear-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.3rem 1.35rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.section-dark .feature-card,
.section-dark .post-card,
.section-dark .gear-card {
  background: #111827;
}

.feature-card h3,
.post-card h2,
.gear-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.cards-grid.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* LISTAS */
.styled-list {
  list-style: none;
  margin-top: 0.4rem;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.styled-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.65rem;
  line-height: 1.6;
  color: #22c55e;
}

/* TAGS PEQUEÑAS */
.tag {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7280;
}

/* LAYOUT DOS COLUMNAS */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.muted {
  color: #9ca3af;
}

.small {
  font-size: 0.8rem;
}

/* CONTACTO */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-form {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid #d1d5db;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #22c55e;
  outline-offset: 1px;
}

/* FOOTER */
.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.3rem 0 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}

.footer-small {
  font-size: 0.78rem;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .two-column,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
}
