* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(90deg, #262829, #363a3b, #494e4f);
  color: #fff;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: fixed;
  width: 100%;
  background: linear-gradient(90deg, #262829, #363a3b, #494e4f);
  z-index: 1000;
  border-bottom: 1px solid #222;
}

.logo {
  background: linear-gradient(90deg, #446dcd, #4bb6d3, #6ef2cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  gap: 0.5rem;
  text-align: center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 12px;
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

nav a:hover {
  color: #4176FF;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/home.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  background: linear-gradient(90deg, #446dcd, #4bb6d3, #6ef2cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero p {
  max-width: 600px;
  margin-top: 1rem;
  opacity: 0.8;
  font-size: 1.2rem;
}

section[id] {
  scroll-margin-top: 80px;
}

section {
  padding: 2rem 2rem;
  text-align: center;
}

section span {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #446dcd, #4bb6d3, #6ef2cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.scene {
  width: 330px;
  height: 300px;
  perspective: 1000px;
}

.service {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
  box-shadow: 0 20px 30px rgba(65, 118, 255, 0.5);
  border-radius: 12px;
}

.scene:hover .service {
  transform: rotateY(180deg);
}

.service .front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 2rem;
  box-sizing: border-box;
}

.service .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-sizing: border-box;
}

.front {
  background: linear-gradient(90deg, #262829, #363a3b, #494e4f);
  color: white;
}

.back {
  background: #000;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.back img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }

  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

@media (hover: none) and (pointer: coarse) {
  .service:active {
    transform: rotateY(15deg) rotateX(5deg);
    box-shadow: 0 20px 30px rgba(65, 118, 255, 0.5);
  }
}

@media (hover: none) and (pointer: coarse) {
  .scene:active .service {
    transform: rotateY(180deg);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.95rem;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }
}

.service h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service p {
  opacity: 0.7;
}

.about,
.contact,
.instagram {
  max-width: 800px;
  margin: auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

input,
textarea,
button {
  padding: 1rem;
  border: none;
  border-radius: 8px;
}

input,
textarea {
  background: #222;
  color: white;
}

button:hover {
  background: linear-gradient(90deg, #446dcd, #4bb6d3, #6ef2cc);
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #222;
  opacity: 0.6;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

#testimonios {
  padding: 40px 0;
  text-align: center;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.carousel-inner {
  display: flex;
  transition: transform 0.7s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
  background: linear-gradient(90deg, #262829, #363a3b, #494e4f);
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s;
}

.testimonial-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  color: white;
  font-size: 1.1em;
}

.testimonial-card h4 {
  margin-top: 15px;
  font-weight: bold;
  color: white;
}

.testimonial-card span {
  font-size: 0.9em;
  color: #888;
}

.carousel-button {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  background: #ddd;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-size: 20px;
}

.carousel-button:hover {
  background: linear-gradient(90deg, #446dcd, #4bb6d3, #6ef2cc);
}

.carousel-button.left {
  left: -60px;
}

.carousel-button.right {
  right: -60px;
}

.cta {
  background: linear-gradient(90deg, #262829, #363a3b, #494e4f);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 span {
  font-size: 32px;
  font-weight: bold;
}

.cta p {
  font-size: 16px;
  margin: 20px 0;
}

.cta-button {
  display: inline-block;
  padding: 10px 30px;
  background: linear-gradient(90deg, #6f7578, #9ca4a8, #c9d3d8);
  color: black;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background: linear-gradient(90deg, #446dcd, #4bb6d3, #6ef2cc);
}

.cta-button:focus {
  outline: 2px solid #4bb6d3;
  outline-offset: 3px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: linear-gradient(90deg, #6f7578, #9ca4a8, #c9d3d8);
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.faq-question.active {
  background: linear-gradient(90deg, #446dcd, #4bb6d3, #6ef2cc);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  padding: 0 15px;
}

.faq-answer.active {
  max-height: 200px;
  opacity: 1;
  padding: 10px 15px;
}

.float-button {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  background-color: #25D366;
  border-radius: 50%;
  text-align: center;
  z-index: 1001;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.float-button img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.float-button .float-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  animation: fadeInFloat 1s ease-in-out infinite alternate;
}

/* Específico para WhatsApp */
.whatsapp-float {
  right: 25px;
  margin-top: 0px;
  background-color: #25D366;
}

.whatsapp-float .float-text {
  right: 70px;
  color: #25D366;
}

/* Específico para Instagram */
.instagram-float {
  left: 25px;
  background-color: #E1306C;
}

.instagram-float .float-text {
  left: 70px;
  color: #E1306C;
}

@keyframes fadeInFloat {
  0% {
    opacity: 0.5;
    transform: translateY(-50%) translateX(0);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Responsive para evitar que se monten uno sobre otro */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 25px;
  }

  .instagram-float {
    bottom: 90px;
  }
}

.correo-soporte {
  all: unset;
  color: #4bb6d3;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
  user-select: none;
}

.correo-soporte:hover {
  color: #6ef2cc;
  text-decoration: none;
}

.copiado-msg {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.9rem;
  color: #6ef2cc;
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    display: none;
  }
}