:root {
  --color-gold: #d0ab7b;
  --color-gold-light: #f3e6c6;
  --color-dark: #2A2A2A;
  --color-text: #333;
  --color-border: #e6e6e6;
  --color-bg: #faf8f5;
  --color-card: #ffffff;
  --color-alert-bg: rgba(198,159,94,0.12);
  --color-alert-border: rgba(198,159,94,0.30);
}

/* Contenedor principal */
.blf-container {
  font-family: "Times New Roman", serif;
  max-width: 720px;
  margin: 30px auto;
  padding: 28px 34px;
  background: var(--color-card);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  transition: transform 0.25s ease;
  color: var(--color-text);
  border: 1px solid rgba(198,159,94,0.15);
}

.blf-container:hover {
  transform: translateY(-4px);
}

/* Títulos premium */
.blf-container h2,
.blf-container h3,
.blf-title {
  font-family: "Times New Roman", serif;
  font-size: 24px;
  color: var(--color-dark);
  margin-bottom: 18px;
  font-weight: 600;
}

/* Labels */
.blf-label {
  font-size: 17px;
  margin-top: 12px;
  display: block;
  font-weight: 500;
}

/* Inputs y selects */
.blf-select,
.blf-input,
#blf-service,
#rep,
#sqm,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 15px 16px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  margin-top: 6px;
  font-family: "Times New Roman", serif;
  transition: border 0.3s, box-shadow 0.3s;
  appearance: none;
}

/* Flecha dorada personalizada */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C69F5E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  cursor: pointer;
}

/* Focus gold glow */
.blf-select:focus,
.blf-input:focus,
input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(198,159,94,0.22);
  outline: none;
}

/* Caja de precio */
.blf-price-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  animation: fadeIn 0.3s ease;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.blf-price-box.blf-price-glow {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(208,171,123,0.6), 0 0 18px rgba(208,171,123,0.45);
}

.blf-price-text {
  font-size: 21px;
  font-weight: 600;
  color: var(--color-dark);
  font-family: "Times New Roman", serif;
}

/* Subtexto */
.blf-subtext {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

/* Botones premium */
.blf-cta,
.blf-send {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 18px;
  background: var(--color-gold);
  color: #fff;
  font-family: "Times New Roman", serif;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.blf-cta:hover,
.blf-send:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  color: #fff;
}

/* Efecto brillante en botones */
.blf-cta::after,
.blf-send::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  top: 0;
  left: -100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.blf-cta:hover::after,
.blf-send:hover::after {
  left: 100%;
}

/* Loader */
.blf-send.loading {
  font-size: 0;
  pointer-events: none;
  background: var(--color-gold-light);
  position: relative;
}

.blf-send.loading::after {
  content: "";
  border: 3px solid #fff;
  border-top: 3px solid var(--color-gold);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Alert */
.blf-alert {
  display: none;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 8px;
  background: var(--color-alert-bg);
  border: 1px solid var(--color-alert-border);
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 500;
  font-family: "Times New Roman", serif;
  animation: fadeIn 0.3s ease;
}

/* Fade anim */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .blf-container {
    padding: 20px 16px;
    margin: 15px;
  }
  .blf-price-text {
    font-size: 18px;
  }
  .blf-cta, .blf-send {
    font-size: 17px;
    padding: 14px;
  }
}

/* OVERLAY POPUP */
.blf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* MODAL BOX CON SCROLL UNIVERSAL */
.blf-modal-box {
    background: #fff;
    border-radius: 18px;
    width: 92%;
    max-width: 760px;

    max-height: 90vh;
    overflow-y: auto;

    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    padding: 6px;
    position: relative;

    animation: blfModalIn .35s cubic-bezier(.16,.84,.44,1);
}

/* Animación */
@keyframes blfModalIn {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

/* Botón cerrar */
.blf-close-modal {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    transition: .2s;
}
.blf-close-modal:hover { color: #000; }

/* Sombra superior / inferior */
.blf-modal-box::before,
.blf-modal-box::after {
    content: "";
    position: sticky;
    left: 0;
    right: 0;
    height: 22px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Sombra arriba */
.blf-modal-box::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.22), rgba(0,0,0,0));
}

/* Sombra abajo */
.blf-modal-box::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.22), rgba(0,0,0,0));
}

/* Activación dinámica */
.blf-shadow-top::before { opacity: 1; }
.blf-shadow-bottom::after { opacity: 1; }

/* Contenido interno */
.blf-modal-content {
    padding-bottom: 30px;
}

/* Bloquear body cuando hay modal */
body.blf-no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* Sombras dinámicas activadas por scroll */
.blf-shadow-top::before {
    opacity: 1 !important;
}

.blf-shadow-bottom::after {
    opacity: 1 !important;
}

/* =============== ELASTIC POP ANIMATION =============== */

@keyframes blfElasticPop {
    0% {
        opacity: 0;
        transform: scale(0.88);
    }
    45% {
        opacity: 1;
        transform: scale(1.06);
    }
    70% {
        transform: scale(0.97);
    }
    100% {
        transform: scale(1);
    }
}

/* Aplicar animación al modal cuando aparece */
.blf-modal-box.blf-pop {
    animation: blfElasticPop 0.45s cubic-bezier(.25, .46, .45, .94);
}

/* =============== ELASTIC CLOSE ANIMATION =============== */

@keyframes blfElasticClose {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    40% {
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(0.85);
    }
}

/* Clase que activa el cierre animado */
.blf-modal-box.blf-close-anim {
    animation: blfElasticClose 0.35s cubic-bezier(.25, .46, .45, .94);
}

/* Oculta el contenido del modal hasta que comience la animación */
.blf-modal-box.pre-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}


#blf-honeypot {
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

