/* 
 * Global Styles
 */
:root {
  --bg-color: #0b0c10;
  --accent-dark: #1f2833;
  --accent-primary: #45a29e;
  --accent-secondary: #66fcf1;
  --text-color: #c5c6c7;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  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: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 60px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-secondary);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* 
 * Buttons
 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  color: var(--accent-dark);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--accent-dark);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
}

.btn-secondary:hover {
  background-color: var(--accent-secondary);
  color: var(--accent-dark);
}

/* 
 * Header
 */
.site-header {
  background-color: var(--bg-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 1px;
  text-transform: lowercase;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent-secondary);
  background-color: rgba(70, 162, 159, 0.1);
}

.nav-contact {
  color: var(--white) !important;
  background-color: var(--accent-primary);
  border-radius: 4px;
}

.nav-contact:hover {
  background-color: var(--accent-secondary) !important;
  color: var(--accent-dark) !important;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--accent-secondary);
  position: absolute;
  transition: var(--transition);
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-icon span:nth-child(3) {
  bottom: 0;
}

/* 
 * Hero Section
 */
.hero-section {
  min-height: calc(100vh - 80px);
  background-image: url("./img/JIQXD.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 12, 16, 0.75);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-color);
  animation: fadeInUp 1s ease;
}

.hero-content .btn {
  animation: fadeIn 1.5s ease;
}

/* 
 * About Section
 */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* 
 * Services Section
 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--accent-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

/* 
 * Why Us Section
 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature {
  text-align: center;
  padding: 20px;
  background-color: var(--accent-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 
 * Process Section
 */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 30px 20px;
  background-color: var(--accent-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--accent-primary);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 0 auto 15px;
}

/* 
 * Testimonials Section
 */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  background-color: var(--accent-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 5rem;
  color: rgba(70, 162, 159, 0.2);
  position: absolute;
  top: 10px;
  left: 15px;
  line-height: 1;
}

.quote {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.author {
  color: var(--accent-secondary);
  font-weight: 500;
  text-align: right;
}

/* 
 * FAQ Section
 */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--accent-dark);
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-question {
  display: block;
  padding: 15px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background-color: rgba(31, 40, 51, 0.7);
  padding: 0 15px;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 500px;
  padding: 15px;
}

.faq-item input[type="checkbox"]:checked ~ .faq-question {
  background-color: var(--accent-primary);
}

.faq-item input[type="checkbox"]:checked ~ .faq-question::after {
  content: "-";
}

/* 
 * Contact Section
 */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background-color: var(--accent-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(11, 12, 16, 0.3);
  border: 1px solid rgba(70, 162, 159, 0.3);
  border-radius: 4px;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 2px rgba(102, 252, 241, 0.2);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  cursor: pointer;
}

.checkbox-item label {
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-item.consent {
  font-size: 0.9rem;
}

.contact-info {
  background-color: var(--accent-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info ul {
  margin-bottom: 20px;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.map-container {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
}

/* 
 * Footer
 */
.site-footer {
  background-color: var(--accent-dark);
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo .logo-text {
  margin-bottom: 15px;
  display: inline-block;
}

.footer-logo p {
  font-size: 0.9rem;
}

.footer-contact ul,
.footer-links ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
  color: var(--text-color);
  transition: var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 198, 199, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* 
 * Cookie Consent
 */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--accent-dark);
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.cookie-content p {
  margin-bottom: 0;
  margin-right: 20px;
}

/* 
 * Thank You Page (gracias.php)
 */
.thank-you-container {
  max-width: 600px;
  margin: 100px auto;
  background-color: var(--accent-dark);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.thank-you-container h1 {
  color: var(--accent-secondary);
  margin-bottom: 30px;
}

/* 
 * Policy Pages
 */
.policy-container {
  max-width: 900px;
  margin: 40px auto;
  background-color: var(--accent-dark);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.policy-container h1 {
  text-align: center;
  margin-bottom: 30px;
}

.policy-container h2 {
  text-align: left;
  margin-top: 40px;
}

.policy-container h2::after {
  left: 0;
  transform: none;
}

.policy-container ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-container ol {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-container li {
  margin-bottom: 10px;
}

/* 
 * Animations
 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 
 * Media Queries
 */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .menu-toggle:checked ~ .nav-list {
    max-height: 500px;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list a {
    display: block;
    padding: 15px;
    text-align: center;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin-bottom: 15px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 0;
  }

  .policy-container,
  .thank-you-container {
    padding: 20px;
  }
}

/* Style for select option background */
select option {
  background-color: var(--accent-dark);
  color: var(--text-color);
}
