/* Pie de página común (partials/footer.blade.php): newsletter + footer. Paleta de la marca (ciruela y rosas). */
.nl-area,
.site-footer,
.go-top {
    --ft-plum: #4a2839;
    --ft-plum-dark: #3a1f2d;
    --ft-plum-darker: #2e1823;
    --ft-accent: #b28795;
    --ft-accent-dark: #7f324b;
    --ft-accent-darker: #64263a;
    --ft-pink: #ecc7ce;
    --ft-pink-soft: #fbf3f5;
    --ft-text: #3d3d3d;
    --ft-muted: #6b6168;
    --ft-on-dark: #f3e9ec;
    --ft-on-dark-muted: #cdb9c0;
    --ft-line: rgba(236, 199, 206, .16);
    --ft-success: #1f6b52;
    --ft-danger: #b42318;
}

/* =============================================================== NEWSLETTER */

/* La newsletter ya forma parte del fondo ciruela del footer: así no queda una franja del color de la
   página entre la última sección (cada una tiene su propio fondo) y la tarjeta. */
.nl-area {
    position: relative;
    padding-top: 64px;
    background: var(--ft-plum);
}

.nl-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px 48px;
    padding: 40px 48px;
    border: 1px solid var(--ft-pink);
    border-radius: 24px;
    background: linear-gradient(120deg, var(--ft-pink-soft) 0%, #f6e3e8 100%);
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55);
    overflow: hidden;
}

/* Detalle decorativo suave */
.nl-card::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    pointer-events: none;
}

.nl-copy {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.nl-icon {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
    color: var(--ft-accent-dark);
    font-size: 24px;
    box-shadow: 0 8px 20px -12px rgba(127, 50, 75, .6);
}

.nl-title {
    margin: 0 0 8px;
    color: var(--ft-plum-darker);
    font-size: 26px;
    line-height: 1.25;
}

.nl-text {
    margin: 0;
    color: var(--ft-muted);
    font-size: 15.5px;
    line-height: 1.6;
}

.nl-form {
    position: relative;
    z-index: 1;
}

.nl-field {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px;
    border: 1px solid rgba(127, 50, 75, .18);
    border-radius: 999px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.nl-field:focus-within {
    border-color: var(--ft-accent);
    box-shadow: 0 0 0 4px rgba(178, 135, 149, .25);
}

.nl-field-icon {
    position: absolute;
    left: 22px;
    color: var(--ft-accent);
    pointer-events: none;
}

/* Sin contorno propio: el foco lo muestra la píldora completa (:focus-within). */
.nl-area .nl-field input,
.nl-area .nl-field input:focus,
.nl-area .nl-field input:focus-visible {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 12px 0 48px;
    border: 0;
    background: transparent;
    color: var(--ft-text);
    font-size: 16px;
    outline: 0;
    box-shadow: none;
}

.nl-field input::placeholder { color: #8f858b; }

.nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--ft-accent-dark);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s;
}

.nl-btn:hover { background: var(--ft-accent-darker); }
.nl-btn:disabled { opacity: .75; cursor: progress; }
.nl-btn:focus-visible { outline: 3px solid var(--ft-accent); outline-offset: 2px; }

.nl-spinner { display: none; }
.nl-form.is-loading .nl-spinner { display: inline-block; }

.nl-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0 18px;
    font-size: 14px;
    font-weight: 500;
}

.nl-result:empty { display: none; }
.nl-result.validation-success { color: var(--ft-success); }
.nl-result.validation-danger { color: var(--ft-danger); }

.nl-legal {
    margin: 10px 0 0 18px;
    color: var(--ft-muted);
    font-size: 13px;
}

.nl-legal a {
    color: var(--ft-accent-dark);
    text-decoration: underline;
    text-decoration-color: rgba(127, 50, 75, .35);
    text-underline-offset: 3px;
}

/* =============================================================== FOOTER */

.site-footer {
    padding-top: 64px;
    background: var(--ft-plum);
    color: var(--ft-on-dark-muted);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
    gap: 40px;
    padding-bottom: 56px;
}

.site-footer a { transition: color .2s, background-color .2s, border-color .2s; }

.site-footer a:focus-visible,
.go-top:focus-visible {
    outline: 3px solid var(--ft-pink);
    outline-offset: 3px;
    border-radius: 6px;
}

.sf-logo { display: inline-block; margin-bottom: 16px; }

.site-footer img#logoFilterFooter {
    width: 200px;
    height: auto;
}

.sf-tagline {
    max-width: 300px;
    margin: 0 0 20px;
    color: var(--ft-on-dark-muted);
    font-size: 15px;
    line-height: 1.6;
}

.sf-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    background: var(--ft-pink);
    color: var(--ft-plum-darker);
    font-weight: 700;
}

.sf-cta:hover { background: #fff; color: var(--ft-accent-dark); }

.sf-social {
    display: flex;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.sf-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ft-line);
    border-radius: 50%;
    color: var(--ft-on-dark);
    font-size: 16px;
}

.sf-social a:hover { background: var(--ft-pink); border-color: var(--ft-pink); color: var(--ft-plum-darker); }

.sf-title {
    position: relative;
    margin: 6px 0 20px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 18px;
}

.sf-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: var(--ft-accent);
}

.sf-links,
.sf-hours,
.sf-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-links li + li { margin-top: 10px; }

.sf-links a {
    color: var(--ft-on-dark-muted);
    font-size: 15px;
}

.sf-links a:hover { color: #fff; }

.sf-links a::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 2px;
    margin-right: 0;
    vertical-align: middle;
    background: var(--ft-pink);
    transition: width .2s, margin-right .2s;
}

.sf-links a:hover::before { width: 12px; margin-right: 8px; }

.sf-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--ft-on-dark);
    font-size: 13.5px;
}

.sf-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8fd3b5;
    box-shadow: 0 0 0 3px rgba(143, 211, 181, .25);
}

.sf-status.is-closed .sf-status-dot { background: var(--ft-on-dark-muted); box-shadow: none; }

.sf-hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14.5px;
}

.sf-hours li + li { margin-top: 4px; }

.sf-hours-time { color: var(--ft-on-dark); font-weight: 500; white-space: nowrap; }

.sf-hours li.is-today {
    background: rgba(236, 199, 206, .12);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--ft-pink);
}

.sf-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-contact li + li { margin-top: 14px; }

.sf-contact-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: var(--ft-pink);
    font-size: 16px;
}

.sf-contact li > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-contact small {
    color: var(--ft-on-dark-muted);
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.sf-contact a {
    color: var(--ft-on-dark);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.sf-contact a:hover { color: var(--ft-pink); }

.sf-bottom {
    border-top: 1px solid var(--ft-line);
    background: var(--ft-plum-dark);
}

.sf-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding-top: 18px;
    padding-bottom: 18px;
    padding-right: 84px; /* el botón flotante "volver arriba" no tapa el enlace */
    font-size: 14px;
}

.sf-bottom p { margin: 0; color: var(--ft-on-dark-muted); font-size: inherit; }
.sf-bottom a { color: var(--ft-on-dark); }
.sf-bottom a:hover { color: var(--ft-pink); }

/* ----------------------------------------------------------- Volver arriba (antes <div>, ahora <button>) */

button.go-top {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ft-accent-dark);
    box-shadow: 0 10px 24px -10px rgba(74, 40, 57, .7);
    top: auto;
    right: 24px;
    bottom: -80px;
}

button.go-top.active { top: auto; right: 24px; bottom: 24px; }

button.go-top:hover { background: var(--ft-accent-darker); }
button.go-top i { position: static; transform: none; font-size: 16px; }

/* =============================================================== RESPONSIVO */

@media (max-width: 1199.98px) {
    .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .nl-card { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 575.98px) {
    .nl-area { padding-top: 40px; }
    .nl-card { padding: 26px 20px; border-radius: 20px; }
    .nl-copy { flex-direction: column; gap: 14px; }
    .nl-title { font-size: 22px; }
    .nl-field { flex-wrap: wrap; border-radius: 18px; }
    .nl-field-icon { top: 30px; transform: translateY(-50%); }
    .nl-area .nl-field input { flex-basis: 100%; }
    .nl-btn { width: 100%; justify-content: center; border-radius: 14px; }
    .nl-result,
    .nl-legal { margin-left: 4px; }
    .site-footer { padding-top: 48px; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
    .sf-bottom-inner { justify-content: center; text-align: center; padding-right: 12px; padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a,
    .sf-links a::before { transition: none; }
}
