/* Main Content Sections */
main {
  padding-top: 30px;
}

.content-section {
  padding: 40px 30px;
  margin-bottom: 30px;
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-section.bg-image-section {
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}
.content-section.bg-image-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  z-index: -1;
}
.content-section.bg-image-section h2,
.content-section.bg-image-section p,
.content-section.bg-image-section li,
.content-section.bg-image-section label {
  /* Ensure labels are also white */
  color: var(--color-white);
}
.content-section.bg-image-section h2 {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}
.content-section.bg-image-section ul li::before {
  color: var(--color-white);
}
.content-section.bg-image-section .form-group input,
.content-section.bg-image-section .form-group textarea {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-dark-gray-text);
  border-color: rgba(255, 255, 255, 0.5);
}
.content-section.bg-image-section .form-group input::placeholder,
.content-section.bg-image-section .form-group textarea::placeholder {
  color: var(--color-gray);
}

.content-section h2 {
  color: var(--color-blue);
  margin-top: 0;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--color-green);
  font-size: 2em;
  font-weight: 600;
}

.services-list-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.services-list {
  flex: 1;
  min-width: 300px;
}

.services-list ul {
  list-style: none;
  padding-left: 0;
}

.services-list ul li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  font-size: 1.05em;
}

.services-list ul li::before {
  content: "\2713"; /* Checkmark for included, maybe different for extras */
  font-family: "FontAwesome"; /* If using FontAwesome icons */
  color: var(--color-green);
  position: absolute;
  left: 0;
}
#servicios-extras ul li::before {
  content: "\2609"; /* X mark for extras, or different icon */
  color: var(--color-blue); /* Reddish color for X */
}

/* Contact Form */
#contacto-formulario.bg-image-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("/public/images/banner.jpg");
}
.contact-form-layout {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start; /* Align items to the top */
}
.form-container {
  flex: 1.5; /* Give more space to form */
  min-width: 300px;
}
.contact-info-aside {
  flex: 1;
  min-width: 280px;
  background-color: rgba(255, 255, 255, 0.1); /* Subtle bg for info box */
  padding: 20px;
  border-radius: 8px;
}
.contact-info-aside h3 {
  color: var(--color-white); /* Ensure title is white */
  margin-top: 0;
  border-bottom: 1px solid var(--color-green);
  padding-bottom: 10px;
}
.contact-info-aside p {
  color: var(--color-light-gray-bg); /* Lighter text for info */
}
.contact-info-aside a {
  color: var(--color-green);
}

.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95em;
  /* Color is handled by .bg-image-section if applied */
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 14px; /* Increased padding */
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #fdfdfd;
  font-size: 1em;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  border-color: var(--color-blue);
  outline: none;
  box-shadow: 0 0 8px rgba(0, 159, 227, 0.5);
}
.btn-submit {
  background-color: var(--color-green);
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.btn-submit:hover {
  background-color: #5a9323;
  transform: translateY(-2px);
}

/* Map Container */
.map-section h2 {
  /* Center map title */
  text-align: center;
}
.map-container {
  position: relative;
  overflow: hidden;
  padding-top: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-address {
  text-align: center;
  margin-top: 15px;
  font-size: 0.95em;
  color: var(--color-gray);
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-form-layout {
    flex-direction: column;
  }
  .contact-info-aside {
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .content-section {
    padding: 30px 20px;
  }
  .content-section h2 {
    font-size: 1.7em;
  }

  .map-container {
    padding-top: 65%;
  }
  .services-list-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .content-section h2 {
    font-size: 1.5em;
  }
}
