/* 
   Main stylesheet for quantivorena.com - Financial Audit Company
   Color Palette:
   - Velvet Indigo: #3A1C71 (hero section background)
   - Citrus Flame: #FF6F00 (CTA buttons and highlights)
   - Lilac Quartz: #CBA6F7 (accent borders and headings)
   - Foggy Cloud: #F9F9F9 (main background)
   - Graphite Ash: #2D2D2D (text content)
*/

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 90px; /* Para los enlaces de anclaje */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: #2d2d2d;
  background-color: #f9f9f9;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: #3a1c71;
}

a {
  color: #ff6f00;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3a1c71;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 4rem 0;
}

/* Typography */
h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #3a1c71, #cba6f7);
}

/* Buttons */
.cta-button,
.submit-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #ff6f00;
  color: white;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(255, 111, 0, 0.2);
}

.cta-button:hover,
.submit-button:hover {
  background-color: #e06200;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 111, 0, 0.3);
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo a {
  background: linear-gradient(45deg, #3a1c71, #cba6f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logoGradient 3s infinite alternate;
}

@keyframes logoGradient {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(30deg);
  }
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: #2d2d2d;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff6f00;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: #ff6f00;
  color: white !important;
  padding: 8px 16px;
  border-radius: 4px;
}

.nav-cta:hover {
  background-color: #e06200;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 20px;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #3a1c71;
  transition: all 0.3s ease;
}

/* Main Content Sections */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #3a1c71, #4c2d92);
  overflow: hidden;
  margin-top: 70px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./img/9YgtEI.jpg") center center/cover;
  opacity: 0.2;
  z-index: 1;
}

.animated-text {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px rgba(203, 166, 247, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(203, 166, 247, 1);
  }
}

.company-name {
  color: white;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s forwards 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  flex: 1;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #cba6f7;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-card-img {
  margin: -2rem -2rem 1.5rem -2rem;
  height: 180px;
  overflow: hidden;
}

.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-card:hover .about-card-img img {
  transform: scale(1.05);
}

/* Process Timeline */
.process {
  background-color: #f9f9f9;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(to bottom, #3a1c71, #cba6f7);
}

.timeline-step {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-step:nth-child(odd) {
  flex-direction: row-reverse;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #3a1c71;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(203, 166, 247, 0.3);
}

.step-content {
  width: calc(50% - 40px);
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.step-content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: white;
  transform: rotate(45deg) translateY(-50%);
}

.timeline-step:nth-child(odd) .step-content::before {
  right: -10px;
}

.timeline-step:nth-child(even) .step-content::before {
  left: -10px;
}

/* Services */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h3,
.service-card p {
  padding: 0 1.5rem;
}

.service-card h3 {
  margin-top: 1.5rem;
  color: #3a1c71;
}

.service-card p {
  margin-bottom: 1.5rem;
}

/* Benefits */
.benefits {
  background-color: #f9f9f9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-item {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background-color: #cba6f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  background-color: white;
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  height: 250px;
}

.testimonial-item {
  position: absolute;
  width: 100%;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.testimonial-item.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  color: #cba6f7;
  font-size: 2rem;
  font-weight: bold;
}

.testimonial-author {
  color: #3a1c71;
  font-weight: 600;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cba6f7;
  margin: 0 6px;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.indicator.active {
  opacity: 1;
}

/* FAQ */
.faq {
  background-color: #f9f9f9;
}

.accordion {
  max-width: 800px;
  margin: 2rem auto 0;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  background-color: white;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #3a1c71;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #f5f0ff;
}

.accordion-icon {
  color: #ff6f00;
  font-size: 1.5rem;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.accordion-content {
  background-color: white;
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 1.5rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

/* Contact Form */
.contact-form {
  background-color: white;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #3a1c71;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #cba6f7;
  box-shadow: 0 0 0 3px rgba(203, 166, 247, 0.2);
}

.checkbox-group {
  margin-top: 2rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.checkbox-item input {
  width: auto;
  margin-right: 10px;
}

.checkbox-item label {
  display: inline;
  margin-bottom: 0;
  font-weight: normal;
}

.submit-group {
  text-align: center;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background-color: #3a1c71;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.footer-contact h3,
.footer-links h3 {
  color: #cba6f7;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #cba6f7;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #3a1c71;
  color: white;
  padding: 1rem 0;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cookie-content p {
  flex: 1;
  min-width: 300px;
}

.cookie-content a {
  color: #cba6f7;
}

.cookie-btn {
  background-color: #ff6f00;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cookie-btn:hover {
  background-color: #e06200;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero {
    min-height: 500px;
  }

  .animated-text {
    font-size: 4rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-step {
    flex-direction: row !important;
  }

  .timeline-step:nth-child(odd) {
    flex-direction: row !important;
  }

  .step-content {
    width: calc(100% - 80px);
  }

  .timeline-step:nth-child(odd) .step-content::before,
  .timeline-step:nth-child(even) .step-content::before {
    left: -10px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: height 0.4s ease;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    height: 340px;
    padding: 1rem 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .animated-text {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .about-content {
    flex-direction: column;
  }

  .site-header {
    padding: 0.8rem 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }

  .animated-text {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-item {
    padding: 1.5rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .cookie-content {
    justify-content: center;
    text-align: center;
  }
}
