/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 4rem;

  /*========== Colors ==========*/
  /* Color mode HSL(hue, saturation, lightness) */
  --hue: 210;
  --primary-color: hsl(var(--hue), 80%, 35%); /* Deep soft blue #125b9e */
  --primary-color-alt: hsl(var(--hue), 80%, 30%); /* Darker blue */
  --primary-color-light: hsl(var(--hue), 80%, 95%);
  --secondary-color: hsl(200, 60%, 25%);
  --title-color: hsl(220, 20%, 15%);
  --text-color: hsl(220, 10%, 40%);
  --text-color-light: hsl(220, 10%, 60%);
  --body-color: hsl(220, 20%, 99%);
  --container-color: #fff;
  --whatsapp-color: #25D366;

  /*========== Font and typography ==========*/
  --body-font: 'Outfit', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
  --smaller-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== Margenes Bottom ==========*/
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*==================== BASE ====================*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img, iframe {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.container {
  max-width: 1140px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 5rem 0 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--mb-0-5);
}

.section__description {
  margin-bottom: var(--mb-2-5);
  color: var(--text-color);
}

.container-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/*==================== BUTTONS ====================*/
.button {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 3rem;
  font-weight: var(--font-medium);
  transition: 0.3s;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 24px hsla(var(--hue), 80%, 35%, 0.25);
  gap: 0.5rem;
}

.button:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px hsla(var(--hue), 80%, 35%, 0.35);
}

.button--secondary {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  border: 1px solid var(--primary-color-light);
}

.button--secondary:hover {
  background-color: var(--primary-color-light);
}

.button--nav {
  display: none; /* Hidden on mobile */
  padding: 0.6rem 1.25rem;
  font-size: var(--small-font-size);
  box-shadow: none;
}

.button__icon {
  font-size: 1.25rem;
  transition: 0.3s;
}

.button:hover .button__icon {
  transform: translateX(4px);
}

/*==================== HEADER & NAV ====================*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: .4s;
}

.scroll-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem; /* Small default gap */
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-bold);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav__logo i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.nav__logo span {
  font-weight: var(--font-light);
  color: var(--text-color);
}

.nav__btns {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--title-color);
}

@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #fff;
    padding: 6rem 3rem 4rem;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
    transition: right .4s ease;
    z-index: calc(var(--z-fixed) + 1);
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
  }
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: .3s;
  font-size: 1.125rem;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--title-color);
}

.show-menu {
  right: 0 !important;
}

.active-link {
  color: var(--primary-color);
  position: relative;
}

.active-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/*==================== HERO ====================*/
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  background: linear-gradient(135deg, var(--primary-color-light) 0%, rgba(255,255,255,1) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-color-light) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero__container {
  row-gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  display: inline-block;
  background-color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: var(--mb-1);
}

.hero__subtitle i {
  color: #ffb400;
  transform: translateY(2px);
}

.hero__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1-5);
  letter-spacing: -1px;
}

.hero__title span {
  color: var(--primary-color);
}

.hero__description {
  margin-bottom: var(--mb-2);
  font-size: 1.125rem;
  max-width: 500px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--mb-2-5);
}

.hero__trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.badge i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.hero__images {
  position: relative;
  justify-self: center;
}

.hero__img-wrapper {
  position: relative;
  max-width: 450px;
}

.hero__img {
  border-radius: 2rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.hero__glass-card {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.4);
}

.glass-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-icon i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.glass-data h3 {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin: 0;
  line-height: 1;
}

.glass-data p {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin: 0;
  font-weight: var(--font-medium);
}

/*==================== SERVICES ====================*/
.services {
  background-color: var(--container-color);
}

.services__container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.services__card {
  background-color: var(--body-color);
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(0,0,0,0.03);
  transition: .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

.services__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
  border-color: var(--primary-color-light);
}

.services__icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color-light);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--mb-1-5);
  transition: .3s;
}

.services__card:hover .services__icon-wrapper {
  background-color: var(--primary-color);
}

.services__icon {
  font-size: 2rem;
  color: var(--primary-color);
  transition: .3s;
}

.services__card:hover .services__icon {
  color: #fff;
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.services__description {
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1-5);
}

.services__link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: var(--font-medium);
  gap: 0.25rem;
  font-size: var(--small-font-size);
}

.services__link i {
  transition: .3s;
}

.services__link:hover i {
  transform: translateX(4px);
}

/*==================== ABOUT ====================*/
.about {
  background-color: var(--body-color);
}

.about__container {
  row-gap: 3rem;
}

.about__img-wrapper {
  position: relative;
  justify-self: center;
}

.about__img {
  border-radius: 2rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about__description {
  margin-bottom: var(--mb-2);
}

.about__features {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: var(--mb-2-5);
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.about__feature i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

/*==================== REVIEWS ====================*/
.reviews {
  background-color: var(--primary-color-light);
  border-radius: 2rem 2rem 0 0;
}

.reviews__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review__card {
  background-color: var(--container-color);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.review__stars {
  color: #ffb400;
  margin-bottom: var(--mb-1);
  font-size: 1.1rem;
}

.review__text {
  font-style: italic;
  margin-bottom: var(--mb-1-5);
  color: var(--text-color);
}

.review__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review__avatar {
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: var(--font-bold);
  font-size: 1.2rem;
}

.review__details h4 {
  font-size: var(--normal-font-size);
  margin: 0;
}

.review__details span {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/*==================== GALLERY ====================*/
.gallery {
  background-color: var(--container-color);
}

.gallery__container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery__img-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.gallery__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery__img-wrapper:hover .gallery__img {
  transform: scale(1.05);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: .4s;
}

.gallery__img-wrapper:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  color: #fff;
  font-weight: var(--font-semi-bold);
  font-size: var(--h3-font-size);
  transform: translateY(20px);
  transition: .4s;
}

.gallery__img-wrapper:hover .gallery__overlay span {
  transform: translateY(0);
}

/*==================== CTA ====================*/
.cta {
  background-color: var(--primary-color);
  padding: 4rem 0;
}

.cta__content {
  text-align: center;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  color: #fff;
  margin-bottom: var(--mb-1);
}

.cta__description {
  color: var(--primary-color-light);
  margin-bottom: var(--mb-2);
}

.cta__button {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta__button i {
  color: var(--whatsapp-color);
  font-size: 1.5rem;
}

.cta__button:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/*==================== CONTACT ====================*/
.contact {
  background-color: var(--body-color);
}

.contact__container {
  grid-template-columns: 1fr;
  row-gap: 3rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.contact__icon {
  font-size: 2rem;
  color: var(--primary-color);
  background-color: var(--primary-color-light);
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.contact__card-title {
  font-size: var(--normal-font-size);
  margin-bottom: 0.25rem;
}

.contact__card-data {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.contact__map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__map {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  height: 400px; /* Fixed height set here */
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.button--map {
  width: 100%;
  justify-content: center;
  background-color: var(--secondary-color);
}

.button--map:hover {
  background-color: var(--title-color);
}

/*==================== FOOTER ====================*/
.footer {
  background-color: var(--title-color);
  padding: 4rem 0 2rem;
  color: #fff;
}

.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-3);
}

.footer__logo {
  color: #fff;
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: var(--mb-1);
}

.footer__logo i {
  color: var(--primary-color-light);
  font-size: 1.5rem;
}

.footer__description {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: #fff;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--text-color-light);
  transition: .3s;
}

.footer__link:hover {
  color: var(--primary-color-light);
}

.footer__copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin: 0 1.5rem;
}

/*==================== FLOATING WHATSAPP ====================*/
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  background-color: var(--whatsapp-color);
  color: #FFF;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  z-index: var(--z-fixed);
  transition: .3s;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .hero__glass-card {
    display: none; /* Hide on very small screens to avoid overflow */
  }
  .hero__title {
    font-size: 2rem;
  }
  .about__features {
    grid-template-columns: 1fr;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .nav__btns .button--nav {
    display: inline-flex;
  }
  .hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero__glass-card {
    left: -3rem;
  }
  .about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .contact__container {
    grid-template-columns: 1fr 1.5fr;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  
  .nav {
    height: calc(var(--header-height) + 1.5rem);
    gap: 2rem; /* Slightly reduced gap for better fit between 1024px and 1200px */
  }
  
  .nav__toggle, .nav__close {
    display: none;
  }
  
  .nav__list {
    display: flex;
    flex-direction: row;
    column-gap: 3rem;
  }
  
  .nav__menu {
    margin-left: auto;
    position: static;
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 5rem;
  }

  .hero__img-wrapper {
    max-width: 500px;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in forwards;
}

.slide-up {
  opacity: 0;
  animation: slideUp 1s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
