* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Gotham", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #1a1d22;
  color: #ebebee;
}

main {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #2a2d33 0%, #3a3f47 50%, #646666 100%);
  transition: background 0.6s ease;
}

/* Header independiente del main: barra transparente en desktop */
.main-header {
  width: 100%;
  position: relative;
  z-index: 1000;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  width: 100%;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 768px) {
  .main-header {
    height: 0;
    pointer-events: none;
  }

  .main-header .site-nav {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
  }
}

.logo {
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.cta-button {
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  background-color: #00ffff;
  color: #000000;
  text-decoration: none;
  border: 2px solid #00ffff;
  box-shadow: 0 4px 18px rgba(0, 255, 255, 0.45), 0 2px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 255, 255, 0.55);
  filter: brightness(1.05);
}

.cta-button:active {
  transform: translateY(0);
}

/* Hero: espacio reservado bajo header absoluto para que el título no toque logo/CTA */
.hero-stage {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  overflow: hidden;
}

.content {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  margin-left: 5%;
  padding-right: 24px;
  gap: 26px;
  z-index: 4;
  text-align: left;
  align-items: flex-start;
  pointer-events: auto;
}

.juice-text {
  color: #ffffff;
  width: 100%;
  max-width: 45vw;
  text-align: left;
  align-self: flex-start;
}

.hero-title {
  color: #00ffff;
  /* ~15% menor que clamp(36px, 6vw, 88px) */
  font-size: clamp(30.6px, 5.1vw, 74.8px);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.5px;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.juice-info {
  margin-top: 12px;
  color: #ffffff;
  max-width: 100%;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
  font-weight: 500;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.titulo {
  width: auto;
  max-width: 100%;
}

.photos {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.juice-wrapper {
  width: 150px;
  height: 190px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 4px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.static-juice {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  /* Color natural: sin filtros */
}

.juice-wrapper:focus-visible {
  outline: 2px solid rgba(0, 255, 255, 0.7);
  outline-offset: 4px;
}

.juice-wrapper:hover .static-juice {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.juice-wrapper.activePhoto {
  border-bottom-color: #00ffff;
}

.fade-in {
  animation: fadeIn 1.1s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ruedas: detrás del texto, imágenes a color */
.juice-wheel {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  position: absolute;
  right: -250px;
  bottom: -250px;
  transform: rotate(-45deg);
  transition: transform 1s;
  z-index: 1;
  pointer-events: none;
}

.juice-wheel img {
  width: 380px;
  height: auto;
  display: block;
}

.dynamic-juice-1 {
  position: absolute;
  top: -420px;
  right: 120px;
}

.dynamic-juice-2 {
  position: absolute;
  transform: rotate(90deg);
  right: -330px;
  top: 60px;
}

.dynamic-juice-3 {
  position: absolute;
  transform: rotate(180deg);
  bottom: -420px;
  right: 120px;
}

.dynamic-juice-4 {
  position: absolute;
  transform: rotate(-90deg);
  top: 60px;
  left: -330px;
}

.fruits-wheel {
  width: 820px;
  height: 820px;
  border-radius: 50%;
  position: absolute;
  top: -680px;
  left: -550px;
  transform: rotate(-45deg);
  transition: transform 1s;
  z-index: 0;
  pointer-events: none;
}

.fruits-wheel img {
  width: 760px;
  display: block;
  opacity: 1;
}

.dynamic-fruits-1 {
  position: absolute;
  transform: rotate(90deg);
  bottom: -600px;
  left: 10px;
}

.dynamic-fruits-2 {
  position: absolute;
  transform: rotate(180deg);
  bottom: 260px;
  left: -680px;
}

.dynamic-fruits-3 {
  position: absolute;
  transform: rotate(100deg);
  top: -420px;
  left: 120px;
}

.dynamic-fruits-4 {
  position: absolute;
  bottom: 160px;
  right: -700px;
}

/* SECCIONES */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.projects,
.video-section,
.team-section {
  background: #24282e;
  padding: 72px 0;
}

.services {
  background: #2d3138;
  padding: 72px 0;
}

.section-title {
  font-size: 40px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 28px;
}

/* Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  border-bottom: 2px solid #00ffff;
  border-radius: 16px;
  overflow: hidden;
  background: #2f343c;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card__img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: zoom-in;
  background: #1e2126;
  line-height: 0;
}

.project-card__img-btn:focus-visible {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
}

.project-card__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.project-card__body {
  padding: 18px 18px 22px;
}

.project-card__body h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 10px;
}

.project-card__body p {
  color: #ebebee;
  line-height: 1.6;
  font-size: 15px;
  opacity: 0.95;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: scale(1.02);
    border-color: #00ffff;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

.lightbox__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(95vw, 1200px);
  max-height: 90vh;
}

.lightbox__img {
  display: block;
  max-width: min(95vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 255, 255, 0.2);
}

/* Servicios: grid + animación scroll */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  padding: 26px 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(40, 44, 52, 0.85);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.service-card:nth-child(1) {
  transition-delay: 0.05s;
}

.service-card:nth-child(2) {
  transition-delay: 0.12s;
}

.service-card:nth-child(3) {
  transition-delay: 0.19s;
}

.service-card:nth-child(4) {
  transition-delay: 0.26s;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }
}

.service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.08);
}

.service-card__title {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.service-card__desc {
  color: #ebebee;
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.96;
}

/* Video */
.video-corporativo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #2f343c;
  border: 1px solid rgba(0, 255, 255, 0.18);
}

.video-corporativo__title {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 255, 255, 0.35);
  color: #00ffff;
  font-weight: 800;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.video-corporativo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Equipo: carrusel con flechas */
.team-shell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-nav {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #00ffff;
  background: rgba(30, 33, 38, 0.9);
  color: #00ffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.team-nav:hover {
  background: #00ffff;
  color: #000000;
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.4);
}

.team-nav:focus-visible {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
}

.team-carousel {
  flex: 1;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 4px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 255, 0.35) transparent;
}

.team-carousel::-webkit-scrollbar {
  height: 8px;
}

.team-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.35);
  border-radius: 999px;
}

.team-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: #2f343c;
  border-radius: 16px;
  border-bottom: 2px solid #00ffff;
  padding: 20px 16px 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 255, 255, 0.18), 0 16px 40px rgba(0, 0, 0, 0.35);
    border-bottom-color: #7fffff;
  }
}

.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 255, 255, 0.35);
  margin: 0 auto 12px;
  display: block;
}

.team-card h3 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 8px;
}

.team-card p {
  color: #ebebee;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

/* Contacto: gris profundo + textura sutil */
.contact-section {
  padding: 64px 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(0, 255, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(82, 190, 192, 0.08), transparent 45%),
    linear-gradient(165deg, #323740 0%, #262a30 45%, #1e2228 100%);
}

/* 🔥 CAMBIO CLAVE: de grid horizontal a vertical */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Texto */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px; /* para que no se vea muy estirado */
}

/* Dirección */
.address {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.65;
  padding: 20px;
  border-radius: 16px;
  background: rgba(45, 49, 56, 0.75);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

/* Texto secundario */
.contact-hint {
  font-size: 15px;
  color: #ebebee;
  line-height: 1.6;
  opacity: 0.92;
  padding: 0 4px;
}

/* 🔥 MAPA FULL WIDTH */
.map-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: #2f343c;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 32px rgba(0, 255, 255, 0.12);
}

/* iframe ocupa todo */
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer minimalista */
.footer {
  background: #1e2328;
  color: #ebebee;
  padding: 32px 0 18px;
  border-top: 1px solid rgba(0, 255, 255, 0.18);
}

.footer-contenido {
  max-width: 1200px;
  padding: 0 80px;
  margin: 0 auto;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  width: 88px;
  height: auto;
  margin-bottom: 4px;
  display: block;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 2px;
  line-height: 1.3;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #ebebee;
  text-decoration: none;
  font-size: 15px;
}

.footer-col a:hover {
  color: #00ffff;
}

.footer-col p,
.footer-brand p {
  color: #dfdfe1;
  line-height: 1.55;
  font-size: 14px;
}

.footer-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(235, 235, 238, 0.55);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .section-inner {
    padding: 0 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-contenido {
    padding: 0 20px;
    gap: 28px;
    align-items: stretch;
  }

  .footer-col {
    min-width: 100%;
  }

  .team-shell {
    gap: 8px;
  }

  .team-nav {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .cta-button {
    font-size: 14px;
    padding: 10px 18px;
  }
}

/* Móvil: header en flujo + hero sin solaparse con la barra */
@media (max-width: 767px) {
  .main-header {
    height: auto;
    pointer-events: auto;
  }

  .site-nav {
    position: relative;
    padding: 20px 5%;
  }

  .hero-stage {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .content {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 0 5%;
    text-align: center;
    align-items: center;
    gap: 22px;
  }

  .juice-text {
    text-align: center;
    max-width: 100%;
    align-self: center;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

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

  .photos {
    justify-content: center;
    flex-wrap: wrap;
  }

  .juice-wrapper {
    width: 82px;
    height: 115px;
    border-bottom-width: 3px;
  }

  .juice-wheel {
    right: -320px;
    bottom: -380px;
    z-index: 1;
  }

  .fruits-wheel {
    z-index: 0;
  }
}

@media (max-width: 420px) {
  .cta-button {
    font-size: 12px;
    padding: 9px 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 32px;
  }
}

/* FORMULARIO DE PROYECTO */
.form-section {
  padding: 64px 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(0, 255, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 45% at 95% 50%, rgba(0, 255, 255, 0.06), transparent 45%),
    linear-gradient(165deg, #2a2f36 0%, #232730 45%, #1c2028 100%);
}

.project-form {
  margin-top: 10px;
}

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

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

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(12, 14, 18, 0.68);
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  color: #ebebee;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-size: 15px;
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(0, 255, 255, 0.9) 50%),
    linear-gradient(135deg, rgba(0, 255, 255, 0.9) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(235, 235, 238, 0.5);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.field input:invalid:focus,
.field select:invalid:focus,
.field textarea:invalid:focus {
  box-shadow: 0 0 0 4px rgba(255, 90, 90, 0.14), 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 90, 90, 0.55);
}

.form-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-submit {
  background: #00ffff;
  color: #000000;
  font-weight: 800;
  border: 2px solid #00ffff;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 28px rgba(0, 255, 255, 0.22);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 255, 255, 0.32);
  filter: brightness(1.04);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit:focus-visible {
  outline: 2px solid rgba(0, 255, 255, 0.7);
  outline-offset: 4px;
}

.form-disclaimer {
  color: rgba(235, 235, 238, 0.72);
  font-size: 13px;
  line-height: 1.4;
  max-width: 420px;
}

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

  .form-actions {
    justify-content: center;
    text-align: center;
  }

  .form-disclaimer {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main,
  .juice-wheel,
  .fruits-wheel,
  .project-card,
  .static-juice,
  .service-card,
  .team-card {
    transition: none !important;
  }

  .service-card {
    opacity: 1;
    transform: none;
  }
}
