@import url('global.css');

/* Hero Section: Nike/Adidas Style UI/UX Split */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 90px;
  background-color: var(--bg-primary);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.85;
  transition: transform 0.1s ease-out; /* Parallax smooth */
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .container {
  position: relative;
  z-index: 3;
}

/* Nike Split Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  text-align: left;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 800;
  color: #ffffff; /* Contrast on dark */
  line-height: 1.15;
  margin-bottom: 25px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: #cbd5e1; /* Contrast on dark */
  font-weight: 400;
  margin-bottom: 45px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero .btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.hero .btn-outline:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: #ffffff;
}

.hero-actions .btn {
  padding: 18px 40px;
  font-size: 1rem;
}

/* Image Parallax Cluster (Right side overlaps) */
.hero-right {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-parallax-cluster {
  position: relative;
  width: 100%;
  height: 100%;
}

.cluster-img-wrapper {
  position: absolute;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: var(--bg-secondary);
  padding: 8px;
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: border-color var(--transition-fast), transform 0.1s ease-out;
}

.cluster-img-wrapper:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 10 !important;
}

.cluster-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
}

.img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: var(--text-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* Overlapping cluster positions */
.floating-part-1 {
  top: 10%;
  left: 5%;
  width: 250px;
  z-index: 2;
}

.floating-part-2 {
  top: 35%;
  right: 5%;
  width: 230px;
  z-index: 3;
}

.floating-part-3 {
  bottom: 5%;
  left: 25%;
  width: 200px;
  z-index: 1;
}

/* Service Cards Grid (Highly clean UX card design) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: transparent;
  transition: background var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card:hover::after {
  background: linear-gradient(90deg, var(--accent), #ff5e00);
}

.service-icon-wrapper {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.service-location-badge {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  background-color: var(--accent-glow);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.service-card .btn-primary {
  width: 100%;
  box-shadow: 0 4px 12px rgba(255, 162, 0, 0.15);
}

/* Brands Capacity Section */
.brands-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.brand-category-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.brand-category-card:hover {
  border-color: var(--accent);
  background-color: var(--bg-secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--border-glow);
}

.brand-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.brand-category-title {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-tag {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.brand-tag:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

/* History / About Us Section Split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 18px 26px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.about-badge-number {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.about-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.about-content h2 {
  margin-bottom: 20px;
  text-transform: uppercase;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2.8;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.feature-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-right {
    height: 400px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .about-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .floating-part-1 {
    width: 160px;
  }
  
  .floating-part-2 {
    width: 150px;
  }
  
  .floating-part-3 {
    width: 130px;
  }
  
  .brands-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
}

/* Typewriter Blinking Cursor animation */
#dynamicBrand {
  position: relative;
}

#dynamicBrand::after {
  content: '|';
  margin-left: 4px;
  color: var(--accent);
  animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
  from, to { color: transparent }
  50% { color: var(--accent) }
}

/* Quiénes Somos Section Dark Style */
.about-section-dark {
  background-color: #0b0f19; /* matches the footer background, very elegant dark slate */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-section-dark h2 {
  color: #ffffff;
}

.about-section-dark .section-subtitle {
  background-color: rgba(217, 119, 6, 0.2);
  color: #fbbf24; /* high-contrast light amber */
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.about-section-dark p {
  color: #cbd5e1; /* Slate-300, clear readable paragraph text */
}

.about-section-dark .feature-item strong {
  color: #ffffff !important;
}

.about-section-dark .feature-sub {
  color: #94a3b8 !important; /* Slate-400 */
}

/* Target Segment Cards in Quiénes Somos */
.target-segments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.segment-card {
  display: flex;
  gap: 18px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.segment-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
}

.segment-icon-wrapper {
  background-color: rgba(217, 119, 6, 0.15);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.segment-card:hover .segment-icon-wrapper {
  background-color: var(--accent);
  color: #ffffff;
}

.segment-content h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 700;
}

.segment-content p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}
