/* --- CONTENEDOR PRINCIPAL --- */
.fototeam_search_wrapper {
    max-width: 600px;
    margin: 30px auto 80px;
    text-align: center;
    font-family: inherit;
    width: 100%;
    padding: 0 15px; 
    box-sizing: border-box;
}

/* --- HEADER DEL EVENTO --- */
.fototeam-event-header {
    margin-bottom: 35px;
    text-align: center;
}
.fototeam-event-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.1;
    letter-spacing: 1px;
}
.header-line {
    width: 60px;
    height: 5px;
    background: #F68119;
    margin: 0 auto;
    border-radius: 10px;
}

/* --- TARJETA FACIAL (HERO) --- */
.facial-hero-section {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 5px solid #F68119;
    transform: scale(1.02);
    z-index: 2;
}

.facial-hero-section h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
    line-height: 1.2;
}

.precision-alert {
    background-color: #ffebee;
    color: #d32f2f;
    font-weight: 700;
    font-size: 11px;
    margin: 5px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
}

.facial-icon { margin: 5px 0 25px; color: #333; opacity: 0.9; }
.facial-icon svg { width: 70px; height: 70px; }
.facial-icon p { margin-top: 10px; font-weight: 600; font-size: 15px; margin-bottom: 0; color: #555; }

/* BOTÓN FACIAL BLINDADO */
#ft-od-facial-btn {
    background: #F68119 !important;
    color: #fff !important;
    border: none !important;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 25px rgba(246, 129, 25, 0.4);
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 320px;
    letter-spacing: 0.5px;
}
#ft-od-facial-btn:hover { 
    background: #e65100 !important; 
    transform: scale(1.02); 
}

/* --- TARJETA DORSAL (SECUNDARIA) --- */
.dorsal-footer-section { 
    background: #fcfcfc;
    border: 2px dashed #e0e0e0;
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 25px;
    position: relative;
    color: #666;
    z-index: 1;
}

.dorsal-disclaimer { font-size: 15px; margin-bottom: 20px; line-height: 1.5; font-weight: 500; }
.small-text { display: block; margin-top: 5px; font-size: 13px; color: #999; font-weight: 400; }

#ft-od-dorsal-input {
    padding: 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 12px;
    width: 100%; max-width: 100%; text-align: center;
    margin: 0 auto 15px; display: block;
    font-size: 20px; font-weight: bold; color: #555;
    transition: all 0.3s;
}
#ft-od-dorsal-input:focus { outline: none; border-color: #333; box-shadow: 0 0 0 3px rgba(0,0,0,0.1); }

#ft-od-dorsal-form input.secondary-button {
    background-color: transparent !important;
    background-image: none !important;
    color: #444 !important;
    border: 2px solid #ccc !important;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 320px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: none !important;
}

#ft-od-dorsal-form input.secondary-button:hover { 
    background-color: #333 !important; 
    color: #fff !important; 
    border-color: #333 !important;
}

.search-divider { height: 20px; background: transparent; margin: 0; }

/* --- PACK CARD --- */
.ft-od-pack-card {
    background: linear-gradient(135deg, #ffeb3b 0%, #fdd835 100%);
    border-radius: 20px; padding: 30px 20px; text-align: center; 
    color: #333; 
    box-shadow: 0 10px 25px rgba(253, 216, 53, 0.4); margin: 30px auto;
    max-width: 500px; position: relative; overflow: hidden;
}
.ft-od-pack-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%); pointer-events: none; }

.ft-od-pack-card h3 { font-size: 18px; margin: 0 0 5px; color: #d84315; letter-spacing: 1px; font-weight: 800; text-transform: uppercase; }
.ft-od-pack-card h2 { font-size: 42px; font-weight: 900; margin: 0 0 15px; color: #333; text-shadow: none; }
.ft-od-pack-card p strong { font-size: 22px; display: block; margin-bottom: 20px; color: #212121; }

/* BOTÓN COMPRAR PACK - FIX VISIBILIDAD */
.ft-od-buy-pack-btn { 
    display: inline-block; 
    background: #e65100 !important; /* Fondo Naranja Fuerte */
    color: #fff !important;          /* Letra Blanca */
    padding: 15px 40px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-size: 20px; 
    font-weight: 900; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    transition: transform 0.2s, background-color 0.2s; 
    z-index: 2; 
    position: relative; 
    border: 2px solid #fff; /* Borde blanco fino para resaltar */
}
.ft-od-buy-pack-btn:hover { 
    transform: scale(1.05); 
    background: #bf360c !important; /* Naranja más oscuro al pasar mouse */
    color: #fff !important; 
}

.pack-info { margin-top: 15px; font-size: 13px; opacity: 0.8; color: #444; font-weight: 600; }

/* --- CARTELES ERROR --- */
.ft-od-no-results { background: #fff; border-left: 5px solid #e0e0e0; border-radius: 12px; padding: 30px; text-align: center; margin: 40px auto; max-width: 600px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.ft-od-error-dorsal { border-left-color: #F68119; }
.ft-od-error-facial { border-left-color: #d32f2f; }
.ft-od-no-results h3 { color: #333; font-size: 20px; margin: 0 0 15px; }
.ft-od-no-results p { color: #666; font-size: 16px; margin-bottom: 20px; }

.pack-warning-text { background: #fff8e1; color: #5d4037; border-left: 4px solid #ffa000; padding: 20px; margin: 20px auto; max-width: 600px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); text-align: left; }
.warn-highlight { color: #d32f2f; font-weight: 900; }
.warn-clickable { cursor: pointer; text-decoration: underline; color: #d32f2f; font-weight: bold; }

/* --- GRILLA --- */
.ft-od-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; padding: 0 5px; padding-bottom: 100px; }
@media (min-width: 768px) { .ft-od-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.ft-od-photo-item { text-align: center; margin-bottom: 15px; background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.ft-od-photo-item img { border-radius: 8px; width: 100%; height: auto; display: block; }

.photo-price { font-weight: 800; color: #333; margin: 10px 0 5px; font-size: 16px; display: block !important; }
.ft-od-add-btn { display: block !important; background: #f5f5f5; color: #333; border: 1px solid #ddd; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.ft-od-add-btn:hover { background: #333; color: #fff; border-color: #333; }

/* --- TOAST --- */
#ft-od-toast { visibility: hidden; min-width: 200px; background-color: rgba(30, 30, 30, 0.95); color: #fff; text-align: center; border-radius: 12px; padding: 16px 24px; position: fixed; z-index: 9999999; left: 50%; bottom: 100px; transform: translateX(-50%); font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.3s, bottom 0.3s; backdrop-filter: blur(5px); }
#ft-od-toast.show { visibility: visible; opacity: 1; bottom: 100px; }

/* --- STICKY CART --- */
#ft-od-sticky-cart { position: fixed; bottom: -120px; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-top: 1px solid rgba(0,0,0,0.05); padding: 15px 20px; box-shadow: 0 -5px 30px rgba(0,0,0,0.15); z-index: 99990; transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; justify-content: center; align-items: center; box-sizing: border-box; }
#ft-od-sticky-cart.show { bottom: 0; }
.ft-od-sticky-btn { background: #111; color: #fff !important; padding: 14px 0; border-radius: 12px; font-weight: 800; text-decoration: none; width: 100%; max-width: 500px; text-align: center; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); text-transform: uppercase; letter-spacing: 1px; }
.ft-od-sticky-btn:hover { background: #F68119; transform: translateY(-2px); }

/* --- FIX WHATSAPP --- */
body.ft-cart-active .qlwapp-toggle {
    bottom: 90px !important;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- LIGHTBOX OVERLAY --- */
.mfp-close { color: white !important; font-size: 40px !important; opacity: 1 !important; right: 10px !important; top: 10px !important; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.ft-od-overlay-info { position: fixed; top: 60px; left: 20px; z-index: 99999; pointer-events: none; }
.ft-od-filename-badge { background: rgba(0,0,0,0.7); color: #fff; font-weight: bold; border-radius: 6px; font-family: sans-serif; padding: 6px 10px; font-size: 14px; display: inline-block; margin-bottom: 5px; backdrop-filter: blur(4px); }
.ft-od-lb-price { display: block; font-weight: 900; color: #fff; font-size: 24px; text-shadow: 0 2px 5px rgba(0,0,0,0.9); margin-top: 5px; }
.ft-od-lb-add-btn { background: #F68119; color: #fff; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* --- LOADER --- */
#ft-od-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; font-size: 22px; text-align: center; padding: 20px; }
#ft-od-loader::before { content: ""; width: 60px; height: 60px; border: 6px solid #ffffff33; border-top: 6px solid #ed8921; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- MODAL Y BOTONES NUEVOS --- */
#ft-od-modal { display: none; position: fixed !important; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); z-index: 999999; margin: 0; padding: 0; }
#ft-od-modal-content { background: #fff; padding: 30px 20px; border-radius: 20px; text-align: center; width: 90%; max-width: 450px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-height: 90vh; overflow-y: auto; margin: 0; }

.od-hidden-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Cruz de Cierre */
.ft-od-modal-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}
.ft-od-modal-close-x:hover { color: #333; }

/* Botones del Modal */
.ft-od-btn-camera {
    background: #F68119;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    display: block;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 15px; /* Separación entre botones */
    box-shadow: 0 4px 10px rgba(246, 129, 25, 0.3);
}
.ft-od-btn-camera:hover { background: #e65100; transform: scale(1.02); }

.ft-od-btn-gallery {
    background: #333;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    display: block;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.ft-od-btn-gallery:hover { background: #000; transform: scale(1.02); }

@media (max-width: 480px) {
    .fototeam_search_wrapper { padding: 0 10px; margin-top: 10px; }
    .facial-hero-section, .dorsal-footer-section { padding: 25px 15px; }
    .ft-od-pack-card h2 { font-size: 32px; }
    #ft-od-dorsal-input { font-size: 20px; }
    #ft-od-sticky-cart { padding-bottom: 15px; padding-right: 70px; }
    .fototeam-event-header h1 { font-size: 1.8rem; }
}

/* --- BANNER DE EDICIONES ANTERIORES (DISEÑO VENDEDOR) --- */
.ft-od-related-banner {
    background: #fdfdfd; 
    border: 2px solid #f0f0f0; 
    border-left: 6px solid #F68119; /* Borde naranja destacado */
    border-radius: 20px; 
    padding: 22px 18px; 
    margin: 15px auto 30px; 
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.related-top-row { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 12px; 
    flex-wrap: nowrap !important; /* Mantiene logo y título en la misma línea en celular */
}

.related-logo { 
    width: 60px; 
    height: 60px; 
    min-width: 60px; /* Evita que el logo se achique */
    object-fit: contain; 
    border-radius: 50%; 
    background: #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    border: 2px solid #fff; 
}

.related-main-title { 
    font-size: 19px; 
    font-weight: 900; /* Negrita máxima */
    color: #F68119; /* Naranja de la marca */
    line-height: 1.1; 
    text-transform: uppercase; /* Todo en mayúsculas para llamar la atención */
    letter-spacing: -0.5px;
}

.related-bottom-row {
    padding-left: 5px;
}

.related-sub-text { 
    font-size: 14px; 
    color: #444; 
    font-weight: 700; 
    margin: 0 0 8px 0; 
}

.ft-od-related-select {
    width: 100%; 
    padding: 14px; 
    border-radius: 12px; 
    border: 2px solid #F68119;
    font-weight: 800; 
    font-size: 16px; 
    color: #333; 
    cursor: pointer; 
    outline: none;
    background-color: #fff;
    appearance: none; /* Limpia el estilo viejo del navegador */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F68119' 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 15px center;
    background-size: 15px;
}

/* Ajustes finos para Mobile */
@media (max-width: 480px) { 
    .related-main-title { font-size: 16px; } 
    .related-logo { width: 50px; height: 50px; min-width: 50px; } 
    .ft-od-related-banner { padding: 18px 15px; }
}