/* ========================================================================== 
   RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========================================================================== 
   VARIABLES
   ========================================================================== */
:root {
  --primary-color: #53bcd4;
  --secondary-color: #fff;
  --complementary-color: #333;
  --font-family: "montserrat", sans-serif;
  --header-offset: 70px;
}

/* ========================================================================== 
   BASE
   ========================================================================== */
html {
  font-size: 14px;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--secondary-color);
}

section {
  scroll-margin-top: var(--header-offset);
}

/* Tablet */
@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }
}

/* ========================================================================== 
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3 {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  font-size: 1.75rem;
  line-height: 2rem;
  margin: 2rem 0;
  color: var(--primary-color);
  padding: 0rem 2rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  margin: 2rem 0;
  color: var(--secondary-color);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.5rem;
  margin: 2rem 0;
  color: var(--primary-color);
}

/* Tablet */
@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  p {
    font-size: 1.125rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
}

/* ========================================================================== 
   BUTTONS
   ========================================================================== */
.primary-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 2rem auto;
  display: block;
  text-decoration: none;
}

.primary-button:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.primary-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(83, 188, 212, 0.5);
}

.primary-button a {
  color: inherit;
  text-decoration: none;
}

/* ========================================================================== 
   HEADER
   ========================================================================== */

/* Top */
.header-top {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--primary-color);
}

.logo-img {
  width: 7rem;
}

.burger {
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s;
  background-color: var(--secondary-color);
  border: none;
}

.burger svg {
  display: block;
}

/* Menu */
.menu {
  position: fixed;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 40px;
  transition: left 0.3s ease;
  z-index: 100;
}

.menu.active {
  left: 0;
}

.menu a,
.menu li {
  color: var(--secondary-color);
  text-decoration: none;
  padding: 2rem 0;
  text-align: center;
  transition: background-color 0.2s;
  text-transform: uppercase;
  font-weight: 700;
}

/* Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.instagram-icon,
.language-icon {
  width: 2rem;
}

/* WhatsApp */
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-icon img {
  width: 3rem;
}

.whatsapp-icon:hover img {
  transform: scale(1.3);
}

/* Bottom */
.header-bottom {
  background-image: url("../img/header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.logo-img-hero {
  width: 20rem;
}

.header-bottom p {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  letter-spacing: 1px;
  line-height: 0;
  margin-bottom: 4rem;
}

/* Tablet */
@media (min-width: 768px) {
  .logo-img-hero {
    width: 30rem;
  }
  .header-bottom p {
    font-size: 1.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .header-container {
    width: 100%;
  }

  .burger {
    display: none;
  }

  .menu {
    position: static;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: transparent;
    height: auto;
    padding: 0;
    width: auto;
  }

  .menu a,
  .menu li {
    color: var(--primary-color);
    padding: 1rem;
    transition: color 0.2s;
  }

  .menu a:hover,
  .menu li:hover {
    text-decoration: underline;
  }

  .social-icons a:hover {
    transform: scale(1.2);
  }

  .language-icon {
    margin-left: -2rem;
  }

  .logo-img-hero {
    width: 25rem;
    margin-bottom: -15px;
  }
}

/* ========================================================================== 
   ANIMATIONS
   ========================================================================== */
.arrow-down {
  width: 4rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.arrow-down:hover {
  scale: 1.2;
}

/* ========================================================================== 
   ABOUT US
   ========================================================================== */
#about-us {
  padding: 2rem 0rem;
}
.about-us-content {
  padding: 0rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-us-content p {
  margin-top: 1rem;
  border: 1.5px solid var(--complementary-color);
  padding: 1rem;
  text-align: center;
}

/* Tablet */
@media (min-width: 768px) {
  .about-us-content {
    max-width: 800px;
    margin: auto;
  }
}

/* ========================================================================== 
   SERVICES
   ========================================================================== */
#section-services {
  background-color: var(--primary-color);
  padding: 2rem 0rem;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.item {
  flex: 1 1 20rem; /* crecer, encoger, ancho base */
  min-height: 30rem;
  max-width: 20rem;
  background-color: var(--secondary-color);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.service-image {
  width: 5rem;
  margin-bottom: 1rem;
}

/* ========================================================================== 
   CAROUSEL
   ========================================================================== */
#carousel-section {
  padding: 2rem 0rem;
}
.carousel-title {
  color: var(--primary-color);
}

.carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  min-height: 450px; /* igual que tus imágenes */
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 450px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none; /* evita que la imagen “muerta” interfiera */
}

.carousel-image.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Desktop */
@media (min-width: 1024px) {
  #carousel-section {
    max-width: 1024px;
    margin: auto;
  }
}

/* ========================================================================== 
   INSTAGRAM
   ========================================================================== */
#instagram-section {
  text-align: center;
  padding: 2rem 1rem;
}

#instagram-section h2 {
  color: var(--primary-color);
}

#instagram-section p {
  margin-bottom: 1rem;
}

.instagram-link {
  color: var(--complementary-color);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}

.instagram-link:hover {
  transform: scale(1.05);
  text-decoration: underline;
}

.instagram-icon-large {
  width: 4rem;
  margin-bottom: 1rem;
}

.instagram-link p {
  font-weight: 700;
  text-transform: uppercase;
}

/* ========================================================================== 
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--primary-color);
  color: var(--complementary-color);
  text-align: center;
  padding: 1.5rem;
}
