/* ===================================================
   Y.ELECTRIC — Custom CSS
   Light, restrained, professional — minimal AI feel
   =================================================== */

:root {
  --grad-prism: linear-gradient(120deg, #ff3ea5 0%, #ff7a3d 22%, #ffd23d 38%, #3fd97f 55%, #3dc6ff 75%, #3d6dff 90%, #9c3dff 100%);
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01"; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== Nav ===== */
.glass-nav {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 4px 30px rgba(15,23,42,.05);
}
#site-header.scrolled .glass-nav {
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.nav-link { position: relative; padding-bottom: 2px; }
.nav-link::after {
  content: "";
  position: absolute; right: 0; bottom: -2px; height: 2px; width: 0;
  background: #0b1220; transition: width .3s ease;
}
.nav-link:hover { color: #0b1220; }
.nav-link:hover::after { width: 100%; }

/* ===== Headings ===== */
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #4b5563;
  text-transform: uppercase;
  padding-right: 2.4rem;
  position: relative;
}
.kicker::before {
  content: "";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2px;
  background: #0b1220;
}
.section-h2 {
  font-family: 'Assistant', 'Heebo', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #0b1220;
  margin-top: .9rem;
}
.section-sub {
  margin-top: 1rem;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 42rem;
}

/* Accent underline — soft, hand-drawn feel */
.accent-underline {
  position: relative;
  display: inline-block;
  color: #0b1220;
}
.accent-underline::after {
  content: "";
  position: absolute;
  right: -2px; left: -2px;
  bottom: 0.06em;
  height: 0.36em;
  background: #ffd23d;
  z-index: -1;
  border-radius: 0.2em;
  transform: skewY(-1deg);
  opacity: .85;
}
.accent-underline-light {
  position: relative; display: inline-block;
}
.accent-underline-light::after {
  content: "";
  position: absolute; right: -2px; left: -2px; bottom: 0.05em;
  height: 0.32em; background: #ffd23d; z-index: -1;
  border-radius: 0.2em; transform: skewY(-1deg); opacity: .85;
}

/* ===== Hero ===== */
.hero-bg {
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(255,210,61,.10) 0%, transparent 60%),
    radial-gradient(50% 40% at 20% 100%, rgba(61,109,255,.06) 0%, transparent 60%);
}

.hero-portrait-wrap { position: relative; max-width: 460px; margin-inline: auto; }
.hero-portrait {
  aspect-ratio: 4/5;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #eef0f6;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(15,23,42,.35);
}
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: inherit;
  pointer-events: none;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.02) saturate(.96);
}

.signature-tag {
  position: absolute;
  bottom: -16px;
  right: 16px;
  background: white;
  padding: .7rem 1.1rem;
  border-radius: .8rem;
  box-shadow: 0 16px 40px -10px rgba(15,23,42,.18);
  border: 1px solid rgba(15,23,42,.06);
}
.signature-name {
  font-family: 'Assistant', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0b1220;
}
.signature-role {
  font-size: .8rem;
  color: #6b7280;
  margin-top: 2px;
}

/* Stats (no emoji, no cards, clean numerical) */
.stat {
  position: relative;
  padding-right: 1rem;
}
.stat::before {
  content: "";
  position: absolute; right: 0; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(to bottom, transparent, #0b1220 30%, #0b1220 70%, transparent);
  opacity: .25;
}
.stat-num {
  font-family: 'Assistant', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0b1220;
  line-height: 1;
  display: flex; align-items: center; gap: .3rem;
}
.stat-label { font-size: .85rem; color: #6b7280; margin-top: .35rem; }

/* ===== CTA buttons ===== */
.cta-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25D366;
  color: white;
  padding: .95rem 1.5rem;
  border-radius: .85rem;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 10px 24px -10px rgba(37,211,102,.6);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.cta-primary:hover { background:#1ebd5a; transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(37,211,102,.7); }
.cta-primary svg { width: 1.25rem; height: 1.25rem; }

.cta-secondary {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #0b1220;
  color: white;
  padding: .95rem 1.5rem;
  border-radius: .85rem;
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform .25s ease, background .25s ease;
}
.cta-secondary:hover { background:#1f2937; transform: translateY(-2px); }
.cta-secondary svg { width: 1.2rem; height: 1.2rem; }

.cta-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #0b1220;
  padding: .9rem 1.2rem;
  border-radius: .85rem;
  font-weight: 700;
  font-size: 1.02rem;
  border: 1px solid rgba(15,23,42,.15);
  transition: all .25s ease;
}
.cta-ghost:hover { background: white; border-color: rgba(15,23,42,.3); transform: translateY(-2px); }

.cta-whatsapp-big, .cta-phone-big {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1.1rem 1.8rem; border-radius: 1rem; font-weight: 800; font-size: 1.1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta-whatsapp-big { background:#25D366; color:white; box-shadow: 0 14px 40px -10px rgba(37,211,102,.5); }
.cta-whatsapp-big:hover { background:#1ebd5a; transform: translateY(-2px); }
.cta-phone-big { background: rgba(255,255,255,.08); color:white; border: 1px solid rgba(255,255,255,.2); }
.cta-phone-big:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ===== Marquee ===== */
.marquee { overflow: hidden; }
.marquee-track { animation: scroll 32s linear infinite; }
.marquee-track .dot { color: #d1d5db; padding: 0 .25rem; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ===== Service cards (cleaner, no gradient halo) ===== */
.service-card {
  position: relative;
  background: white;
  border-radius: 1.2rem;
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(15,23,42,.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -25px rgba(15,23,42,.18);
  border-color: rgba(15,23,42,.16);
}
.service-card h3 { font-size: 1.18rem; font-weight: 800; color:#0b1220; margin-top: 1.1rem; line-height: 1.3; }
.service-card p { color:#4b5563; margin-top:.5rem; line-height: 1.6; font-size: .96rem; }
.service-list { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(15,23,42,.08); }
.service-list li {
  color: #374151; font-size: .9rem; padding: .3rem 0;
  position: relative; padding-right: 1.1rem;
}
.service-list li::before {
  content: ""; position: absolute; right: 0; top: 0.65rem;
  width: .35rem; height: .35rem; background: #0b1220; border-radius: 999px;
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: .9rem;
  display: flex; align-items: center; justify-content: center;
  color: #0b1220;
  background: #f3f5fb;
  border: 1px solid rgba(15,23,42,.08);
  transition: all .3s ease;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: #0b1220;
  color: white;
  border-color: #0b1220;
}

/* ===== Feature lines (about) ===== */
.feature-line {
  display: flex; align-items: center; gap: .6rem;
  background: white;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: .7rem;
  padding: .8rem 1rem;
  color: #1f2937;
  font-weight: 500;
}
.check {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: #0b1220;
  color: white;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.check svg { width: 13px; height: 13px; }

/* ===== About portrait ===== */
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #eef0f6;
  box-shadow: 0 30px 60px -30px rgba(15,23,42,.35);
  position: relative;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== Gallery ===== */
.filter-pill {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(15,23,42,.1);
  color: #374151;
  font-weight: 600;
  font-size: .94rem;
  transition: all .25s ease;
}
.filter-pill:hover { color: #0b1220; border-color: rgba(15,23,42,.25); }
.filter-pill.is-active {
  background: #0b1220;
  color: white;
  border-color: #0b1220;
  box-shadow: 0 10px 24px -10px rgba(15,23,42,.45);
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  background: #f3f5fb;
  cursor: zoom-in;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  isolation: isolate;
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(15,23,42,.25); }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
.gallery-item.is-hidden { display: none; }

.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.5) 100%);
  display: flex; align-items: center; justify-content: center;
}
.play-icon {
  width: 54px; height: 54px; border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #0b1220;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: white;
  border-radius: 1.2rem;
  padding: 1.6rem;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 6px 24px rgba(15,23,42,.04);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(15,23,42,.2); }
.stars { color: #ffb800; display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }
.testimonial-text { color: #1f2937; line-height: 1.7; margin-top: .8rem; font-size: 1rem; }
.testimonial-card footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(15,23,42,.08); color:#6b7280; font-size:.88rem; }
.t-name { color: #0b1220; font-weight: 700; }

/* ===== Areas / Map pins ===== */
.area-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: white;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: .7rem;
  padding: .8rem 1.1rem;
  color: #1f2937;
  font-weight: 600;
  transition: all .25s ease;
}
.area-pill:hover { transform: translateY(-2px); border-color: rgba(15,23,42,.25); }

.grid-bg {
  background-image:
    linear-gradient(rgba(15,23,42,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

.map-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 560px;
  margin-inline: auto;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #f3f5fb;
  box-shadow: 0 30px 60px -30px rgba(15,23,42,.25);
  ring: 1px solid rgba(15,23,42,.08);
  border: 1px solid rgba(15,23,42,.08);
}
.map-wrap iframe { width: 100%; height: 100%; }
.map-caption {
  position: absolute;
  bottom: .9rem; right: .9rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  color: #0b1220;
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15,23,42,.15);
  border: 1px solid rgba(15,23,42,.06);
  pointer-events: none;
}

.map-pin {
  position: absolute;
  transform: translate(50%, -100%);
  background: white;
  padding: .35rem .7rem;
  border-radius: .55rem;
  font-size: .8rem;
  font-weight: 700;
  color: #0b1220;
  box-shadow: 0 8px 20px rgba(15,23,42,.15);
  border: 1px solid rgba(15,23,42,.08);
  display: inline-flex; align-items: center; gap: .3rem;
  white-space: nowrap;
}
.map-pin::after {
  content: "";
  position: absolute;
  bottom: -6px; right: 50%; transform: translateX(50%);
  border: 5px solid transparent;
  border-top-color: white;
}

/* ===== Pricing ===== */
.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem;
  gap: 1rem;
  transition: background .25s ease;
}
.price-row:hover { background: rgba(15,23,42,.025); }
.price-label { display: flex; align-items: center; gap: 1rem; flex: 1; }
.price-label h3 { font-size: 1.02rem; font-weight: 700; color: #0b1220; }
.price-label p { color: #6b7280; font-size: .85rem; margin-top:.15rem; }
.price-icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3f5fb;
  color: #0b1220;
  border-radius: .65rem;
  border: 1px solid rgba(15,23,42,.06);
  flex-shrink: 0;
}
.price-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0b1220;
  background: white;
  padding: .55rem .9rem;
  border-radius: .65rem;
  border: 1px solid rgba(15,23,42,.1);
  white-space: nowrap;
}

/* ===== FAQ ===== */
.faq-item {
  background: white;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-item[open] {
  box-shadow: 0 16px 40px -20px rgba(15,23,42,.15);
  border-color: rgba(15,23,42,.18);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: #0b1220;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: #f3f5fb;
  color: #0b1220;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .3s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: #0b1220; color: white; }
.faq-body { padding: 0 1.4rem 1.4rem; color: #4b5563; line-height: 1.7; }

/* ===== Final CTA block ===== */
.cta-block {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  padding: 3rem 1.5rem;
  background: #0b1220;
  color: white;
  isolation: isolate;
}
@media (min-width: 768px) { .cta-block { padding: 4rem 3rem; } }
.cta-block::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 10% 20%, rgba(255,210,61,.10) 0%, transparent 50%),
    radial-gradient(50% 40% at 90% 80%, rgba(61,109,255,.18) 0%, transparent 50%);
}

/* ===== Floating WhatsApp FAB (authentic) ===== */
#wa-fab {
  position: fixed;
  bottom: 22px; left: 22px;
  width: 60px; height: 60px;
  border-radius: 999px;
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45), 0 4px 12px rgba(0,0,0,.12);
  z-index: 60;
  opacity: 0;
  transform: translateY(20px) scale(.8);
  transition: opacity .5s ease, transform .5s ease, background .25s ease, box-shadow .25s ease;
}
#wa-fab.show { opacity: 1; transform: none; }
#wa-fab:hover { background: #1ebd5a; box-shadow: 0 16px 40px rgba(37, 211, 102, .55), 0 4px 12px rgba(0,0,0,.18); }
.wa-fab-icon { width: 32px; height: 32px; }
.wa-fab-pulse {
  position: absolute; inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(37,211,102,.5);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(10px);
  z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.show { opacity: 1; }
.lightbox.hidden { display: none; }
.lightbox-content { max-width: min(96vw, 1100px); max-height: 90vh; display:flex; align-items:center; justify-content:center; }
.lightbox-content img, .lightbox-content video {
  max-width: 100%;
  max-height: 88vh;
  border-radius: .8rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem; left: 1rem;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: white;
  color: #0b1220;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden;
  position: absolute; white-space: nowrap;
}

/* ===== Mobile tweaks ===== */
@media (max-width: 640px) {
  .section-h2 { font-size: 2rem; }
  .cta-primary, .cta-secondary, .cta-ghost { width: 100%; justify-content: center; }
  .price-row { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .price-value { align-self: flex-end; }
  #wa-fab { width: 56px; height: 56px; bottom: 16px; left: 16px; }
  .wa-fab-icon { width: 28px; height: 28px; }
  .stat::before { display: none; }
  .stat { padding-right: 0; }
  .signature-tag { bottom: -12px; right: 12px; padding: .6rem 1rem; }
  .signature-name { font-size: 1rem; }
}
