/* ==========================================================================
   Cash Express Puerto Rico — Responsive Stylesheet
   ========================================================================== */

:root {
  --black:   #000000;
  --yellow:  #FFEA00;
  --dark:    #1a1a1a;
  --gray:    #2c2c2c;
  --light:   #f5f5f5;
  --white:   #ffffff;
  --muted:   #999999;
  --radius:  6px;
  --trans:   0.2s ease;
  --shadow:  0 2px 12px rgba(0,0,0,0.15);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--light); color: var(--dark); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-brand strong {
  color: var(--yellow);
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.nav-brand span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.nav-menu {
  display: flex;
  gap: 0.2rem;
}
.nav-menu a {
  color: #ccc;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: var(--yellow);
  color: var(--black);
  font-weight: bold;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--yellow); color: var(--black); }

@media (max-width: 620px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.2rem;
    border-top: 3px solid var(--yellow);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 0.75rem 1rem; font-size: 0.95rem; border-radius: var(--radius); }
}

/* ── Banner de Logos (gráficas superiores del sitio original) ───────────── */
.logo-banner {
  background: var(--black);
  padding: 0.75rem 1rem 0;
}
.logo-banner .lb-frame {
  position: relative;
  max-width: 908px;
  margin: 0 auto;
  aspect-ratio: 908 / 206;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.logo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.logo-banner img.is-active { opacity: 1; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--black);
  background-image: linear-gradient(135deg, #000 60%, #1a1400 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1rem;
  border-bottom: 4px solid var(--yellow);
}
.hero--photo {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1rem;
}
.hero--photo .hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -55%;
  bottom: -10%;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.68) 45%, rgba(0,0,0,0.88) 100%),
    url('../Lomita4423.jpg');
  background-size: cover;
  background-position: center 32%;
  will-change: transform;
}
.hero--photo > *:not(.hero-bg) { position: relative; }
.hero--photo p { color: #ddd; }
.hero h1 {
  color: var(--yellow);
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: bold;
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: transform var(--trans), box-shadow var(--trans);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,234,0,0.35);
}

/* ── Section Shell ───────────────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.section-title span {
  border-bottom: 4px solid var(--yellow);
  padding-bottom: 3px;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
}

/* Dark-bg section overrides */
.bg-dark { background: var(--dark); }
.bg-black { background: var(--black); }
.bg-yellow { background: var(--yellow); }

.bg-dark  .section-title,
.bg-black .section-title { color: var(--white); }
.bg-dark  .section-title span,
.bg-black .section-title span { color: var(--yellow); }
.bg-dark  .section-sub,
.bg-black .section-sub { color: #777; }
.bg-yellow .section-title { color: var(--black); }
.bg-yellow .section-title span { color: var(--black); border-bottom-color: var(--black); }
.bg-yellow .section-sub { color: #444; }

/* ── Services Grid ───────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 600px)  { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.svc-card {
  background: var(--gray);
  border: 1px solid #3a3a3a;
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  color: var(--white);
  transition: transform var(--trans), border-color var(--trans);
}
.svc-card:hover { transform: translateY(-3px); }
.svc-card .icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.svc-card h3 { font-size: 0.9rem; font-weight: bold; color: var(--yellow); margin-bottom: 0.25rem; }
.svc-card p { font-size: 0.78rem; color: #aaa; line-height: 1.45; }

/* ── Store Cards Grid ────────────────────────────────────────────────────── */
.stores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px)  { .stores-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .stores-grid { grid-template-columns: repeat(3, 1fr); } }

.store-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.sc-head {
  background: var(--black);
  color: var(--yellow);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.3px;
}
.sc-photo {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--dark);
}
.sc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.store-card:hover .sc-photo img { transform: scale(1.06); }
.sc-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}
.sc-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sc-phone {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--dark);
}
.sc-phone a { color: var(--dark); }
.sc-phone a:hover { color: var(--black); }
.sc-address { font-size: 0.82rem; color: #666; line-height: 1.5; }
.sc-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.15rem 0.6rem;
  border-radius: 2rem;
  margin-top: 0.25rem;
  width: fit-content;
}
.sc-foot {
  padding: 0.75rem 1rem;
  border-top: 1px solid #eee;
}
.sc-foot a {
  display: block;
  text-align: center;
  background: var(--yellow);
  color: var(--black);
  font-weight: bold;
  padding: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  transition: background var(--trans), color var(--trans);
}
.sc-foot a:hover { background: var(--dark); color: var(--yellow); }

/* ── Flujo Préstamo por Título (workflow animado) ───────────────────────── */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.flow-step {
  background: var(--gray);
  border: 1px solid #3a3a3a;
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.6rem 1.1rem 1.3rem;
  color: var(--white);
  position: relative;
}
.flow-num {
  position: absolute;
  top: -16px;
  left: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.flow-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.flow-step h3 { color: var(--yellow); font-size: 0.95rem; margin-bottom: 0.35rem; }
.flow-step p { font-size: 0.8rem; color: #aaa; line-height: 1.5; }
.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -1.55rem;
  transform: translateY(-50%);
  color: var(--yellow);
  font-size: 1.5rem;
  display: none;
}
@media (min-width: 700px) {
  .flow-step:not(:last-child)::after { display: block; }
}
.flow-cta {
  margin-top: 2.25rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.flow-link { color: var(--yellow); font-size: 0.9rem; font-weight: bold; }
.flow-link:hover { text-decoration: underline; }

/* ── Sobre Nosotros ──────────────────────────────────────────────────────── */
.about-text {
  max-width: 760px;
}
.about-text p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}
.about-text a { color: var(--black); font-weight: bold; border-bottom: 2px solid var(--yellow); }
.about-text a:hover { background: var(--yellow); }
.about-text--dark p { color: #333; }
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.about-vm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) { .about-vm { grid-template-columns: repeat(2, 1fr); } }
.about-vm .svc-card p { font-size: 0.9rem; line-height: 1.6; }
.about-values .svc-card p { font-size: 0.82rem; }
.about-list {
  max-width: 760px;
  display: grid;
  gap: 0.6rem;
}
.about-list li {
  background: var(--white);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem 1.1rem;
  font-size: 0.92rem;
}
.about-cta { text-align: left; }

/* ── Números Ganadores Lotería (levittown.html) ─────────────────────────── */
.loto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px)  { .loto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .loto-grid { grid-template-columns: repeat(4, 1fr); } }

.loto-card {
  background: var(--gray);
  border: 1px solid #3a3a3a;
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.loto-game {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--yellow);
}
.loto-game--sub { color: #ccc; font-size: 0.75rem; margin-top: 0.4rem; }
.loto-pega-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-top: 0.3rem;
}
.loto-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.loto-ball {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-weight: bold;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2);
}
.loto-ball--red    { background: #d32f2f; color: var(--white); }
.loto-ball--yellow { background: var(--yellow); color: var(--black); }
.loto-ball--pink   { background: #e91e8c; color: var(--white); }
.loto-ball--green  { background: #2e9e44; color: var(--white); }
.loto-ball--mult   { background: transparent; color: var(--yellow); border: 2px dashed #555; box-shadow: none; }
.loto-date {
  font-size: 0.75rem;
  color: #888;
  margin-top: auto;
  padding-top: 0.5rem;
}
.loto-jackpot {
  background: var(--black);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-weight: bold;
  color: var(--yellow);
  font-size: 1rem;
}
.loto-jackpot span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
}
.loto-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #777;
}
.loto-disclaimer a { color: var(--yellow); }
.loto-disclaimer a:hover { text-decoration: underline; }

/* ── Efectos de scroll (js/ce-effects.js) ───────────────────────────────── */
.fx-hidden {
  opacity: 0;
  transform: translateY(56px) scale(0.94);
}
.fx-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.store-card { transform-style: preserve-3d; }

/* ── Payment Tags ────────────────────────────────────────────────────────── */
.pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.pay-tag {
  background: var(--gray);
  color: var(--yellow);
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.83rem;
  font-weight: bold;
  border: 1px solid #444;
}

/* ── Contact Section ─────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-card {
  background: var(--black);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--white);
  transition: transform var(--trans);
}
.contact-card:hover { transform: translateY(-3px); }
.cc-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.cc-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.cc-value { font-size: 1.1rem; font-weight: bold; }
.cc-value a { color: var(--white); transition: color var(--trans); }
.cc-value a:hover { color: var(--yellow); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: #555;
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: 0.8rem;
  border-top: 4px solid var(--yellow);
}
.site-footer a { color: var(--yellow); }
.site-footer a:hover { text-decoration: underline; }
.footer-links { margin-top: 0.5rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Store Page Header ───────────────────────────────────────────────────── */
.store-pg-header {
  background: var(--black);
  color: var(--white);
  padding: 2rem 1rem 2.25rem;
  border-bottom: 4px solid var(--yellow);
}
.store-pg-header .inner {
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--yellow); }
.breadcrumb a:hover { text-decoration: underline; }
.store-pg-header h1 {
  color: var(--yellow);
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  margin-bottom: 0.4rem;
}
.store-pg-phone {
  font-size: 1.6rem;
  font-weight: bold;
}
.store-pg-phone a { color: var(--white); transition: color var(--trans); }
.store-pg-phone a:hover { color: var(--yellow); }

/* ── Store Content ───────────────────────────────────────────────────────── */
.store-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px)  { .store-wrap { grid-template-columns: 5fr 7fr; } }
@media (min-width: 1024px) { .store-wrap { grid-template-columns: 2fr 3fr; } }

/* ── Store Info Panel ────────────────────────────────────────────────────── */
.info-panel h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--black);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--yellow);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--dark);
  color: #ccc;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  transition: background var(--trans), color var(--trans);
}
.back-link:hover { background: var(--black); color: var(--yellow); }

.store-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-bottom: 4px solid var(--yellow);
}
.store-photo img { width: 100%; display: block; }

.alert-box {
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
}
.alert-box a { color: var(--black); text-decoration: underline; }

.addr-box {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}
.addr-box .addr-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}
.addr-box p { font-size: 0.9rem; line-height: 1.55; }
.addr-box .addr-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
}

/* ── Hours Table ─────────────────────────────────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
}
.hours-table thead th {
  background: var(--dark);
  color: var(--yellow);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hours-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .day { font-weight: bold; color: var(--dark); width: 40%; }
.hours-table .closed { color: #c0392b; font-weight: bold; }
.hours-table tr:hover td { background: #f8f8f8; }

/* ── Services Tags ───────────────────────────────────────────────────────── */
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.svc-tag {
  background: var(--black);
  color: var(--yellow);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: bold;
}

/* ── Map Container ───────────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
  position: sticky;
  top: 80px;
}
.map-wrap iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}
@media (max-width: 767px) {
  .map-wrap { position: static; }
  .map-wrap iframe { height: 320px; }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.svc-link { color: var(--yellow); }
.svc-link:hover { text-decoration: underline; }
.footer-social { color: var(--yellow); font-weight: bold; }
.footer-social:hover { text-decoration: underline; }
.footer-copy { margin-top: 0.5rem; }
