:root {
  --gap: 1.25rem;
  --speed: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --closed: 5rem;
  --open: 30rem;
  --accent: #ff6b35;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Inter, sans-serif;
  background: #07090d;
  color: #c5c7ce;
  position: relative;
  min-height: 100vh;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('img/Generated Image December 09, 2025 - 9_08PM.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(15px) brightness(0.75) saturate(1.8);
  transform: scale(1.1);
  opacity: 1;
}

.background-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(7, 9, 13, 0) 0%,
    rgba(7, 9, 13, 0.1) 40%,
    rgba(7, 9, 13, 0.4) 70%,
    rgba(7, 9, 13, 0.8) 100%
  );
  pointer-events: none;
}

.background-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 13, 0.3) 0%,
    rgba(7, 9, 13, 0.15) 20%,
    rgba(7, 9, 13, 0.2) 40%,
    rgba(7, 9, 13, 0.3) 60%,
    rgba(7, 9, 13, 0.5) 80%,
    rgba(7, 9, 13, 0.9) 100%
  );
  pointer-events: none;
}

.logo-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo-title {
  font-family: 'Bebas Neue', 'Oswald', 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 4.5rem;
  letter-spacing: 0.15em;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 
    0 0 20px rgba(255, 107, 53, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.8),
    2px 2px 0px rgba(255, 107, 53, 0.3);
  line-height: 1;
  position: relative;
}

.logo-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

.logo-description {
  font-family: Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #c5c7ce;
  margin: 1.5rem 0 0;
  letter-spacing: 0.02em;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.logo-line {
  display: block;
  font-style: italic;
}

@media (min-width: 768px) {
  .logo-title {
    font-size: 6rem;
    letter-spacing: 0.2em;
  }
  
  .logo-description {
    font-size: 1.25rem;
    margin-top: 2rem;
    gap: 0.4rem;
  }
  
  .logo-line {
    font-size: inherit;
  }
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  padding: 16px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #2FE576 0%, #25D366 100%);
}

.whatsapp-button:active {
  transform: translateY(-2px) scale(1.02);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.whatsapp-text {
  font-family: Inter, sans-serif;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    font-size: 0.9rem;
    gap: 10px;
  }
  
  .whatsapp-icon {
    width: 24px;
    height: 24px;
  }
  
  .whatsapp-text {
    display: none;
  }
  
  .whatsapp-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .whatsapp-button {
    bottom: 15px;
    right: 15px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-icon {
    width: 22px;
    height: 22px;
  }
}


.head {
  max-width: 1400px;
  margin: auto;
  padding: 70px 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.head h2 {
  font: 400 1.5rem/1.2 Inter, sans-serif;
  color: #fff;
}
@media (min-width: 1024px) {
  .head h2 {
    font-size: 2.25rem;
  }
}
.nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}
.nav-btn:hover {
  background: var(--accent);
}
.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.slider {
  max-width: 1400px;
  margin: auto;
  overflow: visible;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.controls {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}
.track {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  justify-content: center;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 18rem 40px 28rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 28rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.track:active {
  cursor: grabbing;
}

.track::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1200px) {
  .track {
    padding: 20px 12rem 40px 22rem;
    scroll-padding: 0 22rem;
  }
}

@media (max-width: 900px) {
  .track {
    padding: 20px 8rem 40px 18rem;
    scroll-padding: 0 18rem;
  }
}
.project-card {
  position: relative;
  flex: 0 0 var(--closed);
  height: 26rem;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex-basis var(--speed), transform var(--speed);
  flex-shrink: 0;
  scroll-snap-align: center;
  will-change: flex-basis, transform;
}
.project-card[active] {
  flex-basis: var(--open);
  transform: translateY(-6px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}
.project-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(75%);
  transition: filter 0.3s, transform var(--speed);
}
.project-card:hover .project-card__bg {
  filter: brightness(0.9) saturate(100%);
  transform: scale(1.06);
}

.project-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
}
.project-card__title {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.project-card__thumb,
.project-card__desc,
.project-card__btn {
  display: none;
}

.project-card[active] .project-card__content {
  flex-direction: row;
  align-items: center;
  padding: 1.2rem 2rem;
  gap: 1.1rem;
}
.project-card[active] .project-card__title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 2.4rem;
}
.project-card[active] .project-card__thumb,
.project-card[active] .project-card__desc,
.project-card[active] .project-card__btn {
  display: block;
}

.project-card__thumb {
  width: 133px;
  height: 269px;
  border-radius: 0.45rem;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.project-card__desc {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 16rem;
}
.project-card__btn {
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.project-card__btn:hover {
  background: #ff824f;
}

.dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 20px 0;
}
.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.3s;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 767px) {
  :root {
    --closed: 100%;
    --open: 100%;
    --gap: 0;
  }

  html, body {
    height: 100%;
    overflow: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
  }

  .logo-header {
    padding: 15px 15px 10px;
    flex-shrink: 0;
  }

  .logo-title {
    font-size: 2rem;
    letter-spacing: 0.08em;
  }

  .logo-description {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    gap: 0.15rem;
  }

  .head {
    padding: 15px 15px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    flex-shrink: 0;
  }

  .head h2 {
    font-size: 1rem;
    line-height: 1.3;
  }

  section {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  .slider {
    padding: 0;
    overflow: hidden;
    max-width: 100%;
    height: calc(100vh - 180px);
    position: relative;
    flex: 1;
    min-height: 0;
  }

  .track {
    flex-direction: column !important;
    scroll-snap-type: y mandatory !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: 100% !important;
    scroll-behavior: smooth !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    -webkit-overflow-scrolling: touch;
  }

  .project-card {
    height: 100% !important;
    min-height: 100% !important;
    flex: 0 0 100% !important;
    width: 100vw !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .project-card[active] {
    transform: none !important;
    box-shadow: none !important;
  }

  .project-card__bg {
    filter: brightness(0.65) saturate(1.2) !important;
    object-fit: cover !important;
  }

  .project-card:hover .project-card__bg {
    transform: none !important;
  }

  .project-card__content {
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 2rem 1.5rem 3rem !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 30%,
      rgba(0, 0, 0, 0.6) 60%,
      rgba(0, 0, 0, 0.9) 100%
    ) !important;
  }

  .project-card__title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 1.8rem !important;
    margin: 0 !important;
    text-align: left !important;
    width: 100% !important;
    line-height: 1.2 !important;
  }

  .project-card__thumb {
    display: none !important;
  }

  .project-card__desc {
    display: block !important;
    font-size: 0.95rem !important;
    max-width: 100% !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .project-card__btn {
    display: block !important;
    padding: 0.9rem 2.5rem !important;
    font-size: 1rem !important;
    margin-top: 0.5rem !important;
    width: auto !important;
  }

  .project-card[active] .project-card__desc,
  .project-card[active] .project-card__btn {
    display: block !important;
  }

  .dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 5;
  }

  .controls {
    width: 100%;
    justify-content: space-between;
    padding: 10px 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(
      180deg,
      rgba(7, 9, 13, 0.9) 0%,
      rgba(7, 9, 13, 0.7) 50%,
      transparent 100%
    );
    backdrop-filter: blur(10px);
  }

  .nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    position: static;
    transform: none;
  }

  section {
    padding-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .whatsapp-button {
    position: static !important;
    width: 90% !important;
    max-width: 400px !important;
    margin: 20px auto 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 18px 30px !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
    bottom: auto !important;
    right: auto !important;
    gap: 12px !important;
    flex-shrink: 0;
    z-index: 5;
  }

  .whatsapp-text {
    display: block !important;
    font-size: 1.1rem !important;
  }

  .whatsapp-icon {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ---------------------------------------------
 * Versión MÓVIL – slider horizontal 3 en vista
 * --------------------------------------------- */
@media (max-width: 767px) {
  :root {
    /* 1 slide a pantalla casi completa */
    --closed: 100vw;
    --open: 100vw;
    --gap: 0;
  }

  html,
  body {
    height: 100%;
    overflow-x: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
  }

  section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .slider {
    flex: 1;
    max-width: 100%;
    /* Altura aún más baja para garantizar que el botón se vea sin scroll */
    height: 35vh;
    padding: 0 8px;
    overflow: hidden;
  }

  .track {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: var(--gap) !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
  }

  .project-card {
    /* cada slide ocupa todo el ancho visible */
    flex: 0 0 var(--closed) !important;
    height: 100% !important;
    border-radius: 14px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    margin: 0 !important;
  }

  .project-card[active] {
    flex-basis: var(--open) !important;
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  }

  .project-card__bg {
    object-fit: cover !important;
  }

  .project-card__content {
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding: 1.5rem 1.25rem 2rem !important;
    gap: 0.8rem !important;
  }

  .project-card__title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .project-card__thumb {
    display: none !important;
  }

  .project-card__desc {
    display: block !important;
    font-size: 0.95rem !important;
    max-width: 100% !important;
    line-height: 1.45 !important;
  }

  .project-card__btn {
    display: inline-flex !important;
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem !important;
    margin-top: 0.5rem !important;
  }

  .dots {
    display: none !important;
  }

  /* Botón de WhatsApp centrado en móvil */
  .whatsapp-button {
    position: static !important;
    width: 90% !important;
    max-width: 420px !important;
    margin: 12px auto 24px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 18px 30px !important;
    font-size: 1.05rem !important;
    border-radius: 999px !important;
    gap: 12px !important;
  }

  .whatsapp-text {
    display: block !important;
  }
}

/* Tablet: centrar botón WhatsApp también */
@media (min-width: 768px) and (max-width: 1024px) {
  .slider {
    max-width: 100%;
    padding: 0 16px;
  }

  .track {
    padding: 16px 0 24px 0;
  }

  .project-card {
    border-radius: 16px;
  }

  /* Ocultar flechas y dots en tablet para un look más limpio */
  .controls,
  .dots {
    display: none;
  }

  .whatsapp-button {
    position: static;
    width: 60%;
    max-width: 480px;
    margin: 24px auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Ocultar flechas y dots en móvil y tablet (última prioridad) */
@media (max-width: 1024px) {
  .controls,
  .dots {
    display: none !important;
  }
}