:root {
  --primary-color: #480952;
  --primary-dark: #2e0637;
  --accent-color: #6d1b7b;
  --light-bg: #f9f9f9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--light-bg);
  color: #333;
  scroll-behavior: smooth;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
  background-color: transparent;
}

nav.scrolled {
  background-color: rgba(72, 9, 82, 0.7);
}

.logo {
  color: white;
  font-weight: 800;
  font-size: 1.2em;
}
.logo img {
  height: 50px;
  width: auto;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: white;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1em;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

header {
  background: url("../image/imagen1.png") no-repeat center center/cover;
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 4em;
}

#servicios .head {
  background: url("../image/imagen3.png") no-repeat center center/cover;
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 4em;
}
.subsection-title {
  margin: 2rem auto;
}
header h1 {
  font-size: 3em;
  font-weight: 800;
}

header p {
  font-size: 1.2em;
  margin-top: 1em;
  max-width: 600px;
}

section {
  padding: 4em 2em;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1em;
  color: var(--primary-color);
}

.mv,
.faq {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.mv-item,
.faq-item,
.service-item {
  background-color: #fff;
  padding: 2em;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-item {
  border-left-color: var(--accent-color);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#cta-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 1em 1.5em;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s ease;
}

#cta-button:hover {
  background-color: var(--primary-dark);
}

.testimonios {
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  width: 300%;
  animation: slide 15s infinite linear;
}

.slider p {
  flex: 1 0 100%;
  padding: 2em;
  text-align: center;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 0 1em;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-66.66%);
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 600px;
  margin: auto;
}

form input,
form textarea {
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

form button {
  background-color: var(--primary-color);
  color: white;
  padding: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: var(--primary-dark);
}

footer {
  text-align: center;
  padding: 2em;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    background: var(--primary-color);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1em;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}
