@import url("reset.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap");

/* Typography */
h1, h2, h3, h4, h5, h6,
.title,
.main__title,
.about__title,
.services__title {
  font-family: 'Merriweather', 'Inter', sans-serif;
  letter-spacing: 0.06em;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  color: #303a4d;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Container */
[class*="__container"] {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  [class*="__container"] {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  [class*="__container"] {
    padding: 0 2rem;
  }
}

/* Buttons */
.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  color: #fff;
  background-color: #303a4d;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
}

@media (min-width: 768px) {
  .button {
    padding: 1rem 2.5rem;
  }
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about__button,
.outro__button {
  color: #000;
  background-color: #90EE90;
}

.about__button {
  max-width: 300px;
  padding: 0.875rem 1.5rem;
}

@media (min-width: 768px) {
  .about__button {
    padding: 0.875rem 1.75rem;
  }
}

@media (min-width: 1024px) {
  .about__button {
    padding: 0.875rem 1.5rem;
  }
}

.about__button:hover,
.about__button:focus,
.outro__button:hover,
.outro__button:focus {
  color: #fff;
  background-color: #006400;
}

/* Typography Utilities */
.title {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
}

/* Wrapper */
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
  background-color: #ffffff;
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  border-bottom: 1px solid #f0f0f0;
}

.top-bar__container {
  max-width: 74.624rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .top-bar__container {
    padding: 0 1.5rem;
  }
}

.top-bar__email {
  color: #006400;
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.top-bar__phone {
  color: #006400;
  transition: color 0.3s;
  white-space: nowrap;
}

.top-bar__phone:hover,
.top-bar__phone:focus {
  color: #90EE90;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

@media (min-width: 768px) {
  .top-bar__right {
    gap: 0.8rem;
  }
}

.top-bar__divider {
  color: #006400;
  font-weight: 300;
  display: none;
}

@media (min-width: 480px) {
  .top-bar__divider {
    display: inline;
  }
}

.top-bar__contact-link {
  color: #006400;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.9rem);
}

@media (max-width: 479px) {
  .top-bar__contact-link {
    display: none;
  }
}

.top-bar__contact-link:hover,
.top-bar__contact-link:focus {
  color: #90EE90;
}

.top-bar__social {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s;
}

.top-bar__social:hover,
.top-bar__social:focus {
  opacity: 0.7;
}

.top-bar__icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .top-bar__icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 2.3rem;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .header {
    top: 2rem;
  }
}

.header__container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  max-width: 74.624rem;
  margin: 0 auto;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header__container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 4rem;
  }
}

.header__logo {
  position: static;
  z-index: 2;
  color: #303a4d;
  margin: 0;
  justify-self: center;
  display: flex;
  align-items: center;
}

.header__logo img {
  max-height: 50px;
  width: auto;
}

@media (min-width: 768px) {
  .header__logo img {
    max-height: 70px;
  }
}

@media (min-width: 1024px) {
  .header__logo img {
    max-height: 80px;
  }
}

.header__navigation {
  display: flex;
  align-items: center;
}

.header__navigation--left {
  justify-content: flex-start;
}

.header__navigation--right {
  justify-content: flex-end;
}

/* Mobile Menu Toggle */
.menu__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .menu__toggle {
    display: none;
  }
}

.menu__hamburger,
.menu__hamburger::before,
.menu__hamburger::after {
  width: 1.5rem;
  height: 2px;
  background-color: #303a4d;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu__hamburger {
  position: relative;
  display: block;
}

.menu__hamburger::before,
.menu__hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu__hamburger::before {
  top: -0.5rem;
}

.menu__hamburger::after {
  top: 0.5rem;
}

.menu__toggle.active .menu__hamburger {
  background-color: transparent;
}

.menu__toggle.active .menu__hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu__toggle.active .menu__hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Menu */
.menu {
  display: none;
}

@media (min-width: 768px) {
  .menu {
    display: block;
  }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 5rem;
  }

  .menu.active {
    right: 0;
    display: block;
  }

  .menu__body {
    padding: 2rem 1.5rem;
  }

  .menu__list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .menu__item {
    border-bottom: 1px solid #f0f0f0;
  }

  .menu__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: #303a4d;
    transition: color 0.3s;
  }

  .menu__link:hover,
  .menu__link:focus {
    color: #006400;
  }
}

/* Desktop Menu Styles */
@media (min-width: 768px) {
  .menu__body {
    display: flex;
    align-items: center;
  }

  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
  }

  .menu__link {
    font-weight: 600;
    position: relative;
    color: #303a4d;
    transition: color 0.3s;
    padding: 0.5rem 0;
  }

  .menu__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #006400;
    transition: width 0.3s ease;
  }

  .menu__link:hover::after,
  .menu__link:focus::after {
    width: 100%;
  }

  .menu__link:hover,
  .menu__link:focus {
    color: #006400;
  }
}

@media (min-width: 1024px) {
  .menu__list {
    gap: 2rem;
  }
}

/* ===== MAIN CONTENT ===== */
.page {
  flex: 1 1 auto;
  padding-top: 6rem;
}

@media (min-width: 768px) {
  .page {
    padding-top: 7rem;
  }
}

/* ===== HERO SECTION ===== */
.page__main.main {
  background: url("../images/propuesta_portada-2.jpg") center / cover no-repeat;
  min-height: calc(100vh - 6rem);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .page__main.main {
    min-height: calc(100vh - 7rem);
    padding: 4rem 0;
    background-attachment: fixed;
  }
}

.main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.main__container {
  text-align: center;
  padding: 1rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .main__container {
    padding: 1.5rem 2rem 3rem;
  }
}

@media (min-width: 1024px) {
  .main__container {
    padding: 2rem 5rem 5rem;
  }
}

.main__title {
  font-size: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .main__title {
    margin-top: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .main__title {
    margin-top: 1rem;
  }
}

.main__title-break {
  display: inline;
}

@media (max-width: 767px) {
  .main__title br {
    display: none;
  }
}

.main__text {
  font-family: 'Merriweather', 'Inter', sans-serif;
  margin-bottom: 2rem;
  max-width: 100%;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #fff;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
}

@media (min-width: 768px) {
  .main__text {
    max-width: 33.375rem;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .main__text {
    margin-bottom: 3.5rem;
  }
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #606d45;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.375rem);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .main__button {
    padding: 1.125rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .main__button {
    padding: 1.25rem 3rem;
  }
}

.main__button:hover,
.main__button:focus {
  background-color: #304a14;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: #fff;
}

.about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .about__container {
    padding: 5rem 2rem;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .about__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8.75rem 4rem;
    max-width: none;
  }
}

.about__image {
  width: 100%;
  max-width: 650px;
  height: auto;
  aspect-ratio: 552 / 450;
  padding-left: 0;
  margin-left: 10px;
}

@media (min-width: 1024px) {
  .about__image {
    height: 450px;
    flex-shrink: 0;
  }
}

.about__image img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .about__content {
    max-width: none;
    width: 100%;
    height: 450px;
    justify-content: center;
  }
}

/* Animation for about image */
.about__image--animate {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about__image--animate.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animation for about content */
.about__content--animate {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about__content--animate.visible {
  opacity: 1;
  transform: translateX(0);
}

.about__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
}

.about__text {
  max-width: 100%;
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .about__text {
    max-width: none;
    width: 100%;
  }
}

.about__text p:not(:last-child) {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about__text p:not(:last-child) {
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .about__text p:not(:last-child) {
    margin-bottom: 2.5rem;
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: #e1e4eb;
}

.services__container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .services__container {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .services__container {
    padding-top: 8.75rem;
    padding-bottom: 8.75rem;
  }
}

.services__title {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .services__title {
    margin-bottom: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .services__title {
    margin-bottom: 5rem;
  }
}

.services__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .services__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .services__row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.services__column {
  width: 100%;
}

/* Animation for services columns */
.services__column--animate {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.services__column--animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.services__column--animate:nth-child(1).visible {
  transition-delay: 0.1s;
}

.services__column--animate:nth-child(2).visible {
  transition-delay: 0.2s;
}

.services__column--animate:nth-child(3).visible {
  transition-delay: 0.3s;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

@media (min-width: 1024px) {
  .item-services {
    align-items: flex-start;
    text-align: left;
  }
}

.item-services__top {
  width: 100%;
  margin-bottom: 1.5rem;
}

.item-services__image {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 360 / 421;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .item-services__image {
    margin-bottom: 2rem;
  }
}

.item-services__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-services__title {
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item-services__text {
  max-width: 100%;
  line-height: 1.6;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

@media (min-width: 1024px) {
  .item-services__text {
    max-width: 21.5rem;
  }
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial {
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.testimonial__container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .testimonial__container {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1200px) {
  .testimonial__container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 0 8.75rem;
    gap: 3rem;
    position: relative;
    max-width: 100%;
  }
}

.testimonial__decoration {
  display: none;
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  position: relative;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
}

.testimonial__decoration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile animations for testimonial decorations */
.testimonial__decoration--animate {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial__decoration--left.testimonial__decoration--animate {
  transform: translateY(-30px);
}

.testimonial__decoration--right.testimonial__decoration--animate {
  transform: translateY(30px);
}

.testimonial__decoration--animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .testimonial__decoration {
    max-width: 500px;
  }
}

@media (min-width: 1200px) {
  .testimonial__decoration {
    display: block;
    flex-shrink: 0;
    width: 300px;
    height: 600px;
    position: absolute;
    top: 0;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
    margin: 0;
  }

  .testimonial__decoration--left {
    left: 40px;
  }

  .testimonial__decoration--right {
    right: 40px;
  }

  .testimonial__decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }
}

/* Desktop animations for testimonial decorations */
@media (min-width: 1200px) {
  .testimonial__decoration--left.testimonial__decoration--animate {
    transform: translateX(-50px);
  }

  .testimonial__decoration--right.testimonial__decoration--animate {
    transform: translateX(50px);
  }

  .testimonial__decoration--animate.visible {
    transform: translateX(0);
  }
}

.testimonial__content {
  max-width: 800px;
  text-align: center;
}

@media (min-width: 1200px) {
  .testimonial__content {
    text-align: left;
    margin-left: 450px;
    margin-right: 450px;
    padding-top: 0px;
  }
}

.testiomonial__caption {
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
  font-weight: 500;
  color: #606d45;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.testimonial__title {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #303a4d;
}

@media (min-width: 768px) {
  .testimonial__title {
    margin-bottom: 2.5rem;
  }
}

.item-testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .item-testimonial {
    flex-direction: row;
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .item-testimonial {
    justify-content: flex-start;
  }
}

.item-testimonial__image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .item-testimonial__image {
    width: 80px;
    height: 80px;
  }
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-testimonial__title {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  font-weight: 600;
  color: #303a4d;
}

.item-testimonial__caption {
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  color: #606d45;
}

/* ===== OUTRO SECTION ===== */
.outro {
  background-color: #303a4d;
  position: relative;
}

.outro_home {
  background: url("../images/piscina.jpg") center / cover no-repeat;
}

.outro_home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.outro__container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .outro__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .outro__container {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.outro__title {
  color: #fff;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .outro__title {
    margin-bottom: 2.5rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: #ffffff;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
  }
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo img {
  max-height: 50px;
  width: auto;
}

@media (min-width: 768px) {
  .footer__logo img {
    max-height: 60px;
  }
}

.footer__copyright {
  color: #000000;
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
}

/* ===== UTILITY CLASSES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #606d45;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .top-bar,
  .header,
  .menu__toggle,
  .footer {
    display: none;
  }

  .page {
    padding-top: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}