/* ======================================
   RESET BÁSICO
====================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #05060a;
  color: #f9fafb;
  line-height: 1.6;
}

/* ======================================
   VARIABLES
====================================== */

:root {
  --color-bg: #05060a;
  --color-surface: #0b0d13;
  --color-surface-alt: #10131b;
  --color-border-subtle: rgba(255, 255, 255, 0.06);

  --color-primary: #f97316;
  --color-primary-soft: rgba(249, 115, 22, 0.12);
  --color-primary-strong: #fb923c;

  --color-accent: #38bdf8;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;

  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.5);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --container-max: 1120px;
  --nav-height: 72px;
}

/* ======================================
   ELEMENTOS BASE
====================================== */

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ======================================
   LAYOUT GENERAL
====================================== */

.section {
  padding: 5rem 1.5rem;
}

.section__header {
  max-width: 640px;
  margin: 0 auto 2.75rem auto;
  text-align: center;
}

.section__header h2 {
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

main {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ======================================
   BOTONES
====================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-strong) 60%,
    #facc15 100%
  );
  color: #0b0d13;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.btn--primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.btn--small {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}

/* ======================================
   HEADER / NAVBAR
====================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      to bottom,
      rgba(5, 6, 10, 0.9),
      rgba(5, 6, 10, 0.7),
      transparent
    )
    ;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav {
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.nav__brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  text-transform: uppercase;
  background: radial-gradient(circle at 0 0, #facc15, var(--color-primary-strong));
  color: #020617;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.nav__brand-text {
  font-weight: 600;
  font-size: 1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.nav__links a {
  position: relative;
  padding-bottom: 0.15rem;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 160ms ease;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  flex-shrink: 0;
}

/* menú móvil */

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* ======================================
   HERO
====================================== */


.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 1.5rem 5rem;
  max-width: var(--container-max);
  margin: 0 auto;

  /* 🔸 Fondo a todo el ancho de la sección */
  background-image: linear-gradient(
      to bottom right,
      rgba(5, 6, 12, 0.733),
      rgba(5, 6, 12, 0.633),
      rgba(15, 23, 42, 0.516)
    ),
    url("../img/hero-kenco.png"); /* ⬅️ ponga aquí su foto */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 32px 32px; /* opcional, para que se vea más pulido */
  overflow: hidden;
}

/* Capa extra por si luego quiere jugar con opacidad */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Aseguramos que el contenido quede por encima del fondo */
.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}


.hero__content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 2rem;
  max-width: 700px;
}

.hero__content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
}

.hero__title {
  font-size: clamp(2.3rem, 3.2vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__highlight {
  background: linear-gradient(
    135deg,
    #f97316,
    #fb923c,
    #facc15,
    #38bdf8
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.7);
}

/* hero visual */

.hero__visual {
  position: relative;
  min-height: 320px;
}

.hero__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image--main {
  height: 260px;
  background: #020617;
}

.hero__image--secondary {
  position: absolute;
  width: 60%;
  height: 180px;
  right: -8%;
  bottom: -10%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  transform: translateY(0);
}

/* tarjetas flotantes */

.hero__floating-card {
  position: absolute;
  right: 5%;
  left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  background: radial-gradient(
      circle at 0 0,
      rgba(248, 250, 252, 0.12),
      rgba(15, 23, 42, 0.98)
    );
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
  font-size: 0.78rem;
}

.hero__floating-card--top {
  top: 6%;
}

.hero__floating-card--bottom {
  bottom: 20%;
  right: 22%;
}

.hero__floating-label {
  color: var(--color-text-muted);
}

.hero__floating-value {
  font-weight: 600;
  color: #f9fafb;
}

/* flotar suavemente */

.hero__image--main,
.hero__image--secondary,
.hero__floating-card {
  animation: float-soft 10s ease-in-out infinite;
}

.hero__image--secondary {
  animation-delay: 1s;
}

.hero__floating-card--top {
  animation-delay: 2s;
}

.hero__floating-card--bottom {
  animation-delay: 3s;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 65vh;
  }
  
  .hero__content h1 {
    font-size: 2.2rem;
  }

  .hero__content p {
    font-size: 1.1rem;
  }
}
/* ======================================
   SECCIÓN SERVICIOS
====================================== */

.section--services {
  background: radial-gradient(circle at top left, #111827, #020617 48%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.9)
    );
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(249, 115, 22, 0.22),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card h3 {
  position: relative;
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.service-card p {
  position: relative;
  color: var(--color-text-muted);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.7);
}

/* ======================================
   CARRUSELES DE CATEGORÍAS
====================================== */

.section--carousels {
  background: radial-gradient(circle at top right, #0b1120, #020617 55%);
}

.carousel-block {
  margin-bottom: 3rem;
}

.carousel-block__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.carousel-block__header h3 {
  font-size: 1.15rem;
}

.carousel-block__header p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.carousel {
  position: relative;
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
}

.carousel__track-wrapper {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 1.1rem;
  transition: transform 350ms ease;
}

.carousel__item {
  min-width: 220px;
  max-width: 260px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.carousel__item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.carousel__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, transparent, rgba(0, 0, 0, 0.45));
  opacity: 0;
  transition: opacity 220ms ease;
}

.carousel__item:hover img {
  transform: scale(1.05);
}

.carousel__item:hover::after {
  opacity: 1;
}

.carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 30% 0, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  cursor: pointer;
  transition:
    background 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
  z-index: 2;
}

.carousel__control--prev {
  left: 0.75rem;
}

.carousel__control--next {
  right: 0.75rem;
}

.carousel__control:hover {
  background: radial-gradient(circle at 30% 0, #f97316, #020617);
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* ======================================
   PORTAFOLIO
====================================== */

.section--portfolio {
  background: radial-gradient(circle at center, #020617, #020617 60%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: 190px;
  gap: 1.35rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 260ms ease;
}

.portfolio-item figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.7rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.portfolio-item--large {
  grid-row: span 2;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

/* ======================================
   PAQUETES / PRICING
====================================== */

.section--pricing {
  background: radial-gradient(circle at top left, #0b1120, #020617 55%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: radial-gradient(circle at top left, #020617, #020617 60%);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(248, 250, 252, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 200ms ease;
}

.pricing-card__price {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 0 0.9rem;
}

.pricing-card__list {
  display: grid;
  gap: 0.4rem;
  color: var(--color-text-muted);
}

.pricing-card--highlight {
  border-color: rgba(249, 115, 22, 0.8);
  background: radial-gradient(circle at top left, #111827, #020617 60%);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card:hover {
  transform: translateY(-3px);
}

.pricing__cta {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.pricing__cta .btn {
  margin-top: 1rem;
}

/* ======================================
   SOBRE KENCO
====================================== */

.section--about {
  background: radial-gradient(circle at center, #020617, #020617 60%);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.about__text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.9rem;
}

.about__text h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.about__meta {
  display: grid;
  gap: 0.9rem;
}

.about__stat {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: rgba(15, 23, 42, 0.95);
}

.about__stat-number {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
}

.about__stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ======================================
   CONTACTO
====================================== */

.section--contact {
  background: radial-gradient(circle at top, #020617, #020617 60%);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: flex-start;
}

.contact__content h2 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.contact__content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

.contact__list {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.contact__list a {
  color: var(--color-accent);
}

.contact__form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.form__group {
  margin-bottom: 0.9rem;
}

.form__group label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  color: var(--color-text);
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--color-primary);
  background: #020617;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

/* ======================================
   FOOTER
====================================== */

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.3rem 1.5rem 1.6rem;
  background: #020617;
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer__secondary {
  margin-top: 0.2rem;
}

/* ======================================
   ANIMACIONES SCROLL (BASE)
   (Se activan con JS agregando .is-visible)
====================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 3.5rem;
  }

  .hero__visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }

  .about,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    background: rgba(3, 7, 18, 0.97);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 220ms ease,
      opacity 220ms ease;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .hero {
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .carousel {
    padding-inline: 2.3rem;
  }

  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 190px;
  }

  .portfolio-item--large {
    grid-row: span 1;
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-inline: 1.25rem;
  }

  .hero__image--secondary {
    right: -2%;
    bottom: -8%;
    width: 70%;
  }

  .hero__floating-card--bottom {
    right: 8%;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .carousel__item {
    min-width: 190px;
  }
}
