/* General Body and Typography */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #0099DC; /* Primary blue for headings */
}

p {
  font-family: 'Open Sans', sans-serif;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 24px;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #E43895; /* Pink */
  color: white;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: #019BE0; /* Darker pink on hover */
}

.btn-secondary {
  background-color: #0099DC; /* Blue */
  color: white;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: #007bb0; /* Darker blue on hover */
}

.large-btn {
  padding: 20px 32px;
  font-size: 1.5rem;
}

/* Top Announcement Bar */
.top-announcement {
  background-color: #008cca;
  color: white;
  text-align: center;
  padding: 2px 0;
  font-size: 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* Header Section */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 49px;
  background-color: #019BE0;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  position: relative;
}

.main-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 52px;
  background-color: #0099DC;
  /* Removed transform rotation for a standard vertical bar. */
}

.header-logo img {
  max-width: 204px;
  height: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 48px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover {
  color: #E43895;
}

.main-nav ul li .btn-primary {
  color: white;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 930px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-left: 64px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 65px;
  margin-bottom: 20px;
  color: white;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 40px;
}

.quote-form-container {
  position: absolute;
  top: 317px;
  right: 64px;
  width: 600px;
  background-color: rgba(0, 153, 220, 0.5);
  border-radius: 45px;
  padding: 30px;
  box-sizing: border-box;
  z-index: 2;
}

.quote-form-container h2 {
  text-align: center;
  color: white;
  font-size: 32px;
  margin-bottom: 30px;
}

.quote-form label {
  color: white;
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  display: block;
  margin-top: 20px;
  margin-bottom: 5px;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"] {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: none;
  border-radius: 13px;
  background-color: #FFF8F8;
  font-size: 16px;
  box-sizing: border-box;
}

.privacy-checkbox {
  display: flex;
  align-items: center;
  margin-top: 25px;
  gap: 10px;
}

.privacy-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: white;
  background-color: white;
  border: 1px solid white;
  border-radius: 4px;
}

.privacy-checkbox label {
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: white;
  margin-top: 0;
  display: inline;
}

.quote-form .btn-primary {
  width: auto;
  margin: 30px auto 0 auto;
  display: block;
  font-size: 16px;
}

/* Benefits Section */
.benefits-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #2d2d2d;
  text-align: center;
}

.benefits-section h2 {
  font-size: 65px;
  color: #009adb;
  margin-bottom: 10px;
}

.benefits-section h3 {
  font-size: 36px;
  color: #2d2d2d;
  margin-bottom: 20px;
}

.benefits-section p {
  font-size: 24px;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.benefit-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.benefit-card img {
  width: 100%;
  height: 398px;
  object-fit: cover;
  display: block;
}

.benefit-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(132, 132, 132, 0.5);
  border-radius: 20px;
}

.benefit-card p {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  z-index: 1;
  margin: 0;
}

/* Treatments Section - Updated CSS for the new grid layout */
.treatments-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: rgb(45, 44, 44);
  text-align: center;
  position: relative;
}

.treatments-section h2 {
  font-size: 65px;
  color: #019be0;
  margin-bottom: 20px;
}

.treatments-section .section-description {
  font-size: 24px;
  color: #2d2d2d;
  max-width: 1000px;
  margin: 0 auto 50px auto;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns layout */
  gap: 30px;
  padding-bottom: 80px;
  align-items: stretch;
}

.treatment-card {
  position: relative;
  border-radius: 45px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  min-height: 400px;
}

.treatment-card.large-height {
    min-height: 600px; /* Adjust as needed for visual match */
}

.treatment-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
 /* z-index: -2;*/
  border-radius: 45px;
}

.treatment-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.48);
  border-radius: 45px;
  z-index: 0;
}

.treatment-card h3 {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 10px 30px;
  padding-right: 20px;
}

.treatment-card p.subtitle {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 30px;
  font-weight: 300;
  margin: 0 0 30px 30px;
  padding-right: 20px;
}

/* Styles for the full-width card */
.treatment-card.full-width {
  grid-column: 1 / -1; /* Makes the card span all columns */
  min-height: 400px; /* Adjust height for the wide card */
  display: flex;
  justify-content: center;
  align-items: center;
}

.treatment-card.full-width h3 {
  font-size: 40px;
  margin: 0;
  padding: 0 30px;
}

.treatment-card.full-width p.subtitle {
    display: none; /* Hide subtitle for this specific card if not needed */
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f8f8f8;
}

.testimonials-section h2 {
  font-size: 50px;
  color: #0099DC;
  margin-bottom: 50px;
}

.testimonial-carousel {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.testimonial-card {
  background-color: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-size: 17px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: black;
  margin-bottom: 30px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-info img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.client-info .client-name {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: black;
  margin: 0;
}

.client-info .client-location {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #828282;
  margin: 0;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-nav .nav-btn {
  width: 36px;
  height: 36px;
  background-color: #ccc;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.carousel-nav .nav-btn:hover {
  background-color: #999;
}

.video-testimonial {
  position: relative;
  width: 100%;
  max-width: 894px;
  margin: 0 auto;
  border-radius: 21px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-testimonial img {
  width: 100%;
  height: auto;
  display: block;
}

.video-testimonial .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.video-testimonial .play-button::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18.75px 0 18.75px 25px;
  border-color: transparent transparent transparent #E43895;
  margin-left: 5px;
}

/* Footer (basic) */
.main-footer {
  background-color: #333;
  color: white;
  padding: 40px 0;
  text-align: center;
}

/* Responsive Design - Global */
@media (max-width: 992px) {
  .main-header {
    flex-direction: column;
    padding: 15px 20px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
  }

  .hero-section {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 50px 0;
  }

  .hero-content {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 45px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .quote-form-container {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto;
    width: 90%;
    max-width: 400px;
  }

  .benefits-section h2, .treatments-section h2 {
    font-size: 45px;
  }

  .benefits-section h3 {
    font-size: 30px;
  }

  .benefits-section p, .treatments-section .section-description {
    font-size: 20px;
  }

  .benefits-grid, .testimonial-carousel {
    grid-template-columns: 1fr;
  }

  .benefit-card p {
    font-size: 18px;
  }

  .large-btn { /* Adjust large buttons for smaller screens */
    font-size: 1.3rem;
    padding: 15px 25px;
  }
}

/* Responsive Design for Treatments Section - Specific adjustments */
@media (max-width: 992px) {
  .treatments-grid {
    grid-template-columns: 1fr; /* Una columna para pantallas más pequeñas */
  }

  .treatment-card.large-height,
  .treatment-card.full-width {
      min-height: 350px; /* Ajusta alturas para dispositivos móviles */
  }

  .treatment-card h3 {
      font-size: 26px;
  }

  .treatment-card p.subtitle {
      font-size: 24px;
  }

  .treatment-card.full-width h3 {
      font-size: 34px;
  }
}

@media (max-width: 768px) {
    .top-announcement p {
        font-size: 20px;
    }

    .main-nav ul li a {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .quote-form-container h2 {
        font-size: 28px;
    }

    .benefits-section h2, .treatments-section h2 {
        font-size: 38px;
    }

    .benefits-section h3 {
        font-size: 26px;
    }

    .benefits-section p, .treatments-section .section-description {
        font-size: 20px;
    }

    .testimonial-card {
        min-width: unset;
        width: 100%;
    }

    .video-testimonial {
        width: 90%;
    }

    .treatment-card h3 {
        font-size: 22px;
    }
    .treatment-card p.subtitle {
        font-size: 20px;
    }
    .treatment-card.full-width h3 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .top-announcement p {
        font-size: 16px;
    }

    .main-header {
        padding: 10px 15px;
    }

    .header-logo img {
        max-width: 150px;
    }

    .main-nav ul {
        gap: 15px;
    }

    .main-nav ul li a {
        font-size: 16px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .large-btn {
        padding: 15px 25px;
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .quote-form-container {
        padding: 20px;
    }

    .quote-form-container h2 {
        font-size: 24px;
    }

    .quote-form label {
        font-size: 18px;
    }

    .benefits-section h2, .treatments-section h2 {
        font-size: 30px;
    }

    .benefits-section h3 {
        font-size: 22px;
    }

    .benefits-section p, .treatments-section .section-description {
        font-size: 18px;
    }

    .testimonial-card p {
        font-size: 16px;
    }

    .client-info img {
        width: 50px;
        height: 50px;
    }

    .client-info .client-name, .client-info .client-location {
        font-size: 14px;
    }

    .video-testimonial .play-button {
        width: 70px;
        height: 70px;
    }

    .video-testimonial .play-button::before {
        border-width: 12px 0 12px 18px;
    }

    .treatment-card h3 {
        font-size: 18px;
        margin: 0 0 5px 20px;
    }
    .treatment-card p.subtitle {
        font-size: 16px;
        margin: 0 0 20px 20px;
    }
    .treatment-card.full-width h3 {
        font-size: 26px;
        padding: 0 20px;
    }
    .treatment-card.large-height,
    .treatment-card.full-width {
        min-height: 250px;
    }
}