@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --violet: #513185;
  --violet-hover: rgb(56, 25, 167);
  --black: #090909;
  --dark: #121212;
  --gray: #666;
  --light: #f5f5f5;
  --border: #e7e7e7;
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: #171717;
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit
}

img {
  max-width: 100%;
  height: auto
}

.container {
  max-width: 1180px
}

.topbar {
  background: #070707;
  color: #aaa;
  font-size: 12px;
  padding: 8px 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(8, 8, 8, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #292929;
}

.navbar {
  min-height: 78px;
}

.navbar-brand {
  width: 220px;
}

.navbar-dark .navbar-nav .nav-link {
  color: #ddd;
  font-size: 13px;
  font-weight: 600;
  padding: .7rem .8rem;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}

.navbar-dark .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  height: 2px;
  left: .8rem;
  right: .8rem;
  bottom: 3px;
  background: var(--violet);
}

.navbar-toggler {
  border-color: #555
}

.btn {
  font-weight: 700;
  font-size: 13px;
  border-radius: 7px;
  padding: 13px 20px;
}

.btn-orange {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.btn-orange:hover {
  background: var(--violet-hover);
  border-color: var(--violet-hover);
  color: #fff;
}

.btn-outline-light:hover {
  background: var(--violet);
  border-color: var(--violet);
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .74) 43%, rgba(0, 0, 0, .35) 100%),
    url('../img/main.png') center/cover;
}

.hero h1 {
  max-width: 730px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  margin: 12px 0;
}

.hero h1 span {
  color: var(--violet)
}

.hero p {
  max-width: 650px;
  color: #ddd;
  font-size: 17px;
}

.eyebrow {
  color: var(--violet);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 22px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px
}

.featurebar {
  margin-top: -55px;
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  overflow: hidden;
}

.feature {
  padding: 28px;
  border-right: 1px solid var(--border);
}

.feature:last-child {
  border-right: 0
}

.feature strong {
  display: block;
  font-size: 14px
}

.feature p {
  margin: 7px 0 0;
  color: #666;
  font-size: 13px
}

section {
  padding: 82px 0
}

.section-head {
  text-align: center;
  margin-bottom: 42px
}

.section-head .eyebrow {
  display: block
}

.section-head h2 {
  font-size: 38px;
  line-height: 1.15;
  margin: 8px 0 10px
}

.section-head p {
  max-width: 700px;
  margin: auto;
  color: #666
}

.dark {
  background: #111;
  color: #fff
}

.dark .section-head p {
  color: #bbb
}

.stats {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1px;
  background: #333;
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  background: #151515;
  padding: 35px
}

.stat .number {
  font-size: 40px;
  font-weight: 800;
  color: var(--violet)
}

.stat p {
  margin: 3px 0;
  color: #bbb
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.card-img {
  height: 190px;
  background: linear-gradient(135deg, #252525, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}

.card-body {
  padding: 22px
}

.card h3 {
  margin: 0 0 8px
}

.card p {
  color: #666;
  font-size: 14px
}

.arrow {
  color: var(--violet);
  font-weight: 800
}

.page-hero {
  padding: 100px 0;
  background: linear-gradient(90deg, #090909, #1b1b1b);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 50px);
  margin: 8px 0
}

.page-hero p {
  max-width: 720px;
  color: #ccc
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center
}

.split img {
  width: 100%;
  border-radius: 12px;
  display: block
}

.checklist {
  padding: 0;
  list-style: none
}

.checklist li {
  margin: 16px 0;
  padding-left: 28px;
  position: relative
}

.checklist li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 800;
}

.project {
  position: relative;
  min-height: 250px;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.project:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .05));
}

.project>* {
  position: relative
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px
}

.form {
  max-width: 850px;
  margin: auto;
  background: #fff;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.field label {
  font-size: 13px;
  font-weight: 700
}

.field input,
.field select,
.field textarea {
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 7px;
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical
}

.form-control:focus,
.form-select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 .2rem rgba(255, 118, 0, .15);
}

.notice {
  padding: 15px 18px;
  background: #fff4e8;
  border-left: 4px solid var(--violet);
  border-radius: 6px;
  margin: 25px 0;
  color: #5b3a1f;
}

footer {
  background: #090909;
  color: #bbb;
  padding: 55px 0 18px;
}

.footer-title {
  color: #fff;
  font-weight: 800;
  margin-bottom: 15px
}

.footer-links a {
  display: block;
  margin: 8px 0;
  font-size: 13px
}

.footer-links a:hover {
  color: var(--violet)
}

.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
  font-size: 13px;
  transition: color .2s ease, transform .2s ease;
}

.social-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.social-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #555;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.copyright {
  border-top: 1px solid #292929;
  margin-top: 35px;
  padding-top: 18px;
  font-size: 12px;
  text-align: center;
}

/* AOS controla las animaciones de scroll; no usar reveal custom para evitar conflicto con la librería */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .2s
}

.reveal-delay-3 {
  transition-delay: .3s
}

.reveal-delay-4 {
  transition-delay: .4s
}

@media(max-width:991.98px) {
  .navbar-brand {
    width: 190px
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: .8rem 0;
    border-bottom: 1px solid #222;
  }

  .navbar-dark .navbar-nav .nav-link.active::after {
    display: none
  }

  .navbar-collapse {
    background: #0b0b0b;
    padding: 12px 0 18px;
  }

  .navbar .btn-orange {
    margin-top: 10px;
    width: 100%
  }

  .featurebar {
    margin-top: -35px
  }

  .stats {
    grid-template-columns: 1fr 1fr
  }

  .split {
    grid-template-columns: 1fr;
    gap: 35px
  }
}

@media(max-width:767.98px) {
  .topbar {
    display: none
  }

  .hero {
    min-height: 620px
  }

  .hero h1 {
    font-size: 42px
  }

  .hero p {
    font-size: 15px
  }

  .featurebar {
    margin-top: 25px
  }

  .feature {
    border-right: 0;
    border-bottom: 1px solid var(--border)
  }

  .feature:last-child {
    border-bottom: 0
  }

  section {
    padding: 65px 0
  }

  .section-head h2 {
    font-size: 30px
  }

  .stats {
    grid-template-columns: 1fr
  }

  .project-grid {
    grid-template-columns: 1fr
  }

  .form {
    padding: 22px
  }

  .page-hero {
    padding: 75px 0
  }
}

@media(max-width:575.98px) {
  .navbar-brand {
    width: 165px
  }

  .hero h1 {
    font-size: 35px
  }

  .actions .btn {
    width: 100%
  }
}

/* Reduce motion accessibility */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .card {
    transition: none
  }
}

/* Ajustes visuales de tarjetas - estilo de la primera versión */
.card-img {
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 118, 0, .18), transparent 55%);
}

.card-body h3 {
  font-size: 19px;
  font-weight: 800
}

.dark .card {
  border-color: #333
}

.dark .card-body {
  background: #fff;
  color: #171717
}

.dark .card-img {
  background: linear-gradient(135deg, #181818, #4a4a4a)
}

.project {
  background:
    linear-gradient(135deg, rgba(255, 118, 0, .08), transparent 50%),
    linear-gradient(135deg, #202020, #656565);
}


/* =========================================================
   ANIMACIONES DE CARDS / SCROLL REVEAL
   ========================================================= */

.reveal,
.card,
.service-card,
.product-card,
.project-card,
.blog-card {
  transition:
    transform .45s cubic-bezier(.2, .7, .2, 1),
    opacity .55s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    background-color .35s ease;
}

/* Estado inicial para elementos que utilizan reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards: movimiento al pasar el mouse */
.card:hover,
.service-card:hover,
.product-card:hover,
.project-card:hover,
.blog-card:hover {
  transform: translateY(-8px);
}

/* Imagen de card con zoom suave */
.card img,
.service-card img,
.product-card img,
.project-card img,
.blog-card img {
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.card:hover img,
.service-card:hover img,
.product-card:hover img,
.project-card:hover img,
.blog-card:hover img {
  transform: scale(1.035);
}

/* Aparición escalonada de cards */
.card:nth-child(1),
.service-card:nth-child(1),
.product-card:nth-child(1),
.project-card:nth-child(1),
.blog-card:nth-child(1) {
  transition-delay: .00s;
}

.card:nth-child(2),
.service-card:nth-child(2),
.product-card:nth-child(2),
.project-card:nth-child(2),
.blog-card:nth-child(2) {
  transition-delay: .08s;
}

.card:nth-child(3),
.service-card:nth-child(3),
.product-card:nth-child(3),
.project-card:nth-child(3),
.blog-card:nth-child(3) {
  transition-delay: .16s;
}

.card:nth-child(4),
.service-card:nth-child(4),
.product-card:nth-child(4),
.project-card:nth-child(4),
.blog-card:nth-child(4) {
  transition-delay: .24s;
}

.card:nth-child(5),
.service-card:nth-child(5),
.product-card:nth-child(5),
.project-card:nth-child(5),
.blog-card:nth-child(5) {
  transition-delay: .32s;
}

.card:nth-child(6),
.service-card:nth-child(6),
.product-card:nth-child(6),
.project-card:nth-child(6),
.blog-card:nth-child(6) {
  transition-delay: .40s;
}

/* Accesibilidad: reducir movimiento si el usuario lo solicita */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .card,
  .service-card,
  .product-card,
  .project-card,
  .blog-card,
  .card img,
  .service-card img,
  .product-card img,
  .project-card img,
  .blog-card img {
    transition: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
  }
}

/* En dispositivos táctiles no forzamos hover elevado */
@media (hover: none) {

  .card:hover,
  .service-card:hover,
  .product-card:hover,
  .project-card:hover,
  .blog-card:hover {
    transform: none;
  }

  .card:hover img,
  .service-card:hover img,
  .product-card:hover img,
  .project-card:hover img,
  .blog-card:hover img {
    transform: none;
  }
}