/* ===== RESET SIMPLE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #05060a;
  color: #f5f5f5;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

body {
  perspective: 1200px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== NAVBAR / HERO ===== */

.hero {
  color: #000;
  position: relative;
  min-height: 100vh;
  padding: 1.5rem 6vw 3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg-layer {
  position: absolute;
  inset: -10%;
  background: linear-gradient(
    180deg,
    #dde3e6 0%,
    #dde3e6 45%,
    #f1f4f6 100%
  );
  z-index: -2;
  transform: translateZ(-300px) scale(1.2);
}


.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.4);
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.main-nav nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.main-nav nav a {
  opacity: 0.8;
}
.main-nav nav a:hover {
  opacity: 1;
}

/* ===== HERO CONTENT ===== */

.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-copy p {
  max-width: 32rem;
  opacity: 0.85;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero grid actualizado */
.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

/* Forzar el video u orbit hacia la derecha */
.hero-visual {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* ⭐ Lo empuja totalmente a la derecha */
  align-items: center;
}

/* Si estás usando video dentro del orbit */
.hero-visual video,
.hero-visual .hero-video {
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

/****************************************/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #f5c950, #f39a2d);
  color: #05060a;
  font-weight: 600;
}

.btn-outline {
  border-color: rgba(255,255,255,0.6);
  background: transparent;
  /*color: #f5f5f5;*/
  color: #000;
}

/* ===== HERO VISUAL ===== */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-orbit {
  position: relative;
  width: min(360px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.16), transparent 55%),
              radial-gradient(circle at 70% 100%, rgba(18,224,170,0.25), transparent 60%);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
  transform-style: preserve-3d;
}

.hero-orbit-inner {
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  border: 1px dashed rgba(255,255,255,0.35);
}

.hero-orbit-glow {
  position: absolute;
  inset: 35%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(0,255,209,0.65), transparent 70%);
  mix-blend-mode: screen;
}

.hero-orbit-label {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

/* Scroll indicator */

.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 2rem;
}

.scroll-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff);
}

/* ===== PANELS ===== */

.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 4rem 6vw;
}

.panel-dark {
  background: radial-gradient(circle at 0% 0%, #101320, #05060a 55%);
}

.panel-gradient {
  background: radial-gradient(circle at 100% 0%, #122233 0, #05060a 50%);
}

.panel-light {
  background: #f5f5f5;
  color: #0a0a0a;
}

.panel-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.panel-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.panel h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 1.25rem;
}

.panel-lead {
  max-width: 36rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Servicios grid */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border-radius: 1.4rem;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem 1.6rem;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.08), transparent 55%);
  backdrop-filter: blur(10px);
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

/* Soluciones / layers */

.solutions-layers {
  position: relative;
  margin-top: 2.5rem;
  min-height: 220px;
}

.solution-layer {
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  max-width: 420px;
  border-radius: 1.4rem;
  padding: 1.2rem 1.4rem;
  font-size: 0.9rem;
  text-align: center;
}

.solution-layer span {
  opacity: 0.95;
}

.layer-back {
  top: 0;
  background: rgba(6, 21, 45, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
}

.layer-mid {
  top: 32px;
  background: rgba(9, 46, 72, 0.9);
  border: 1px solid rgba(18,224,170,0.5);
}

.layer-front {
  top: 68px;
  background: linear-gradient(135deg, #f5c950, #f39a2d);
  color: #05060a;
}

/* Contacto */

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
}

.contact-list {
  list-style: none;
  margin-top: 1.5rem;
}
.contact-list li + li {
  margin-top: 0.3rem;
}

.contact-form {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.form-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Footer */

.site-footer {
  padding: 1.2rem 6vw 1.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero-visual {
    order: -1;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .main-nav nav {
    display: none; /* Puedes hacer menú hamburguesa después */
  }
}

@media (max-width: 640px) {
  .panel {
    padding-inline: 1.4rem;
  }

  .hero {
    padding-inline: 1.4rem;
  }

  .form-row {
    flex-direction: column;
  }
}


/* ============================
   BOTONES: EFECTOS PREMIUM
   ============================ */

.btn {
  transition: all 0.25s ease;
  transform: translateY(0);
}

.btn-primary {
  box-shadow: 0 6px 20px rgba(243, 154, 45, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(243, 154, 45, 0.45);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-outline {
  transition: all 0.25s ease;
  border: 1px solid rgba(0,0,0,0.3);
}

.btn-outline:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  border-color: #000;
}

.btn-outline:active {
  transform: scale(0.97);
}

/* ===========================================
   SERVICE CARDS — EFECTO 3D + ILUMINACIÓN
   =========================================== */

.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  transform: translateY(0) scale(1);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.35);
}

/* Glow lateral dinámico */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.02) 100%
  );
  opacity: 0;
  transition: opacity .35s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* Iluminación "spotlight" */
.service-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255,255,255,0.12),
      transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 0.35;
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  background: rgba(255,255,255,0.55);  /* tono claro para combinar con tu nuevo fondo */
  border-bottom: 1px solid rgba(0,0,0,0.06);

  transition: background .3s ease, padding .3s ease;
}

.nav-scrolled {
  padding: 0.5rem 6vw !important;
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}


.main-nav nav a {
  position: relative;
  font-size: .9rem;
  letter-spacing: .05em;
  font-weight: 500;
  opacity: .85;
  transition: color .3s ease, opacity .3s ease;
}

.main-nav nav a:hover {
  opacity: 1;
  color: #000;
}

/* Subrayado animado */
.main-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #000; /* color del subrayado */
  border-radius: 2px;
  transition: width .3s ease;
}

.main-nav nav a:hover::after {
  width: 100%;
}

/* Glow suave al pasar */
.main-nav nav a:hover {
  text-shadow: 0 0 6px rgba(0,0,0,0.2);
}

/* ============================================================
   MENÚ HAMBURGUESA SIMPLE
============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 4px;
  transition: 0.3s ease;
}

/* efecto X */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* menú móvil lateral */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 320px;
  height: 100vh;
  padding: 5rem 2rem;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(18px);

  display: flex;
  flex-direction: column;
  gap: 1rem;

  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9000;
}

.mobile-menu a {
  color: #000;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* mostrar botón hamburguesa en móvil */
@media (max-width: 960px) {
  .hamburger {
    display: flex;
  }
  .main-nav nav {
    display: none;
  }
}


/* Evitar que el menú tape el texto del hero en móviles */
@media (max-width: 960px) {
  .hero {
    padding-top: 120px !important; /* Antes tenías ~80px */
  }

  .hero-content {
    grid-template-columns: 1fr; /* texto arriba, video abajo */
    text-align: left;
  }

  .hero-visual {
    justify-content: center; /* Video centrado en móvil */
    margin-top: 2rem;
  }
}
