/* ============================================================
   HOME.CSS — Styles exclusive to index.html
   LAJ Productores
   ============================================================ */

/* ── Hero ── */
.hero {
  background: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}

/* ── Background layers ── */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Canvas particle network */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Dark overlay — keeps text readable and adds brand tint */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.65) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26,47,79,0.55) 0%, transparent 70%);
}

/* Subtle grid texture on top */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ── Hero entrance animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ── Hero inner — centered ── */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  padding: 5rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  animation: heroFadeUp 0.8s var(--ease-out) 0.15s both;
}

.hero-eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
  animation: heroFadeUp 0.9s var(--ease-out) 0.3s both;
}

.hero h1 em { font-style: italic; color: var(--gold); }

/* ── Rotating text ── */
.hero-rotate {
  display: inline-block;
  color: var(--gold);
  font-style: italic;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-rotate.exit {
  opacity: 0;
  transform: translateY(-14px);
}

.hero-rotate.enter {
  animation: rotateEnter 0.4s var(--ease-out) both;
}

@keyframes rotateEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.72;
  max-width: 570px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
  font-weight: 300;
  animation: heroFadeUp 0.8s var(--ease-out) 0.5s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: heroFadeUp 0.8s var(--ease-out) 0.65s both;
}

.hero .trust-badges {
  justify-content: center;
  animation: heroFadeUp 0.8s var(--ease-out) 0.8s both;
}

/* ── Segmentation ── */
.section-segmentation { background: var(--off-white); }

.segment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Cases ── */
.section-cases { background: var(--white); }

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-2);
}

.case-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.case-tag {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.case-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.case-text {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.75;
}

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

/* ── Services ── */
.section-services { background: var(--white); overflow: hidden; }

/* Slider wrapper — full-bleed relative container for arrows */
.services-slider-wrap {
  position: relative;
  margin-top: 0;
}

/* Arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.services-slider-wrap:hover .slider-arrow {
  opacity: 1;
  pointer-events: auto;
}

.slider-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.slider-arrow:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

.slider-arrow-prev { left: -28px; }
.slider-arrow-next { right: -28px; }

/* Gradient fades on sides */
.services-slider-wrap::before,
.services-slider-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 2rem;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}
.services-slider-wrap::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 30%, transparent);
}
.services-slider-wrap::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 30%, transparent);
}

/* Scrollable viewport */
.services-slider {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  cursor: grab;
}

.services-slider:active { cursor: grabbing; }
.services-slider::-webkit-scrollbar { display: none; }

/* Track — inline-flex so cards don't wrap */
.services-track {
  display: inline-flex;
  gap: 1.25rem;
  padding-right: 0.5rem;
}

/* Card overlay — makes full card clickable */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.card-link {
  position: relative;
  z-index: 3;
}

/* Individual slide card */
.service-slide {
  position: relative;
  flex: 0 0 270px;
  width: 270px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.service-slide:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

/* Image block */
.slide-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}

.slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s var(--ease-out);
}

.service-slide:hover .slide-img { transform: scale(1.06); }

.slide-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.52) 100%);
}

.slide-category {
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* Card body */
.slide-body {
  padding: 1.6rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.slide-body .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
}

/* Featured variant */
.service-slide--featured {
  border-color: var(--border-gold);
  border-width: 1.5px;
}

.service-slide--featured .slide-img-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

/* badge inside slide */
.service-slide .card-badge {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  bottom: auto;
  left: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── Problem ── */
.section-problem {
  background: var(--dark-1);
}

.problem-inner {
  max-width: 780px;
}

.section-problem .section-title {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.25;
}

.problem-body {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.problem-body p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
}

.problem-cta-line {
  color: var(--white) !important;
  font-weight: 500;
}

/* ── Differentiators ── */
.section-diff { background: var(--dark-1); }

.diff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

/* ── Process ── */
.section-process {
  background: var(--navy) url('../img/como-trabajamos.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.section-process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 48, 0.78);
  pointer-events: none;
}

/* ── About ── */
.section-about { background: var(--white); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-number-bg {
  font-family: var(--serif);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
  opacity: 0.07;
  margin-bottom: -2.5rem;
  pointer-events: none;
  user-select: none;
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.18;
  margin-bottom: 1.5rem;
}

.about-divider {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 0.975rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.25rem;
}

.about-stat-num {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-stat-lbl {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Contact Section ── */
.section-contact {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 25% 50%, rgba(37,99,235,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(26,47,79,0.45) 0%, transparent 55%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  margin-bottom: 2.75rem;
}

.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

.contact-detail svg { color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .diff-item { flex: 0 0 calc(50% - 0.65rem); }
}

@media (max-width: 768px) {
  .hero-inner { padding: 3rem 0; }
  .hero-shape { display: none; }
  .segment-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-item { flex: 0 0 100%; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { gap: 1.75rem; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .contact-details { flex-direction: column; gap: 0.75rem; }
}

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