@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  color-scheme: only light;
  --red: #C83036;
  --red-dark: #A82028;
  --charcoal: #1C1C1E;
  --gray: #6B7280;
  --gray-lt: #D1D5DB;
  --bg: #F7F7F7;
  --white: #FFFFFF;
  --font-h: "Plus Jakarta Sans", sans-serif;
  --font-b: "Inter", sans-serif;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0, 0, 0, .07);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .10);
  --trans: all .28s ease;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-b);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased
}

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

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

ul {
  list-style: none
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.2
}

/* ── Utilities */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px
}

.s-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px
}

.s-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 14px
}

.s-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.75
}

.s-head {
  text-align: center;
  margin-bottom: 56px
}

.s-head .s-sub {
  margin: 0 auto
}

/* ── TOP BAR */
.top-bar {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .75);
  font-size: .8rem;
  display: none
}

@media(min-width:768px) {
  .top-bar {
    display: block
  }
}

.top-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 18px
}

.top-item {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--trans)
}

.top-item:hover {
  color: #fff
}

.top-badge {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px
}

.top-badge i {
  color: var(--red)
}

.top-social {
  display: flex;
  gap: 14px
}

.top-social a {
  color: rgba(255, 255, 255, .55);
  transition: var(--trans)
}

.top-social a:hover {
  color: var(--red)
}

/* ── HEADER */
.raly-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 48, 54, 0.15);
  box-shadow: none;
  transition: var(--trans)
}

.raly-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  border-bottom-color: transparent
}

.raly-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--trans)
}

.raly-header.scrolled .raly-nav {
  height: 64px
}

.raly-logo {
  flex-shrink: 0
}

.logo-img {
  height: 46px;
  width: auto;
  transition: var(--trans)
}

.raly-header.scrolled .logo-img {
  height: 40px
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--gray);
  transition: var(--trans)
}

.nav-link:hover {
  color: var(--charcoal)
}

.nav-link.active {
  color: var(--red)
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px
}

.nav-link:hover::after {
  width: 75%
}

.nav-link.active::after {
  width: 75%
}

.btn-res-nav {
  margin-left: 14px;
  background: var(--red);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: .86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--trans);
  box-shadow: 0 4px 14px rgba(200, 48, 54, .25)
}

.btn-res-nav:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 48, 54, .4)
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 3px;
  transition: var(--trans)
}

/* ── HERO */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .85) 38%, rgba(255, 255, 255, .40) 62%, rgba(255, 255, 255, 0) 100%);
  z-index: 1
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 28px 48px
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px
}

.hero-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red)
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -.02em
}

.hero-title span {
  color: var(--red)
}

.hero-sub {
  color: var(--charcoal);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 500px;
  margin-bottom: 38px;
  line-height: 1.75
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 14px 30px;
  border-radius: 7px;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: var(--trans);
  border: none;
  cursor: pointer
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 48, 54, .3)
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(28, 28, 30, .35);
  padding: 14px 30px;
  border-radius: 7px;
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: var(--trans)
}

.btn-outline:hover {
  border-color: var(--charcoal);
  background: rgba(28, 28, 30, .06)
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(28, 28, 30, .35);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase
}

.hero-scroll span {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(28, 28, 30, .4), transparent);
  display: block;
  animation: scrollAnim 2s ease infinite
}

@keyframes scrollAnim {

  0%,
  100% {
    opacity: .3;
    transform: scaleY(.7)
  }

  50% {
    opacity: 1;
    transform: scaleY(1)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.afu {
  animation: fadeUp .7s both
}

.d1 {
  animation-delay: .1s
}

.d2 {
  animation-delay: .22s
}

.d3 {
  animation-delay: .36s
}

/* ── STATS */
.stats {
  background: var(--white);
  border-bottom: 1px solid #EBEBEB
}

.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.stat {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid #EBEBEB
}

.stat:last-child {
  border-right: none
}

.stat-n {
  font-family: var(--font-h);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red);
  display: block;
  line-height: 1
}

.stat-l {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  margin-top: 6px;
  display: block
}

/* ── QUICK ACCESS */
.quick {
  padding: 88px 0;
  background: var(--bg)
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.qa-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid #EBEBEB;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px)
}

.qa-card.in {
  opacity: 1;
  transform: none
}

.qa-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px)
}

.qa-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0
}

.qa-card.c1 .qa-icon {
  background: #FEF2F2;
  color: var(--red)
}

.qa-card.c2 .qa-icon {
  background: #F1F5F9;
  color: #475569
}

.qa-card.c3 .qa-icon {
  background: #FFFBEB;
  color: #B45309
}

.qa-card.c4 .qa-icon {
  background: #FEF2F2;
  color: var(--red-dark)
}

.qa-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal)
}

.qa-card p {
  font-size: .87rem;
  color: var(--gray);
  flex: 1;
  line-height: 1.65
}

.qa-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px
}

.qa-card:hover .qa-more {
  gap: 10px
}

/* ── WHY RALY */
.why {
  padding: 88px 0;
  background: var(--white)
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start
}

.why-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md)
}

.why-img img {
  width: 100%;
  height: 420px;
  object-fit: cover
}

.why-text .s-sub {
  margin-bottom: 36px
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px
}

.feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .5s ease, transform .5s ease
}

.feat.in {
  opacity: 1;
  transform: none
}

.feat-icon {
  width: 38px;
  height: 38px;
  background: #FEF2F2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: .95rem;
  flex-shrink: 0;
  margin-top: 2px
}

.feat h4 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px
}

.feat p {
  font-size: .84rem;
  color: var(--gray);
  line-height: 1.6
}

/* ── CARDS STRIP (Pruebas / Promos / Tecnología) */
.strip {
  padding: 0 0 88px;
  background: var(--white)
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px
}

.strip-card {
  border: 1px solid #EBEBEB;
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--trans)
}

.strip-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow)
}

.strip-card i {
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 14px
}

.strip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px
}

.strip-card p {
  font-size: .86rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 14px
}

.strip-card a {
  font-size: .83rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 5px
}

/* ── BRANCH BAND */
.branch {
  background: var(--bg);
  border-top: 1px solid #EBEBEB;
  border-bottom: 1px solid #EBEBEB;
  padding: 52px 0
}

.branch-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap
}

.branch-txt h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 5px
}

.branch-txt p {
  font-size: .9rem;
  color: var(--gray)
}

.btn-branch {
  background: var(--red);
  color: #fff;
  padding: 13px 26px;
  border-radius: 7px;
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--trans);
  white-space: nowrap
}

.btn-branch:hover {
  background: var(--red-dark)
}

/* ── JOIN */
.join {
  padding: 52px 0;
  background: var(--white)
}

.join-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 36px;
  border: 1px solid #EBEBEB
}

.join-icon {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: #FEF2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red);
  flex-shrink: 0
}

.join-txt {
  flex: 1;
  min-width: 180px
}

.join-txt h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px
}

.join-txt p {
  font-size: .86rem;
  color: var(--gray)
}

/* ── APP */
.app {
  padding: 88px 0;
  background: var(--bg)
}

.app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

.app-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px
}

.app-badge-img {
  height: 42px;
  border-radius: 7px;
  transition: var(--trans)
}

.app-badge-img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.app-visual {
  background: var(--white);
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-md)
}

.app-visual i {
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 16px
}

.app-visual p {
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.7
}

.app-visual strong {
  color: var(--charcoal)
}

/* ── FOOTER */
.raly-footer {
  background: var(--charcoal)
}

.footer-top {
  padding: 60px 0
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px
}

.footer-logo-wrap {
  margin-bottom: 16px;
  background: #fff;
  display: inline-block;
  padding: 7px 14px;
  border-radius: 7px
}

.footer-logo-wrap img {
  height: 40px;
  width: auto
}

.footer-brand p {
  font-size: .84rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.8;
  margin-bottom: 18px
}

.f-social {
  display: flex;
  gap: 9px
}

.f-social a {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
  transition: var(--trans)
}

.f-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff
}

.footer-col h4 {
  font-family: var(--font-h);
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.f-links {
  display: flex;
  flex-direction: column;
  gap: 9px
}

.f-links a {
  font-size: .84rem;
  color: rgba(255, 255, 255, .45);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--trans)
}

.f-links a:hover {
  color: #fff
}

.f-links i {
  font-size: .72rem;
  color: var(--red);
  flex-shrink: 0
}

.f-contact {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.f-contact li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: .84rem;
  color: rgba(255, 255, 255, .45)
}

.f-contact i {
  color: var(--red);
  margin-top: 3px;
  flex-shrink: 0
}

.f-contact a {
  color: rgba(255, 255, 255, .45);
  transition: var(--trans)
}

.f-contact a:hover {
  color: #fff
}

.btn-f-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: .83rem;
  font-weight: 600;
  transition: var(--trans)
}

.btn-f-contact:hover {
  background: var(--red-dark)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 16px 0
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(255, 255, 255, .28)
}

.footer-bottom a {
  color: rgba(255, 255, 255, .35);
  transition: var(--trans)
}

.footer-bottom a:hover {
  color: var(--red)
}

/* ── MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.modal-overlay.on {
  display: flex
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 38px;
  max-width: 460px;
  width: 100%;
  position: relative;
  border-top: 3px solid var(--red)
}

.modal-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px
}

.modal-box h3 i {
  color: var(--red)
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray)
}

.f-group {
  margin-bottom: 13px
}

.f-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--gray-lt);
  border-radius: 7px;
  font-size: .89rem;
  font-family: var(--font-b);
  color: var(--charcoal);
  outline: none;
  transition: var(--trans)
}

.f-input:focus {
  border-color: var(--red)
}

.f-file-lbl {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .86rem;
  color: var(--gray);
  cursor: pointer
}

.f-file-lbl input {
  display: none
}

.btn-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  padding: 12px;
  border-radius: 7px;
  border: none;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  margin-top: 6px;
  transition: var(--trans)
}

.btn-submit:hover {
  background: var(--red-dark)
}

/* ── COOKIES */
.cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: rgba(255, 255, 255, .8);
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 8000;
  flex-wrap: wrap;
  font-size: .83rem
}

.cookies a {
  color: var(--red)
}

.btn-cookie {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  font-size: .83rem
}

/* ── TRANSITIONS for reveal */
.qa-card,
.feat,
.strip-card,
.footer-col {
  transition: opacity .5s ease, transform .5s ease, border-color .28s ease, box-shadow .28s ease
}

/* ── RESPONSIVE */
@media(max-width:1024px) {
  .why-layout {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px
  }

  .app-inner {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr)
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid #EBEBEB
  }

  .stat:nth-child(3),
  .stat:last-child {
    border-bottom: none
  }

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

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

@media(max-width:768px) {
  .hero-bg {
    background-position: 75% center
  }

  .hero-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 45%, rgba(255, 255, 255, 0) 100%)
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 12px;
    z-index: 800;
    border-top: 1px solid rgba(0, 0, 0, 0.05)
  }

  .nav-menu.open {
    display: flex
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 12px 24px;
    color: var(--charcoal)
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
  }

  .btn-res-nav {
    display: none
  }

  .nav-toggle {
    display: flex
  }

  .qa-grid {
    grid-template-columns: 1fr
  }

  .strip-grid {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .branch-inner,
  .join-inner {
    flex-direction: column;
    text-align: center
  }

  .hero-btns {
    flex-direction: column
  }

  .btn-primary,
  .btn-outline {
    justify-content: center
  }
}

/* ── INNER PAGES ── */
.inner-hero {
  position: relative;
  padding: 140px 0 100px;
  background-size: cover;
  background-position: center 25%;
  background-color: var(--charcoal);
}
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,.95) 0%, rgba(255,255,255,.5) 100%);
  z-index: 1
}
.inner-hero .wrap {
  position: relative;
  z-index: 2
}
.about-page {
  background: var(--white);
  border-top: 4px solid var(--red);
}
@media(max-width:1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    display: flex !important;
    flex-direction: column-reverse;
  }
  .contact-grid > div {
    width: 100%;
  }
}

/* ── LOCATIONS & MAPS ── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.location-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.location-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.loc-img-wrap {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.loc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.location-card:hover .loc-img {
  transform: scale(1.05);
}
.loc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(244,54,57,0.4);
}
.loc-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.loc-title {
  color: var(--charcoal);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.loc-address {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}
.loc-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.loc-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.loc-btn-call {
  background: rgba(244,54,57,0.1);
  color: var(--red);
}
.loc-btn-call:hover {
  background: var(--red);
  color: #fff;
}
.loc-btn-map {
  background: var(--bg);
  color: var(--charcoal);
}
.loc-btn-map:hover {
  background: var(--charcoal);
  color: #fff;
}

/* Map Modal */
.map-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.map-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.map-modal-content {
  background: var(--white);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.map-modal-overlay.active .map-modal-content {
  transform: scale(1);
}
.map-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--white);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.map-modal-close:hover {
  background: var(--red);
  color: #fff;
}
.map-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media(max-width:1024px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* ── ASEGURADORAS ── */
.ins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}
.ins-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  cursor: pointer;
  height: 140px;
  box-shadow: var(--shadow);
}
.ins-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray);
}
.ins-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.ins-card:hover img {
  transform: scale(1.05);
}

/* Generic Modal */
.generic-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.generic-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.generic-modal-content {
  background: var(--white);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.generic-modal.active .generic-modal-content {
  transform: scale(1) translateY(0);
}
.g-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--bg);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--trans);
}
.g-modal-close:hover {
  background: var(--red);
  color: #fff;
}
.g-modal-title {
  color: var(--charcoal);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.g-modal-body {
  color: var(--gray);
  line-height: 1.6;
  font-size: 1rem;
}
.g-modal-body ul {
  margin: 16px 0;
  padding-left: 20px;
}
.g-modal-body li {
  margin-bottom: 8px;
}
.g-modal-body strong {
  color: var(--charcoal);
}

/* ── FORM CONTROLS ── */
.raly-input {
  width: 100%;
  padding: 14px 18px;
  background: #f8f9fa;
  border: 2px solid #edf0f2;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--charcoal);
  transition: all 0.3s ease;
  font-family: inherit;
}
.raly-input:focus {
  background: var(--white);
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 4px rgba(244, 54, 57, 0.1);
}
.raly-input::placeholder {
  color: #adb5bd;
}
.raly-label {
  display: block;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.95rem;
}
.raly-form-group {
  margin-bottom: 22px;
}
@media(max-width:768px) {
  .about-images {
    grid-template-columns: 1fr !important;
  }
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 280px;
  display: flex;
  align-items: flex-end;
  transition: var(--trans);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img {
  transform: scale(1.06);
}
.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,30,.85) 0%, rgba(28,28,30,0) 70%);
  z-index: 1;
}
.service-title {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 24px;
  font-size: 1.15rem;
  font-weight: 700;
  width: 100%;
}
@media(max-width:1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── PROFILES & TESTS ── */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.profile-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
  transition: var(--trans);
  background: var(--white);
}
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.profile-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.profile-card:hover .profile-img {
  transform: scale(1.08);
}
.profile-title {
  color: var(--charcoal);
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--border);
  margin: 0;
  position: relative;
  z-index: 10;
}
.pruebas-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.prueba-item {
  background: var(--white);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
}
.prueba-item::before {
  content: '\f0c3';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--red);
  margin-right: 10px;
}
@media(max-width:1024px) {
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:768px) {
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:480px) {
  .profiles-grid { grid-template-columns: 1fr; }
}