/* Base */
.font-caslon {
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.spacer {
  height: 80px;
  width: 100%;
  background-color: white;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.hero-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
}

.content-wrapper {
  padding-left: 2rem;
  max-width: 600px;
}

.hero-content h1 {
  line-height: 1.2;
}

.hero-content p {
  line-height: 1.4;
}

/* Parallax Section */
.parallax-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
  margin-bottom: 0;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  z-index: -2;
}

.parallax-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: -1;
}

.parallax-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1;
}

.quote-container {
  margin-left: 15%;
  max-width: 45%;
  color: #000000;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.quote-container h2 {
  line-height: 1.2;
  margin-bottom: 2rem;
}

.quote-container p {
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* Services Section */
.services-section {
  background-color: white;
  position: relative;
  padding: 40px 0;
}

.service-card {
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 2rem;
  border: 1px solid white;
  transition: all 0.3s ease;
}

.service-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.parallax-window {
  min-height: 600px;
  background-color: transparent;
}

.parallax-bg-contact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  z-index: 1;
}

/* Form Styles */
input, textarea {
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  box-shadow: 0 0 0 2px rgba(191, 109, 66, 0.2);
}

/* Footer Styles */
footer {
  background-color: #287E84;
  padding: 2rem 0;
}

.instagram-post {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.instagram-post:hover {
  transform: translateY(-5px);
}

.instagram-media {
  margin: 0 !important;
  min-width: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  footer .flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .items-end {
    align-items: center;
  }

  .instagram-post {
    width: 4rem;
    height: 4rem;
  }
}

/* Estilos para el menú móvil */
@media (max-width: 1024px) {
  #mainMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: none;
    z-index: 1000;
  }

  #mainMenu.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  #mainMenu li {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem 0;
    text-align: center;
  }

  #mainMenu li a {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 1.25rem;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    background: rgba(255,255,255,0.8);
    padding: 2rem;
  }
  
  .content-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .quote-container {
    margin-left: 5%;
    max-width: 90%;
  }

  .parallax-window {
    min-height: auto;
  }

  .instagram-post {
    max-width: 120px;
  }

  footer .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: white;
}

.service-card:nth-child(1) {
  background: linear-gradient(to bottom right, #34D399, #059669);
}

.service-card:nth-child(2) {
  background: linear-gradient(to bottom right, #BF6D42, #A55B35);
}

.service-card:nth-child(3) {
  background: linear-gradient(to bottom right, #016561, rgba(1, 101, 97, 0.8));
}

.service-card:nth-child(4) {
  background: linear-gradient(to bottom right, #023A37, rgba(2, 58, 55, 0.8));
}

.hero-section-about {
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content-about {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}
