/* ---- Jorenc Innovations – Paleta de marca (manual) ---- */
:root {
  --brand-azul-oscuro: #0e1b2b;
  --brand-azul-vibrante: #1a74ea;
  --brand-gris: #e6eaec;
  --brand-verde: #2cc58b;
  --brand-negro: #131516;
  --brand-blanco: #ffffff;
  --font-titles: 'Funnel Display', sans-serif;
  --font-body: 'Raleway', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  background: var(--brand-azul-oscuro);
}

body {
  margin: 0;
  padding: 0;
  padding-top: 5.5rem; /* espacio para navbar fija */
  width: 100%;
  max-width: 100%;
  min-width: 0; /* evita que flex/grid fuercen ancho mínimo y generen barra blanca */
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--brand-negro);
  background: var(--brand-azul-oscuro);
  overflow-x: hidden;
  box-sizing: border-box;
}

h1, h2, h3 {
  font-family: var(--font-titles);
}

h1 {
  color: var(--brand-negro);
}

/* ---- Navbar ---- */
.main-navbar {
  background: var(--brand-azul-oscuro);
  padding: 0;
  padding-top: env(safe-area-inset-top, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  color: var(--brand-blanco);
  text-decoration: none;
  display: block;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 6rem;
  width: auto;
  object-fit: contain;
}

nav a:not(.logo) {
  color: var(--brand-blanco);
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
}

section {
  padding-top: 3rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section.hero {
  padding-top: 0 !important; /* sin hueco arriba del hero */
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 0;
  margin-top: -5.5rem;
  position: relative;
  z-index: 0; /* crea su propio stacking context para que las capas de fondo (z-index negativo) no se escapen detrás de otras secciones */
  overflow: hidden;
  color: white;
  background: var(--brand-azul-oscuro);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

@keyframes slideShow {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero::before,
.hero::after,
.hero .hero-bg-3 {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  animation: slideShow 18s infinite;
  z-index: -3;
}

.hero::before {
  background-image: url(/assets/laptops-91866649065c877ab38ebe389788f553649628b5fe5b79fb049712836514abfc.jpg);
}

.hero::after {
  background-image: url(/assets/macbook-47c651a7d1dfbbbd67dcafc6a8b0557d2abb43d6d4c21f9eb2c9af04a9e69d22.jpg);
  animation-delay: 6s;
}

.hero .hero-bg-3 {
  background-image: url(/assets/desarrollowebcode-d0c0a7a15a534e48e321af451818779cb927b530024783964d9d3589c42ffab9.jpg);
  animation-delay: 12s;
}

.hero::after,
.hero::before,
.hero .hero-bg-3 {
  transition: opacity 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14, 27, 43, 0.55), rgba(14, 27, 43, 0.25));
  z-index: -1;
}

.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 2;
  padding-top: 5.5rem; /* contenido debajo de la navbar fija */
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--brand-blanco);
}

.hero h1 span {
  color: var(--brand-azul-vibrante);
}

.hero p {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--brand-gris);
}

.btn-hero {
  display: inline-block;
  margin-top: 20px;
  margin-right: 1rem;
  background: var(--brand-azul-vibrante);
  color: var(--brand-blanco);
  padding: 12px 3rem;
  min-height: 44px;
  line-height: 1.2;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: 0.3s;
}

.btn-hero:hover {
  background: #1557b0;
  transform: scale(1.05);
}

.btn-hero-outline {
  background: transparent;
  border: 2px solid var(--brand-azul-vibrante);
}

.btn-hero-outline:hover {
  background: rgba(26, 116, 234, 0.2);
}

/* SERVICE SECTION */
.services {
  padding: 80px 10%;
  background: var(--brand-azul-oscuro);
  color: var(--brand-blanco);
  text-align: center;
}

.services h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--brand-azul-vibrante);
}

.services-sub {
  color: var(--brand-gris);
  margin-bottom: 60px;
  font-size: 1.1rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.service-card {
  background: #161b22;
  padding: 40px 25px;
  border-radius: 15px;
  transition: 0.3s ease;
  border: 1px solid transparent;
  flex: 1 1 280px;
  max-width: 340px;
}

.service-card:hover {
  transform: translateY(-10px);
  border: 1px solid var(--brand-azul-vibrante);
  box-shadow: 0 10px 25px rgba(26, 116, 234, 0.25);
}

.icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-verde);
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--brand-azul-vibrante);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--brand-gris);
  line-height: 1.6;
}

.service-list {
  list-style: none;
  text-align: left;
  margin-top: 18px;
  padding: 0;
  font-size: 0.85rem;
  color: var(--brand-gris);
  line-height: 1.9;
}

.service-list li {
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-azul-vibrante);
}

/* ---- QUIÉNES SOMOS ---- */
.nosotros {
  padding: 80px 10%;
  background: #0d1117;
  color: var(--brand-blanco);
}

.nosotros-title {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--brand-gris);
}

.nosotros-title span {
  color: var(--brand-azul-vibrante);
}

.nosotros-desc {
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--brand-gris);
  font-size: 1.05rem;
  line-height: 1.8;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.nosotros-card {
  background: #161b22;
  padding: 30px 26px;
  border-radius: 12px;
  transition: 0.3s ease;
}

.nosotros-card:hover {
  box-shadow: 0 8px 24px rgba(26, 116, 234, 0.15);
}

.nosotros-card h3 {
  color: var(--brand-verde);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.nosotros-card p {
  color: #c9d1d9;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ---- VALORES DE MARCA ---- */
.valores-marca {
  padding: 80px 10%;
  background: #0d1117;
  color: var(--brand-blanco);
  text-align: left;
}

.valores-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--brand-gris);
}

.valores-sub {
  color: var(--brand-gris);
  margin-bottom: 50px;
  font-size: 1.1rem;
  max-width: 700px;
}

.valores-title span {
  color: var(--brand-verde);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.valores-card {
  background: #161b22;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s ease;
}

.valores-card:hover {
  box-shadow: 0 8px 24px rgba(44, 197, 139, 0.12);
}

.valores-card-header {
  padding: 16px 20px;
  font-family: var(--font-titles);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-blanco);
  border: 1px solid var(--brand-verde);
  border-radius: 8px;
  margin: 16px;
  margin-bottom: 12px;
}

.valores-desc {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  color: #c9d1d9;
  line-height: 1.65;
  margin: 0;
}

/* ---- TRUST SECTION ---- */
.trust {
  background: var(--brand-azul-oscuro);
  padding: 80px 10%;
  text-align: center;
  color: var(--brand-blanco);
}

.trust h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--brand-azul-vibrante);
}

.trust-sub {
  color: var(--brand-gris);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* Galería de empresas: carrusel continuo */
.trust-marquee {
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: trustScroll 28s linear infinite;
}

.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}

.trust-track img {
  height: 90px;
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 12px 20px;
  border-radius: 8px;
  transition: 0.3s ease;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.04);
}

.trust-track img:hover {
  opacity: 1;
  transform: scale(1.03);
}

@keyframes trustScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track {
    animation: none;
  }
}


/*  WHY-US SECTION */
.why-combined {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding: 120px 10%;
  background: linear-gradient(145deg, var(--brand-azul-oscuro), #111827);
  color: var(--brand-blanco);
  align-items: center;
}

.why-text h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
}

.why-text span {
  color: var(--brand-verde);
}

.why-text p {
  font-size: 1.1rem;
  color: var(--brand-gris);
  line-height: 1.8;
}

.why-steps {
  display: grid;
  gap: 30px;
}

.step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  border-left: 3px solid var(--brand-azul-vibrante);
  background: rgba(255,255,255,0.03);
  border-radius: 5px;
  transition: 0.3s;
}

.step:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,0.07);
}

.step span {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--brand-azul-vibrante);
}

.step h3 {
  margin: 0;
  font-size: 1.2rem;
}



/* CONTACTO */

/* ---- CONTACT SECTION ---- */
.contact {
  background: linear-gradient(135deg, var(--brand-azul-oscuro), #1a2f3d, #243b4a);
  padding: 100px 10%;
  color: var(--brand-blanco);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Texto */
.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--brand-gris);
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-details p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-details a {
  color: var(--brand-gris);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--brand-blanco);
  text-decoration: underline;
}

/* Formulario */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--brand-gris);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  background: rgba(255,255,255,0.06);
  color: var(--brand-blanco);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(230, 234, 236, 0.7);
}

.contact-form textarea {
  min-height: 120px;
  resize: none;
}

.contact-form button {
  background: var(--brand-azul-vibrante);
  color: var(--brand-blanco);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #1557b0;
  transform: translateY(-2px);
}


.whatsapp-btn {
  display: inline-block;
  margin-top: 20px;
  background: #25D366;
  color: white;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ========== RESPONSIVE: tablets y móviles ==========
   Breakpoints: 1024px (tablet), 768px (móvil), 480px (móvil pequeño), 360px (muy estrecho)
   - Hero, servicios, valores, trust, why, contacto se adaptan en cada uno.
   - Botones con min-height 44px para áreas táctiles.
   - safe-area-inset para dispositivos con notch.
   ========== */

/* Tablet (hasta 1024px) */
@media (max-width: 1024px) {
  body {
    padding-top: 4.5rem;
  }

  .logo-img {
    height: 4rem;
  }

  .hero {
    margin-top: -4.5rem;
    padding-left: 8%;
    padding-right: 8%;
  }

  .hero-content {
    padding-top: 4.5rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn-hero {
    padding: 12px 2rem;
    margin-right: 0.5rem;
  }

  .services,
  .nosotros,
  .valores-marca,
  .trust {
    padding: 50px 6%;
  }

  .services h2,
  .nosotros-title,
  .why-text h2 {
    font-size: 2.2rem;
  }

  .why-combined {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 70px 6%;
    text-align: center;
  }

  .why-text {
    order: 1;
  }

  .why-steps {
    order: 2;
  }

  .contact {
    padding: 70px 6%;
  }

  .contact-container {
    gap: 40px;
  }

  .contact-info h2 {
    font-size: 2rem;
  }
}

/* Móvil (hasta 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 4rem;
  }

  .main-navbar {
    padding: 10px 15px;
  }

  .logo-img {
    height: 2.75rem;
  }

  .hero {
    margin-top: -4rem;
    padding-left: 5%;
    padding-right: 5%;
    min-height: 100vh;
  }

  .hero-content {
    padding-top: 4rem;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .btn-hero,
  .btn-hero-outline {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    margin-right: 0;
    text-align: center;
  }

  .btn-hero:first-of-type {
    margin-top: 20px;
  }

  .services,
  .nosotros,
  .valores-marca,
  .trust {
    padding: 40px 5%;
  }

  .services h2 {
    font-size: 1.8rem;
  }

  .nosotros-title {
    font-size: 1.75rem;
  }

  .nosotros-desc {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-sub {
    margin-bottom: 40px;
    font-size: 1rem;
  }

  .services-grid {
    gap: 24px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .valores-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
    text-align: center;
  }

  .valores-marca {
    text-align: center;
  }

  .valores-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .valores-card-header {
    font-size: 0.95rem;
  }

  .trust h2 {
    font-size: 1.6rem;
  }

  .trust-track {
    gap: 16px;
  }

  .trust-track img {
    height: 70px;
    padding: 10px 16px;
  }

  .why-combined {
    padding: 50px 5%;
  }

  .why-text h2 {
    font-size: 1.75rem;
  }

  .why-text p {
    font-size: 1rem;
  }

  .step {
    padding: 12px 16px;
  }

  .step span {
    font-size: 1.4rem;
  }

  .contact {
    padding: 50px 5%;
  }

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

  .contact-info {
    text-align: center;
  }

  .contact-info h2 {
    font-size: 1.75rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    padding: 12px 14px;
    min-height: 44px;
    font-size: 16px; /* evita zoom en iOS al enfocar */
    box-sizing: border-box;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .whatsapp-btn {
    padding: 12px 20px;
    min-height: 44px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
  body {
    padding-top: 3.5rem;
  }

  .hero {
    margin-top: -3.5rem;
    padding-left: 4%;
    padding-right: 4%;
  }

  .hero-content {
    padding-top: 3.5rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .btn-hero,
  .btn-hero-outline {
    max-width: 100%;
  }

  .services h2,
  .nosotros-title,
  .valores-title,
  .trust h2,
  .contact-info h2 {
    font-size: 1.5rem;
  }

  .trust-track {
    gap: 12px;
  }

  .trust-track img {
    height: 60px;
    padding: 8px 12px;
  }

  .why-text h2 {
    font-size: 1.5rem;
  }

  .contact {
    padding: 40px 4%;
  }
}

/* Pantallas muy estrechas (ej. algunos móviles en horizontal) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.45rem;
  }

  .logo-img {
    height: 2.25rem;
  }
}
