/* Rubén Treviño landing — TM Seguros dark premium */
:root {
  --bg: #0b1220;
  --bg-2: #101827;
  --panel: #151f33;
  --panel-2: #1b263d;
  --text: #f6f1e8;
  --muted: #aeb7c6;
  --soft: #d6dce7;
  --accent: #c87532;
  --accent-2: #f28a3d;
  --line: rgba(255,255,255,.12);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-dark {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(200,117,50,.65);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: rgba(200,117,50,.08);
}

.brand-text {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 140px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(200,117,50,.16), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(242,138,61,.08), transparent 28%),
    var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    linear-gradient(rgba(11,18,32,.7), rgba(11,18,32,.95)),
    url("assets/hero-texture.jpg");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -220px;
  top: 90px;
  border: 1px solid rgba(200,117,50,.15);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .72fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: .94;
  letter-spacing: -.06em;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

.hero-lead {
  max-width: 760px;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #180f08;
  background: linear-gradient(135deg, var(--accent-2), #d77a32);
  box-shadow: 0 16px 38px rgba(242,138,61,.25);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

.trust-line span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.03);
}

.hero-portrait-card {
  min-height: 540px;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-portrait-card img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.05);
}

.hero-portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(11,18,32,.92) 100%);
}

.portrait-fallback {
  display: none;
}

.hero-portrait-card.no-photo {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}

.hero-portrait-card.no-photo::after {
  display: none;
}

.hero-portrait-card.no-photo .portrait-fallback {
  display: block;
}

.portrait-fallback span {
  display: block;
  font-size: 32px;
  font-weight: 900;
}

.portrait-fallback small {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 52px;
}

.rich-text {
  color: var(--soft);
  font-size: 19px;
}

.rich-text p {
  margin-bottom: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cards-grid.four {
  margin-top: 34px;
}

.card,
.service-card,
.about-card,
.fact,
.statement-box,
.cta-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.card {
  padding: 28px;
  border-radius: 24px;
}

.card p,
.service-card p,
.section-heading p,
.about-card p,
.statement-box p,
.cta-box p {
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  border: 1px solid rgba(200,117,50,.4);
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 900;
}

.statement {
  background:
    linear-gradient(rgba(11,18,32,.82), rgba(11,18,32,.82)),
    radial-gradient(circle at center, rgba(200,117,50,.22), transparent 52%);
}

.statement-box {
  max-width: 940px;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
}

.statement-box p {
  font-size: 20px;
}

.section-heading {
  max-width: 780px;
  text-align: center;
  margin-bottom: 48px;
}

.service-card {
  padding: 34px;
  min-height: 260px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--accent-2), transparent);
  opacity: .9;
}

.about {
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg)),
    radial-gradient(circle at 15% 20%, rgba(200,117,50,.14), transparent 30%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 30px;
  align-items: stretch;
}

.about-card {
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 62px);
}

.facts {
  display: grid;
  gap: 18px;
}

.fact {
  border-radius: 22px;
  padding: 24px;
}

.fact span {
  color: var(--accent-2);
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 8px;
}

.fact strong {
  display: block;
  font-size: 18px;
}

.cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(242,138,61,.18), transparent 38%),
    var(--bg);
  text-align: center;
}

.cta-box {
  border-radius: 36px;
  padding: clamp(38px, 7vw, 82px);
  max-width: 980px;
}

.cta-box h2 {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 19px;
  margin-bottom: 34px;
}

.contact-row {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.contact-row a:hover {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  background: #080d18;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-grid a {
  color: var(--accent-2);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(11,18,32,.96);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }

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

  .nav a {
    padding: 14px;
  }

  .hero-grid,
  .split,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait-card {
    min-height: 420px;
  }

  .hero-portrait-card img {
    min-height: 420px;
  }

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

  .section {
    padding: 86px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    height: 68px;
    padding: 0 14px;
  }

  .brand-text {
    display: none;
  }

  .nav {
    top: 68px;
  }

  .hero {
    padding-top: 112px;
  }

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

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .trust-line span {
    width: 100%;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 36px;
  }

  .section {
    padding: 72px 0;
  }
}

/* Ajustes rediseño marca personal Rubén Treviño */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.company-card {
  min-height: 320px;
}

.company-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 22px;
  padding: 6px 11px;
  border: 1px solid rgba(200,117,50,.38);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(200,117,50,.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

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

  .company-card {
    min-height: auto;
  }
}
