/* assets/css/styles.css */
/* ─────────────────────────────────────────────
   RESET BÁSICO
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 52%, #000 100%);
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────
   UTILIDADES
   ───────────────────────────────────────────── */
.cn-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cn-section {
  padding: 5rem 0 4rem;
}

.cn-section-alt {
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
}

.cn-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cn-section-header h2 {
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 0.75rem;
}

.cn-section-header p {
  color: #d1d5db;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   HEADER / NAV
   ───────────────────────────────────────────── */
.cn-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.65), transparent);
  border-bottom: 1px solid rgba(248, 250, 252, 0.06);
}

.cn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.cn-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #f9fafb;
}

.cn-logo img {
  height: 28px;
  border-radius: 999px;
}

.cn-nav {
  display: flex;
  gap: 0.8rem;
}

.cn-nav-link {
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cn-nav-link:hover {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.cn-hero {
  padding: 5.5rem 0 4rem;
}

.cn-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.cn-hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f9fafb;
  margin-bottom: 0.6rem;
}

.cn-subtitle {
  font-size: 1.05rem;
  color: #fde68a;
  margin-bottom: 1.3rem;
}

.cn-hero-text {
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.cn-benefits {
  list-style: none;
  margin-bottom: 1.7rem;
}

.cn-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.98rem;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

.cn-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.cn-trust-text {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* HERO CARD VISUAL */
.cn-hero-card {
  position: relative;
  padding: 1px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.9), rgba(52, 211, 153, 0.3), rgba(59, 130, 246, 0.45));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.cn-hero-card > * {
  border-radius: inherit;
}

.cn-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.4), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(59, 130, 246, 0.45), transparent 55%);
  opacity: 0.2;
  pointer-events: none;
}

.cn-hero-card > .cn-hero-wave,
.cn-hero-card > .cn-hero-mini,
.cn-hero-card > .cn-hero-tagline,
.cn-hero-card > .cn-hero-media {
  position: relative;
  z-index: 1;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

/* top bar */
.cn-hero-wave {
  height: 52px;
  border-radius: 1.5rem 1.5rem 0.6rem 0.6rem;
  background: linear-gradient(90deg, #facc15, #fb7185, #22c55e, #3b82f6);
  opacity: 0.85;
  mask-image: linear-gradient(to right, transparent 0, black 12%, black 88%, transparent 100%);
}

/* tagline */
.cn-hero-tagline {
  padding: 0.9rem 1.5rem 0.4rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fde68a;
}

/* mini text block */
.cn-hero-mini {
  padding: 0 1.5rem 1.7rem;
  color: #e5e7eb;
  font-size: 0.96rem;
  line-height: 1.7;
}

.cn-hero-mini-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ─────────────────────────────────────────────
   BOTONES
   ───────────────────────────────────────────── */
.cn-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.cn-btn-primary {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  box-shadow: 0 12px 30px rgba(248, 250, 252, 0.25);
}

.cn-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(248, 250, 252, 0.36);
}

.cn-btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(249, 250, 251, 0.16);
}

.cn-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(250, 204, 21, 0.7);
  color: #facc15;
}

.cn-btn-full {
  width: 100%;
}

/* pills */
.cn-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.25), transparent 65%);
  color: #facc15;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────
   STORY GRID
   ───────────────────────────────────────────── */
.cn-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.cn-section-grid p {
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.cn-section h2 {
  font-size: 1.7rem;
  color: #facc15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* highlight box */
.cn-highlight-box {
  padding: 1.4rem 1.5rem 1.6rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(249, 250, 251, 0.09);
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.05), rgba(15, 23, 42, 0.95));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.cn-highlight-box h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e5e7eb;
  margin-bottom: 0.7rem;
}

.cn-highlight-box ul {
  list-style: none;
  margin-bottom: 0.8rem;
}

.cn-highlight-box li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.4rem;
}

.cn-highlight-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #facc15;
}

.cn-highlight-note {
  font-size: 0.88rem;
  color: #9ca3af;
}

/* ─────────────────────────────────────────────
   CARDS – LANZAMIENTOS / SOCIAL
   ───────────────────────────────────────────── */
.cn-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.cn-card {
  padding: 1.2rem 1.1rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid rgba(248, 250, 252, 0.07);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.08), #020617);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cn-card-tag {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.cn-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f9fafb;
}

.cn-card-subtitle {
  font-size: 0.9rem;
  color: #d1d5db;
}

.cn-card-footer {
  margin-top: 0.7rem;
}

.cn-card-footer .cn-btn {
  width: 100%;
  font-size: 0.85rem;
}

/* main links row */
.cn-main-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.3rem;
}

.cn-main-link-btn {
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(252, 211, 77, 0.8);
  background: radial-gradient(circle at top left, rgba(252, 211, 77, 0.32), #020617);
  color: #facc15;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cn-main-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.5);
}

/* social grid */
.cn-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.cn-social-card {
  padding: 1rem 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.3), #020617);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cn-social-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f9fafb;
}

.cn-social-handle {
  font-size: 0.87rem;
  color: #cbd5f5;
}

.cn-social-card a {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #facc15;
  text-decoration: none;
}

/* ─────────────────────────────────────────────
   NEWSLETTER
   ───────────────────────────────────────────── */
.cn-newsletter {
  background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
}

.cn-newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.cn-form-card {
  padding: 1.6rem 1.7rem 1.8rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(248, 250, 252, 0.1);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), #020617);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

.cn-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.cn-field span {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.cn-field input {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.6rem 0.8rem;
  color: #f9fafb;
  font-size: 0.95rem;
}

.cn-field input::placeholder {
  color: #6b7280;
}

.cn-field input:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.6);
}

.cn-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.4rem 0 1.1rem;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.cn-checkbox input {
  margin-top: 0.12rem;
}

.cn-form-footnote {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.cn-form-success {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  color: #bbf7d0;
}

.cn-form-error {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  color: #fecaca;
}

.hidden {
  display: none;
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.cn-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.4rem 0 1.6rem;
  background: #020617;
}

.cn-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

.cn-footer-note {
  color: #6b7280;
}

/* ─────────────────────────────────────────────
   GALLERY & IMAGES
   ───────────────────────────────────────────── */
.cn-hero-media {
  padding: 1.1rem 1.5rem 0.6rem;
}

.cn-hero-photo {
  width: 100%;
  border-radius: 1.2rem;
  object-fit: cover;
  max-height: 260px;
}

.cn-highlight-image-wrap {
  margin-bottom: 0.9rem;
  border-radius: 1rem;
  overflow: hidden;
}

.cn-highlight-image {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 220px;
}

.cn-gallery {
  background: radial-gradient(circle at top, #020617 0, #000 60%);
}

.cn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cn-gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.cn-gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 170px;
}

.cn-gallery-item figcaption {
  padding: 0.6rem 0.7rem 0.8rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .cn-hero-grid,
  .cn-section-grid,
  .cn-newsletter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cn-hero-grid {
    gap: 2.3rem;
  }

  .cn-hero-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .cn-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cn-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cn-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cn-header-inner {
    padding-inline: 1rem;
  }
}

@media (max-width: 720px) {
  .cn-nav {
    display: none;
  }

  .cn-hero {
    padding-top: 4.1rem;
  }

  .cn-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cn-social-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cn-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cn-section {
    padding-inline: 0;
  }
}
/* ─────────────────────────────────────────────
   FLOTANTES – BOTONES DE REDES
   ───────────────────────────────────────────── */
.cn-floating-social {
  position: fixed;
  top: 50%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.cn-float-btn {
  background: #facc15;
  color: #111;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: 0.2s;
}

.cn-float-btn:hover {
  background: #fde047;
  transform: scale(1.07);
}

/* ─────────────────────────────────────────────
   GALERÍA – IMÁGENES CLICABLES
   ───────────────────────────────────────────── */
.cn-gallery-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────
   TEXTOS JUSTIFICADOS
   ───────────────────────────────────────────── */
p,
li,
figcaption {
  text-align: justify;
}
