/* GENERAL STYLES */
:root {
  --primary: #1f3a93;
  --accent: #ffc857;
  --background: #fff8f0;
  --text: #2d2d2d;
  --ui: #8fd694;
}

* {
  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;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER STYLES */
header {
  background-color: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

/* NAVIGATION STYLES */
.hamburger {
  display: none;
}

#menu-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  list-style-type: none;
  gap: 20px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--accent);
}

/* HERO SECTION */
.hero {
  background-image: url("./img/ziBx0.jpg");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary);
  color: white;
}

/* SECTION STYLING */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary);
  font-size: 2.5rem;
}

.section-subtitle {
  text-align: center;
  margin: -30px auto 50px;
  max-width: 700px;
  color: var(--text);
  font-size: 1.1rem;
}

/* ABOUT US SECTION */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ADVANTAGES SECTION */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.advantage-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-card img {
  width: 50%;
  height: auto;
  margin-bottom: 20px;
}

.advantage-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* TESTIMONIALS SECTION */
.testimonials-slider {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  overflow: hidden;
}

.testimonial {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: 0 15px;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
}

.client-info {
  display: flex;
  align-items: center;
}

.client-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.client-position {
  color: #777;
  font-size: 0.9rem;
}

/* FAQ SECTION */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: white;
  padding: 15px;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  color: var(--primary);
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  transition: background-color 0.3s;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  background-color: rgba(255, 255, 255, 0.8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 15px;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px; /* Adjust this value based on content */
  padding: 15px;
}

.faq-checkbox:checked ~ .faq-question::after {
  content: "-";
}

/* FORM SECTION */
.form-section {
  background-color: var(--primary);
  color: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.form-select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
}

.form-checkbox {
  margin-right: 10px;
}

.form-option {
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group label {
  color: var(--text);
  font-size: 0.9rem;
  flex: 1;
}

.checkbox-group a {
  color: var(--primary);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.form-btn {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  width: 100%;
}

.form-btn:hover {
  background-color: var(--primary);
  color: white;
}
#contacto h2,
#contacto p {
  color: var(--accent);
}

/* FOOTER */
footer {
  background-color: var(--primary);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* COOKIES POPUP */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  margin-right: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.cookie-btn.reject {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

/* THANK YOU PAGE */
.thank-you-container {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 40px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background-color: white;
}

.thank-you-container h1 {
  color: var(--primary);
  margin-bottom: 20px;
}

.thank-you-container p {
  margin-bottom: 30px;
}

/* POLICY PAGES */
.policy-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.policy-container h1 {
  color: var(--primary);
  margin-bottom: 30px;
}

.policy-container h2 {
  color: var(--primary);
  margin: 30px 0 15px;
}

.policy-container p,
.policy-container ul,
.policy-container ol {
  margin-bottom: 15px;
}

.policy-container ul,
.policy-container ol {
  margin-left: 20px;
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 30px;
    height: 20px;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  #menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }
}
