:root {
  --primary: #f5c116;
  --accent: #22d3ee;
  --dark: #14120e;
  --light: #f1f5f9;
  --bg: #0f172a;
  --fun-font: 'Comic Sans MS', cursive;
}

body {
  background: var(--bg);
  color: var(--light);
  font-family: var(--fun-font), sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.hero {
  background: var(--dark);
  text-align: center;
  padding: 4rem 2rem;
  color: #111;
}

.hero .logo {
  width: 240px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2rem;
  color: var(--primary);
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.9));
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.hero p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.btn {
  position: relative;
  border: 2px solid transparent;
  background: var(--dark);
  color: var(--accent);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: transform 0.2s ease;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  z-index: 1;
  overflow: hidden;
}

/* Glowing animated border using pseudo-element */
.btn::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(45deg, white, var(--accent), var(--dark), var(--accent));
  background-size: 400% 400%;
  animation: borderGlow 5s linear infinite;
}

/* Optional inner glow */
.btn::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 28px;
  background: var(--dark);
  z-index: -1;
}

/* Animation keyframes */
@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.btn:hover {
  transform: scale(1.15);
  background: var(--accent);
  color: var(--primary);
}

.btn2 {
  background-color: var(--primary); 
  color: white;
}
.btn2:hover {
  background-color: var(--accent); 
  color: var(--primary);
}

.floating-section {
  position: relative;
  text-align: center;
  margin: 2rem auto;
}

.floating-img {
  width: 90%;
  max-width: 700px;
  animation: float 4s ease-in-out infinite;
}

.caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--accent);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.section {
  padding: 3rem 2rem;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: var(--dark);
  border-radius: 15px;
  padding: 1rem;
  width: 280px;
  color: var(--light);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}
.card h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  color: var(--primary);
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.card p {
  font-size: 1.2rem;
  color: #cbd5e1;
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  border-radius: 10px;
}


.price-badge {
  position: absolute;
  background-color: var(--accent);
  color: white;
  font-weight: bold;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  top: 10px;
  right: 10px;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.buy-btn {
  margin-top: 1rem;
  background-color: #25D366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Arial Rounded MT Bold', sans-serif;
  transition: background-color 0.3s ease;
}

.buy-btn:hover {
  background-color: var(--accent);
}






.cta {
  background: var(--primary);
  color: #111;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.avatar-wrapper {
  position: absolute;
  bottom: -10px;
  right: 1rem;
  max-width: 150px;
  z-index: 2;
}

.avatar-hi {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 💬 Speech bubble */
.speech-bubble {
  position: absolute;
  bottom: 100%;
  right: 100px;
  top: 60px;
  background: rgba(255, 255, 255, 0.809);
  color: #111;
  padding: 1rem 0.5rem 2rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  animation: floatHi 3s ease-in-out infinite, pulse 1.8s infinite;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

/* 💬 Tail of speech bubble */
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 10px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: black;
}


@media (max-width: 768px) {
  .speech-bubble {
    top: 30px;
    right: 50px;
    height: 30px;
  }
  .speech-bubble::after {
    bottom: -16px;
  }
}

/* ✨ Float animation */
@keyframes floatHi {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ✨ Pulse animation */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  50% { box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.3); }
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .avatar-wrapper {
    max-width: 90px;
    right: 0.5rem;
  }

  .speech-bubble {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--dark);
  color: var(--light);
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

/* === Redes Sociales / Footer Buttons === */
footer .social {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

footer .social a:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Colores específicos para cada red */
footer .social a[href*="wa.me"] {
  background-color: #25D366;
  color: white;
}

footer .social a[href*="facebook.com"] {
  background-color: #1877F2;
  color: white;
}

footer .social a[href*="instagram.com"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
}

footer .social a[href*="mailto:"] {
  background-color: #FF6B6B;
  color: white;
}


/* === Modal === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--dark);
  color: #111;
  padding: 2rem;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  animation: slideUp 0.4s ease-out;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  position: relative;
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.modal-content p {
  font-size: 1rem;
  color: #cbd5e1;
}

.modal-content .pdt-note {
  font-size: 1.2rem;
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  margin-top: 10px;
  color: var(--accent);
}

.modal-content .btn {
  background: var(--primary);
  color: black;
}

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

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}

.card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 25px #f5c116;
}

/* === Comic Carousel === */
.instructions-carousel {
  background: linear-gradient(to right, #f9fafb, #e0f2fe);
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
}

.instructions-carousel h2 {
  font-family: 'Comic Sans MS', cursive;
  color: #1d4ed8;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* === Hero Video === */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
z-index: 0;
  z-index: 1;
  filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
  z-index: 2;
  position: relative;
  max-width: 900px;
  padding: 2rem;
}

.hero-overlay .logo {
  width: 80px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.6));
}

.hero-overlay h1 {
  font-size: 2.2rem;
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-overlay .logo {
    width: 80px;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
}







: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;
}

.head {
  max-width: 1400px;
  margin: auto;
  padding: 70px 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.head h2 {
  font: 400 1.5rem/1.2 Inter, sans-serif;
  color: #fff;
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
@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: hidden;
}

.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-bottom: 40px;
}
.track::-webkit-scrollbar {
  display: none;
}

.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);
}
.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;
  z-index: 2;
}
.project-card__title {
  color: var(--primary);
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.9));
  font-weight: 700;
  font-size: 1.35rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
.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: 173px;
  height: 269px;
  border-radius: 0.45rem;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.project-card__desc {
  color: black;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 16rem;
  background-color: white;
  border-radius: 0.35rem;
  padding: 5px;
  margin-bottom: 0.5rem;
  height: auto;
  overflow: auto;
  box-shadow: 0 4px 10px rgba(250, 250, 250, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.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(--primary);
  transform: scale(1.2);
}

@media (max-width: 767px) {
  :root {
    --closed: 4rem;
    --open: 22rem;
  }
  .head {
    padding: 50px 20px 30px;
  }
  .track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 0;
  }
  .project-card {
    height: 20rem;
  }
  .project-card__title {
    font-size: 1.1rem;
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    padding-inline: 0.3rem;
  }
  .nav-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
}
@media (max-width: 767px) {
  :root {
    --closed: 100%;
    --open: 100%;
    --gap: 0.8rem;
  }

  .head {
    padding: 30px 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .slider {
    padding: 0 15px;
  }

  .track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    gap: 0.8rem;
    padding-bottom: 20px;
  }

  .project-card {
    height: auto;
    min-height: 80px;
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
  }

  .project-card[active] {
    min-height: 300px;
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .project-card__content {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
  }

  .project-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.2rem;
    margin-right: auto;
  }

  .project-card__thumb,
  .project-card__desc,
  .project-card__btn {
    display: none;
  }

  .project-card[active] .project-card__content {
    align-items: flex-start;
    padding: 1.5rem;
  }

  .project-card[active] .project-card__title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }

  .project-card[active] .project-card__thumb {
    width: 200px;
    height: 267px;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
  }

  .project-card[active] .project-card__desc {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .project-card[active] .project-card__btn {
    align-self: center;
    width: 100%;
    text-align: center;
    padding: 0.7rem;
  }

  .dots {
    display: none;
  }

  .controls {
    width: 100%;
    justify-content: space-between;
    padding: 0 15px 20px;
  }

  .nav-btn {
    position: static;
    transform: none;
  }
}





/* === Fullscreen Modal === */
.fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
}

.fullscreen-modal img {
  width: 100%;
  max-width: 1200px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.fullscreen-modal img:hover {
  transform: scale(1.01);
}

.fullscreen-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  text-shadow: 0 0 10px #fff;
}

.fullscreen-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.fullscreen-nav button {
  background-color: var(--dark);
  border: none;
  font-size: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  color: #111;
  cursor: pointer;
  animation: glow 1.5s infinite alternate;
  box-shadow: 0 0 12px var(--primary);
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px var(--primary);
  }
  100% {
    box-shadow: 0 0 25px var(--accent);
  }
}

@media (max-width: 768px) {
  .fullscreen-modal img {
    max-height: 70vh;
    width: 100%;
  }

  .fullscreen-nav button {
    font-size: 2rem;
    padding: 0.4rem 0.8rem;
  }
}








#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  text-align: center;
  color: white;
  animation: fadeOut 1s ease forwards;
  animation-delay: 2.8s;
  pointer-events: none;
  background-image: url('./../images/box-fade.jpg');
  background-size: cover;
  background-position: center;
}

#preloader .btn {
  pointer-events: all;
  margin-top: 1rem;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
