/* === FORMULARIO DE PRESUPUESTO – ATUALIZADO === */
.quote-request {
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  padding: 5rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  color: #0f172a;
}

/* TITULARES */
.section-title {
  text-align: center;
  font-size: 2.75rem;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: #334155;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.6;
}

/* FORMULARIO */
.formulario {
  background-color: #ffffff;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.formulario:hover {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1);
}

fieldset {
  border: none;
  margin-bottom: 2.5rem;
  padding: 0;
}

legend {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #0f172a;
  font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background-color: #f9fafb;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0f766e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.25);
  background-color: #ffffff;
}

/* CHECKBOXES */
.checkbox-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #1e293b;
  gap: 0.6rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #0f766e;
  cursor: pointer;
}

/* BOTÓN */
.btn-primary {
  display: inline-block;
  background-color: #0f766e;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0d5e5b;
  outline: 2px solid #0891b2;
  outline-offset: 2px;
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1.05rem;
  }

  .formulario {
    padding: 2rem 1.5rem;
  }

  legend {
    font-size: 1.2rem;
  }
}

/* BOTÓN DE WHATSAPP FLOTANTE */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-decoration: none;
  font-size: 1rem;
  z-index: 1000;
  transition: background 0.3s ease;
}

.floating-whatsapp-btn:hover {
  background: #1ebc5c;
}

/* POPUP DE ANUNCIO */
.popup {
  position: fixed;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url('../assets/anuncio-popup.png');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-content {
  background-color: rgba(255, 255, 255, 0.93);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.popup h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-popup {
  display: block;
  background-color: #d32f2f;
  color: white;
  padding: 0.75rem;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}

.btn-popup:hover {
  background-color: #b71c1c;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hidden {
  display: none;
}

/* === Aside informativo de beneficios === */
.aside-benefits {
  background: #ffffff;
  border-left: 6px solid #004080;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  max-width: 720px;
  margin: 4rem auto;
  color: #111;
}

.aside-benefits h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #004080;
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.benefits-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #1e293b;
}

.benefits-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #157245;
  font-weight: bold;
  font-size: 1.1rem;
}

/* CTA dentro del aside */
.aside-cta {
  background-color: #f0fdf4;
  border: 1px solid #c0e7d1;
  padding: 1.25rem;
  border-radius: 10px;
  text-align: center;
}

.aside-cta p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #0f5132;
  font-weight: 500;
}

/* Reutiliza tu clase existente de botón */
.aside-cta .btn-primary {
  background-color: #25D366;
  color: #fff;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.aside-cta .btn-primary:hover {
  background-color: #1ebc5c;
}

/* Responsive */
@media (max-width: 768px) {
  .aside-benefits {
    padding: 2rem 1.5rem;
  }

  .aside-benefits h3 {
    font-size: 1.5rem;
  }

  .benefits-list li {
    font-size: 1rem;
  }
}

/* LAYOUT MAIN */
.form-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 3rem;
}

.form-layout .formulario {
  flex: 1 1 60%;
  min-width: 300px;
}

.form-layout .aside-benefits {
  flex: 1 1 35%;
  min-width: 260px;
}

@media (max-width: 768px) {
  .form-layout {
    flex-direction: column;
  }
}

/* BOTÓN - VER PRECIOS */
.btn-ver-precios-inline {
  display: inline-block;
  background-color: #004080;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  margin-left: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-ver-precios-inline:hover {
  background-color: #003060;
}

/* === ICONO FLOTANTE MÓVIL === */
.mobile-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #d32f2f;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  text-decoration: none;
  display: none;
}

/* === POPUP MÓVIL === */
.mobile-offer {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 260px;
  background-color: white;
  border: 2px solid #d32f2f;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  padding: 1rem;
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-offer-content {
  text-align: center;
  position: relative;
}

.mobile-offer h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222;
}

.mobile-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #555;
  cursor: pointer;
}

.popup-buttons .btn-popup {
  background-color: #d32f2f;
  color: white;
  padding: 0.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  display: block;
  margin: 0.5rem 0;
  transition: background-color 0.2s;
}

.popup-buttons .btn-popup:hover {
  background-color: #b71c1c;
}