/*
  Archivo Insolito - Recurso gratuito editable
  Identidad visual: negro editorial + dorado + tipografia serif
  Creada por Aguilar Forge
  Web: [aguilarforge.com]
*/
:root {
  --bg: #0e1016;
  --surface: #141822;
  --surface-soft: #111420;
  --surface-hero: #0a0c12;
  --text: #ede9e0;
  --text-heading: #f5f0e6;
  --muted: #8e9ab2;
  --primary: #c8952e;
  --primary-dark: #a67820;
  --primary-glow: rgba(200, 149, 46, 0.14);
  --border: #1f2738;
  --border-accent: rgba(200, 149, 46, 0.4);
  --radius: 4px;
  --shadow: 0 8px 28px rgba(2, 4, 10, 0.65);
  --shadow-card: 0 4px 16px rgba(2, 4, 10, 0.55);
}

html {
  overflow-x: clip;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-heading);
  line-height: 1.18;
}

a {
  color: inherit;
}

/* ─── Layout ─── */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #10131e 0%, var(--surface-soft) 100%);
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 16, 22, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--primary);
}

/* ─── Hero ─── */

.hero {
  background:
    linear-gradient(to right, rgba(8, 10, 16, 0.88) 0%, rgba(8, 10, 16, 0.6) 42%, rgba(8, 10, 16, 0.22) 100%),
    url('assets/fondo-hero.png') center 30% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--primary);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
}

.lead,
.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.3rem;
  line-height: 1.7;
}

.cta-row {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 0.78rem 1.35rem;
  border: 2px solid transparent;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: #0e1016;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--primary-glow);
}

/* ─── Superficies compartidas ─── */

.support-card,
.card,
.trust-item,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ─── Support card (hero aside) ─── */

.support-card {
  padding: 1.6rem;
  border-top: 2px solid var(--primary);
}

.support-card h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.support-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.support-card ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.support-card ul li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

/* ─── Support card en hero: baja para destapar lampara (desktop) ─── */
.hero-grid > aside {
  align-self: end;
  margin-bottom: 1.2rem;
}

/* ─── Titulos de seccion con linea decorativa ─── */

.section > .container > h2,
.section-soft > .container > h2 {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-accent);
  margin-bottom: 1.4rem;
}

/* ─── Cards de casos/articulos ─── */

.cards-grid {
  margin-top: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 1.4rem;
  border-top: 2px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(2, 4, 10, 0.7), 0 0 0 1px var(--border-accent);
  transform: translateY(-2px);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
}

.card h3 {
  font-size: 0.96rem;
  margin-bottom: 0;
  line-height: 1.35;
}

.card p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
  flex: 1;
}

.card-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  align-self: flex-start;
  margin-top: auto;
}

.card-link::after {
  content: " →";
}

.card-link:hover,
.card-link:focus-visible {
  text-decoration: underline;
}

/* ─── Categorias (trust-list) ─── */

.trust-list {
  margin-top: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item {
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  border-left: 3px solid var(--primary);
}

.trust-item h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.trust-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

/* ─── Contact (conservado para compatibilidad) ─── */

.contact-grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-card a {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ─── Video placeholder ─── */

.video-placeholder {
  margin-top: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #08090e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border);
  padding: 2rem;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid var(--border-accent);
  border-radius: 2px;
  pointer-events: none;
}

.video-frame-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
  padding-left: 0.2rem;
}

.video-frame-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-weight: 700;
}

.video-frame p {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  max-width: 52ch;
  overflow-wrap: break-word;
}

.video-placeholder-footer {
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.video-placeholder-footer p {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* ─── Newsletter / Club ─── */

.newsletter-box {
  margin-top: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  max-width: 52ch;
}

.newsletter-box > p {
  color: var(--muted);
  font-size: 0.95rem;
}

.newsletter-form {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.newsletter-form label {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.newsletter-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.72rem 0.9rem;
  background: #0a0d14;
  color: var(--text);
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.newsletter-form input::placeholder {
  color: #5a6880;
}

.form-note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

/* ─── Footer ─── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 2.8rem;
  background: var(--surface-hero);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--primary);
}

/* Firma Aguilar Forge ─ centrada, ancho completo, siempre presente */
.footer-credit {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.footer-credit a {
  color: var(--primary);
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* ─── Responsive ─── */

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

  .hero-grid > aside {
    align-self: auto;
    margin-bottom: 0;
  }

  .cards-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .trust-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .menu {
    flex-wrap: wrap;
  }

  .section {
    padding: 3rem 0;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn,
  .newsletter-form .btn,
  .contact-grid,
  .cards-grid {
    width: 100%;
  }

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

  .newsletter-box {
    max-width: 100%;
  }

  .video-frame {
    aspect-ratio: unset;
    min-height: 220px;
  }
}
