/* ============================================
   JJURADO — Page-Specific Additions
   Extends Velarque global.css + homepage.css
   ============================================ */

/* ============================
   DARK BG — Hero-style gradient on all dark sections
   ============================ */
.pain-section,
.stats--dark,
.contact-section,
.footer {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,126,251,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26,126,251,0.08) 0%, transparent 50%),
    var(--black);
}

/* ============================
   HERO FIXES (sizing + photo)
   ============================ */
.hero__word {
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.15;
  letter-spacing: -2px;
}
.hero__title-line {
  padding: 6px 0;
}
.hero .hero__title {
  max-width: 72%;
}
.hero {
  padding-bottom: clamp(80px, 12vh, 140px);
}
.hero__bottom {
  gap: 48px;
}

/* Hero photo (centered-right, breathing room) */
.hero__photo {
  position: absolute;
  right: clamp(48px, 8vw, 160px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(220px, 20vw, 320px);
  opacity: 0;
  animation: fadeUp 1s 3s var(--ease) forwards;
}
.hero__photo img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(26,126,251,0.15), 0 0 120px rgba(26,126,251,0.05);
}

/* Nav: logo left, links right */
.nav__links {
  margin-left: auto;
}
.nav__links a::after {
  display: none;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
}

/* Hero photo (bigger) */

/* ============================
   UNIFORM SECTION SPACING
   ============================ */
.pain-section,
.services,
.stats,
.cases,
.why-velarque,
.testimonials,
.process,
.contact-section {
  padding: clamp(80px, 10vh, 140px) 0;
}

/* ============================
   CONSISTENT TITLE / SUBTITLE WIDTH
   ============================ */
.section-title {
  max-width: 80%;
}
.section-subtitle {
  max-width: 60%;
}

/* ============================
   PAIN SECTION (3-col grid of statements)
   ============================ */
.pain-section {}
.pain-section .section-label {
  color: var(--gray-400);
}
.pain-section .section-title {
  color: var(--white);
}
.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
  margin-top: 64px;
}
.pain-item {
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-300);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.pain-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   SERVICES GRID MODIFIER (2-col for 4 cards)
   ============================ */
.services__grid--four {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================
   COMPLEMENTARY SERVICES (compact row)
   ============================ */
.comp-services {
  padding: clamp(48px, 6vh, 80px) 0;
  border-top: 1px solid var(--gray-200);
}
.comp-services .section-label {
  margin-bottom: 32px;
}
.comp-services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.comp-service {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.comp-service svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.2;
  margin-top: 2px;
}
.comp-service__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 4px;
}
.comp-service__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-500);
}

/* ============================
   STATS — Dark variant
   ============================ */
.stats--dark {}
.stats--dark .stat__label {
  color: var(--gray-400);
}

/* ============================
   CENTERED TITLE MODIFIER
   ============================ */
.section-title--center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   WHY ME — stacked header (label + title left-aligned)
   ============================ */
.why-velarque__header {
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ============================
   CASES — 3-col grid
   ============================ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.case-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  text-decoration: none;
  color: var(--white);
}
.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.case-card:hover img {
  transform: scale(1.05);
}
.case-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.case-card__tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  margin-bottom: 16px;
}
.case-card__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.case-card__desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}

/* ============================
   TESTIMONIALS — 3-col grid variant
   ============================ */
.testimonials--grid .testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonials--grid .testimonial {
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonials--grid .testimonial:hover {
  border-color: rgba(26,126,251,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}
.testimonials--grid .testimonial__marks {
  font-size: 48px;
  margin-bottom: 12px;
}
.testimonials--grid .testimonial__text {
  font-size: 16px;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
}
.testimonials--grid .testimonial__role a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.testimonials--grid .testimonial__role a:hover {
  color: var(--accent);
}

/* ============================
   PROCESS FOOTER (italic quote)
   ============================ */
.process__footer {
  text-align: center;
  margin-top: 48px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gray-500);
}

/* ============================
   CONTACT SECTION — Two-column layout
   ============================ */
.contact-section {}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 6vw, 120px);
  align-items: start;
}

/* Left column: info */
.contact-layout__info .section-label {
  color: var(--gray-500);
}
.contact-layout__title {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -1px;
  margin: 0 0 clamp(16px, 2vh, 24px);
  line-height: 1.1;
}
.contact-layout__title em {
  font-family: var(--serif);
  color: var(--accent);
}
.contact-layout__desc {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 400px;
}

/* Contact channels (stacked) */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-400);
  transition: color 0.3s var(--ease);
}
.contact-channel:hover {
  color: var(--white);
}
.contact-channel__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.contact-channel:hover .contact-channel__icon {
  border-color: var(--accent);
  background: rgba(26,126,251,0.08);
}
.contact-channel__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-channel__label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2px;
}
.contact-channel__value {
  display: block;
  font-size: 15px;
  font-weight: 300;
}

/* Form: servicio select — fix label position */
.contact-section .contact-form__group label[for="servicio"] {
  text-transform: none;
}
.contact-form__group select:not(.has-value):not(:focus) ~ label {
  top: 16px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

/* Right column: form on dark bg */
.contact-section .contact-form__group input,
.contact-section .contact-form__group select,
.contact-section .contact-form__group textarea {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.12);
}
.contact-section .contact-form__group input::placeholder,
.contact-section .contact-form__group textarea::placeholder {
  color: transparent;
}
.contact-section .contact-form__group input:focus,
.contact-section .contact-form__group select:focus,
.contact-section .contact-form__group textarea:focus {
  border-bottom-color: var(--accent);
}
.contact-section .contact-form__group label {
  color: var(--gray-500);
}
.contact-section .contact-form__group input:focus ~ label,
.contact-section .contact-form__group input:not(:placeholder-shown) ~ label,
.contact-section .contact-form__group textarea:focus ~ label,
.contact-section .contact-form__group textarea:not(:placeholder-shown) ~ label,
.contact-section .contact-form__group select:focus ~ label,
.contact-section .contact-form__group select.has-value ~ label {
  color: var(--gray-400);
}
.contact-section .contact-form__group select option {
  background: var(--dark);
  color: var(--white);
}
.contact-section .contact-form .btn-main {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.contact-section .contact-form .btn-main:hover {
  background: #1568d4;
}
.contact-section .contact-form__legal {
  color: var(--gray-500);
}
.contact-section .contact-form__note {
  color: var(--gray-500);
}

/* ============================
   FOOTER — Back to top button
   ============================ */
.footer__top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--gray-400);
  transition: all 0.3s var(--ease);
}
.footer__top-btn:hover {
  border-color: var(--accent);
  color: var(--white);
  background: rgba(26,126,251,0.08);
}

/* ============================
   RESPONSIVE — JJ ADDITIONS
   ============================ */
@media (max-width: 1024px) {
  .hero__photo { display: none; }
  .hero .hero__title { max-width: 100%; }
  .hero__ctas { flex-direction: column; }
  .section-title { max-width: 90%; }
  .section-subtitle { max-width: 80%; }
  .services__grid--four { grid-template-columns: repeat(2, 1fr); }
  .pain__grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  /* Cases: horizontal slider */
  .cases__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    margin-right: calc(-1 * clamp(24px, 4vw, 80px));
    padding-right: clamp(24px, 4vw, 80px);
  }
  .cases__grid::-webkit-scrollbar { display: none; }
  .case-card {
    flex: 0 0 75vw;
    scroll-snap-align: start;
    aspect-ratio: 3/4;
  }

  /* Testimonials: horizontal slider */
  .testimonials--grid .testimonials__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    margin-right: calc(-1 * clamp(24px, 4vw, 80px));
    padding-right: clamp(24px, 4vw, 80px);
  }
  .testimonials--grid .testimonials__grid::-webkit-scrollbar { display: none; }
  .testimonials--grid .testimonial {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
  .comp-services__list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ---- MOBILE MENU (bulletproof) ---- */
  /* 1. Kill nav bg/blend/blur/transition instantly when open */
  .nav.nav--menu-open {
    mix-blend-mode: normal !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    transition: none !important;
  }
  /* 2. Toggle: always on top + always white X when open */
  .nav__toggle {
    position: relative;
    z-index: 200;
  }
  .nav.nav--menu-open .nav__toggle span {
    background: var(--white) !important;
  }
  /* 3. Fullscreen overlay — the actual visible background */
  .nav .nav__links--open {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 100px clamp(24px, 4vw, 80px) 0;
    background:
      radial-gradient(ellipse at 20% 50%, rgba(26,126,251,0.15) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(26,126,251,0.08) 0%, transparent 50%),
      var(--black) !important;
  }
  .nav .nav__links--open a {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--white) !important;
  }

  /* Hero: clear fixed nav + prevent text clipping */
  .hero { min-height: 100svh; align-items: flex-start; padding-top: 120px; }
  .hero__word { font-size: clamp(28px, 8vw, 40px); letter-spacing: -1px; }
  .hero__title { margin-bottom: 32px; }
  .hero__desc { font-size: 15px; }
  .hero__cta { padding: 16px 24px; font-size: 13px; }

  .section-title, .section-subtitle { max-width: 100%; }
  .services__grid--four { grid-template-columns: 1fr; }
  .pain__grid { grid-template-columns: 1fr; }

  /* Footer: logo left, arrow right on same line */
  .footer__bottom {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 !important;
  }
  .footer__bottom > span:last-of-type {
    width: 100%;
    order: 3;
    margin-top: 12px;
  }
  .footer__top-btn {
    margin-left: auto;
  }

  /* Marquee: smooth infinite loop on mobile */
  .marquee__track {
    width: max-content;
    animation-duration: 35s;
  }

  /* Form: consistent field spacing */
  .contact-form__group { margin-bottom: 28px; }
  .contact-form__row { gap: 0; }
  .contact-form__row .contact-form__group { margin-bottom: 28px; }

  /* Form select: match other fields */
  .contact-form__group select { font-size: 16px; }
  .contact-form__group select ~ label {
    top: -8px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: none;
  }
}
