/* Base Styles */
:root {
  --color-bg: #fffbf5;
  --color-text: #222;
  --color-red: #ff5a5f;
  --color-dark: #2a2d34;
  --color-mint: #92e3a9;
  --color-peach: #fec260;
  --color-form-bg: #fff9f0;
  --max-width: 1200px;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-red);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-dark);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-red);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--color-dark);
  max-width: 700px;
  margin: 0 auto;
}

button {
  cursor: pointer;
  background-color: var(--color-red);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover {
  background-color: var(--color-dark);
  transform: translateY(-2px);
}

/* Header Styles */
.main-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
}

.logo a {
  color: var(--color-dark);
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-dark);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--color-dark);
  font-weight: 600;
  padding: 8px;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-red);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background-color: var(--color-dark);
  color: white;
  padding: 15px 0;
  box-shadow: var(--shadow);
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s ease;
}

.cookie-popup.active {
  bottom: 0;
  opacity: 1;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.cookie-content p {
  flex: 1;
  min-width: 280px;
}

/* Hero Section */
.hero {
  background-image: url("./img/GYByP.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-red);
  color: white;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: var(--color-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.about-text p {
  margin-bottom: 15px;
}

/* Benefits Section */
.benefits {
  background-color: var(--color-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--color-red);
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-dark);
}

/* Services Section */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-dark);
}

.service-content p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  align-self: flex-start;
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-red);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-top: auto;
}

.service-link:hover {
  background-color: var(--color-dark);
  color: white;
}

/* Why Us Section */
.why-us {
  background-color: var(--color-bg);
}

.why-us-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.why-us-text {
  flex: 1;
  min-width: 300px;
}

.why-us-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.why-us-list {
  list-style: none;
}

.why-us-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.why-us-list li::before {
  content: "✓";
  display: inline-block;
  margin-right: 10px;
  color: var(--color-red);
  font-weight: 700;
}

.why-us-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Reviews Section */
.reviews {
  background-color: white;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: var(--color-bg);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

.review-text {
  margin-bottom: 20px;
  font-style: italic;
}

.review-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-red);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 10px;
  line-height: 1;
}

.review-author {
  display: flex;
  align-items: center;
}

.review-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.review-author-name {
  font-weight: 600;
}

.review-author-title {
  font-size: 0.9rem;
  color: #666;
}

/* Form Section */
.contact-form {
  background-color: var(--color-form-bg);
  padding: 50px 0;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-red);
  outline: none;
}

select.form-control option {
  background-color: white;
  padding: 10px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-check-input {
  margin-right: 10px;
  margin-top: 4px;
}

.form-check-label {
  font-size: 0.9rem;
}

.form-submit {
  text-align: center;
}

.form-button {
  background-color: var(--color-red);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-button:hover {
  background-color: var(--color-dark);
  transform: translateY(-2px);
}

/* FAQ Section */
.faq {
  background-color: var(--color-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  background-color: white;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
}

.faq-question label {
  display: block;
  padding-right: 30px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-dark);
}

.faq-question label::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  background-color: var(--color-form-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 20px;
}

.faq-control {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-control:checked + .faq-question label::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-control:checked ~ .faq-answer {
  max-height: 500px;
}

/* Footer Styles */
.main-footer {
  background-color: var(--color-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-info,
.footer-contact,
.footer-links {
  padding: 0 15px;
}

.footer-info h2 {
  margin-bottom: 20px;
}

.footer-info p {
  opacity: 0.8;
}

.footer-contact h3,
.footer-links h3 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-links h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-red);
}

.footer-contact address {
  font-style: normal;
  opacity: 0.8;
}

.footer-contact a {
  color: white;
}

.footer-contact a:hover {
  color: var(--color-red);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-red);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Gracias Page */
.thank-you {
  text-align: center;
  padding: 60px 20px;
  max-width: 700px;
  margin: 5rem auto;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.thank-you h2 {
  font-size: 2.5rem;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.thank-you p {
  margin-bottom: 30px;
}

/* Policy Pages */
.policy-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.policy-content h1 {
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.policy-content h2 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin: 30px 0 15px;
}

.policy-content p,
.policy-content ul {
  margin-bottom: 15px;
}

.policy-content ul {
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 5px;
}

/* Media Queries */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .menu-icon {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 500px;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 15px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-content button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .form-container {
    padding: 20px;
  }
}
