html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.hero-section {
  background: url('../images/background-hero.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 30px 0;
}

.hero-section .logo img {
  max-width: 900px;
  width: 100%;
}

.hero-section .hero-text {
  max-width: 600px;
  margin: 0 auto;
}

.hero-section .hero-text h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.hero-section .hero-text p {
  font-size: 20px;
  font-weight: 600;
}

.features-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.features-list .feature-item {
  background-color: white;
  flex: 1;
  padding: 30px;
  box-sizing: border-box;
  text-align: left;
}

.features-list .feature-item h2 {
  font-size: 24px;
  color: #797979;
  font-weight: 500;
  margin: 0 0 5px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.features-list .feature-item p {
  font-size: 17px;
  color: #016dbf;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin: 0;
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
}

.features-list .feature-item p.green {
  color: #01bf3a;
  font-size: 24px;
  font-weight: 700;
}

.features-list .feature-item p::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background-image: url('../images/check-icon-blue.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  flex-shrink: 0;
}

.features-list .feature-item p.green::before {
  background-image: url('../images/check-icon-green.svg');
  width: 16px;
  height: 16px;
  margin-top: 9px;
}

.features-list .feature-item p:not(:last-child) {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.hero-section .cta-button a,
.contact-form button {
  background: #016dbf;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s linear;
  outline: none;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  margin-top: 40px;
}

.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 20px;
  column-gap: 40px;
  max-width: 500px;
  margin: 40px auto 0 auto;
  width: 100%;
}

.contact-form button {
  display: block;
  margin: 0;
}

.hero-section .cta-button a:focus,
.contact-form button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 109, 191, 0.5);
}

.hero-section .cta-button a:hover,
.contact-form button:hover {
  background: #015aa6;
  transform: translateY(-4px);
}

.whatsapp-button {
  display: inline-block;
  background: #01bf3a;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  margin: 0;
  font-weight: 600;
  transition: all 0.15s linear;
  vertical-align: middle;
  max-width: 150px;
}

.whatsapp-button:hover {
  background: #019e30;
  transform: translateY(-4px);
}

.whatsapp-button .whatsapp-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.contact-section {
  background: url('../images/background-contact.jpg') no-repeat center center/cover;
  padding: 30px 0;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-info {
  flex: 1;
  max-width: 47%;
  width: 45%;
  color: white;
  box-sizing: border-box;
  text-align: center;
}

.contact-info h2 {
  font-size: 38px;
  margin-bottom: 0px;
  font-weight: 600;
}

.contact-info h3 {
  font-size: 28px;
  font-style: italic;
  margin-top: 10px;
  font-weight: 500;
}

.contact-info p {
  font-size: 20px;
  font-weight: 500;
  padding: 0;
}

.contact-form {
  flex: 1;
  max-width: 45%;
  width: 100%;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-sizing: border-box;
}

.contact-form .form-group {
  margin-bottom: 20px;
  box-sizing: border-box;
}

.contact-form label {
  font-family: 'Playfair Display', serif;
  color: #777;
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #797979;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #016dbf;
  box-sizing: border-box;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom: 1px solid black;
}

.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
  background-color: transparent !important;
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: #016dbf !important;
  font-family: 'Poppins', sans-serif !important;
  letter-spacing: 0.02em !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.contact-form .error-message {
  color: #EF6B51;
  font-size: 16px;
  display: none;
  margin-top: 5px;
}

.features-section {
  background: white;
  padding: 30px 0;
}

.features-section .container {
  display: flex;
  justify-content: space-between;
}

.features-section .feature {
  flex: 1;
  margin: 0 10px;
  text-align: center;
}

.features-section .feature .feature-number {
  font-size: 38px;
  color: #016dbf;
  font-weight: 500;
  margin-bottom: 15px;
}

.features-section .feature p {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #016dbf;
}

.map-section {
  background: #f4f4f4;
  padding: 0px 0;
  text-align: center;
}

.map-section h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 40px;
  color: #797979;
  font-weight: 500;
}

.map-section iframe {
  max-width: 1200px;
  width: 100%;
  height: 600px;
  border: none;
}

.footer-section {
  background: #f4f4f4;
}

.footer-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-info {
  text-align: center;
  flex: 1;
}

.footer-links {
  text-align: center;
  flex: 1;
}

.footer-info .footer-text {
  font-family: 'Playfair Display', serif;
  color: #666;
  font-size: 16px;
  margin: 5px 0;
}

.footer-links a {
  font-family: 'Poppins', sans-serif;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #016dbf;
}

.footer-section .footer-info img {
  max-width: 450px;
  width: 100%;
}

.footer-section .footer-links h3 {
  font-size: 16px;
  color: #797979;
}

.footer-section .footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-section .footer-links ul li {
  margin-bottom: 10px;
}

.footer-links .social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.footer-links .social-icons .social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-links .social-icons .social-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.gracias-section {
  background: url('../images/background-hero.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 50px 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gracias-content {
  max-width: 600px;
  margin: 0 auto;
}

.gracias-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.gracias-content p {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 40px;
}

.botones-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gracias-content .cta-button {
  background: #016dbf;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s linear;
  display: inline-block;
  text-align: center;
}

.gracias-content .cta-button:hover {
  background: #015aa6;
  transform: translateY(-4px);
}

.gracias-content .whatsapp-button-gracias {
  background: #01bf3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gracias-content .whatsapp-button-gracias:hover {
  background: #019e30;
}

.gracias-content .whatsapp-button-gracias .whatsapp-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .hero-section .hero-text h1 {
    font-size: 32px;
  }

  .features-list {
    padding: 20px 0;
  }

  .contact-section {
    padding: 30px 0;
  }

  .contact-section .container {
    padding: 0;
    width: 100%;
  }

  .contact-wrapper {
    padding: 0;
  }

  .contact-info {
    padding: 0 30px;
  }

  .contact-info h2 {
    font-size: 32px;
  }

  .contact-info h3 {
    font-size: 26px;
  }

  .contact-form {
    padding: 30px;
    border-radius: 0;
  }

  .button-container {
    justify-content: center;
  }

  .map-section .container {
    width: 100%;
    padding: 20px 0;
  }

  .map-section iframe {
    height: 300px;
  }

  .features-list,
  .features-section .container,
  .footer-section .container {
    flex-direction: column;
  }

  
  .features-section .feature,
  .footer-section .footer-info,
  .footer-section .footer-links {
    margin: 10px 0;
  }
}

@media (max-width: 1100px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .contact-info,
  .contact-form {
    max-width: 100% !important;
    width: 100% !important;
  }
}