/* Color Palette Variables */
:root {
  --primary-purple: #4B0082;
  --light-lavender: #E6E6FA;
  --aquamarine: #7FFFD4;
  --smoke-gray: #696969;
  --white: #FFFFFF;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--smoke-gray);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-purple);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section:nth-child(even) {
  background-color: var(--light-lavender);
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(75, 0, 130, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Navigation */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--aquamarine);
}

/* Mobile Menu Toggle (Burger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-purple);
  margin: 3px 0;
  transition: 0.3s;
  transform-origin: center;
}

/* Hide checkbox */
#mobile-menu-checkbox {
  display: none;
}

/* Mobile Menu Animation */
#mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

#mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.8), rgba(230, 230, 250, 0.8)), url('./img/gRzVtQ.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

/* Fix anchor offset for fixed header */
.section {
  scroll-margin-top: 80px;
}

#servicios,
#nosotros,
#contacto {
  scroll-margin-top: 80px;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
  background-color: var(--aquamarine);
  color: var(--primary-purple);
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
  background-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(127, 255, 212, 0.3);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  align-items: center;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(75, 0, 130, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(75, 0, 130, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--aquamarine);
  margin: 1rem 0;
}

/* Features List */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.features-list li {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(75, 0, 130, 0.1);
  transition: transform 0.3s ease;
}

.features-list li:hover {
  transform: translateX(10px);
}

.features-list li::before {
  content: "✓";
  background-color: var(--aquamarine);
  color: var(--primary-purple);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-weight: bold;
}

/* Testimonials Grid */
.testimonials-container {
  margin-top: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial {
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(75, 0, 130, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--light-lavender);
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: bold;
  color: var(--primary-purple);
  margin-bottom: 0.25rem;
}

.testimonial-position {
  color: var(--smoke-gray);
  font-size: 0.9rem;
}

/* Form Styles */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(75, 0, 130, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-purple);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--light-lavender);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--aquamarine);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 10px;
  background: var(--light-lavender);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.radio-option:hover {
  background-color: var(--aquamarine);
}

.radio-option input[type="radio"] {
  margin-right: 10px;
  width: auto;
}

.checkbox-group {
  margin: 1rem 0;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-option input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
  width: auto;
}

.submit-button {
  background: linear-gradient(135deg, var(--primary-purple), var(--aquamarine));
  color: var(--white);
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(75, 0, 130, 0.3);
}

/* Footer */
footer {
  background-color: var(--primary-purple);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--aquamarine);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--light-lavender);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--aquamarine);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--light-lavender);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-purple);
  color: var(--white);
  padding: 1rem;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cookie-banner.show {
  display: block;
  opacity: 1;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-accept,
.cookie-decline {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-accept {
  background-color: var(--aquamarine);
  color: var(--primary-purple);
}

.cookie-decline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cookie-accept:hover,
.cookie-decline:hover {
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    position: relative;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide desktop navigation */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    gap: 0;
  }
  
  /* Show mobile menu when checkbox is checked */
  #mobile-menu-checkbox:checked ~ nav .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--light-lavender);
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    color: var(--primary-purple);
    font-weight: 500;
  }
  
  .nav-links a:hover {
    background-color: var(--light-lavender);
    color: var(--primary-purple);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial {
    margin-bottom: 1rem;
  }
  
  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 100px 0 60px;
    background-attachment: scroll; /* Fix mobile parallax issues */
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  /* Auto-close mobile menu after navigation */
  .nav-links a:target ~ #mobile-menu-checkbox {
    display: none;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Legal Pages Styles */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(75, 0, 130, 0.1);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--light-lavender), var(--aquamarine));
}

.thank-you h1 {
  color: var(--primary-purple);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.thank-you p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.back-button {
  background-color: var(--primary-purple);
  color: var(--white);
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: var(--aquamarine);
  color: var(--primary-purple);
  transform: translateY(-3px);
} 