/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: #0a1f44;
  background-color: #e5f9f7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: #008cff;
  transition: color 0.3s ease;
}

a:hover {
  color: #0073d1;
}

ul,
ol {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.header__logo {
  font-size: 1.5rem;
}

.logo {
  font-family: "Sansita One", cursive;
  font-size: 1.8rem;
  color: #008cff;
  text-decoration: none;
}

/* ===== NAVIGATION ===== */
.nav__list {
  display: flex;
  gap: 1.5rem;
}

.nav__link {
  color: #0a1f44;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.nav__link:hover,
.nav__link.active {
  color: #008cff;
}

.nav__link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #008cff;
  transition: width 0.3s ease;
}

.nav__link:hover:after,
.nav__link.active:after {
  width: 100%;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #0a1f44;
  transition: all 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, #effd5f 0%, #008cff 100%);
  color: #0a1f44;
  font-weight: 700;
  border-radius: 30px;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 140, 255, 0.3);
  color: #0a1f44;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section--light {
  background-color: #ffffff;
}

.section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: #008cff;
}

.section__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #effd5f 0%, #008cff 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  height: calc(100vh - 80px);
  min-height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/XUhom.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero__btn {
  font-size: 1.1rem;
  padding: 15px 40px;
}

/* ===== ABOUT SECTION ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about__text {
  font-size: 1.1rem;
}

.about__image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.advantage-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-card__icon {
  height: 150px;
  overflow: hidden;
  margin-bottom: 20px;
}

.advantage-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantage-card__title {
  color: #008cff;
  margin-bottom: 15px;
}

/* ===== SERVICES SECTION ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 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__title {
  color: #008cff;
  margin-bottom: 15px;
  text-align: center;
}

.service-card__text {
  margin-bottom: 20px;
}

.service-card__list {
  padding-left: 20px;
  list-style-type: disc;
}

.service-card__item {
  margin-bottom: 8px;
}

/* ===== TABLE SECTION ===== */
.table-container {
  overflow-x: auto;
  margin-bottom: 30px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

.comparison-table th {
  background-color: #008cff;
  color: white;
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: #f9f9f9;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial__content {
  position: relative;
  margin-bottom: 20px;
  padding: 0 15px;
}

.testimonial__content::before {
  content: '"';
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(0, 140, 255, 0.2);
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial__author {
  text-align: right;
}

.testimonial__name {
  font-weight: 700;
  margin-bottom: 0;
}

.testimonial__position {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* ===== FAQ SECTION ===== */
.faq__item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq__toggle {
  display: none;
}

.faq__question {
  display: block;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq__question:hover {
  background-color: #f9f9f9;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.6s ease, padding 0.6s ease;
}

.faq__toggle:checked ~ .faq__question::after {
  content: "-";
}

.faq__toggle:checked ~ .faq__answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact__info {
  padding-right: 20px;
}

.contact__text {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact__item {
  margin-bottom: 20px;
}

.contact__title {
  font-weight: 600;
  color: #008cff;
  margin-bottom: 8px;
}

.contact__address {
  font-style: normal;
}

/* ===== FORM STYLES ===== */
.form {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form__input,
.form__select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form__select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230A1F44' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E")
    no-repeat;
  background-position: calc(100% - 15px) center;
  background-color: #ffffff;
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: #008cff;
}

/* Customize select options styling */
.form__select option {
  background-color: #ffffff;
  color: #0a1f44;
  padding: 10px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.form__checkbox-input {
  margin-top: 5px;
  margin-right: 10px;
}

.form__checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.form__link {
  text-decoration: underline;
}

.form__btn {
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #0a1f44;
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer__info {
  grid-column: span 1;
}

.footer__description {
  margin-top: 15px;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer__links {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer__title {
  color: #effd5f;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  color: #ffffff;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer__link:hover {
  opacity: 1;
  color: #effd5f;
}

.footer__address {
  font-style: normal;
  opacity: 0.8;
  line-height: 1.5;
}

.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  padding: 20px;
  text-align: center;
}

.cookie-popup--active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.cookie-popup__title {
  color: #008cff;
  margin-bottom: 10px;
}

.cookie-popup__text {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.cookie-popup__btn {
  padding: 10px 25px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ===== GRACIAS PAGE ===== */
.gracias {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px - 400px); /* Adjust for header and footer */
}

.gracias__content {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.gracias__title {
  color: #008cff;
  margin-bottom: 20px;
}

.gracias__message {
  margin-bottom: 30px;
}

.gracias__btn {
  margin-top: 20px;
}

/* ===== LEGAL PAGES ===== */
.legal {
  padding: 80px 0;
}

.legal__content {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.legal__title {
  color: #008cff;
  margin-bottom: 30px;
  text-align: center;
}

.legal__section {
  margin-bottom: 30px;
}

.legal__subtitle {
  color: #0a1f44;
  margin-bottom: 15px;
}

.legal__list {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style-type: disc;
}

.legal__list--ordered {
  list-style-type: decimal;
}

.legal__list li {
  margin-bottom: 8px;
}

.legal__address {
  font-style: normal;
  line-height: 1.6;
}

.legal__navigation {
  text-align: center;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  .section {
    padding: 60px 0;
  }

  .footer__container {
    grid-template-columns: 1fr;
  }

  .footer__info,
  .footer__links {
    grid-column: 1;
  }

  .footer__links {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  /* Mobile navigation */
  .menu-icon {
    display: block;
  }

  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .menu-toggle:checked ~ .nav__list {
    right: 0;
  }

  .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, -7px);
  }

  .nav__item {
    margin-bottom: 15px;
  }

  .nav__link {
    display: block;
    padding: 10px 0;
  }

  .legal__content {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .section {
    padding: 40px 0;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .advantage-card,
  .service-card,
  .testimonial {
    padding: 20px;
  }

  .form {
    padding: 20px;
  }

  .form__checkbox-group {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
  }
}
