/* ============================================
   CTAT Ingeniería — Home Page Styles
   ============================================ */

/* ══════════════════════════════════════════════
   HERO FULL
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 47, 73, 0.93) 0%,
    rgba(8, 47, 73, 0.82) 40%,
    rgba(3, 105, 161, 0.35) 100%
  );
  z-index: -2;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  animation: gridMove 25s linear infinite;
}

/* Floating geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border: 1px solid rgba(14, 165, 233, 0.08);
  border-radius: var(--radius-md);
  animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.hero-shape:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 20%;
  animation-delay: 2s;
  animation-duration: 9s;
}

.hero-shape:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 8%;
  animation-delay: 4s;
  animation-duration: 6s;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--navbar-height);
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.20);
  border-radius: var(--radius-full);
  font-size: var(--fs-badge);
  font-weight: var(--fw-medium);
  color: var(--accent-teal);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s var(--ease-out) 0.2s both;
}

.hero-badge .material-symbols-outlined {
  font-size: 18px;
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-title .accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-relaxed);
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-subtitle .separator {
  color: var(--accent-teal);
  margin: 0 var(--space-sm);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wide);
  animation: fadeIn 1s var(--ease-out) 1.2s both;
}

.scroll-indicator .material-symbols-outlined {
  font-size: 24px;
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════════ */
.home-stats {
  position: relative;
  margin-top: calc(-1 * var(--space-3xl));
  z-index: 2;
  padding-bottom: var(--space-section);
}

/* ══════════════════════════════════════════════
   FEATURED SERVICES
   ══════════════════════════════════════════════ */
.featured-services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.services-grid .card {
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.services-grid .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.services-cta {
  text-align: center;
}

@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ══════════════════════════════════════════════
   TECH DIFFERENTIATOR
   ══════════════════════════════════════════════ */
.tech-section {
  overflow: hidden;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.tech-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  pointer-events: none;
}

.tech-image .tech-badge-overlay {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.tech-content .section-badge {
  margin-bottom: var(--space-md);
}

.tech-content h2 {
  margin-bottom: var(--space-lg);
}

.tech-content > p {
  margin-bottom: var(--space-2xl);
}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tech-feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--duration-normal);
}

.tech-feature:hover {
  background: rgba(14, 165, 233, 0.04);
}

.tech-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: var(--radius-md);
  color: var(--accent-teal);
  flex-shrink: 0;
}

.tech-feature-icon .material-symbols-outlined {
  font-size: 22px;
}

.tech-feature h4 {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2xs);
}

.tech-feature p {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}

@media (max-width: 1023px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ══════════════════════════════════════════════
   PROJECTS GALLERY
   ══════════════════════════════════════════════ */
.projects-section {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(8, 47, 73, 0.90) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-category {
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-xs);
}

.project-name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

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

/* ══════════════════════════════════════════════
   WHY CTAT
   ══════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.why-card {
  text-align: center;
  padding: var(--space-2xl);
}

.why-card .card-icon {
  width: 72px;
  height: 72px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
}

.why-card .card-icon .material-symbols-outlined {
  font-size: 32px;
}

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

/* ══════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════ */
/* CTA Banner styles moved to components.css */

@media (max-width: 767px) {
  .hero-content {
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }
}

