body { margin: 0; font-family: var(--bp-font-main, sans-serif); color: #4a4a4a; background: var(--bp-bg, #fefcfb); overflow-x: hidden; }

/* ── SOBRE INTRO V2 RESPONSIVE ───────────────────────────────────────────── */
#bp-envelope-intro { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 1s, transform 1s, visibility 1s; padding: 20px; }
#bp-envelope-intro.is-open { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-50px); }

.bp-env { 
    width: 340px; 
    height: 220px; 
    background: var(--env-color, #e8ded1); 
    position: relative; cursor: pointer; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
    border-radius: 4px;
    transform: scale(var(--env-scale, 1));
    transition: transform 0.2s;
}

/* Restauramos proporciones geométricas fijas. El JS y transform:scale se encargan de adaptarlo al móvil. */
.bp-env-flap { 
    position: absolute; top: 0; left: 0; 
    width: 0; height: 0; 
    border-left: 170px solid transparent; 
    border-right: 170px solid transparent; 
    border-top: 110px solid rgba(0,0,0,0.1); 
    transform-origin: top; transition: transform 0.6s ease-in-out; z-index: 4; 
}

.bp-env-flap::after { 
    content: ''; position: absolute; top: -110px; 
    left: -170px; 
    border-left: 170px solid transparent; 
    border-right: 170px solid transparent; 
    border-top: 110px solid var(--env-color, #e8ded1); 
    filter: brightness(0.95); 
}
.bp-env.open .bp-env-flap { transform: rotateX(180deg); z-index: 1; }

.bp-env-front { 
    position: absolute; bottom: 0; left: 0; 
    width: 0; height: 0; 
    border-left: 170px solid rgba(255,255,255,0.1); 
    border-right: 170px solid rgba(255,255,255,0.1); 
    border-bottom: 110px solid rgba(0,0,0,0.05); z-index: 3; pointer-events: none; 
}
.bp-env-content { position: absolute; inset: 10px; background: #fff; z-index: 2; transition: transform 0.8s ease 0.3s; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.bp-env.open .bp-env-content { transform: translateY(-80px); }

.bp-sello { 
    width: var(--env-sello-size, 72px); height: var(--env-sello-size, 72px); object-fit: cover; 
    position: absolute; bottom: var(--env-sello-bottom, 32px); left: 50%; transform: translateX(-50%); z-index: 10; 
    border-radius: var(--env-sello-radius, 50%); box-shadow: var(--env-sello-shadow, 0 2px 8px rgba(0,0,0,0.18)); 
    transition: opacity 0.4s, transform 0.4s; pointer-events: none; 
}
.bp-env.open .bp-sello { opacity: 0; transform: translateX(-50%) scale(0.7); }

.bp-open-text { position: absolute; bottom: var(--env-text-bottom, -44px); width: 100%; text-align: center; font-size: var(--env-text-size, 13px); font-family: var(--env-text-font, inherit); color: var(--env-text-color, #665c54); letter-spacing: 2px; text-transform: uppercase; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ── MÚSICA & VOLUMEN EXPANDIBLE ────────────────────────────────────────── */
.bp-music-player { z-index: 9990; display: flex; align-items: center; position: relative; }
.bp-music-floating { position: fixed; bottom: 30px; right: 30px; }
.bp-music-btn { background: var(--bp-primary, #d4af37); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 18px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center; gap: 8px; z-index: 2; transition: transform 0.3s; }
.bp-music-btn:hover { transform: scale(1.1); }
.bp-music-btn.playing { animation: spinRecord 4s linear infinite; }
.bp-music-bar { background: var(--bp-primary, #d4af37); color: white; border: none; border-radius: 30px; padding: 10px 20px; font-size: 16px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; transition: all 0.3s; font-family: var(--bp-font-main); }
.bp-music-bar:hover { transform: scale(1.05); }

@keyframes spinRecord { 100% { transform: rotate(360deg); } }

.bp-vol-wrapper { position: absolute; right: 25px; display: flex; align-items: center; gap: 6px; padding: 4px 20px 4px 15px; background: rgba(255,255,255,0.95); border-radius: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateX(20px); transition: all 0.3s ease; z-index: 1; }
.bp-music-player:hover .bp-vol-wrapper { opacity: 1; visibility: visible; transform: translateX(-35px); }
.bp-vol-icon { font-size: 13px; color: #888; }
.bp-vol-slider { width: 80px; height: 4px; background: #ddd; border-radius: 2px; outline: none; cursor: pointer; -webkit-appearance: none; }
.bp-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--bp-primary, #d4af37); cursor: pointer; }

/* ── ANIMACIONES DE TEXTO ────────────────────────────────────────── */
.bp-anim-header { font-size: 3rem; margin-bottom: 20px; }
.bp-anim-typewriter { overflow: hidden; border-right: .15em solid var(--bp-primary, #d4af37); white-space: nowrap; margin: 0 auto; letter-spacing: .1em; animation: typing 3.5s steps(40, end) forwards, blink-caret .75s step-end 3.5s forwards; }
.bp-anim-handwriting { font-family: var(--bp-font-handwriting, cursive); opacity: 0; animation: fadeInSoft 2s ease forwards; }
.bp-anim-fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1.5s ease forwards; }
.bp-anim-zoom-in { opacity: 0; transform: scale(0.8); animation: zoomIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.bp-anim-pulse { animation: heartPulse 2s infinite; }

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { 0%, 50% { border-color: transparent } 51%, 100% { border-color: var(--bp-primary, #d4af37); } 100% { border-color: transparent; border-right: none; } }
@keyframes fadeInSoft { to { opacity: 1; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { to { opacity: 1; transform: scale(1); } }
@keyframes heartPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ── WIDGETS ELEMENTOR ────────────────────────────────────────── */
/* Cuenta Atrás Responsiva */
.bp-countdown-wrapper { text-align: center; margin: 30px 0; width: 100%; }
.bp-countdown-timer { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}
.bp-countdown-timer span { 
    display: flex; flex-direction: column; align-items: center; 
    background: rgba(255,255,255,0.8); 
    padding: 15px 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    min-width: 70px; 
    flex: 1 1 auto; /* Permite crecer y encogerse */
    max-width: 100px; /* Evita que crezcan demasiado */
}
@media (max-width: 480px) {
    .bp-countdown-timer { gap: 10px; }
    .bp-countdown-timer span { padding: 10px 15px; min-width: 60px; }
}

.bp-countdown-timer span > span { font-size: 32px; font-weight: bold; color: var(--bp-primary, #d4af37); padding: 0; box-shadow: none; background: transparent; min-width: auto; }
.bp-countdown-timer small { font-size: 12px; text-transform: uppercase; color: #888; }
.bp-countdown-end { font-size: 24px; font-family: var(--bp-font-handwriting, cursive); color: var(--bp-primary, #d4af37); margin-top: 20px; }

.bp-bank-widget { background: #fff; padding: 30px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin: 0 auto; }
.bp-bank-widget h4 { margin-top: 0; font-weight: 400; font-size: 1.1rem; line-height: 1.5; }
.bp-titular { font-family: var(--bp-font-handwriting, cursive); font-size: 24px; color: var(--bp-primary, #d4af37); margin-bottom: 20px; }
.bp-iban-container { background: #f4f4f4; padding: 15px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; position: relative; flex-wrap: wrap; gap: 10px; }
.bp-iban-container:hover { background: #e0e0e0; }
.bp-iban-text { word-break: break-all; } /* Para móviles muy pequeños */
.bp-copy-action { display: flex; align-items: center; gap: 8px; color: var(--bp-primary, #d4af37); font-weight: bold; }
.bp-copy-msg { font-size: 12px; opacity: 0; transition: opacity 0.3s; }
.bp-iban-container.copied .bp-copy-msg { opacity: 1; }

@media (max-width: 480px) {
    .bp-bank-widget { padding: 20px 15px; }
    .bp-titular { font-size: 22px; }
    .bp-iban-container { flex-direction: column; text-align: center; justify-content: center; gap: 10px; padding: 15px 10px; }
    .bp-iban-text { font-size: 14px; word-break: break-word; letter-spacing: 0; }
    .bp-copy-action { width: 100%; justify-content: center; padding-top: 10px; border-top: 1px dashed #ccc; }
}

.bp-polaroid-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 20px; }
.bp-polaroid-item { background: white; padding: 12px 12px 25px 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 250px; cursor: pointer; max-width: 100%; }
.bp-polaroid-item img { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }
.bp-polaroid-caption { font-family: var(--bp-font-handwriting, cursive); font-size: 22px; text-align: center; margin: 15px 0 0 0; color: #333; }
@media (min-width: 768px) {
    .bp-polaroid-item:nth-child(odd) { transform: rotate(-4deg); }
    .bp-polaroid-item:nth-child(even) { transform: rotate(4deg); }
}
.bp-polaroid-item:hover { transform: scale(1.1) rotate(0deg) !important; box-shadow: 0 15px 35px rgba(0,0,0,0.2); z-index: 10; }

#bp-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 999999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s; cursor: zoom-out; }
#bp-lightbox.active { opacity: 1; visibility: visible; }
#bp-lightbox img { max-width: 90%; max-height: 90%; border: 10px solid white; border-radius: 4px; transform: scale(0.8); transition: transform 0.3s; }
#bp-lightbox.active img { transform: scale(1); }

.bp-location-widget { padding: 10px; }
.bp-location-icon-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bp-location-icon-left { display: flex; flex-direction: row; align-items: flex-start; gap: 15px; text-align: left; }
.bp-location-icon-area { margin-bottom: 6px; }
.bp-location-icon-area svg { width: 1em; height: 1em; }
.bp-location-main h3 { margin-top: 0; margin-bottom: 8px; line-height: 1.2; }
.bp-loc-details { margin-bottom: 5px; line-height: 1.4; }
.bp-btn-mapa { display: inline-block; margin-top: 8px; padding: 10px 26px; background: #4a4a4a; color: white; text-decoration: none; border-radius: 30px; text-transform: uppercase; font-size: 14px; transition: all 0.3s; }
.bp-btn-mapa:hover { background: var(--bp-primary, #d4af37); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* WIDGET AUTOBUSES */
.bp-bus-wrapper { padding: 20px; }
.bp-bus-flex { display: flex; flex-direction: row; align-items: flex-start; gap: 20px; text-align: left; }
@media (max-width: 600px) {
    .bp-bus-flex { flex-direction: column; align-items: center; text-align: center; }
}
.bp-bus-icon { font-size: 2.5rem; margin-bottom: 15px; color: var(--bp-primary, #d4af37); }
.bp-bus-icon svg { width: 1em; height: 1em; fill: currentColor; }
.bp-bus-content { flex: 1; }
.bp-bus-main-title { font-family: var(--bp-font-handwriting, cursive); font-size: 32px; color: var(--bp-primary, #d4af37); margin: 0 0 20px 0; }
.bp-bus-title { font-family: var(--bp-font-handwriting, cursive); font-size: 26px; color: var(--bp-primary, #d4af37); margin: 0 0 15px 0; }
.bp-bus-list { list-style: none; padding: 0; margin: 0 0 25px 0; }
.bp-bus-route { font-size: 15px; margin-bottom: 10px; line-height: 1.5; }
.bp-bus-link { text-decoration: none; font-weight: 500; transition: color 0.3s; color: inherit; }
.bp-bus-link:hover { color: var(--bp-primary, #d4af37); }

/* ── CALENDARIO ────────────────────────────────────────── */
.bp-cal-wrap { background: #fffdf9; border-radius: 16px; overflow: hidden; max-width: 420px; margin: 0 auto; user-select: none; box-shadow: 0 8px 30px rgba(0,0,0,0.07); width: 100%; }
.bp-cal-header { background: var(--bp-primary, #d4af37); color: #fff; text-align: center; padding: 20px 16px 16px; }
.bp-cal-month-name { font-family: var(--bp-font-handwriting, cursive); font-size: 28px; line-height: 1.1; text-transform: capitalize; }
.bp-cal-year { font-size: 15px; opacity: 0.85; }
.bp-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 10px 8px; }
.bp-cal-weekday { text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; color: #aaa; }
.bp-cal-day { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; position: relative; }
@media (max-width: 400px) {
    .bp-cal-day { width: 36px; height: 36px; } /* Ajuste celdas para móviles muy finos */
}
.bp-cal-daynum { z-index: 2; position: relative; }
.bp-cal-mark-circle::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid; transform: rotate(-4deg); animation: bp-cal-draw 0.9s ease forwards; }
.bp-cal-mark-filled { border-radius: 50%; }
.bp-cal-mark-heart::after { content: '♥'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.2em; opacity: 0.2; z-index: 1; }
.bp-cal-mark-underline::after { content: ''; position: absolute; bottom: 2px; left: 10%; right: 10%; height: 2.5px; border-radius: 2px; transform: rotate(-1.5deg); }
@keyframes bp-cal-draw { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0 0% 0 0); opacity: 1; } }

/* ── FORMULARIOS CF7 ────────────────────────────────────────── */
.wpcf7-form input:not([type="submit"]):not([type="button"]), .wpcf7-form textarea, .wpcf7-form select { width: 100%; padding: 12px 16px; border: 1px solid var(--bp-cf7-input-border, #e2e8f0) !important; border-radius: 8px; font-family: var(--bp-cf7-font, var(--bp-font-main)) !important; background-color: var(--bp-cf7-input-bg, #fafafa) !important; color: var(--bp-cf7-input-color, #4a4a4a) !important; transition: all 0.3s ease; margin-bottom: 10px; max-width: 100%; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--bp-primary, #d4af37) !important; outline: none; background-color: #fff; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
.wpcf7-form input[type="submit"] { background-color: var(--bp-cf7-btn-bg, var(--bp-primary, #d4af37)) !important; color: var(--bp-cf7-btn-color, #ffffff) !important; border: none !important; padding: 14px 32px !important; border-radius: var(--bp-cf7-btn-radius, 30px) !important; font-family: var(--bp-cf7-font, var(--bp-font-main)) !important; font-weight: bold !important; cursor: pointer !important; transition: transform 0.3s ease, box-shadow 0.3s ease !important; text-transform: uppercase; letter-spacing: 1px; white-space: normal; height: auto; }
.wpcf7-form input[type="submit"]:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3) !important; }

/* ── FLOTANTES ────────────────────────────────────────── */
.bp-floating-item { position: fixed; pointer-events: none; z-index: 999; }
.anim-fall { animation: bpFall 12s linear infinite; top: -100px !important; }
.anim-float { animation: bpFloat 6s ease-in-out infinite; }
.anim-scroll { opacity: 0; transform: translateY(40px) scale(0.6); transition: all 1s; }
.anim-scroll.is-visible { opacity: 0.8; transform: translateY(0) scale(1); }
@keyframes bpFall { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10%, 90% { opacity: 0.8; } 100% { transform: translateY(110vh) rotate(360deg); opacity: 0; } }
@keyframes bpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }
