/* Newsletter + Footer Premium
 * Extraído desde includes/footer.php (era inline). Cacheable: Expires 1 month.
 */

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.sm-newsletter {
    position: relative;
    padding: 96px 24px 88px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(234,88,12,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(236,72,153,0.05) 0%, transparent 50%),
        #ffffff;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.sm-news-ambient { position: absolute; inset: 0; pointer-events: none; }
.sm-news-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6;
    animation: sm-news-drift 24s ease-in-out infinite alternate;
}
.sm-news-orb-1 {
    width: 400px; height: 400px; top: -120px; left: 10%;
    background: radial-gradient(circle, rgba(245,158,11,0.30) 0%, transparent 70%);
}
.sm-news-orb-2 {
    width: 380px; height: 380px; bottom: -100px; right: 5%;
    background: radial-gradient(circle, rgba(236,72,153,0.26) 0%, transparent 70%);
    animation-delay: -8s;
}
@keyframes sm-news-drift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(40px,-30px) scale(1.10); }
}
.sm-news-inner {
    position: relative; z-index: 2;
    max-width: 680px; margin: 0 auto;
}
.sm-news-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(234,88,12,0.10), rgba(236,72,153,0.10));
    border: 1px solid rgba(234,88,12,0.22);
    border-radius: 999px;
    color: #ea580c; font-size: 11.5px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
}
.sm-news-title {
    margin: 0 0 16px;
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700; color: #1d1d1f;
    letter-spacing: -0.022em; line-height: 1.05;
}
.sm-news-grad {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 50%, #ec4899 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sm-grad-shift 8s ease-in-out infinite;
}
.sm-news-lead {
    margin: 0 auto 32px;
    max-width: 540px;
    color: #6e6e73; font-size: 16px; line-height: 1.55; font-weight: 400;
}
.sm-news-form {
    display: flex; gap: 10px;
    max-width: 520px; margin: 0 auto 16px;
}
.sm-news-input-wrap {
    flex: 1;
    display: inline-flex; align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 999px;
    padding: 0 18px;
    box-shadow: 0 4px 14px -6px rgba(0,0,0,0.10);
    transition: box-shadow 280ms ease, border-color 280ms ease;
}
.sm-news-input-wrap:focus-within {
    border-color: rgba(234,88,12,0.40);
    box-shadow: 0 0 0 4px rgba(234,88,12,0.10), 0 8px 20px -6px rgba(234,88,12,0.20);
}
.sm-news-icon { width: 18px; height: 18px; color: #86868b; flex-shrink: 0; margin-right: 10px; }
.sm-news-input {
    flex: 1; min-width: 0;
    border: none; background: transparent;
    padding: 14px 0;
    font-family: inherit;
    font-size: 15px; color: #1d1d1f; outline: none;
    letter-spacing: -0.005em;
}
.sm-news-input::placeholder { color: #c7c7cc; }
.sm-news-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 26px;
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-family: inherit; font-size: 14.5px; font-weight: 600;
    letter-spacing: -0.005em; cursor: pointer;
    box-shadow: 0 6px 16px -4px rgba(234,88,12,0.45);
    transition: transform 260ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 260ms ease;
    animation: sm-grad-shift 5s ease-in-out infinite;
    white-space: nowrap;
}
.sm-news-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 12px 24px -6px rgba(234,88,12,0.55);
}
.sm-news-btn svg { transition: transform 240ms ease; }
.sm-news-btn:hover svg { transform: translateX(2px); }

.sm-news-fineprint {
    margin: 14px 0 0;
    color: #86868b; font-size: 12.5px; font-weight: 500;
}
@media (max-width: 640px) {
    .sm-newsletter { padding: 64px 16px 56px; }
    .sm-news-form { flex-direction: column; gap: 10px; }
    .sm-news-input-wrap { padding: 0 16px; }
    .sm-news-btn { width: 100%; padding: 14px 24px; justify-content: center; }
    .sm-news-fineprint { font-size: 11.5px; }
}

/* ============================================================
   FOOTER PREMIUM
   ============================================================ */
.main-footer {
    position: relative;
    background: #0a0a14;
    color: rgba(255,255,255,0.78);
    padding: 80px 24px 32px;
    overflow: hidden;
}
.sm-foot-deco { position: absolute; inset: 0; pointer-events: none; opacity: 0.08; }
.sm-foot-paw { position: absolute; color: #f59e0b; }
.sm-foot-paw-1 { width: 180px; height: 180px; top: 10%; left: -40px; transform: rotate(-22deg); }
.sm-foot-paw-2 { width: 140px; height: 140px; bottom: 8%; right: -30px; transform: rotate(18deg); color: #ec4899; }

.sm-foot-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.sm-foot-grid {
    display: grid;
    /* Brand más ancho (logo + tagline + social) + 4 columnas de links */
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
    gap: 40px;
    margin-bottom: 56px;
}
/* Pantallas ~1100px: la columna Brand se va a su propia fila para que las
   4 columnas de links respiren cómodamente abajo */
@media (max-width: 1100px) {
    .sm-foot-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 36px;
    }
    .sm-foot-grid .sm-foot-brand {
        grid-column: 1 / -1;
        max-width: 480px;
    }
}
.sm-foot-col h4.sm-foot-h {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f59e0b;
}
.sm-foot-col ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.sm-foot-col a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.005em;
    transition: color 220ms ease;
    display: inline-flex; align-items: center;
}
.sm-foot-col a:hover { color: #f59e0b; }
.sm-foot-static {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    display: inline-flex; align-items: center;
}

/* Brand column */
.sm-foot-brand .sm-foot-logo {
    display: inline-block; margin-bottom: 16px;
}
.sm-foot-brand .sm-foot-logo img {
    height: 44px; width: auto; display: block;
    /* Solo drop-shadow: el SVG ya viene con su gradiente brand y se ve
       perfecto sobre el fondo oscuro #0a0a14. */
    filter: drop-shadow(0 0 14px rgba(245,158,11,0.45));
}
.sm-foot-tagline {
    color: rgba(255,255,255,0.65);
    font-size: 14px; line-height: 1.6;
    margin: 0 0 22px;
    max-width: 280px;
}
.sm-foot-social {
    display: flex; gap: 10px;
}
.sm-soc {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: background 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms cubic-bezier(0.34,1.56,0.64,1);
}
.sm-soc svg { width: 18px; height: 18px; }
.sm-soc:hover {
    background: linear-gradient(135deg, rgba(234,88,12,0.20), rgba(236,72,153,0.20));
    border-color: rgba(245,158,11,0.45);
    color: #f59e0b;
    transform: translateY(-2px);
}

/* Bottom bar */
.sm-foot-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12.5px;
}
.sm-foot-copy { margin: 0; color: rgba(255,255,255,0.52); }
.sm-foot-legal { display: inline-flex; gap: 10px; align-items: center; }
.sm-foot-legal a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 220ms ease;
}
.sm-foot-legal a:hover { color: #f59e0b; }
.sm-foot-sep { color: rgba(255,255,255,0.20); }

@media (max-width: 900px) {
    .sm-foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .sm-foot-grid .sm-foot-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .main-footer { padding: 56px 20px 28px; }
    .sm-foot-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
    .sm-foot-grid .sm-foot-brand { grid-column: auto; }
    .sm-foot-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .sm-foot-paw-1, .sm-foot-paw-2 { display: none; }
}
