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

ul {
  list-style: none;
}

:root {
  --text-color: #8b7355;
  --text-color-light: #ffffff;
  --body-color: #fefcf7;
  --title-color: #a0845c;
  --base-color: #e6c068;
  --button-hover: #f0d084;
  --shadow-image-color: #e6c06869;
  --border-color: #e4e4e4;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;

  /* fonts */
  --title-font-size: 1.875rem;
  --subtitle-font-size: 1rem;

  --title-font: "Poppins", sans-serif;
  --body-font: "DM Sans", sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #f4e99b;
    --body-color: #1a1a1a;
    --title-color: #ffd700;
    --border-color: #333;
  }
}

img {
  width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

/* Skip Navigation */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--base-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: var(--transition-fast);
}

.skip-nav:focus {
  top: 6px;
}

/* ------ BASE ------------------- */

body {
  font: 400 1rem var(--body-font);
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.title {
  font: 700 1.85rem var(--title-font);
  color: var(--title-color);
  -webkit-font-smoothing: auto;
  line-height: 1.2;
}

.button {
  background-color: var(--base-color);
  color: var(--text-color-light);
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  border-radius: 0.25rem;
  font: 500 1rem var(--body-font);
  text-decoration: none;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  gap: 0.5rem;
}

.button:hover,
.button:focus {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 192, 104, 0.3);
}

.button:focus {
  outline: 2px solid var(--base-color);
  outline-offset: 2px;
}

.divider-1 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 36%, 57%, 1),
    hsla(var(--hue), 65%, 88%, 0.34)
  );
}

.divider-2 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 65%, 88%, 0.34),
    hsla(var(--hue), 36%, 57%, 1)
  );
}

/* ------ LAYOUT ------------------- */

.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

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

.section {
  padding: calc(5rem + var(--header-height)) 0;
}

.section .title {
  margin-bottom: 1rem;
}

.section .subtitle {
  font-size: var(--subtitle-font-size);
}

.section header {
  margin-bottom: 4rem;
}

.section header strong {
  color: var(--base-color);
}

#header {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--body-color);
  width: 100%;
  transition: var(--transition-normal);
}

#header.scroll {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15);
}

/* ------ LOGO ------------------- */

.logo {
  font: 700 1.31rem var(--title-font);
  color: var(--title-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo span {
  color: var(--base-color);
}

.logo-alt span {
  color: var(--body-color);
}

.logo:hover,
.logo:focus {
  transform: scale(1.05);
}

/* ------ NAVIGATION ------------------- */

nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  transition: var(--transition-fast);
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

nav ul li a:hover,
nav ul li a:focus {
  color: var(--base-color);
  background: rgba(230, 192, 104, 0.1);
}

nav ul li a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--base-color);
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  transition: var(--transition-fast);
}

nav ul li a:hover::after,
nav ul li a:focus::after {
  width: 100%;
}

nav .menu {
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  transition: var(--transition-normal);
}

nav .menu ul {
  display: none;
}

/* Mostrar menu */
nav.show .menu {
  opacity: 1;
  visibility: visible;
  background: var(--body-color);
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  place-content: center;
}

nav.show .menu ul {
  display: grid;
}

nav.show ul.grid {
  gap: 4rem;
}

/* toggle menu */
.toggle {
  color: var(--base-color);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: var(--transition-fast);
}

.toggle:hover,
.toggle:focus {
  background: rgba(230, 192, 104, 0.1);
  outline: none;
}

nav .icon-close {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -1.5rem;
  right: 1.5rem;
  transition: var(--transition-normal);
}

nav.show div.icon-close {
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}

/* ------ HOME ------------------- */

#home {
  overflow: hidden;
}

#home .container {
  margin: 0;
}

#home .image {
  position: relative;
}

#home .image::before {
  content: "";
  height: 100%;
  width: 100%;
  background: var(--shadow-image-color);
  position: absolute;
  top: -16.8%;
  left: 16.7%;
  z-index: 0;
  border-radius: 0.25rem;
}

#home .image img {
  position: relative;
  right: 2.93rem;
  border-radius: 0.25rem;
  transition: var(--transition-slow);
}

#home .image img:hover {
  transform: scale(1.02);
}

#home .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  text-align: center;
}

#home .text h1 {
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

#home .text p {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

#home .button {
  animation: fadeInUp 1s ease 0.4s both;
}

/* ------ ABOUT ------------------- */

#about {
  background: white;
}

#about .container {
  margin: 0;
}

#about .image {
  position: relative;
}

#about .image::before {
  content: "";
  height: 100%;
  width: 100%;
  background: var(--shadow-image-color);
  position: absolute;
  top: -8.3%;
  left: -33%;
  z-index: 0;
  border-radius: 0.25rem;
}

#about .image img {
  position: relative;
  border-radius: 0.25rem;
  transition: var(--transition-slow);
}

#about .image img:hover {
  transform: scale(1.02);
}

#about .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/* ------ SERVICES ------------------- */

.cards.grid {
  gap: 1.5rem;
}

.card {
  padding: 3.625rem 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--base-color);
  border-radius: 0.25rem 0.25rem 0 0;
  text-align: center;
  background: white;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
}

.card i {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 5rem;
  color: var(--base-color);
}

.card .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ------ TESTIMONIALS ------------------- */

#testimonials {
  background: white;
}

#testimonials .container {
  margin-left: 0;
  margin-right: 0;
}

#testimonials header {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 0;
}

.testimonials {
  padding-inline: 1.5rem;
}

.testimonial {
  background: white;
  padding: 2rem;
  border-radius: 0.25rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--base-color);
  margin-bottom: 3rem;
  transition: var(--transition-normal);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
}

.testimonial blockquote {
  color: var(--title-color);
  font-style: italic;
}

.testimonial blockquote p span {
  font: 700 2.5rem serif;
  color: var(--base-color);
  position: relative;
  top: 0.5rem;
  margin-right: 0.25rem;
}

.testimonial cite {
  display: flex;
  align-items: center;
  font-style: normal;
  margin-top: 1.5rem;
}

.testimonial cite img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  clip-path: circle();
  margin-right: 0.5rem;
}

/* swiper */
.swiper-pagination-bullet {
  width: 0.75rem;
  height: 0.75rem;
}

.swiper-pagination-bullet-active {
  background: var(--base-color);
}

/* ------ CONTACT FORM ------------------- */

#contact-form {
  background: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--body-color);
  border-radius: 0.5rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--title-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.25rem;
  font-family: var(--body-font);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--base-color);
  box-shadow: 0 0 0 3px rgba(230, 192, 104, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: var(--error-color);
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.2rem;
}

/* ------ CONTACT ------------------- */

#contact .grid {
  gap: 4rem;
}

#contact .text p {
  margin-bottom: 2rem;
}

#contact .button i,
#contact ul li i {
  font-size: 1.5rem;
  margin-right: 0.625rem;
}

#contact ul.grid {
  gap: 2rem;
}

#contact ul li {
  display: flex;
  align-items: center;
}

#contact ul li i {
  color: var(--base-color);
}

#contact ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

#contact ul li a:hover,
#contact ul li a:focus {
  color: var(--base-color);
}

/* ------ WHATSAPP FLOAT ------------------- */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  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 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ------ FOOTER ------------------- */

footer {
  background: var(--base-color);
}

footer.section {
  padding: 5rem 0;
}

footer .logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

footer .brand p {
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
}

footer .social {
  grid-auto-flow: column;
  width: fit-content;
}

footer .social a {
  color: var(--text-color-light);
  font-size: 1.5rem;
  transition: var(--transition-fast);
  padding: 0.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer .social a:hover,
footer .social a:focus {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ------ BACK TO TOP ------------------- */

.back-to-top {
  background: var(--base-color);
  color: var(--text-color-light);
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  padding: 0.5rem;
  clip-path: circle();
  font-size: 1.5rem;
  line-height: 1;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-normal);
  transform: translateY(100px);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  z-index: 100;
}

.back-to-top.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--button-hover);
  transform: translateY(-4px);
}

/* ------ ANIMATIONS ------------------- */

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

.fade-in {
  animation: fadeInUp 0.6s ease;
}

/* ------ RESPONSIVE ------------------- */

/* extra large devices: 1200 > */
@media (min-width: 1200px) {
  .container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 10rem 0;
  }

  .section header,
  #testimonials header {
    max-width: 32rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .button {
    height: 3.125rem;
  }

  /* navigation */
  nav .menu {
    opacity: 1;
    visibility: visible;
    top: 0;
  }

  nav .menu ul {
    display: flex;
    gap: 2rem;
  }

  nav .menu ul li a.title {
    font: 400 1rem var(--body-font);
    -webkit-font-smoothing: antialiased;
  }

  nav .menu ul li a.title.active {
    font-weight: bold;
    -webkit-font-smoothing: auto;
  }

  nav .icon-menu {
    display: none;
  }

  /* layout */
  main {
    margin-top: var(--header-height);
  }

  /* home */
  #home .container {
    grid-auto-flow: column;
    justify-content: space-between;
    margin: 0 auto;
  }

  #home .image {
    order: 1;
  }

  #home .text {
    order: 0;
    max-width: 24rem;
    text-align: left;
  }

  /* about */
  #about .container {
    margin: 0 auto;
    grid-auto-flow: column;
  }

  /* services */
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  /* testimonials */
  #testimonials .container {
    margin-left: auto;
    margin-right: auto;
  }

  /* contact */
  #contact .container {
    grid-auto-flow: column;
    align-items: center;
  }

  #contact .text {
    max-width: 25rem;
  }

  /* footer */
  footer.section {
    padding: 3.75rem 0;
  }

  footer .container {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }

  footer .logo {
    font-size: 2.25rem;
  }
}

/* large devices: 1023 > */
/* large devices: 992 > */
@media (min-width: 992px) {
  :root {
    --title-font-size: 2.25rem;
    --subtitle-font-size: 1.125rem;
  }
}

/* medium devices: 767 > */

/* ------ CUSTOM PROPERTIES ------------------- */

:root {
  --header-height: 4.5rem;
  --hue: 45;
  --base-color: hsl(var(--hue) 60% 65%);
  --base-color-second: hsl(var(--hue) 60% 90%);
  --base-color-alt: hsl(var(--hue) 60% 60%);
  --title-color: hsl(var(--hue) 40% 35%);
  --text-color: hsl(var(--hue) 30% 45%);
  --text-color-light: hsl(0 0% 98%);
  --body-color: hsl(var(--hue) 60% 98%);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast support */
@media (prefers-contrast: high) {
  :root {
    --text-color: #000000;
    --title-color: #000000;
    --border-color: #000000;
  }
}

/* Print styles */
@media print {
  .whatsapp-float,
  .back-to-top,
  nav .toggle,
  .swiper-pagination {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    padding: 1rem 0;
  }
}
